@dynamic-labs/sdk-api 0.0.921 → 0.0.923
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 +1 -1
- package/src/apis/AllowlistsApi.cjs +245 -286
- package/src/apis/AllowlistsApi.js +245 -286
- package/src/apis/AnalyticsApi.cjs +210 -235
- package/src/apis/AnalyticsApi.js +210 -235
- package/src/apis/ChainalysisApi.cjs +66 -79
- package/src/apis/ChainalysisApi.js +66 -79
- package/src/apis/ChainsApi.cjs +25 -30
- package/src/apis/ChainsApi.js +25 -30
- package/src/apis/CustomFieldsApi.cjs +119 -140
- package/src/apis/CustomFieldsApi.js +119 -140
- package/src/apis/CustomHostnamesApi.cjs +55 -68
- package/src/apis/CustomHostnamesApi.js +55 -68
- package/src/apis/CustomNetworksApi.cjs +128 -149
- package/src/apis/CustomNetworksApi.js +128 -149
- package/src/apis/DeeplinkUrlsApi.cjs +70 -83
- package/src/apis/DeeplinkUrlsApi.js +70 -83
- package/src/apis/DepositApi.cjs +83 -100
- package/src/apis/DepositApi.js +83 -100
- package/src/apis/EnvironmentsApi.cjs +168 -197
- package/src/apis/EnvironmentsApi.js +168 -197
- package/src/apis/EventsApi.cjs +60 -73
- package/src/apis/EventsApi.js +60 -73
- package/src/apis/ExportsApi.cjs +89 -106
- package/src/apis/ExportsApi.js +89 -106
- package/src/apis/ExternalJwtApi.cjs +27 -32
- package/src/apis/ExternalJwtApi.js +27 -32
- package/src/apis/GatesApi.cjs +154 -183
- package/src/apis/GatesApi.js +154 -183
- package/src/apis/GlobalWalletAccessControlApi.cjs +159 -188
- package/src/apis/GlobalWalletAccessControlApi.js +159 -188
- package/src/apis/GlobalWalletConnectionsApi.cjs +28 -33
- package/src/apis/GlobalWalletConnectionsApi.js +28 -33
- package/src/apis/GlobalWalletsApi.cjs +90 -111
- package/src/apis/GlobalWalletsApi.js +90 -111
- package/src/apis/InvitesApi.cjs +120 -141
- package/src/apis/InvitesApi.js +120 -141
- package/src/apis/MembersApi.cjs +115 -136
- package/src/apis/MembersApi.js +115 -136
- package/src/apis/MfaApi.cjs +42 -51
- package/src/apis/MfaApi.js +42 -51
- package/src/apis/MfaSettingsApi.cjs +72 -85
- package/src/apis/MfaSettingsApi.js +72 -85
- package/src/apis/NameServicesApi.cjs +123 -148
- package/src/apis/NameServicesApi.js +123 -148
- package/src/apis/OrganizationsApi.cjs +328 -381
- package/src/apis/OrganizationsApi.js +328 -381
- package/src/apis/OriginsApi.cjs +58 -71
- package/src/apis/OriginsApi.js +58 -71
- package/src/apis/ProjectsApi.cjs +119 -140
- package/src/apis/ProjectsApi.js +119 -140
- package/src/apis/SDKApi.cjs +6187 -7365
- package/src/apis/SDKApi.d.ts +3 -2
- package/src/apis/SDKApi.js +6187 -7365
- package/src/apis/SDKViewsApi.cjs +59 -72
- package/src/apis/SDKViewsApi.js +59 -72
- package/src/apis/SessionsApi.cjs +69 -82
- package/src/apis/SessionsApi.js +69 -82
- package/src/apis/SettingsApi.cjs +273 -330
- package/src/apis/SettingsApi.js +273 -330
- package/src/apis/TestAccountApi.cjs +47 -60
- package/src/apis/TestAccountApi.js +47 -60
- package/src/apis/TokensApi.cjs +92 -109
- package/src/apis/TokensApi.js +92 -109
- package/src/apis/UserApiTokensApi.cjs +64 -77
- package/src/apis/UserApiTokensApi.js +64 -77
- package/src/apis/UsersApi.cjs +357 -410
- package/src/apis/UsersApi.js +357 -410
- package/src/apis/VisitsApi.cjs +34 -39
- package/src/apis/VisitsApi.js +34 -39
- package/src/apis/WaasApi.cjs +470 -559
- package/src/apis/WaasApi.js +470 -559
- package/src/apis/WalletConnectApi.cjs +21 -26
- package/src/apis/WalletConnectApi.js +21 -26
- package/src/apis/WalletsApi.cjs +340 -393
- package/src/apis/WalletsApi.js +340 -393
- package/src/apis/WebhooksApi.cjs +167 -200
- package/src/apis/WebhooksApi.js +167 -200
- package/src/index.cjs +8 -4
- package/src/index.js +2 -1
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/NetworkConfiguration.cjs +4 -0
- package/src/models/NetworkConfiguration.d.ts +12 -0
- package/src/models/NetworkConfiguration.js +4 -0
- package/src/models/PrepareSigningRequest.cjs +35 -0
- package/src/models/PrepareSigningRequest.d.ts +33 -0
- package/src/models/PrepareSigningRequest.js +29 -0
- package/src/models/Provider.cjs +2 -0
- package/src/models/Provider.d.ts +6 -0
- package/src/models/Provider.js +2 -0
- package/src/models/ProviderCreateRequest.cjs +2 -0
- package/src/models/ProviderCreateRequest.d.ts +6 -0
- package/src/models/ProviderCreateRequest.js +2 -0
- package/src/models/ProviderUpdateRequest.cjs +2 -0
- package/src/models/ProviderUpdateRequest.d.ts +6 -0
- package/src/models/ProviderUpdateRequest.js +2 -0
- package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
- package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
- package/src/models/TransactionFeeEstimateRequest.js +31 -0
- package/src/models/index.d.ts +2 -1
- package/src/runtime.cjs +45 -36
- package/src/runtime.js +45 -36
- package/_virtual/_tslib.cjs +0 -35
- package/_virtual/_tslib.js +0 -31
- package/src/models/InlineObject1.cjs +0 -43
- package/src/models/InlineObject1.d.ts +0 -27
- package/src/models/InlineObject1.js +0 -37
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
5
|
var runtime = require('../runtime.cjs');
|
|
7
6
|
require('../models/AccessOutcomeEnum.cjs');
|
|
8
7
|
require('../models/ExchangeKeyEnum.cjs');
|
|
@@ -121,112 +120,100 @@ class ChainalysisApi extends runtime.BaseAPI {
|
|
|
121
120
|
* Disables the Chainalysis Sanctions API for the specified environment.
|
|
122
121
|
* Disables the Sanctions API
|
|
123
122
|
*/
|
|
124
|
-
disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
async disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
125
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disableSanctionsApiByEnvironmentId.');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
const headerParameters = {};
|
|
129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
130
|
+
const token = this.configuration.accessToken;
|
|
131
|
+
const tokenString = await token("bearerAuth", []);
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
134
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
const response = yield this.request({
|
|
139
|
-
path: `/environments/{environmentId}/integrations/chainalysis/sanctions/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
140
|
-
method: 'PUT',
|
|
141
|
-
headers: headerParameters,
|
|
142
|
-
query: queryParameters,
|
|
143
|
-
}, initOverrides);
|
|
144
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
|
|
145
|
-
});
|
|
135
|
+
}
|
|
136
|
+
const response = await this.request({
|
|
137
|
+
path: `/environments/{environmentId}/integrations/chainalysis/sanctions/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
138
|
+
method: 'PUT',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
}, initOverrides);
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
|
|
146
143
|
}
|
|
147
144
|
/**
|
|
148
145
|
* Disables the Chainalysis Sanctions API for the specified environment.
|
|
149
146
|
* Disables the Sanctions API
|
|
150
147
|
*/
|
|
151
|
-
disableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return yield response.value();
|
|
155
|
-
});
|
|
148
|
+
async disableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
149
|
+
const response = await this.disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
150
|
+
return await response.value();
|
|
156
151
|
}
|
|
157
152
|
/**
|
|
158
153
|
* Enables the Chainalysis Sanctions API for the specified environment.
|
|
159
154
|
* Enable the Sanctions API
|
|
160
155
|
*/
|
|
161
|
-
enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
173
|
-
}
|
|
156
|
+
async enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
157
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
158
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling enableSanctionsApiByEnvironmentId.');
|
|
159
|
+
}
|
|
160
|
+
const queryParameters = {};
|
|
161
|
+
const headerParameters = {};
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = await token("bearerAuth", []);
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
167
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
168
|
+
}
|
|
169
|
+
const response = await this.request({
|
|
170
|
+
path: `/environments/{environmentId}/integrations/chainalysis/sanctions/enable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
171
|
+
method: 'PUT',
|
|
172
|
+
headers: headerParameters,
|
|
173
|
+
query: queryParameters,
|
|
174
|
+
}, initOverrides);
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
|
|
183
176
|
}
|
|
184
177
|
/**
|
|
185
178
|
* Enables the Chainalysis Sanctions API for the specified environment.
|
|
186
179
|
* Enable the Sanctions API
|
|
187
180
|
*/
|
|
188
|
-
enableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return yield response.value();
|
|
192
|
-
});
|
|
181
|
+
async enableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
182
|
+
const response = await this.enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
183
|
+
return await response.value();
|
|
193
184
|
}
|
|
194
185
|
/**
|
|
195
186
|
* Returns the Chainalysis configuration for the specified environment.
|
|
196
187
|
* Find the Chainalysis configuration for an environment.
|
|
197
188
|
*/
|
|
198
|
-
getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
210
|
-
}
|
|
189
|
+
async getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
190
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
191
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getChainalysisByEnvironmentId.');
|
|
192
|
+
}
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = await token("bearerAuth", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
211
200
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
201
|
+
}
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/environments/{environmentId}/integrations/chainalysis`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides);
|
|
208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
|
|
220
209
|
}
|
|
221
210
|
/**
|
|
222
211
|
* Returns the Chainalysis configuration for the specified environment.
|
|
223
212
|
* Find the Chainalysis configuration for an environment.
|
|
224
213
|
*/
|
|
225
|
-
getChainalysisByEnvironmentId(requestParameters, initOverrides) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return yield response.value();
|
|
229
|
-
});
|
|
214
|
+
async getChainalysisByEnvironmentId(requestParameters, initOverrides) {
|
|
215
|
+
const response = await this.getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
216
|
+
return await response.value();
|
|
230
217
|
}
|
|
231
218
|
}
|
|
232
219
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
1
|
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
3
2
|
import '../models/AccessOutcomeEnum.js';
|
|
4
3
|
import '../models/ExchangeKeyEnum.js';
|
|
@@ -117,112 +116,100 @@ class ChainalysisApi extends BaseAPI {
|
|
|
117
116
|
* Disables the Chainalysis Sanctions API for the specified environment.
|
|
118
117
|
* Disables the Sanctions API
|
|
119
118
|
*/
|
|
120
|
-
disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
async disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
120
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
121
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disableSanctionsApiByEnvironmentId.');
|
|
122
|
+
}
|
|
123
|
+
const queryParameters = {};
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
+
const token = this.configuration.accessToken;
|
|
127
|
+
const tokenString = await token("bearerAuth", []);
|
|
128
|
+
if (tokenString) {
|
|
129
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
124
130
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
const response = yield this.request({
|
|
135
|
-
path: `/environments/{environmentId}/integrations/chainalysis/sanctions/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
136
|
-
method: 'PUT',
|
|
137
|
-
headers: headerParameters,
|
|
138
|
-
query: queryParameters,
|
|
139
|
-
}, initOverrides);
|
|
140
|
-
return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
|
|
141
|
-
});
|
|
131
|
+
}
|
|
132
|
+
const response = await this.request({
|
|
133
|
+
path: `/environments/{environmentId}/integrations/chainalysis/sanctions/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
134
|
+
method: 'PUT',
|
|
135
|
+
headers: headerParameters,
|
|
136
|
+
query: queryParameters,
|
|
137
|
+
}, initOverrides);
|
|
138
|
+
return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
|
|
142
139
|
}
|
|
143
140
|
/**
|
|
144
141
|
* Disables the Chainalysis Sanctions API for the specified environment.
|
|
145
142
|
* Disables the Sanctions API
|
|
146
143
|
*/
|
|
147
|
-
disableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return yield response.value();
|
|
151
|
-
});
|
|
144
|
+
async disableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
145
|
+
const response = await this.disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
146
|
+
return await response.value();
|
|
152
147
|
}
|
|
153
148
|
/**
|
|
154
149
|
* Enables the Chainalysis Sanctions API for the specified environment.
|
|
155
150
|
* Enable the Sanctions API
|
|
156
151
|
*/
|
|
157
|
-
enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
-
}
|
|
152
|
+
async enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
153
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
154
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling enableSanctionsApiByEnvironmentId.');
|
|
155
|
+
}
|
|
156
|
+
const queryParameters = {};
|
|
157
|
+
const headerParameters = {};
|
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
159
|
+
const token = this.configuration.accessToken;
|
|
160
|
+
const tokenString = await token("bearerAuth", []);
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
170
163
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
164
|
+
}
|
|
165
|
+
const response = await this.request({
|
|
166
|
+
path: `/environments/{environmentId}/integrations/chainalysis/sanctions/enable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
167
|
+
method: 'PUT',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
}, initOverrides);
|
|
171
|
+
return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
|
|
179
172
|
}
|
|
180
173
|
/**
|
|
181
174
|
* Enables the Chainalysis Sanctions API for the specified environment.
|
|
182
175
|
* Enable the Sanctions API
|
|
183
176
|
*/
|
|
184
|
-
enableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return yield response.value();
|
|
188
|
-
});
|
|
177
|
+
async enableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
|
|
178
|
+
const response = await this.enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
179
|
+
return await response.value();
|
|
189
180
|
}
|
|
190
181
|
/**
|
|
191
182
|
* Returns the Chainalysis configuration for the specified environment.
|
|
192
183
|
* Find the Chainalysis configuration for an environment.
|
|
193
184
|
*/
|
|
194
|
-
getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
206
|
-
}
|
|
185
|
+
async getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides) {
|
|
186
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
187
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getChainalysisByEnvironmentId.');
|
|
188
|
+
}
|
|
189
|
+
const queryParameters = {};
|
|
190
|
+
const headerParameters = {};
|
|
191
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
192
|
+
const token = this.configuration.accessToken;
|
|
193
|
+
const tokenString = await token("bearerAuth", []);
|
|
194
|
+
if (tokenString) {
|
|
195
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
207
196
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
197
|
+
}
|
|
198
|
+
const response = await this.request({
|
|
199
|
+
path: `/environments/{environmentId}/integrations/chainalysis`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
200
|
+
method: 'GET',
|
|
201
|
+
headers: headerParameters,
|
|
202
|
+
query: queryParameters,
|
|
203
|
+
}, initOverrides);
|
|
204
|
+
return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
|
|
216
205
|
}
|
|
217
206
|
/**
|
|
218
207
|
* Returns the Chainalysis configuration for the specified environment.
|
|
219
208
|
* Find the Chainalysis configuration for an environment.
|
|
220
209
|
*/
|
|
221
|
-
getChainalysisByEnvironmentId(requestParameters, initOverrides) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return yield response.value();
|
|
225
|
-
});
|
|
210
|
+
async getChainalysisByEnvironmentId(requestParameters, initOverrides) {
|
|
211
|
+
const response = await this.getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides);
|
|
212
|
+
return await response.value();
|
|
226
213
|
}
|
|
227
214
|
}
|
|
228
215
|
|
package/src/apis/ChainsApi.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
5
|
var runtime = require('../runtime.cjs');
|
|
7
6
|
require('../models/AccessOutcomeEnum.cjs');
|
|
8
7
|
require('../models/ExchangeKeyEnum.cjs');
|
|
@@ -121,41 +120,37 @@ class ChainsApi extends runtime.BaseAPI {
|
|
|
121
120
|
* Returns all tokens for the specified chain.
|
|
122
121
|
* Get tokens for a chain
|
|
123
122
|
*/
|
|
124
|
-
getAllTokensByChainRaw(requestParameters, initOverrides) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
async getAllTokensByChainRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
125
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getAllTokensByChain.');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
if (requestParameters.networkId !== undefined) {
|
|
129
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
130
|
+
}
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
const token = this.configuration.accessToken;
|
|
134
|
+
const tokenString = await token("bearerAuth", []);
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
137
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
if (tokenString) {
|
|
138
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
const response = yield this.request({
|
|
142
|
-
path: `/chains/{chainName}/tokens`.replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
143
|
-
method: 'GET',
|
|
144
|
-
headers: headerParameters,
|
|
145
|
-
query: queryParameters,
|
|
146
|
-
}, initOverrides);
|
|
147
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ChainToken.ChainTokenFromJSON));
|
|
148
|
-
});
|
|
138
|
+
}
|
|
139
|
+
const response = await this.request({
|
|
140
|
+
path: `/chains/{chainName}/tokens`.replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
141
|
+
method: 'GET',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
}, initOverrides);
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ChainToken.ChainTokenFromJSON));
|
|
149
146
|
}
|
|
150
147
|
/**
|
|
151
148
|
* Returns all tokens for the specified chain.
|
|
152
149
|
* Get tokens for a chain
|
|
153
150
|
*/
|
|
154
|
-
getAllTokensByChain(requestParameters, initOverrides) {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return yield response.value();
|
|
158
|
-
});
|
|
151
|
+
async getAllTokensByChain(requestParameters, initOverrides) {
|
|
152
|
+
const response = await this.getAllTokensByChainRaw(requestParameters, initOverrides);
|
|
153
|
+
return await response.value();
|
|
159
154
|
}
|
|
160
155
|
}
|
|
161
156
|
|
package/src/apis/ChainsApi.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
1
|
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
3
2
|
import '../models/AccessOutcomeEnum.js';
|
|
4
3
|
import '../models/ExchangeKeyEnum.js';
|
|
@@ -117,41 +116,37 @@ class ChainsApi extends BaseAPI {
|
|
|
117
116
|
* Returns all tokens for the specified chain.
|
|
118
117
|
* Get tokens for a chain
|
|
119
118
|
*/
|
|
120
|
-
getAllTokensByChainRaw(requestParameters, initOverrides) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
async getAllTokensByChainRaw(requestParameters, initOverrides) {
|
|
120
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
121
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getAllTokensByChain.');
|
|
122
|
+
}
|
|
123
|
+
const queryParameters = {};
|
|
124
|
+
if (requestParameters.networkId !== undefined) {
|
|
125
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
126
|
+
}
|
|
127
|
+
const headerParameters = {};
|
|
128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
129
|
+
const token = this.configuration.accessToken;
|
|
130
|
+
const tokenString = await token("bearerAuth", []);
|
|
131
|
+
if (tokenString) {
|
|
132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
124
133
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (tokenString) {
|
|
134
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
const response = yield this.request({
|
|
138
|
-
path: `/chains/{chainName}/tokens`.replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
139
|
-
method: 'GET',
|
|
140
|
-
headers: headerParameters,
|
|
141
|
-
query: queryParameters,
|
|
142
|
-
}, initOverrides);
|
|
143
|
-
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(ChainTokenFromJSON));
|
|
144
|
-
});
|
|
134
|
+
}
|
|
135
|
+
const response = await this.request({
|
|
136
|
+
path: `/chains/{chainName}/tokens`.replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
137
|
+
method: 'GET',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
}, initOverrides);
|
|
141
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(ChainTokenFromJSON));
|
|
145
142
|
}
|
|
146
143
|
/**
|
|
147
144
|
* Returns all tokens for the specified chain.
|
|
148
145
|
* Get tokens for a chain
|
|
149
146
|
*/
|
|
150
|
-
getAllTokensByChain(requestParameters, initOverrides) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return yield response.value();
|
|
154
|
-
});
|
|
147
|
+
async getAllTokensByChain(requestParameters, initOverrides) {
|
|
148
|
+
const response = await this.getAllTokensByChainRaw(requestParameters, initOverrides);
|
|
149
|
+
return await response.value();
|
|
155
150
|
}
|
|
156
151
|
}
|
|
157
152
|
|