g-ten-security-sdk 1.0.0
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/dist/auth/authenticate.d.ts +30 -0
- package/dist/auth/authenticate.js +52 -0
- package/dist/auth/interceptor.d.ts +13 -0
- package/dist/auth/interceptor.js +74 -0
- package/dist/auth/tokenStore.d.ts +17 -0
- package/dist/auth/tokenStore.js +36 -0
- package/dist/client.d.ts +109 -0
- package/dist/client.js +157 -0
- package/dist/generated/src/apis/AuthApi.d.ts +139 -0
- package/dist/generated/src/apis/AuthApi.js +429 -0
- package/dist/generated/src/apis/BranchesApi.d.ts +77 -0
- package/dist/generated/src/apis/BranchesApi.js +228 -0
- package/dist/generated/src/apis/ChatApi.d.ts +34 -0
- package/dist/generated/src/apis/ChatApi.js +92 -0
- package/dist/generated/src/apis/DataApi.d.ts +112 -0
- package/dist/generated/src/apis/DataApi.js +297 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +109 -0
- package/dist/generated/src/apis/DefaultApi.js +306 -0
- package/dist/generated/src/apis/DemoApi.d.ts +46 -0
- package/dist/generated/src/apis/DemoApi.js +129 -0
- package/dist/generated/src/apis/FraudApi.d.ts +311 -0
- package/dist/generated/src/apis/FraudApi.js +809 -0
- package/dist/generated/src/apis/HealthApi.d.ts +31 -0
- package/dist/generated/src/apis/HealthApi.js +92 -0
- package/dist/generated/src/apis/SchemaApi.d.ts +31 -0
- package/dist/generated/src/apis/SchemaApi.js +92 -0
- package/dist/generated/src/apis/WorkflowApi.d.ts +94 -0
- package/dist/generated/src/apis/WorkflowApi.js +269 -0
- package/dist/generated/src/apis/index.d.ts +10 -0
- package/dist/generated/src/apis/index.js +28 -0
- package/dist/generated/src/index.d.ts +3 -0
- package/dist/generated/src/index.js +21 -0
- package/dist/generated/src/models/Account.d.ts +122 -0
- package/dist/generated/src/models/Account.js +92 -0
- package/dist/generated/src/models/AlertStatusUpdate.d.ts +32 -0
- package/dist/generated/src/models/AlertStatusUpdate.js +50 -0
- package/dist/generated/src/models/AssignRequest.d.ts +32 -0
- package/dist/generated/src/models/AssignRequest.js +48 -0
- package/dist/generated/src/models/BranchCreate.d.ts +44 -0
- package/dist/generated/src/models/BranchCreate.js +56 -0
- package/dist/generated/src/models/BranchUpdate.d.ts +38 -0
- package/dist/generated/src/models/BranchUpdate.js +50 -0
- package/dist/generated/src/models/ChatRequest.d.ts +39 -0
- package/dist/generated/src/models/ChatRequest.js +53 -0
- package/dist/generated/src/models/ChatResponse.d.ts +32 -0
- package/dist/generated/src/models/ChatResponse.js +50 -0
- package/dist/generated/src/models/HTTPValidationError.d.ts +33 -0
- package/dist/generated/src/models/HTTPValidationError.js +49 -0
- package/dist/generated/src/models/HistoryTurn.d.ts +38 -0
- package/dist/generated/src/models/HistoryTurn.js +54 -0
- package/dist/generated/src/models/InjectPatternRequest.d.ts +32 -0
- package/dist/generated/src/models/InjectPatternRequest.js +50 -0
- package/dist/generated/src/models/LocationInner.d.ts +26 -0
- package/dist/generated/src/models/LocationInner.js +38 -0
- package/dist/generated/src/models/NarrativeRequest.d.ts +44 -0
- package/dist/generated/src/models/NarrativeRequest.js +52 -0
- package/dist/generated/src/models/NoteCreate.d.ts +38 -0
- package/dist/generated/src/models/NoteCreate.js +52 -0
- package/dist/generated/src/models/PasswordUpdate.d.ts +32 -0
- package/dist/generated/src/models/PasswordUpdate.js +50 -0
- package/dist/generated/src/models/StreamConfigRequest.d.ts +32 -0
- package/dist/generated/src/models/StreamConfigRequest.js +50 -0
- package/dist/generated/src/models/Token.d.ts +46 -0
- package/dist/generated/src/models/Token.js +58 -0
- package/dist/generated/src/models/Transaction.d.ts +74 -0
- package/dist/generated/src/models/Transaction.js +78 -0
- package/dist/generated/src/models/UserCreate.d.ts +56 -0
- package/dist/generated/src/models/UserCreate.js +62 -0
- package/dist/generated/src/models/UserOut.d.ts +62 -0
- package/dist/generated/src/models/UserOut.js +66 -0
- package/dist/generated/src/models/ValidationError.d.ts +57 -0
- package/dist/generated/src/models/ValidationError.js +63 -0
- package/dist/generated/src/models/index.d.ts +20 -0
- package/dist/generated/src/models/index.js +38 -0
- package/dist/generated/src/runtime.d.ts +184 -0
- package/dist/generated/src/runtime.js +353 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +40 -0
- package/dist/types/index.d.ts +85 -0
- package/dist/types/index.js +5 -0
- package/dist/utils/errors.d.ts +33 -0
- package/dist/utils/errors.js +52 -0
- package/dist/utils/validators.d.ts +10 -0
- package/dist/utils/validators.js +26 -0
- package/dist/wrappers/alerts.d.ts +29 -0
- package/dist/wrappers/alerts.js +52 -0
- package/dist/wrappers/analytics.d.ts +8 -0
- package/dist/wrappers/analytics.js +15 -0
- package/dist/wrappers/copilot.d.ts +8 -0
- package/dist/wrappers/copilot.js +20 -0
- package/dist/wrappers/data.d.ts +55 -0
- package/dist/wrappers/data.js +127 -0
- package/dist/wrappers/fraud.d.ts +46 -0
- package/dist/wrappers/fraud.js +84 -0
- package/dist/wrappers/investigation.d.ts +31 -0
- package/dist/wrappers/investigation.js +77 -0
- package/package.json +18 -0
|
@@ -0,0 +1,809 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* G-TEN
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.FraudApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const Account_1 = require("../models/Account");
|
|
52
|
+
const AlertStatusUpdate_1 = require("../models/AlertStatusUpdate");
|
|
53
|
+
const NarrativeRequest_1 = require("../models/NarrativeRequest");
|
|
54
|
+
const Transaction_1 = require("../models/Transaction");
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
class FraudApi extends runtime.BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
* Creates request options for createAccountApiV1AccountsPost without sending the request
|
|
61
|
+
*/
|
|
62
|
+
async createAccountApiV1AccountsPostRequestOpts(requestParameters) {
|
|
63
|
+
if (requestParameters['account'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('account', 'Required parameter "account" was null or undefined when calling createAccountApiV1AccountsPost().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
let urlPath = `/api/v1/accounts`;
|
|
70
|
+
return {
|
|
71
|
+
path: urlPath,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
body: (0, Account_1.AccountToJSON)(requestParameters['account']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create Account
|
|
80
|
+
*/
|
|
81
|
+
async createAccountApiV1AccountsPostRaw(requestParameters, initOverrides) {
|
|
82
|
+
const requestOptions = await this.createAccountApiV1AccountsPostRequestOpts(requestParameters);
|
|
83
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
84
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
85
|
+
return new runtime.JSONApiResponse(response);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return new runtime.TextApiResponse(response);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Create Account
|
|
93
|
+
*/
|
|
94
|
+
async createAccountApiV1AccountsPost(requestParameters, initOverrides) {
|
|
95
|
+
const response = await this.createAccountApiV1AccountsPostRaw(requestParameters, initOverrides);
|
|
96
|
+
return await response.value();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for createTransactionApiV1TransactionsPost without sending the request
|
|
100
|
+
*/
|
|
101
|
+
async createTransactionApiV1TransactionsPostRequestOpts(requestParameters) {
|
|
102
|
+
if (requestParameters['transaction'] == null) {
|
|
103
|
+
throw new runtime.RequiredError('transaction', 'Required parameter "transaction" was null or undefined when calling createTransactionApiV1TransactionsPost().');
|
|
104
|
+
}
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
const headerParameters = {};
|
|
107
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
108
|
+
let urlPath = `/api/v1/transactions`;
|
|
109
|
+
return {
|
|
110
|
+
path: urlPath,
|
|
111
|
+
method: 'POST',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
body: (0, Transaction_1.TransactionToJSON)(requestParameters['transaction']),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create Transaction
|
|
119
|
+
*/
|
|
120
|
+
async createTransactionApiV1TransactionsPostRaw(requestParameters, initOverrides) {
|
|
121
|
+
const requestOptions = await this.createTransactionApiV1TransactionsPostRequestOpts(requestParameters);
|
|
122
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
123
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
124
|
+
return new runtime.JSONApiResponse(response);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return new runtime.TextApiResponse(response);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Create Transaction
|
|
132
|
+
*/
|
|
133
|
+
async createTransactionApiV1TransactionsPost(requestParameters, initOverrides) {
|
|
134
|
+
const response = await this.createTransactionApiV1TransactionsPostRaw(requestParameters, initOverrides);
|
|
135
|
+
return await response.value();
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for getAlertDetailsApiV1AlertsAlertIdGet without sending the request
|
|
139
|
+
*/
|
|
140
|
+
async getAlertDetailsApiV1AlertsAlertIdGetRequestOpts(requestParameters) {
|
|
141
|
+
if (requestParameters['alertId'] == null) {
|
|
142
|
+
throw new runtime.RequiredError('alertId', 'Required parameter "alertId" was null or undefined when calling getAlertDetailsApiV1AlertsAlertIdGet().');
|
|
143
|
+
}
|
|
144
|
+
const queryParameters = {};
|
|
145
|
+
const headerParameters = {};
|
|
146
|
+
let urlPath = `/api/v1/alerts/{alert_id}`;
|
|
147
|
+
urlPath = urlPath.replace('{alert_id}', encodeURIComponent(String(requestParameters['alertId'])));
|
|
148
|
+
return {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Get Alert Details
|
|
157
|
+
*/
|
|
158
|
+
async getAlertDetailsApiV1AlertsAlertIdGetRaw(requestParameters, initOverrides) {
|
|
159
|
+
const requestOptions = await this.getAlertDetailsApiV1AlertsAlertIdGetRequestOpts(requestParameters);
|
|
160
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
161
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
162
|
+
return new runtime.JSONApiResponse(response);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
return new runtime.TextApiResponse(response);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Get Alert Details
|
|
170
|
+
*/
|
|
171
|
+
async getAlertDetailsApiV1AlertsAlertIdGet(requestParameters, initOverrides) {
|
|
172
|
+
const response = await this.getAlertDetailsApiV1AlertsAlertIdGetRaw(requestParameters, initOverrides);
|
|
173
|
+
return await response.value();
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Creates request options for getAlertsQuickApiV1AlertsQuickGet without sending the request
|
|
177
|
+
*/
|
|
178
|
+
async getAlertsQuickApiV1AlertsQuickGetRequestOpts(requestParameters) {
|
|
179
|
+
const queryParameters = {};
|
|
180
|
+
if (requestParameters['limit'] != null) {
|
|
181
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
182
|
+
}
|
|
183
|
+
if (requestParameters['branchCode'] != null) {
|
|
184
|
+
queryParameters['branch_code'] = requestParameters['branchCode'];
|
|
185
|
+
}
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
188
|
+
// oauth required
|
|
189
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
190
|
+
}
|
|
191
|
+
let urlPath = `/api/v1/alerts/quick`;
|
|
192
|
+
return {
|
|
193
|
+
path: urlPath,
|
|
194
|
+
method: 'GET',
|
|
195
|
+
headers: headerParameters,
|
|
196
|
+
query: queryParameters,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Read pre-generated Alert nodes from Neo4j. Instant — no ML inference.
|
|
201
|
+
* Get Alerts Quick
|
|
202
|
+
*/
|
|
203
|
+
async getAlertsQuickApiV1AlertsQuickGetRaw(requestParameters, initOverrides) {
|
|
204
|
+
const requestOptions = await this.getAlertsQuickApiV1AlertsQuickGetRequestOpts(requestParameters);
|
|
205
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
206
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
207
|
+
return new runtime.JSONApiResponse(response);
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
return new runtime.TextApiResponse(response);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Read pre-generated Alert nodes from Neo4j. Instant — no ML inference.
|
|
215
|
+
* Get Alerts Quick
|
|
216
|
+
*/
|
|
217
|
+
async getAlertsQuickApiV1AlertsQuickGet(requestParameters = {}, initOverrides) {
|
|
218
|
+
const response = await this.getAlertsQuickApiV1AlertsQuickGetRaw(requestParameters, initOverrides);
|
|
219
|
+
return await response.value();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Creates request options for getBranchChannelAnalyticsApiV1AnalyticsBranchChannelGet without sending the request
|
|
223
|
+
*/
|
|
224
|
+
async getBranchChannelAnalyticsApiV1AnalyticsBranchChannelGetRequestOpts() {
|
|
225
|
+
const queryParameters = {};
|
|
226
|
+
const headerParameters = {};
|
|
227
|
+
let urlPath = `/api/v1/analytics/branch-channel`;
|
|
228
|
+
return {
|
|
229
|
+
path: urlPath,
|
|
230
|
+
method: 'GET',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Aggregate branch risk and channel abuse metrics from PostgreSQL.
|
|
237
|
+
* Get Branch Channel Analytics
|
|
238
|
+
*/
|
|
239
|
+
async getBranchChannelAnalyticsApiV1AnalyticsBranchChannelGetRaw(initOverrides) {
|
|
240
|
+
const requestOptions = await this.getBranchChannelAnalyticsApiV1AnalyticsBranchChannelGetRequestOpts();
|
|
241
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
242
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
243
|
+
return new runtime.JSONApiResponse(response);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
return new runtime.TextApiResponse(response);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Aggregate branch risk and channel abuse metrics from PostgreSQL.
|
|
251
|
+
* Get Branch Channel Analytics
|
|
252
|
+
*/
|
|
253
|
+
async getBranchChannelAnalyticsApiV1AnalyticsBranchChannelGet(initOverrides) {
|
|
254
|
+
const response = await this.getBranchChannelAnalyticsApiV1AnalyticsBranchChannelGetRaw(initOverrides);
|
|
255
|
+
return await response.value();
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Creates request options for getDormantExplanationApiV1ExplainAccountIdDormantGet without sending the request
|
|
259
|
+
*/
|
|
260
|
+
async getDormantExplanationApiV1ExplainAccountIdDormantGetRequestOpts(requestParameters) {
|
|
261
|
+
if (requestParameters['accountId'] == null) {
|
|
262
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getDormantExplanationApiV1ExplainAccountIdDormantGet().');
|
|
263
|
+
}
|
|
264
|
+
const queryParameters = {};
|
|
265
|
+
const headerParameters = {};
|
|
266
|
+
let urlPath = `/api/v1/explain/{account_id}/dormant`;
|
|
267
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
268
|
+
return {
|
|
269
|
+
path: urlPath,
|
|
270
|
+
method: 'GET',
|
|
271
|
+
headers: headerParameters,
|
|
272
|
+
query: queryParameters,
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Get Dormant Explanation
|
|
277
|
+
*/
|
|
278
|
+
async getDormantExplanationApiV1ExplainAccountIdDormantGetRaw(requestParameters, initOverrides) {
|
|
279
|
+
const requestOptions = await this.getDormantExplanationApiV1ExplainAccountIdDormantGetRequestOpts(requestParameters);
|
|
280
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
281
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
282
|
+
return new runtime.JSONApiResponse(response);
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
return new runtime.TextApiResponse(response);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Get Dormant Explanation
|
|
290
|
+
*/
|
|
291
|
+
async getDormantExplanationApiV1ExplainAccountIdDormantGet(requestParameters, initOverrides) {
|
|
292
|
+
const response = await this.getDormantExplanationApiV1ExplainAccountIdDormantGetRaw(requestParameters, initOverrides);
|
|
293
|
+
return await response.value();
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Creates request options for getDormantExplanationApiV1ExplainDormantAccountIdGet without sending the request
|
|
297
|
+
*/
|
|
298
|
+
async getDormantExplanationApiV1ExplainDormantAccountIdGetRequestOpts(requestParameters) {
|
|
299
|
+
if (requestParameters['accountId'] == null) {
|
|
300
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getDormantExplanationApiV1ExplainDormantAccountIdGet().');
|
|
301
|
+
}
|
|
302
|
+
const queryParameters = {};
|
|
303
|
+
const headerParameters = {};
|
|
304
|
+
let urlPath = `/api/v1/explain/dormant/{account_id}`;
|
|
305
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
306
|
+
return {
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'GET',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Get Dormant Explanation
|
|
315
|
+
*/
|
|
316
|
+
async getDormantExplanationApiV1ExplainDormantAccountIdGetRaw(requestParameters, initOverrides) {
|
|
317
|
+
const requestOptions = await this.getDormantExplanationApiV1ExplainDormantAccountIdGetRequestOpts(requestParameters);
|
|
318
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
319
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
320
|
+
return new runtime.JSONApiResponse(response);
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
return new runtime.TextApiResponse(response);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Get Dormant Explanation
|
|
328
|
+
*/
|
|
329
|
+
async getDormantExplanationApiV1ExplainDormantAccountIdGet(requestParameters, initOverrides) {
|
|
330
|
+
const response = await this.getDormantExplanationApiV1ExplainDormantAccountIdGetRaw(requestParameters, initOverrides);
|
|
331
|
+
return await response.value();
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Creates request options for getFullExplanationApiV1ExplainAccountIdGet without sending the request
|
|
335
|
+
*/
|
|
336
|
+
async getFullExplanationApiV1ExplainAccountIdGetRequestOpts(requestParameters) {
|
|
337
|
+
if (requestParameters['accountId'] == null) {
|
|
338
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getFullExplanationApiV1ExplainAccountIdGet().');
|
|
339
|
+
}
|
|
340
|
+
const queryParameters = {};
|
|
341
|
+
const headerParameters = {};
|
|
342
|
+
let urlPath = `/api/v1/explain/{account_id}`;
|
|
343
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
344
|
+
return {
|
|
345
|
+
path: urlPath,
|
|
346
|
+
method: 'GET',
|
|
347
|
+
headers: headerParameters,
|
|
348
|
+
query: queryParameters,
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Get Full Explanation
|
|
353
|
+
*/
|
|
354
|
+
async getFullExplanationApiV1ExplainAccountIdGetRaw(requestParameters, initOverrides) {
|
|
355
|
+
const requestOptions = await this.getFullExplanationApiV1ExplainAccountIdGetRequestOpts(requestParameters);
|
|
356
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
357
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
358
|
+
return new runtime.JSONApiResponse(response);
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
return new runtime.TextApiResponse(response);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get Full Explanation
|
|
366
|
+
*/
|
|
367
|
+
async getFullExplanationApiV1ExplainAccountIdGet(requestParameters, initOverrides) {
|
|
368
|
+
const response = await this.getFullExplanationApiV1ExplainAccountIdGetRaw(requestParameters, initOverrides);
|
|
369
|
+
return await response.value();
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Creates request options for getKycExplanationApiV1ExplainAccountIdKycGet without sending the request
|
|
373
|
+
*/
|
|
374
|
+
async getKycExplanationApiV1ExplainAccountIdKycGetRequestOpts(requestParameters) {
|
|
375
|
+
if (requestParameters['accountId'] == null) {
|
|
376
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getKycExplanationApiV1ExplainAccountIdKycGet().');
|
|
377
|
+
}
|
|
378
|
+
const queryParameters = {};
|
|
379
|
+
const headerParameters = {};
|
|
380
|
+
let urlPath = `/api/v1/explain/{account_id}/kyc`;
|
|
381
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
382
|
+
return {
|
|
383
|
+
path: urlPath,
|
|
384
|
+
method: 'GET',
|
|
385
|
+
headers: headerParameters,
|
|
386
|
+
query: queryParameters,
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Get Kyc Explanation
|
|
391
|
+
*/
|
|
392
|
+
async getKycExplanationApiV1ExplainAccountIdKycGetRaw(requestParameters, initOverrides) {
|
|
393
|
+
const requestOptions = await this.getKycExplanationApiV1ExplainAccountIdKycGetRequestOpts(requestParameters);
|
|
394
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
395
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
396
|
+
return new runtime.JSONApiResponse(response);
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
return new runtime.TextApiResponse(response);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Get Kyc Explanation
|
|
404
|
+
*/
|
|
405
|
+
async getKycExplanationApiV1ExplainAccountIdKycGet(requestParameters, initOverrides) {
|
|
406
|
+
const response = await this.getKycExplanationApiV1ExplainAccountIdKycGetRaw(requestParameters, initOverrides);
|
|
407
|
+
return await response.value();
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Creates request options for getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGet without sending the request
|
|
411
|
+
*/
|
|
412
|
+
async getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGetRequestOpts(requestParameters) {
|
|
413
|
+
if (requestParameters['accountId'] == null) {
|
|
414
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGet().');
|
|
415
|
+
}
|
|
416
|
+
const queryParameters = {};
|
|
417
|
+
const headerParameters = {};
|
|
418
|
+
let urlPath = `/api/v1/explain/kyc_mismatch/{account_id}`;
|
|
419
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
420
|
+
return {
|
|
421
|
+
path: urlPath,
|
|
422
|
+
method: 'GET',
|
|
423
|
+
headers: headerParameters,
|
|
424
|
+
query: queryParameters,
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Get Kyc Mismatch Explanation
|
|
429
|
+
*/
|
|
430
|
+
async getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGetRaw(requestParameters, initOverrides) {
|
|
431
|
+
const requestOptions = await this.getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGetRequestOpts(requestParameters);
|
|
432
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
433
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
434
|
+
return new runtime.JSONApiResponse(response);
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
return new runtime.TextApiResponse(response);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Get Kyc Mismatch Explanation
|
|
442
|
+
*/
|
|
443
|
+
async getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGet(requestParameters, initOverrides) {
|
|
444
|
+
const response = await this.getKycMismatchExplanationApiV1ExplainKycMismatchAccountIdGetRaw(requestParameters, initOverrides);
|
|
445
|
+
return await response.value();
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Creates request options for getLiveFeedApiV1FeedGet without sending the request
|
|
449
|
+
*/
|
|
450
|
+
async getLiveFeedApiV1FeedGetRequestOpts(requestParameters) {
|
|
451
|
+
const queryParameters = {};
|
|
452
|
+
if (requestParameters['limit'] != null) {
|
|
453
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
454
|
+
}
|
|
455
|
+
const headerParameters = {};
|
|
456
|
+
let urlPath = `/api/v1/feed`;
|
|
457
|
+
return {
|
|
458
|
+
path: urlPath,
|
|
459
|
+
method: 'GET',
|
|
460
|
+
headers: headerParameters,
|
|
461
|
+
query: queryParameters,
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Get Live Feed
|
|
466
|
+
*/
|
|
467
|
+
async getLiveFeedApiV1FeedGetRaw(requestParameters, initOverrides) {
|
|
468
|
+
const requestOptions = await this.getLiveFeedApiV1FeedGetRequestOpts(requestParameters);
|
|
469
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
470
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
471
|
+
return new runtime.JSONApiResponse(response);
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
return new runtime.TextApiResponse(response);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Get Live Feed
|
|
479
|
+
*/
|
|
480
|
+
async getLiveFeedApiV1FeedGet(requestParameters = {}, initOverrides) {
|
|
481
|
+
const response = await this.getLiveFeedApiV1FeedGetRaw(requestParameters, initOverrides);
|
|
482
|
+
return await response.value();
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Creates request options for getNarrativeApiV1NarrativeAccountIdPost without sending the request
|
|
486
|
+
*/
|
|
487
|
+
async getNarrativeApiV1NarrativeAccountIdPostRequestOpts(requestParameters) {
|
|
488
|
+
if (requestParameters['accountId'] == null) {
|
|
489
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getNarrativeApiV1NarrativeAccountIdPost().');
|
|
490
|
+
}
|
|
491
|
+
if (requestParameters['narrativeRequest'] == null) {
|
|
492
|
+
throw new runtime.RequiredError('narrativeRequest', 'Required parameter "narrativeRequest" was null or undefined when calling getNarrativeApiV1NarrativeAccountIdPost().');
|
|
493
|
+
}
|
|
494
|
+
const queryParameters = {};
|
|
495
|
+
const headerParameters = {};
|
|
496
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
497
|
+
let urlPath = `/api/v1/narrative/{account_id}`;
|
|
498
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
499
|
+
return {
|
|
500
|
+
path: urlPath,
|
|
501
|
+
method: 'POST',
|
|
502
|
+
headers: headerParameters,
|
|
503
|
+
query: queryParameters,
|
|
504
|
+
body: (0, NarrativeRequest_1.NarrativeRequestToJSON)(requestParameters['narrativeRequest']),
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Get Narrative
|
|
509
|
+
*/
|
|
510
|
+
async getNarrativeApiV1NarrativeAccountIdPostRaw(requestParameters, initOverrides) {
|
|
511
|
+
const requestOptions = await this.getNarrativeApiV1NarrativeAccountIdPostRequestOpts(requestParameters);
|
|
512
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
513
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
514
|
+
return new runtime.JSONApiResponse(response);
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
return new runtime.TextApiResponse(response);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Get Narrative
|
|
522
|
+
*/
|
|
523
|
+
async getNarrativeApiV1NarrativeAccountIdPost(requestParameters, initOverrides) {
|
|
524
|
+
const response = await this.getNarrativeApiV1NarrativeAccountIdPostRaw(requestParameters, initOverrides);
|
|
525
|
+
return await response.value();
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Creates request options for getReportApiV1ReportAccountIdGet without sending the request
|
|
529
|
+
*/
|
|
530
|
+
async getReportApiV1ReportAccountIdGetRequestOpts(requestParameters) {
|
|
531
|
+
if (requestParameters['accountId'] == null) {
|
|
532
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getReportApiV1ReportAccountIdGet().');
|
|
533
|
+
}
|
|
534
|
+
const queryParameters = {};
|
|
535
|
+
const headerParameters = {};
|
|
536
|
+
let urlPath = `/api/v1/report/{account_id}`;
|
|
537
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
538
|
+
return {
|
|
539
|
+
path: urlPath,
|
|
540
|
+
method: 'GET',
|
|
541
|
+
headers: headerParameters,
|
|
542
|
+
query: queryParameters,
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Get Report
|
|
547
|
+
*/
|
|
548
|
+
async getReportApiV1ReportAccountIdGetRaw(requestParameters, initOverrides) {
|
|
549
|
+
const requestOptions = await this.getReportApiV1ReportAccountIdGetRequestOpts(requestParameters);
|
|
550
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
551
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
552
|
+
return new runtime.JSONApiResponse(response);
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
return new runtime.TextApiResponse(response);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Get Report
|
|
560
|
+
*/
|
|
561
|
+
async getReportApiV1ReportAccountIdGet(requestParameters, initOverrides) {
|
|
562
|
+
const response = await this.getReportApiV1ReportAccountIdGetRaw(requestParameters, initOverrides);
|
|
563
|
+
return await response.value();
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Creates request options for getScoreApiV1ScoreAccountIdGet without sending the request
|
|
567
|
+
*/
|
|
568
|
+
async getScoreApiV1ScoreAccountIdGetRequestOpts(requestParameters) {
|
|
569
|
+
if (requestParameters['accountId'] == null) {
|
|
570
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getScoreApiV1ScoreAccountIdGet().');
|
|
571
|
+
}
|
|
572
|
+
const queryParameters = {};
|
|
573
|
+
const headerParameters = {};
|
|
574
|
+
let urlPath = `/api/v1/score/{account_id}`;
|
|
575
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
576
|
+
return {
|
|
577
|
+
path: urlPath,
|
|
578
|
+
method: 'GET',
|
|
579
|
+
headers: headerParameters,
|
|
580
|
+
query: queryParameters,
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Get Score
|
|
585
|
+
*/
|
|
586
|
+
async getScoreApiV1ScoreAccountIdGetRaw(requestParameters, initOverrides) {
|
|
587
|
+
const requestOptions = await this.getScoreApiV1ScoreAccountIdGetRequestOpts(requestParameters);
|
|
588
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
589
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
590
|
+
return new runtime.JSONApiResponse(response);
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
return new runtime.TextApiResponse(response);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Get Score
|
|
598
|
+
*/
|
|
599
|
+
async getScoreApiV1ScoreAccountIdGet(requestParameters, initOverrides) {
|
|
600
|
+
const response = await this.getScoreApiV1ScoreAccountIdGetRaw(requestParameters, initOverrides);
|
|
601
|
+
return await response.value();
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Creates request options for getSmurfingExplanationApiV1ExplainAccountIdSmurfingGet without sending the request
|
|
605
|
+
*/
|
|
606
|
+
async getSmurfingExplanationApiV1ExplainAccountIdSmurfingGetRequestOpts(requestParameters) {
|
|
607
|
+
if (requestParameters['accountId'] == null) {
|
|
608
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getSmurfingExplanationApiV1ExplainAccountIdSmurfingGet().');
|
|
609
|
+
}
|
|
610
|
+
const queryParameters = {};
|
|
611
|
+
const headerParameters = {};
|
|
612
|
+
let urlPath = `/api/v1/explain/{account_id}/smurfing`;
|
|
613
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
614
|
+
return {
|
|
615
|
+
path: urlPath,
|
|
616
|
+
method: 'GET',
|
|
617
|
+
headers: headerParameters,
|
|
618
|
+
query: queryParameters,
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Get Smurfing Explanation
|
|
623
|
+
*/
|
|
624
|
+
async getSmurfingExplanationApiV1ExplainAccountIdSmurfingGetRaw(requestParameters, initOverrides) {
|
|
625
|
+
const requestOptions = await this.getSmurfingExplanationApiV1ExplainAccountIdSmurfingGetRequestOpts(requestParameters);
|
|
626
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
627
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
628
|
+
return new runtime.JSONApiResponse(response);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
return new runtime.TextApiResponse(response);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Get Smurfing Explanation
|
|
636
|
+
*/
|
|
637
|
+
async getSmurfingExplanationApiV1ExplainAccountIdSmurfingGet(requestParameters, initOverrides) {
|
|
638
|
+
const response = await this.getSmurfingExplanationApiV1ExplainAccountIdSmurfingGetRaw(requestParameters, initOverrides);
|
|
639
|
+
return await response.value();
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Creates request options for getSmurfingExplanationApiV1ExplainSmurfingAccountIdGet without sending the request
|
|
643
|
+
*/
|
|
644
|
+
async getSmurfingExplanationApiV1ExplainSmurfingAccountIdGetRequestOpts(requestParameters) {
|
|
645
|
+
if (requestParameters['accountId'] == null) {
|
|
646
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getSmurfingExplanationApiV1ExplainSmurfingAccountIdGet().');
|
|
647
|
+
}
|
|
648
|
+
const queryParameters = {};
|
|
649
|
+
const headerParameters = {};
|
|
650
|
+
let urlPath = `/api/v1/explain/smurfing/{account_id}`;
|
|
651
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
652
|
+
return {
|
|
653
|
+
path: urlPath,
|
|
654
|
+
method: 'GET',
|
|
655
|
+
headers: headerParameters,
|
|
656
|
+
query: queryParameters,
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Get Smurfing Explanation
|
|
661
|
+
*/
|
|
662
|
+
async getSmurfingExplanationApiV1ExplainSmurfingAccountIdGetRaw(requestParameters, initOverrides) {
|
|
663
|
+
const requestOptions = await this.getSmurfingExplanationApiV1ExplainSmurfingAccountIdGetRequestOpts(requestParameters);
|
|
664
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
665
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
666
|
+
return new runtime.JSONApiResponse(response);
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
return new runtime.TextApiResponse(response);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* Get Smurfing Explanation
|
|
674
|
+
*/
|
|
675
|
+
async getSmurfingExplanationApiV1ExplainSmurfingAccountIdGet(requestParameters, initOverrides) {
|
|
676
|
+
const response = await this.getSmurfingExplanationApiV1ExplainSmurfingAccountIdGetRaw(requestParameters, initOverrides);
|
|
677
|
+
return await response.value();
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Creates request options for getStatsApiV1StatsGet without sending the request
|
|
681
|
+
*/
|
|
682
|
+
async getStatsApiV1StatsGetRequestOpts(requestParameters) {
|
|
683
|
+
const queryParameters = {};
|
|
684
|
+
if (requestParameters['branchCode'] != null) {
|
|
685
|
+
queryParameters['branch_code'] = requestParameters['branchCode'];
|
|
686
|
+
}
|
|
687
|
+
const headerParameters = {};
|
|
688
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
689
|
+
// oauth required
|
|
690
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
691
|
+
}
|
|
692
|
+
let urlPath = `/api/v1/stats`;
|
|
693
|
+
return {
|
|
694
|
+
path: urlPath,
|
|
695
|
+
method: 'GET',
|
|
696
|
+
headers: headerParameters,
|
|
697
|
+
query: queryParameters,
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Get Stats
|
|
702
|
+
*/
|
|
703
|
+
async getStatsApiV1StatsGetRaw(requestParameters, initOverrides) {
|
|
704
|
+
const requestOptions = await this.getStatsApiV1StatsGetRequestOpts(requestParameters);
|
|
705
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
706
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
707
|
+
return new runtime.JSONApiResponse(response);
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
return new runtime.TextApiResponse(response);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Get Stats
|
|
715
|
+
*/
|
|
716
|
+
async getStatsApiV1StatsGet(requestParameters = {}, initOverrides) {
|
|
717
|
+
const response = await this.getStatsApiV1StatsGetRaw(requestParameters, initOverrides);
|
|
718
|
+
return await response.value();
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Creates request options for getTraceApiV1TraceAccountIdGet without sending the request
|
|
722
|
+
*/
|
|
723
|
+
async getTraceApiV1TraceAccountIdGetRequestOpts(requestParameters) {
|
|
724
|
+
if (requestParameters['accountId'] == null) {
|
|
725
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getTraceApiV1TraceAccountIdGet().');
|
|
726
|
+
}
|
|
727
|
+
const queryParameters = {};
|
|
728
|
+
if (requestParameters['hint'] != null) {
|
|
729
|
+
queryParameters['hint'] = requestParameters['hint'];
|
|
730
|
+
}
|
|
731
|
+
const headerParameters = {};
|
|
732
|
+
let urlPath = `/api/v1/trace/{account_id}`;
|
|
733
|
+
urlPath = urlPath.replace('{account_id}', encodeURIComponent(String(requestParameters['accountId'])));
|
|
734
|
+
return {
|
|
735
|
+
path: urlPath,
|
|
736
|
+
method: 'GET',
|
|
737
|
+
headers: headerParameters,
|
|
738
|
+
query: queryParameters,
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Get Trace
|
|
743
|
+
*/
|
|
744
|
+
async getTraceApiV1TraceAccountIdGetRaw(requestParameters, initOverrides) {
|
|
745
|
+
const requestOptions = await this.getTraceApiV1TraceAccountIdGetRequestOpts(requestParameters);
|
|
746
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
747
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
748
|
+
return new runtime.JSONApiResponse(response);
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
return new runtime.TextApiResponse(response);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Get Trace
|
|
756
|
+
*/
|
|
757
|
+
async getTraceApiV1TraceAccountIdGet(requestParameters, initOverrides) {
|
|
758
|
+
const response = await this.getTraceApiV1TraceAccountIdGetRaw(requestParameters, initOverrides);
|
|
759
|
+
return await response.value();
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Creates request options for updateAlertStatusApiV1AlertsAlertIdStatusPatch without sending the request
|
|
763
|
+
*/
|
|
764
|
+
async updateAlertStatusApiV1AlertsAlertIdStatusPatchRequestOpts(requestParameters) {
|
|
765
|
+
if (requestParameters['alertId'] == null) {
|
|
766
|
+
throw new runtime.RequiredError('alertId', 'Required parameter "alertId" was null or undefined when calling updateAlertStatusApiV1AlertsAlertIdStatusPatch().');
|
|
767
|
+
}
|
|
768
|
+
if (requestParameters['alertStatusUpdate'] == null) {
|
|
769
|
+
throw new runtime.RequiredError('alertStatusUpdate', 'Required parameter "alertStatusUpdate" was null or undefined when calling updateAlertStatusApiV1AlertsAlertIdStatusPatch().');
|
|
770
|
+
}
|
|
771
|
+
const queryParameters = {};
|
|
772
|
+
const headerParameters = {};
|
|
773
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
774
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
775
|
+
// oauth required
|
|
776
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
777
|
+
}
|
|
778
|
+
let urlPath = `/api/v1/alerts/{alert_id}/status`;
|
|
779
|
+
urlPath = urlPath.replace('{alert_id}', encodeURIComponent(String(requestParameters['alertId'])));
|
|
780
|
+
return {
|
|
781
|
+
path: urlPath,
|
|
782
|
+
method: 'PATCH',
|
|
783
|
+
headers: headerParameters,
|
|
784
|
+
query: queryParameters,
|
|
785
|
+
body: (0, AlertStatusUpdate_1.AlertStatusUpdateToJSON)(requestParameters['alertStatusUpdate']),
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Update Alert Status
|
|
790
|
+
*/
|
|
791
|
+
async updateAlertStatusApiV1AlertsAlertIdStatusPatchRaw(requestParameters, initOverrides) {
|
|
792
|
+
const requestOptions = await this.updateAlertStatusApiV1AlertsAlertIdStatusPatchRequestOpts(requestParameters);
|
|
793
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
794
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
795
|
+
return new runtime.JSONApiResponse(response);
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
return new runtime.TextApiResponse(response);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Update Alert Status
|
|
803
|
+
*/
|
|
804
|
+
async updateAlertStatusApiV1AlertsAlertIdStatusPatch(requestParameters, initOverrides) {
|
|
805
|
+
const response = await this.updateAlertStatusApiV1AlertsAlertIdStatusPatchRaw(requestParameters, initOverrides);
|
|
806
|
+
return await response.value();
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
exports.FraudApi = FraudApi;
|