@matech/thebigpos-sdk 2.45.0-rc10 → 2.45.0-rc6

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/index.js CHANGED
@@ -30,6 +30,15 @@ var __rest = (this && this.__rest) || function (s, e) {
30
30
  return t;
31
31
  };
32
32
  import axios from "axios";
33
+ export var ContentType;
34
+ (function (ContentType) {
35
+ ContentType["JsonPatch"] = "application/json-patch+json";
36
+ ContentType["Json"] = "application/json";
37
+ ContentType["JsonApi"] = "application/vnd.api+json";
38
+ ContentType["FormData"] = "multipart/form-data";
39
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
40
+ ContentType["Text"] = "text/plain";
41
+ })(ContentType || (ContentType = {}));
33
42
  export class HttpClient {
34
43
  constructor(_a = {}) {
35
44
  var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
@@ -45,13 +54,13 @@ export class HttpClient {
45
54
  {};
46
55
  const requestParams = this.mergeRequestParams(params, secureParams);
47
56
  const responseFormat = format || this.format || undefined;
48
- if (type === "multipart/form-data" &&
57
+ if (type === ContentType.FormData &&
49
58
  body &&
50
59
  body !== null &&
51
60
  typeof body === "object") {
52
61
  body = this.createFormData(body);
53
62
  }
54
- if (type === "text/plain" &&
63
+ if (type === ContentType.Text &&
55
64
  body &&
56
65
  body !== null &&
57
66
  typeof body !== "string") {
@@ -147,7 +156,7 @@ export class Api extends HttpClient {
147
156
  * @response `404` `ProblemDetails` Not Found
148
157
  * @response `422` `ProblemDetails` Unprocessable Content
149
158
  */
150
- replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
159
+ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
151
160
  /**
152
161
  * No description
153
162
  *
@@ -170,7 +179,7 @@ export class Api extends HttpClient {
170
179
  * @response `200` `SiteConfiguration` OK
171
180
  * @response `422` `UnprocessableEntity` Unprocessable Content
172
181
  */
173
- updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
182
+ updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
174
183
  /**
175
184
  * No description
176
185
  *
@@ -181,7 +190,7 @@ export class Api extends HttpClient {
181
190
  * @secure
182
191
  * @response `204` `void` No Content
183
192
  */
184
- requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
193
+ requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
185
194
  /**
186
195
  * No description
187
196
  *
@@ -193,7 +202,7 @@ export class Api extends HttpClient {
193
202
  * @response `204` `void` No Content
194
203
  * @response `400` `ProblemDetails` Bad Request
195
204
  */
196
- completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
205
+ completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
197
206
  /**
198
207
  * No description
199
208
  *
@@ -216,7 +225,7 @@ export class Api extends HttpClient {
216
225
  * @response `201` `Account` Created
217
226
  * @response `422` `ProblemDetails` Unprocessable Content
218
227
  */
219
- createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
228
+ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
220
229
  /**
221
230
  * No description
222
231
  *
@@ -254,322 +263,289 @@ export class Api extends HttpClient {
254
263
  * @response `404` `ProblemDetails` Not Found
255
264
  * @response `422` `ProblemDetails` Unprocessable Content
256
265
  */
257
- updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
266
+ updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
258
267
  /**
259
268
  * No description
260
269
  *
261
- * @tags AiAccess
262
- * @name GetAiAccess
263
- * @summary Get whether AI is enabled for the current user's account
264
- * @request GET:/api/ai/access
270
+ * @tags AiAccountSettings
271
+ * @name GetAiAccountSettings
272
+ * @summary Get account AI settings
273
+ * @request GET:/api/ai/admin/account-settings
265
274
  * @secure
266
- * @response `200` `AiEnabled` OK
275
+ * @response `200` `AiAccountSettings` OK
267
276
  */
268
- getAiAccess: (params = {}) => this.request(Object.assign({ path: `/api/ai/access`, method: "GET", secure: true, format: "json" }, params)),
277
+ getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "GET", secure: true, format: "json" }, params)),
269
278
  /**
270
279
  * No description
271
280
  *
272
- * @tags AiAccount
273
- * @name GetAccountAiEnabled
274
- * @summary Get whether AI is enabled for an account (SuperAdmin only)
275
- * @request GET:/api/ai/accounts/{accountId}/ai-enabled
281
+ * @tags AiAccountSettings
282
+ * @name UpdateAiAccountSettings
283
+ * @summary Update account AI settings
284
+ * @request PUT:/api/ai/admin/account-settings
276
285
  * @secure
277
- * @response `200` `AiEnabled` OK
286
+ * @response `200` `AiAccountSettings` OK
287
+ * @response `400` `ProblemDetails` Bad Request
278
288
  */
279
- getAccountAiEnabled: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "GET", secure: true, format: "json" }, params)),
289
+ updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
280
290
  /**
281
291
  * No description
282
292
  *
283
- * @tags AiAccount
284
- * @name SetAccountAiEnabled
285
- * @summary Enable or disable AI for an account (SuperAdmin only)
286
- * @request PUT:/api/ai/accounts/{accountId}/ai-enabled
293
+ * @tags AiAdmin
294
+ * @name GetAiAuditLogs
295
+ * @summary Get paginated audit logs
296
+ * @request GET:/api/ai/admin/audit-logs
287
297
  * @secure
288
- * @response `204` `void` No Content
298
+ * @response `200` `AiAuditLogPaginated` OK
289
299
  */
290
- setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
300
+ getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
291
301
  /**
292
302
  * No description
293
303
  *
294
- * @tags AiAccountSettings
295
- * @name GetAiAccountSettings
296
- * @summary Get account AI settings
297
- * @request GET:/api/ai/account-settings
304
+ * @tags AiAdmin
305
+ * @name GetAiRequestLifecycle
306
+ * @summary Get the full event lifecycle of a single AI request
307
+ * @request GET:/api/ai/admin/audit-logs/request/{requestId}
298
308
  * @secure
299
- * @response `200` `AiAccountSettings` OK
309
+ * @response `200` `(AiAuditLog)[]` OK
300
310
  */
301
- getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "GET", secure: true, format: "json" }, params)),
311
+ getAiRequestLifecycle: (requestId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs/request/${requestId}`, method: "GET", secure: true, format: "json" }, params)),
302
312
  /**
303
313
  * No description
304
314
  *
305
- * @tags AiAccountSettings
306
- * @name UpdateAiAccountSettings
307
- * @summary Update account AI settings
308
- * @request PUT:/api/ai/account-settings
315
+ * @tags AiAdmin
316
+ * @name GetAiAuditConversations
317
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
318
+ * @request GET:/api/ai/admin/audit-conversations
309
319
  * @secure
310
- * @response `200` `AiAccountSettings` OK
311
- * @response `400` `ProblemDetails` Bad Request
320
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
312
321
  */
313
- updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
322
+ getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
323
+ /**
324
+ * No description
325
+ *
326
+ * @tags AiAdmin
327
+ * @name GetAiAdminStats
328
+ * @summary Get AI admin dashboard stats
329
+ * @request GET:/api/ai/admin/stats
330
+ * @secure
331
+ * @response `200` `AiAdminStats` OK
332
+ */
333
+ getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
334
+ /**
335
+ * No description
336
+ *
337
+ * @tags AiAdmin
338
+ * @name GetAiConfigChanges
339
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
340
+ * @request GET:/api/ai/admin/config-changes
341
+ * @secure
342
+ * @response `200` `AiConfigChangeLogPaginated` OK
343
+ */
344
+ getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
314
345
  /**
315
346
  * No description
316
347
  *
317
348
  * @tags AiAdminPrompt
318
349
  * @name GetAiPrompts
319
350
  * @summary Get all prompts
320
- * @request GET:/api/ai/prompts
351
+ * @request GET:/api/ai/admin/prompts
321
352
  * @secure
322
353
  * @response `200` `(AiPrompt)[]` OK
323
354
  */
324
- getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", secure: true, format: "json" }, params)),
355
+ getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
325
356
  /**
326
357
  * No description
327
358
  *
328
359
  * @tags AiAdminPrompt
329
360
  * @name CreateAiPrompt
330
361
  * @summary Create custom prompt
331
- * @request POST:/api/ai/prompts
362
+ * @request POST:/api/ai/admin/prompts
332
363
  * @secure
333
364
  * @response `201` `AiPrompt` Created
334
365
  * @response `400` `ProblemDetails` Bad Request
335
366
  */
336
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
367
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
337
368
  /**
338
369
  * No description
339
370
  *
340
371
  * @tags AiAdminPrompt
341
372
  * @name GetAiPrompt
342
373
  * @summary Get prompt by ID
343
- * @request GET:/api/ai/prompts/{id}
374
+ * @request GET:/api/ai/admin/prompts/{id}
344
375
  * @secure
345
376
  * @response `200` `AiPrompt` OK
346
377
  * @response `404` `ProblemDetails` Not Found
347
378
  */
348
- getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
379
+ getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
349
380
  /**
350
381
  * No description
351
382
  *
352
383
  * @tags AiAdminPrompt
353
384
  * @name UpdateAiPrompt
354
385
  * @summary Update prompt
355
- * @request PUT:/api/ai/prompts/{id}
386
+ * @request PUT:/api/ai/admin/prompts/{id}
356
387
  * @secure
357
388
  * @response `200` `AiPrompt` OK
358
389
  * @response `400` `ProblemDetails` Bad Request
359
390
  * @response `404` `ProblemDetails` Not Found
360
391
  */
361
- updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
392
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
362
393
  /**
363
394
  * No description
364
395
  *
365
396
  * @tags AiAdminPrompt
366
397
  * @name DeleteAiPrompt
367
398
  * @summary Delete prompt
368
- * @request DELETE:/api/ai/prompts/{id}
399
+ * @request DELETE:/api/ai/admin/prompts/{id}
369
400
  * @secure
370
401
  * @response `204` `void` No Content
371
402
  * @response `400` `ProblemDetails` Bad Request
372
403
  * @response `404` `ProblemDetails` Not Found
373
404
  */
374
- deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "DELETE", secure: true }, params)),
405
+ deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
375
406
  /**
376
407
  * No description
377
408
  *
378
409
  * @tags AiAdminPrompt
379
410
  * @name ToggleAiPrompt
380
411
  * @summary Toggle prompt active/inactive
381
- * @request PATCH:/api/ai/prompts/{id}/toggle
412
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
382
413
  * @secure
383
414
  * @response `200` `AiPrompt` OK
384
415
  * @response `404` `ProblemDetails` Not Found
385
416
  */
386
- toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
417
+ toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
387
418
  /**
388
419
  * No description
389
420
  *
390
421
  * @tags AiAdminPrompt
391
422
  * @name GenerateAiSystemPrompt
392
423
  * @summary Generate a system prompt from description
393
- * @request POST:/api/ai/prompts/generate
424
+ * @request POST:/api/ai/admin/prompts/generate
394
425
  * @secure
395
426
  * @response `200` `GenerateSystemPrompt` OK
396
427
  * @response `400` `ProblemDetails` Bad Request
397
428
  */
398
- generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
429
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
399
430
  /**
400
431
  * No description
401
432
  *
402
433
  * @tags AiAdminPrompt
403
- * @name GetAiSupportedModels
434
+ * @name GetSupportedModels
404
435
  * @summary Get supported LLM models
405
- * @request GET:/api/ai/prompts/supported-models
436
+ * @request GET:/api/ai/admin/prompts/supported-models
406
437
  * @secure
407
438
  * @response `200` `(SupportedModel)[]` OK
408
439
  */
409
- getAiSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
440
+ getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
410
441
  /**
411
442
  * No description
412
443
  *
413
444
  * @tags AiAdminSettings
414
445
  * @name GetAiAdminSettings
415
446
  * @summary Get global AI settings
416
- * @request GET:/api/ai/settings
447
+ * @request GET:/api/ai/admin/settings
417
448
  * @secure
418
449
  * @response `200` `AiAdminSettings` OK
419
450
  */
420
- getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "GET", secure: true, format: "json" }, params)),
451
+ getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
421
452
  /**
422
453
  * No description
423
454
  *
424
455
  * @tags AiAdminSettings
425
456
  * @name UpdateAiAdminSettings
426
457
  * @summary Update global AI settings
427
- * @request PUT:/api/ai/settings
458
+ * @request PUT:/api/ai/admin/settings
428
459
  * @secure
429
460
  * @response `200` `AiAdminSettings` OK
430
461
  * @response `400` `ProblemDetails` Bad Request
431
462
  */
432
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
433
- /**
434
- * No description
435
- *
436
- * @tags AiAudit
437
- * @name GetAiAuditLogs
438
- * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
439
- * @request GET:/api/ai/audit-logs
440
- * @secure
441
- * @response `200` `AiAuditLogPaginated` OK
442
- */
443
- getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
444
- /**
445
- * No description
446
- *
447
- * @tags AiAudit
448
- * @name GetAiRequestLifecycle
449
- * @summary Get the full event lifecycle of a single AI request
450
- * @request GET:/api/ai/audit-logs/request/{requestId}
451
- * @secure
452
- * @response `200` `(AiAuditLog)[]` OK
453
- */
454
- getAiRequestLifecycle: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
455
- /**
456
- * No description
457
- *
458
- * @tags AiAudit
459
- * @name GetAiAuditConversations
460
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
461
- * @request GET:/api/ai/audit-conversations
462
- * @secure
463
- * @response `200` `AiConversationAuditSummaryPaginated` OK
464
- */
465
- getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
466
- /**
467
- * No description
468
- *
469
- * @tags AiAudit
470
- * @name GetAiStats
471
- * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
472
- * @request GET:/api/ai/stats
473
- * @secure
474
- * @response `200` `AiAdminStats` OK
475
- */
476
- getAiStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
477
- /**
478
- * No description
479
- *
480
- * @tags AiAudit
481
- * @name GetAiConfigChanges
482
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
483
- * @request GET:/api/ai/config-changes
484
- * @secure
485
- * @response `200` `AuditLogEntryPaginated` OK
486
- */
487
- getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
463
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
488
464
  /**
489
465
  * No description
490
466
  *
491
467
  * @tags AiCanonicalField
492
468
  * @name GetAiCanonicalFields
493
469
  * @summary Get all canonical fields
494
- * @request GET:/api/ai/canonical-fields
470
+ * @request GET:/api/ai/admin/fields
495
471
  * @secure
496
472
  * @response `200` `(AiCanonicalField)[]` OK
497
473
  */
498
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "GET", secure: true, format: "json" }, params)),
474
+ getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
499
475
  /**
500
476
  * No description
501
477
  *
502
478
  * @tags AiCanonicalField
503
479
  * @name CreateAiCanonicalField
504
480
  * @summary Create canonical field
505
- * @request POST:/api/ai/canonical-fields
481
+ * @request POST:/api/ai/admin/fields
506
482
  * @secure
507
483
  * @response `201` `AiCanonicalField` Created
508
484
  * @response `400` `ProblemDetails` Bad Request
509
485
  */
510
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
486
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
511
487
  /**
512
488
  * No description
513
489
  *
514
490
  * @tags AiCanonicalField
515
491
  * @name GetAiCanonicalField
516
492
  * @summary Get canonical field by ID
517
- * @request GET:/api/ai/canonical-fields/{id}
493
+ * @request GET:/api/ai/admin/fields/{id}
518
494
  * @secure
519
495
  * @response `200` `AiCanonicalField` OK
520
496
  * @response `404` `ProblemDetails` Not Found
521
497
  */
522
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
498
+ getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
523
499
  /**
524
500
  * No description
525
501
  *
526
502
  * @tags AiCanonicalField
527
503
  * @name UpdateAiCanonicalField
528
504
  * @summary Update canonical field
529
- * @request PUT:/api/ai/canonical-fields/{id}
505
+ * @request PUT:/api/ai/admin/fields/{id}
530
506
  * @secure
531
507
  * @response `200` `AiCanonicalField` OK
532
508
  * @response `400` `ProblemDetails` Bad Request
533
509
  * @response `404` `ProblemDetails` Not Found
534
510
  */
535
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
511
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
536
512
  /**
537
513
  * No description
538
514
  *
539
515
  * @tags AiCanonicalField
540
516
  * @name DeleteAiCanonicalField
541
517
  * @summary Delete canonical field
542
- * @request DELETE:/api/ai/canonical-fields/{id}
518
+ * @request DELETE:/api/ai/admin/fields/{id}
543
519
  * @secure
544
520
  * @response `204` `void` No Content
545
521
  * @response `404` `ProblemDetails` Not Found
546
522
  */
547
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "DELETE", secure: true }, params)),
523
+ deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
548
524
  /**
549
525
  * No description
550
526
  *
551
527
  * @tags AiCanonicalField
552
528
  * @name ToggleAiCanonicalField
553
529
  * @summary Toggle canonical field active/inactive
554
- * @request PATCH:/api/ai/canonical-fields/{id}/toggle
530
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
555
531
  * @secure
556
532
  * @response `200` `AiCanonicalField` OK
557
533
  * @response `404` `ProblemDetails` Not Found
558
534
  */
559
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
535
+ toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
560
536
  /**
561
537
  * No description
562
538
  *
563
539
  * @tags AiChat
564
540
  * @name AiChat
565
541
  * @summary Send AI chat message
566
- * @request POST:/api/ai/chats
542
+ * @request POST:/api/ai/chat
567
543
  * @secure
568
544
  * @response `200` `AiChat` OK
569
545
  * @response `400` `ProblemDetails` Bad Request
570
546
  * @response `401` `ProblemDetails` Unauthorized
571
547
  */
572
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
548
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
573
549
  /**
574
550
  * No description
575
551
  *
@@ -607,7 +583,7 @@ export class Api extends HttpClient {
607
583
  * @response `403` `ProblemDetails` Forbidden
608
584
  * @response `404` `ProblemDetails` Not Found
609
585
  */
610
- renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
586
+ renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
611
587
  /**
612
588
  * No description
613
589
  *
@@ -659,245 +635,301 @@ export class Api extends HttpClient {
659
635
  * @response `403` `ProblemDetails` Forbidden
660
636
  * @response `404` `ProblemDetails` Not Found
661
637
  */
662
- pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
638
+ pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
663
639
  /**
664
640
  * No description
665
641
  *
666
642
  * @tags AiConversationAdmin
667
643
  * @name GetAiAccountConversations
668
644
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
669
- * @request GET:/api/ai/conversations/all
645
+ * @request GET:/api/ai/admin/conversations
670
646
  * @secure
671
647
  * @response `200` `AiConversationListItemPaginated` OK
672
648
  */
673
- getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all`, method: "GET", query: query, secure: true, format: "json" }, params)),
649
+ getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
674
650
  /**
675
651
  * No description
676
652
  *
677
653
  * @tags AiConversationAdmin
678
654
  * @name GetAiAccountConversation
679
655
  * @summary Get an account conversation's detail (admin supervision)
680
- * @request GET:/api/ai/conversations/all/{id}
656
+ * @request GET:/api/ai/admin/conversations/{id}
681
657
  * @secure
682
658
  * @response `200` `AiConversationDetail` OK
683
659
  * @response `404` `ProblemDetails` Not Found
684
660
  */
685
- getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}`, method: "GET", secure: true, format: "json" }, params)),
661
+ getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
686
662
  /**
687
663
  * No description
688
664
  *
689
665
  * @tags AiConversationAdmin
690
666
  * @name GetAiAccountConversationMessages
691
667
  * @summary Get an account conversation's messages (admin supervision)
692
- * @request GET:/api/ai/conversations/all/{id}/messages
668
+ * @request GET:/api/ai/admin/conversations/{id}/messages
693
669
  * @secure
694
670
  * @response `200` `AiChatMessagePaginated` OK
695
671
  * @response `404` `ProblemDetails` Not Found
696
672
  */
697
- getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
673
+ getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
698
674
  /**
699
675
  * No description
700
676
  *
701
677
  * @tags AiGuardrail
702
678
  * @name GetAiGuardrails
703
679
  * @summary Get all guardrails
704
- * @request GET:/api/ai/guardrails
680
+ * @request GET:/api/ai/admin/guardrails
705
681
  * @secure
706
682
  * @response `200` `(AiGuardrail)[]` OK
707
683
  */
708
- getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "GET", secure: true, format: "json" }, params)),
684
+ getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
709
685
  /**
710
686
  * No description
711
687
  *
712
688
  * @tags AiGuardrail
713
689
  * @name CreateAiGuardrail
714
690
  * @summary Create custom guardrail
715
- * @request POST:/api/ai/guardrails
691
+ * @request POST:/api/ai/admin/guardrails
716
692
  * @secure
717
693
  * @response `201` `AiGuardrail` Created
718
694
  * @response `400` `ProblemDetails` Bad Request
719
695
  */
720
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
696
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
721
697
  /**
722
698
  * No description
723
699
  *
724
700
  * @tags AiGuardrail
725
701
  * @name GetAiGuardrail
726
702
  * @summary Get guardrail by ID
727
- * @request GET:/api/ai/guardrails/{id}
703
+ * @request GET:/api/ai/admin/guardrails/{id}
728
704
  * @secure
729
705
  * @response `200` `AiGuardrail` OK
730
706
  * @response `404` `ProblemDetails` Not Found
731
707
  */
732
- getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
708
+ getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
733
709
  /**
734
710
  * No description
735
711
  *
736
712
  * @tags AiGuardrail
737
713
  * @name UpdateAiGuardrail
738
714
  * @summary Update guardrail
739
- * @request PUT:/api/ai/guardrails/{id}
715
+ * @request PUT:/api/ai/admin/guardrails/{id}
740
716
  * @secure
741
717
  * @response `200` `AiGuardrail` OK
742
718
  * @response `400` `ProblemDetails` Bad Request
743
719
  * @response `404` `ProblemDetails` Not Found
744
720
  */
745
- updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
721
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
746
722
  /**
747
723
  * No description
748
724
  *
749
725
  * @tags AiGuardrail
750
726
  * @name DeleteAiGuardrail
751
727
  * @summary Delete guardrail
752
- * @request DELETE:/api/ai/guardrails/{id}
728
+ * @request DELETE:/api/ai/admin/guardrails/{id}
753
729
  * @secure
754
730
  * @response `204` `void` No Content
755
731
  * @response `400` `ProblemDetails` Bad Request
756
732
  * @response `404` `ProblemDetails` Not Found
757
733
  */
758
- deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "DELETE", secure: true }, params)),
734
+ deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
759
735
  /**
760
736
  * No description
761
737
  *
762
738
  * @tags AiGuardrail
763
739
  * @name ToggleAiGuardrail
764
740
  * @summary Toggle guardrail enabled/disabled
765
- * @request PATCH:/api/ai/guardrails/{id}/toggle
741
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
766
742
  * @secure
767
743
  * @response `200` `AiGuardrail` OK
768
744
  * @response `404` `ProblemDetails` Not Found
769
745
  */
770
- toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
746
+ toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
771
747
  /**
772
748
  * No description
773
749
  *
774
750
  * @tags AiPrompt
775
- * @name GetAiAvailablePrompts
751
+ * @name GetAvailablePrompts
776
752
  * @summary Get available prompts for current user
777
- * @request GET:/api/ai/prompts/available
753
+ * @request GET:/api/ai/prompts
778
754
  * @secure
779
755
  * @response `200` `(AiPromptSummary)[]` OK
780
756
  */
781
- getAiAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/available`, method: "GET", query: query, secure: true, format: "json" }, params)),
757
+ getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
758
+ /**
759
+ * No description
760
+ *
761
+ * @tags AiSuperAdmin
762
+ * @name GetAiAuditLogsCrossAccount
763
+ * @summary Get AI audit logs for a specific account or across all accounts
764
+ * @request GET:/api/ai/superadmin/audit-logs
765
+ * @secure
766
+ * @response `200` `AiAuditLogPaginated` OK
767
+ */
768
+ getAiAuditLogsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
769
+ /**
770
+ * No description
771
+ *
772
+ * @tags AiSuperAdmin
773
+ * @name GetAiRequestLifecycleCrossAccount
774
+ * @summary Get the full event lifecycle of a single AI request from any account
775
+ * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
776
+ * @secure
777
+ * @response `200` `(AiAuditLog)[]` OK
778
+ */
779
+ getAiRequestLifecycleCrossAccount: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
780
+ /**
781
+ * No description
782
+ *
783
+ * @tags AiSuperAdmin
784
+ * @name GetAiStatsCrossAccount
785
+ * @summary Get AI stats for a specific account or platform-wide
786
+ * @request GET:/api/ai/superadmin/stats
787
+ * @secure
788
+ * @response `200` `AiAdminStats` OK
789
+ */
790
+ getAiStatsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
791
+ /**
792
+ * No description
793
+ *
794
+ * @tags AiSuperAdmin
795
+ * @name GetAiConfigChangesCrossAccount
796
+ * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
797
+ * @request GET:/api/ai/superadmin/config-changes
798
+ * @secure
799
+ * @response `200` `AiConfigChangeLogPaginated` OK
800
+ */
801
+ getAiConfigChangesCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
802
+ /**
803
+ * No description
804
+ *
805
+ * @tags AiSuperAdmin
806
+ * @name SetAccountAiEnabled
807
+ * @summary Enable or disable AI for an account (SuperAdmin only)
808
+ * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
809
+ * @secure
810
+ * @response `204` `void` No Content
811
+ * @response `404` `ProblemDetails` Not Found
812
+ */
813
+ setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: ContentType.JsonPatch }, params)),
782
814
  /**
783
815
  * No description
784
816
  *
785
817
  * @tags AiTokenUsageAdmin
786
818
  * @name SearchAiAccountTokenUsage
787
819
  * @summary Search accounts by current-month AI token usage and classification
788
- * @request POST:/api/ai/token-usage/search
820
+ * @request POST:/api/ai/admin/token-usage/search
789
821
  * @secure
790
822
  * @response `200` `AiAccountUsageOverviewPaginated` OK
791
823
  */
792
- searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
824
+ searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
793
825
  /**
794
826
  * No description
795
827
  *
796
828
  * @tags AiTokenUsageAdmin
797
829
  * @name GetAiAccountTokenUsage
798
830
  * @summary Get an account's current-month AI token usage
799
- * @request GET:/api/ai/token-usage/{accountId}
831
+ * @request GET:/api/ai/admin/token-usage/{accountId}
800
832
  * @secure
801
833
  * @response `200` `AiTokenBudgetStatus` OK
802
834
  */
803
- getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
835
+ getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
804
836
  /**
805
837
  * No description
806
838
  *
807
839
  * @tags AiTokenUsageAdmin
808
840
  * @name GetAiAccountTokenUsageHistory
809
841
  * @summary Get an account's monthly AI token usage history
810
- * @request GET:/api/ai/token-usage/{accountId}/history
842
+ * @request GET:/api/ai/admin/token-usage/{accountId}/history
811
843
  * @secure
812
844
  * @response `200` `AiTokenUsageWindowPaginated` OK
813
845
  */
814
- getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
846
+ getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
815
847
  /**
816
848
  * No description
817
849
  *
818
850
  * @tags AiTokenUsageAdmin
819
851
  * @name SetAiAccountTokenLimit
820
852
  * @summary Set or raise an account's monthly AI token limit
821
- * @request PUT:/api/ai/token-usage/{accountId}/limit
853
+ * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
822
854
  * @secure
823
855
  * @response `200` `AiTokenBudgetStatus` OK
824
856
  * @response `400` `ProblemDetails` Bad Request
825
857
  */
826
- setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
858
+ setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
827
859
  /**
828
860
  * No description
829
861
  *
830
862
  * @tags AiUrlSource
831
863
  * @name GetAiUrlSources
832
864
  * @summary Get all URL sources
833
- * @request GET:/api/ai/url-sources
865
+ * @request GET:/api/ai/admin/url-sources
834
866
  * @secure
835
867
  * @response `200` `(AiUrlSource)[]` OK
836
868
  */
837
- getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "GET", secure: true, format: "json" }, params)),
869
+ getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
838
870
  /**
839
871
  * No description
840
872
  *
841
873
  * @tags AiUrlSource
842
874
  * @name CreateAiUrlSource
843
875
  * @summary Create URL source
844
- * @request POST:/api/ai/url-sources
876
+ * @request POST:/api/ai/admin/url-sources
845
877
  * @secure
846
878
  * @response `201` `AiUrlSource` Created
847
879
  * @response `400` `ProblemDetails` Bad Request
848
880
  * @response `409` `ProblemDetails` Conflict
849
881
  */
850
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
882
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
851
883
  /**
852
884
  * No description
853
885
  *
854
886
  * @tags AiUrlSource
855
887
  * @name GetAiUrlSource
856
888
  * @summary Get URL source by ID
857
- * @request GET:/api/ai/url-sources/{id}
889
+ * @request GET:/api/ai/admin/url-sources/{id}
858
890
  * @secure
859
891
  * @response `200` `AiUrlSource` OK
860
892
  * @response `404` `ProblemDetails` Not Found
861
893
  */
862
- getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
894
+ getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
863
895
  /**
864
896
  * No description
865
897
  *
866
898
  * @tags AiUrlSource
867
899
  * @name UpdateAiUrlSource
868
900
  * @summary Update URL source
869
- * @request PUT:/api/ai/url-sources/{id}
901
+ * @request PUT:/api/ai/admin/url-sources/{id}
870
902
  * @secure
871
903
  * @response `200` `AiUrlSource` OK
872
904
  * @response `400` `ProblemDetails` Bad Request
873
905
  * @response `404` `ProblemDetails` Not Found
874
906
  * @response `409` `ProblemDetails` Conflict
875
907
  */
876
- updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
908
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
877
909
  /**
878
910
  * No description
879
911
  *
880
912
  * @tags AiUrlSource
881
913
  * @name DeleteAiUrlSource
882
914
  * @summary Delete URL source
883
- * @request DELETE:/api/ai/url-sources/{id}
915
+ * @request DELETE:/api/ai/admin/url-sources/{id}
884
916
  * @secure
885
917
  * @response `204` `void` No Content
886
918
  * @response `404` `ProblemDetails` Not Found
887
919
  */
888
- deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "DELETE", secure: true }, params)),
920
+ deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
889
921
  /**
890
922
  * No description
891
923
  *
892
924
  * @tags AiUrlSource
893
925
  * @name ToggleAiUrlSource
894
926
  * @summary Toggle URL source active/inactive
895
- * @request PATCH:/api/ai/url-sources/{id}/toggle
927
+ * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
896
928
  * @secure
897
929
  * @response `200` `AiUrlSource` OK
898
930
  * @response `404` `ProblemDetails` Not Found
899
931
  */
900
- toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
932
+ toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
901
933
  /**
902
934
  * No description
903
935
  *
@@ -930,7 +962,7 @@ export class Api extends HttpClient {
930
962
  * @secure
931
963
  * @response `200` `AuditLogEntryPaginated` OK
932
964
  */
933
- searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
965
+ searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
934
966
  /**
935
967
  * No description
936
968
  *
@@ -966,7 +998,7 @@ export class Api extends HttpClient {
966
998
  * @response `401` `ProblemDetails` Unauthorized
967
999
  * @response `422` `UnprocessableEntity` Unprocessable Content
968
1000
  */
969
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1001
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
970
1002
  /**
971
1003
  * No description
972
1004
  *
@@ -978,7 +1010,7 @@ export class Api extends HttpClient {
978
1010
  * @response `200` `AccountDeactivated` OK
979
1011
  * @response `422` `UnprocessableEntity` Unprocessable Content
980
1012
  */
981
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1013
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
982
1014
  /**
983
1015
  * No description
984
1016
  *
@@ -990,7 +1022,7 @@ export class Api extends HttpClient {
990
1022
  * @response `200` `AccountDeactivated` OK
991
1023
  * @response `422` `UnprocessableEntity` Unprocessable Content
992
1024
  */
993
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1025
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
994
1026
  /**
995
1027
  * No description
996
1028
  *
@@ -1002,7 +1034,7 @@ export class Api extends HttpClient {
1002
1034
  * @response `200` `Token` OK
1003
1035
  * @response `422` `UnprocessableEntity` Unprocessable Content
1004
1036
  */
1005
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1037
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1006
1038
  /**
1007
1039
  * No description
1008
1040
  *
@@ -1014,7 +1046,7 @@ export class Api extends HttpClient {
1014
1046
  * @response `200` `SSOToken` OK
1015
1047
  * @response `422` `UnprocessableEntity` Unprocessable Content
1016
1048
  */
1017
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1049
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1018
1050
  /**
1019
1051
  * No description
1020
1052
  *
@@ -1049,7 +1081,7 @@ export class Api extends HttpClient {
1049
1081
  * @response `200` `GetBranch` OK
1050
1082
  * @response `422` `UnprocessableEntity` Unprocessable Content
1051
1083
  */
1052
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1084
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1053
1085
  /**
1054
1086
  * No description
1055
1087
  *
@@ -1060,7 +1092,7 @@ export class Api extends HttpClient {
1060
1092
  * @secure
1061
1093
  * @response `200` `GetBranchPaginated` OK
1062
1094
  */
1063
- searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1095
+ searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1064
1096
  /**
1065
1097
  * No description
1066
1098
  *
@@ -1083,7 +1115,7 @@ export class Api extends HttpClient {
1083
1115
  * @response `200` `GetBranch` OK
1084
1116
  * @response `422` `UnprocessableEntity` Unprocessable Content
1085
1117
  */
1086
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1118
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1087
1119
  /**
1088
1120
  * No description
1089
1121
  *
@@ -1118,7 +1150,7 @@ export class Api extends HttpClient {
1118
1150
  * @response `200` `SiteConfiguration` OK
1119
1151
  * @response `422` `UnprocessableEntity` Unprocessable Content
1120
1152
  */
1121
- createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1153
+ createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1122
1154
  /**
1123
1155
  * No description
1124
1156
  *
@@ -1141,7 +1173,7 @@ export class Api extends HttpClient {
1141
1173
  * @response `200` `SiteConfiguration` OK
1142
1174
  * @response `422` `UnprocessableEntity` Unprocessable Content
1143
1175
  */
1144
- replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1176
+ replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1145
1177
  /**
1146
1178
  * No description
1147
1179
  *
@@ -1175,7 +1207,7 @@ export class Api extends HttpClient {
1175
1207
  * @response `200` `BusinessRule` OK
1176
1208
  * @response `422` `UnprocessableEntity` Unprocessable Content
1177
1209
  */
1178
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1210
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1179
1211
  /**
1180
1212
  * No description
1181
1213
  *
@@ -1198,7 +1230,7 @@ export class Api extends HttpClient {
1198
1230
  * @response `200` `BusinessRule` OK
1199
1231
  * @response `422` `UnprocessableEntity` Unprocessable Content
1200
1232
  */
1201
- replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1233
+ replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1202
1234
  /**
1203
1235
  * No description
1204
1236
  *
@@ -1231,7 +1263,7 @@ export class Api extends HttpClient {
1231
1263
  * @secure
1232
1264
  * @response `200` `ClosedLoansReport` OK
1233
1265
  */
1234
- getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1266
+ getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1235
1267
  /**
1236
1268
  * No description
1237
1269
  *
@@ -1276,7 +1308,7 @@ export class Api extends HttpClient {
1276
1308
  * @response `200` `Corporate` OK
1277
1309
  * @response `422` `UnprocessableEntity` Unprocessable Content
1278
1310
  */
1279
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1311
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1280
1312
  /**
1281
1313
  * No description
1282
1314
  *
@@ -1287,7 +1319,7 @@ export class Api extends HttpClient {
1287
1319
  * @secure
1288
1320
  * @response `200` `CorporatePaginated` OK
1289
1321
  */
1290
- searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1322
+ searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1291
1323
  /**
1292
1324
  * No description
1293
1325
  *
@@ -1310,7 +1342,7 @@ export class Api extends HttpClient {
1310
1342
  * @response `200` `Corporate` OK
1311
1343
  * @response `422` `UnprocessableEntity` Unprocessable Content
1312
1344
  */
1313
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1345
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1314
1346
  /**
1315
1347
  * No description
1316
1348
  *
@@ -1344,7 +1376,7 @@ export class Api extends HttpClient {
1344
1376
  * @response `200` `SiteConfiguration` OK
1345
1377
  * @response `422` `UnprocessableEntity` Unprocessable Content
1346
1378
  */
1347
- createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1379
+ createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1348
1380
  /**
1349
1381
  * No description
1350
1382
  *
@@ -1367,7 +1399,7 @@ export class Api extends HttpClient {
1367
1399
  * @response `200` `SiteConfiguration` OK
1368
1400
  * @response `422` `UnprocessableEntity` Unprocessable Content
1369
1401
  */
1370
- replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1402
+ replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1371
1403
  /**
1372
1404
  * No description
1373
1405
  *
@@ -1413,7 +1445,7 @@ export class Api extends HttpClient {
1413
1445
  * @response `409` `ProblemDetails` Conflict
1414
1446
  * @response `422` `ProblemDetails` Unprocessable Content
1415
1447
  */
1416
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1448
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1417
1449
  /**
1418
1450
  * No description
1419
1451
  *
@@ -1440,7 +1472,7 @@ export class Api extends HttpClient {
1440
1472
  * @response `409` `ProblemDetails` Conflict
1441
1473
  * @response `422` `ProblemDetails` Unprocessable Content
1442
1474
  */
1443
- updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1475
+ updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1444
1476
  /**
1445
1477
  * No description
1446
1478
  *
@@ -1510,7 +1542,7 @@ export class Api extends HttpClient {
1510
1542
  * @secure
1511
1543
  * @response `200` `Device` OK
1512
1544
  */
1513
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1545
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1514
1546
  /**
1515
1547
  * No description
1516
1548
  *
@@ -1567,7 +1599,7 @@ export class Api extends HttpClient {
1567
1599
  * @response `404` `ProblemDetails` Not Found
1568
1600
  * @response `422` `UnprocessableEntity` Unprocessable Content
1569
1601
  */
1570
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1602
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1571
1603
  /**
1572
1604
  * No description
1573
1605
  *
@@ -1604,7 +1636,7 @@ export class Api extends HttpClient {
1604
1636
  * @response `404` `ProblemDetails` Not Found
1605
1637
  * @response `422` `UnprocessableEntity` Unprocessable Content
1606
1638
  */
1607
- replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1639
+ replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1608
1640
  /**
1609
1641
  * No description
1610
1642
  *
@@ -1652,7 +1684,7 @@ export class Api extends HttpClient {
1652
1684
  * @secure
1653
1685
  * @response `200` `DocumentTemplateVersion` OK
1654
1686
  */
1655
- createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1687
+ createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1656
1688
  /**
1657
1689
  * No description
1658
1690
  *
@@ -1674,7 +1706,7 @@ export class Api extends HttpClient {
1674
1706
  * @secure
1675
1707
  * @response `200` `DocumentTemplateVersion` OK
1676
1708
  */
1677
- replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1709
+ replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1678
1710
  /**
1679
1711
  * No description
1680
1712
  *
@@ -1712,7 +1744,7 @@ export class Api extends HttpClient {
1712
1744
  * @response `409` `void` Conflict
1713
1745
  * @response `422` `ProblemDetails` Unprocessable Content
1714
1746
  */
1715
- addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1747
+ addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1716
1748
  /**
1717
1749
  * No description
1718
1750
  *
@@ -1775,20 +1807,6 @@ export class Api extends HttpClient {
1775
1807
  * @response `500` `EncompassError` Internal Server Error
1776
1808
  */
1777
1809
  getUserPackages: (query, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/packages`, method: "GET", query: query, secure: true, format: "json" }, params)),
1778
- /**
1779
- * No description
1780
- *
1781
- * @tags Encompass Packages
1782
- * @name GetLoanPackages
1783
- * @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
1784
- * @secure
1785
- * @response `200` `EncompassPackageList` OK
1786
- * @response `400` `EncompassError` Bad Request
1787
- * @response `401` `EncompassError` Unauthorized
1788
- * @response `403` `EncompassError` Forbidden
1789
- * @response `500` `EncompassError` Internal Server Error
1790
- */
1791
- getLoanPackages: (loanId, query, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/loans/${loanId}/packages`, method: "GET", query: query, secure: true, format: "json" }, params)),
1792
1810
  /**
1793
1811
  * No description
1794
1812
  *
@@ -1815,7 +1833,7 @@ export class Api extends HttpClient {
1815
1833
  * @response `404` `EncompassError` Not Found
1816
1834
  * @response `500` `EncompassError` Internal Server Error
1817
1835
  */
1818
- createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1836
+ createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1819
1837
  /**
1820
1838
  * No description
1821
1839
  *
@@ -1838,7 +1856,7 @@ export class Api extends HttpClient {
1838
1856
  * @response `201` `File` Created
1839
1857
  * @response `422` `UnprocessableEntity` Unprocessable Content
1840
1858
  */
1841
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1859
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1842
1860
  /**
1843
1861
  * No description
1844
1862
  *
@@ -1861,7 +1879,7 @@ export class Api extends HttpClient {
1861
1879
  * @response `200` `string` OK
1862
1880
  * @response `422` `UnprocessableEntity` Unprocessable Content
1863
1881
  */
1864
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1882
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1865
1883
  /**
1866
1884
  * No description
1867
1885
  *
@@ -1883,7 +1901,7 @@ export class Api extends HttpClient {
1883
1901
  * @secure
1884
1902
  * @response `200` `FilePaginated` OK
1885
1903
  */
1886
- searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1904
+ searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1887
1905
  /**
1888
1906
  * No description
1889
1907
  *
@@ -1906,7 +1924,7 @@ export class Api extends HttpClient {
1906
1924
  * @response `201` `Form` Created
1907
1925
  * @response `422` `UnprocessableEntity` Unprocessable Content
1908
1926
  */
1909
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1927
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1910
1928
  /**
1911
1929
  * No description
1912
1930
  *
@@ -1929,7 +1947,7 @@ export class Api extends HttpClient {
1929
1947
  * @response `200` `Form` OK
1930
1948
  * @response `422` `UnprocessableEntity` Unprocessable Content
1931
1949
  */
1932
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1950
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1933
1951
  /**
1934
1952
  * No description
1935
1953
  *
@@ -1962,7 +1980,7 @@ export class Api extends HttpClient {
1962
1980
  * @secure
1963
1981
  * @response `200` `FormSubmissionFile` OK
1964
1982
  */
1965
- addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1983
+ addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1966
1984
  /**
1967
1985
  * No description
1968
1986
  *
@@ -2006,7 +2024,7 @@ export class Api extends HttpClient {
2006
2024
  * @secure
2007
2025
  * @response `201` `FormSubmission` Created
2008
2026
  */
2009
- createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2027
+ createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2010
2028
  /**
2011
2029
  * No description
2012
2030
  *
@@ -2028,7 +2046,7 @@ export class Api extends HttpClient {
2028
2046
  * @secure
2029
2047
  * @response `200` `FormSubmission` OK
2030
2048
  */
2031
- replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2049
+ replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2032
2050
  /**
2033
2051
  * No description
2034
2052
  *
@@ -2050,7 +2068,7 @@ export class Api extends HttpClient {
2050
2068
  * @secure
2051
2069
  * @response `200` `FormSubmissionPaginated` OK
2052
2070
  */
2053
- searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2071
+ searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2054
2072
  /**
2055
2073
  * No description
2056
2074
  *
@@ -2072,7 +2090,7 @@ export class Api extends HttpClient {
2072
2090
  * @secure
2073
2091
  * @response `200` `FormVersion` OK
2074
2092
  */
2075
- createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2093
+ createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2076
2094
  /**
2077
2095
  * No description
2078
2096
  *
@@ -2094,7 +2112,7 @@ export class Api extends HttpClient {
2094
2112
  * @secure
2095
2113
  * @response `200` `FormVersion` OK
2096
2114
  */
2097
- replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2115
+ replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2098
2116
  /**
2099
2117
  * No description
2100
2118
  *
@@ -2140,7 +2158,7 @@ export class Api extends HttpClient {
2140
2158
  * @response `200` `string` OK
2141
2159
  * @response `422` `UnprocessableEntity` Unprocessable Content
2142
2160
  */
2143
- updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2161
+ updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2144
2162
  /**
2145
2163
  * No description
2146
2164
  *
@@ -2151,7 +2169,7 @@ export class Api extends HttpClient {
2151
2169
  * @secure
2152
2170
  * @response `200` `GetReport` OK
2153
2171
  */
2154
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2172
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2155
2173
  /**
2156
2174
  * No description
2157
2175
  *
@@ -2165,7 +2183,7 @@ export class Api extends HttpClient {
2165
2183
  * @response `422` `UnprocessableEntity` Unprocessable Content
2166
2184
  * @response `423` `UnprocessableEntity` Locked
2167
2185
  */
2168
- createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2186
+ createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2169
2187
  /**
2170
2188
  * No description
2171
2189
  *
@@ -2178,7 +2196,7 @@ export class Api extends HttpClient {
2178
2196
  * @response `422` `UnprocessableEntity` Unprocessable Content
2179
2197
  * @response `423` `UnprocessableEntity` Locked
2180
2198
  */
2181
- createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2199
+ createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2182
2200
  /**
2183
2201
  * No description
2184
2202
  *
@@ -2190,7 +2208,7 @@ export class Api extends HttpClient {
2190
2208
  * @response `200` `string` OK
2191
2209
  * @response `422` `UnprocessableEntity` Unprocessable Content
2192
2210
  */
2193
- updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2211
+ updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2194
2212
  /**
2195
2213
  * No description
2196
2214
  *
@@ -2203,7 +2221,7 @@ export class Api extends HttpClient {
2203
2221
  * @response `202` `string` Accepted
2204
2222
  * @response `422` `UnprocessableEntity` Unprocessable Content
2205
2223
  */
2206
- updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2224
+ updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2207
2225
  /**
2208
2226
  * No description
2209
2227
  *
@@ -2294,7 +2312,7 @@ export class Api extends HttpClient {
2294
2312
  * @secure
2295
2313
  * @response `200` `ListingFile` OK
2296
2314
  */
2297
- addListingFile: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2315
+ addListingFile: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
2298
2316
  /**
2299
2317
  * No description
2300
2318
  *
@@ -2305,7 +2323,7 @@ export class Api extends HttpClient {
2305
2323
  * @secure
2306
2324
  * @response `200` `ListingFile` OK
2307
2325
  */
2308
- updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2326
+ updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2309
2327
  /**
2310
2328
  * No description
2311
2329
  *
@@ -2327,7 +2345,7 @@ export class Api extends HttpClient {
2327
2345
  * @secure
2328
2346
  * @response `200` `ListingPhoto` OK
2329
2347
  */
2330
- addListingPhoto: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2348
+ addListingPhoto: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
2331
2349
  /**
2332
2350
  * No description
2333
2351
  *
@@ -2338,7 +2356,7 @@ export class Api extends HttpClient {
2338
2356
  * @secure
2339
2357
  * @response `200` `(ListingPhoto)[]` OK
2340
2358
  */
2341
- updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2359
+ updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2342
2360
  /**
2343
2361
  * No description
2344
2362
  *
@@ -2371,7 +2389,7 @@ export class Api extends HttpClient {
2371
2389
  * @secure
2372
2390
  * @response `201` `Listing` Created
2373
2391
  */
2374
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2392
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2375
2393
  /**
2376
2394
  * No description
2377
2395
  *
@@ -2404,7 +2422,7 @@ export class Api extends HttpClient {
2404
2422
  * @secure
2405
2423
  * @response `200` `Listing` OK
2406
2424
  */
2407
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2425
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2408
2426
  /**
2409
2427
  * No description
2410
2428
  *
@@ -2426,7 +2444,7 @@ export class Api extends HttpClient {
2426
2444
  * @secure
2427
2445
  * @response `200` `ListingPaginated` OK
2428
2446
  */
2429
- searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2447
+ searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2430
2448
  /**
2431
2449
  * No description
2432
2450
  *
@@ -2437,7 +2455,7 @@ export class Api extends HttpClient {
2437
2455
  * @secure
2438
2456
  * @response `200` `File` OK
2439
2457
  */
2440
- updateListingBackgroundImage: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "PUT", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2458
+ updateListingBackgroundImage: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "PUT", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
2441
2459
  /**
2442
2460
  * No description
2443
2461
  *
@@ -2483,7 +2501,7 @@ export class Api extends HttpClient {
2483
2501
  * @response `422` `UnprocessableEntity` Unprocessable Content
2484
2502
  * @response `423` `UnprocessableEntity` Locked
2485
2503
  */
2486
- runLoanCalculator: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/calculators/loan-calculator`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2504
+ runLoanCalculator: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/calculators/loan-calculator`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2487
2505
  /**
2488
2506
  * No description
2489
2507
  *
@@ -2507,7 +2525,7 @@ export class Api extends HttpClient {
2507
2525
  * @response `422` `UnprocessableEntity` Unprocessable Content
2508
2526
  * @response `423` `UnprocessableEntity` Locked
2509
2527
  */
2510
- createLoanComparison: (loanId, index, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/${index}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2528
+ createLoanComparison: (loanId, index, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/${index}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2511
2529
  /**
2512
2530
  * No description
2513
2531
  *
@@ -2530,7 +2548,7 @@ export class Api extends HttpClient {
2530
2548
  * @response `204` `void` No Content
2531
2549
  * @response `422` `UnprocessableEntity` Unprocessable Content
2532
2550
  */
2533
- createLoanComparisonPdf: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/pdf`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2551
+ createLoanComparisonPdf: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/pdf`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2534
2552
  /**
2535
2553
  * No description
2536
2554
  *
@@ -2567,7 +2585,7 @@ export class Api extends HttpClient {
2567
2585
  * @response `400` `ProblemDetails` Bad Request
2568
2586
  * @response `422` `ProblemDetails` Unprocessable Content
2569
2587
  */
2570
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2588
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2571
2589
  /**
2572
2590
  * No description
2573
2591
  *
@@ -2581,7 +2599,7 @@ export class Api extends HttpClient {
2581
2599
  * @response `404` `ProblemDetails` Not Found
2582
2600
  * @response `422` `ProblemDetails` Unprocessable Content
2583
2601
  */
2584
- setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2602
+ setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2585
2603
  /**
2586
2604
  * No description
2587
2605
  *
@@ -2615,7 +2633,7 @@ export class Api extends HttpClient {
2615
2633
  * @secure
2616
2634
  * @response `201` `(string)[]` Created
2617
2635
  */
2618
- createLoanDocumentBuckets: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2636
+ createLoanDocumentBuckets: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2619
2637
  /**
2620
2638
  * No description
2621
2639
  *
@@ -2639,7 +2657,7 @@ export class Api extends HttpClient {
2639
2657
  * @response `409` `ProblemDetails` Conflict
2640
2658
  * @response `422` `ProblemDetails` Unprocessable Content
2641
2659
  */
2642
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2660
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2643
2661
  /**
2644
2662
  * No description
2645
2663
  *
@@ -2666,7 +2684,7 @@ export class Api extends HttpClient {
2666
2684
  * @response `409` `ProblemDetails` Conflict
2667
2685
  * @response `422` `ProblemDetails` Unprocessable Content
2668
2686
  */
2669
- updateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2687
+ updateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2670
2688
  /**
2671
2689
  * No description
2672
2690
  *
@@ -2741,7 +2759,7 @@ export class Api extends HttpClient {
2741
2759
  * @response `200` `Record<string,string>` OK
2742
2760
  * @response `400` `ProblemDetails` Bad Request
2743
2761
  */
2744
- getLoanDocumentPreviews: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/previews`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2762
+ getLoanDocumentPreviews: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/previews`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2745
2763
  /**
2746
2764
  * No description
2747
2765
  *
@@ -2752,7 +2770,7 @@ export class Api extends HttpClient {
2752
2770
  * @secure
2753
2771
  * @response `200` `LoanDocumentSearchPaginated` OK
2754
2772
  */
2755
- searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2773
+ searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2756
2774
  /**
2757
2775
  * @description Returns all documents grouped by folder for sidebar display. Use folderNamesOnly=true to get simplified response with folder names and counts for mobile (Files array will be empty).
2758
2776
  *
@@ -2763,7 +2781,7 @@ export class Api extends HttpClient {
2763
2781
  * @secure
2764
2782
  * @response `200` `(DocumentFolder)[]` OK
2765
2783
  */
2766
- getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2784
+ getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2767
2785
  /**
2768
2786
  * No description
2769
2787
  *
@@ -2772,7 +2790,7 @@ export class Api extends HttpClient {
2772
2790
  * @summary Download By ID
2773
2791
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2774
2792
  * @secure
2775
- * @response `200` `Blob` OK
2793
+ * @response `200` `string` OK
2776
2794
  * @response `404` `ProblemDetails` Not Found
2777
2795
  */
2778
2796
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2788,7 +2806,7 @@ export class Api extends HttpClient {
2788
2806
  * @response `404` `ProblemDetails` Not Found
2789
2807
  * @response `422` `UnprocessableEntity` Unprocessable Content
2790
2808
  */
2791
- createLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2809
+ createLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
2792
2810
  /**
2793
2811
  * No description
2794
2812
  *
@@ -2812,7 +2830,7 @@ export class Api extends HttpClient {
2812
2830
  * @secure
2813
2831
  * @response `200` `DocumentDataRequest` OK
2814
2832
  */
2815
- generateLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2833
+ generateLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/generate`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2816
2834
  /**
2817
2835
  * No description
2818
2836
  *
@@ -2825,7 +2843,7 @@ export class Api extends HttpClient {
2825
2843
  * @response `400` `ProblemDetails` Bad Request
2826
2844
  * @response `404` `ProblemDetails` Not Found
2827
2845
  */
2828
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2846
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2829
2847
  /**
2830
2848
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2831
2849
  *
@@ -2850,7 +2868,7 @@ export class Api extends HttpClient {
2850
2868
  * @response `404` `ProblemDetails` Not Found
2851
2869
  * @response `422` `UnprocessableEntity` Unprocessable Content
2852
2870
  */
2853
- classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2871
+ classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2854
2872
  /**
2855
2873
  * @description Re-attempts to push a failed document to LOS
2856
2874
  *
@@ -2874,7 +2892,7 @@ export class Api extends HttpClient {
2874
2892
  * @secure
2875
2893
  * @response `201` `Draft` Created
2876
2894
  */
2877
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2895
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2878
2896
  /**
2879
2897
  * No description
2880
2898
  *
@@ -2907,7 +2925,7 @@ export class Api extends HttpClient {
2907
2925
  * @secure
2908
2926
  * @response `200` `Draft` OK
2909
2927
  */
2910
- replaceLoanDraft: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2928
+ replaceLoanDraft: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2911
2929
  /**
2912
2930
  * No description
2913
2931
  *
@@ -2929,7 +2947,7 @@ export class Api extends HttpClient {
2929
2947
  * @secure
2930
2948
  * @response `201` `DraftContentPaginated` Created
2931
2949
  */
2932
- searchLoanDrafts: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2950
+ searchLoanDrafts: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2933
2951
  /**
2934
2952
  * No description
2935
2953
  *
@@ -2940,7 +2958,7 @@ export class Api extends HttpClient {
2940
2958
  * @secure
2941
2959
  * @response `200` `Draft` OK
2942
2960
  */
2943
- reassignLoanOfficer: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/reassign`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2961
+ reassignLoanOfficer: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/reassign`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2944
2962
  /**
2945
2963
  * No description
2946
2964
  *
@@ -2973,7 +2991,7 @@ export class Api extends HttpClient {
2973
2991
  * @secure
2974
2992
  * @response `201` `LoanImport` Created
2975
2993
  */
2976
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2994
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2977
2995
  /**
2978
2996
  * No description
2979
2997
  *
@@ -3019,7 +3037,7 @@ export class Api extends HttpClient {
3019
3037
  * @response `200` `(Invite)[]` OK
3020
3038
  * @response `404` `ProblemDetails` Not Found
3021
3039
  */
3022
- inviteLoanContacts: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/invites`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3040
+ inviteLoanContacts: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/invites`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3023
3041
  /**
3024
3042
  * No description
3025
3043
  *
@@ -3030,7 +3048,7 @@ export class Api extends HttpClient {
3030
3048
  * @secure
3031
3049
  * @response `200` `LoanLogPaginated` OK
3032
3050
  */
3033
- searchLoanLogs: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3051
+ searchLoanLogs: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3034
3052
  /**
3035
3053
  * No description
3036
3054
  *
@@ -3055,7 +3073,7 @@ export class Api extends HttpClient {
3055
3073
  * @response `400` `ProblemDetails` Bad Request
3056
3074
  * @response `404` `ProblemDetails` Not Found
3057
3075
  */
3058
- sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3076
+ sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3059
3077
  /**
3060
3078
  * No description
3061
3079
  *
@@ -3068,7 +3086,7 @@ export class Api extends HttpClient {
3068
3086
  * @response `400` `ProblemDetails` Bad Request
3069
3087
  * @response `404` `ProblemDetails` Not Found
3070
3088
  */
3071
- sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3089
+ sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3072
3090
  /**
3073
3091
  * No description
3074
3092
  *
@@ -3090,7 +3108,7 @@ export class Api extends HttpClient {
3090
3108
  * @secure
3091
3109
  * @response `200` `BranchUserPaginated` OK
3092
3110
  */
3093
- searchLoanOfficers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3111
+ searchLoanOfficers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3094
3112
  /**
3095
3113
  * No description
3096
3114
  *
@@ -3113,7 +3131,7 @@ export class Api extends HttpClient {
3113
3131
  * @response `200` `SiteConfiguration` OK
3114
3132
  * @response `422` `UnprocessableEntity` Unprocessable Content
3115
3133
  */
3116
- createLoanOfficerSiteConfiguration: (loanOfficerId, data, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3134
+ createLoanOfficerSiteConfiguration: (loanOfficerId, data, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3117
3135
  /**
3118
3136
  * No description
3119
3137
  *
@@ -3136,7 +3154,7 @@ export class Api extends HttpClient {
3136
3154
  * @response `200` `SiteConfiguration` OK
3137
3155
  * @response `422` `UnprocessableEntity` Unprocessable Content
3138
3156
  */
3139
- replaceLoanOfficerSiteConfiguration: (loanOfficerId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3157
+ replaceLoanOfficerSiteConfiguration: (loanOfficerId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3140
3158
  /**
3141
3159
  * No description
3142
3160
  *
@@ -3147,7 +3165,7 @@ export class Api extends HttpClient {
3147
3165
  * @secure
3148
3166
  * @response `200` `LoanQueuePaginated` OK
3149
3167
  */
3150
- searchLoanQueue: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3168
+ searchLoanQueue: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3151
3169
  /**
3152
3170
  * No description
3153
3171
  *
@@ -3171,7 +3189,7 @@ export class Api extends HttpClient {
3171
3189
  * @response `200` `LoanQueueWithData` OK
3172
3190
  * @response `404` `ProblemDetails` Not Found
3173
3191
  */
3174
- replaceLoanQueue: (loanQueueId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/${loanQueueId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3192
+ replaceLoanQueue: (loanQueueId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/${loanQueueId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3175
3193
  /**
3176
3194
  * No description
3177
3195
  *
@@ -3232,7 +3250,7 @@ export class Api extends HttpClient {
3232
3250
  * @response `401` `ProblemDetails` Unauthorized
3233
3251
  * @response `403` `ProblemDetails` Forbidden
3234
3252
  */
3235
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3253
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3236
3254
  /**
3237
3255
  * No description
3238
3256
  *
@@ -3243,7 +3261,7 @@ export class Api extends HttpClient {
3243
3261
  * @secure
3244
3262
  * @response `200` `LoanListPaginated` OK
3245
3263
  */
3246
- searchLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3264
+ searchLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3247
3265
  /**
3248
3266
  * No description
3249
3267
  *
@@ -3259,7 +3277,7 @@ export class Api extends HttpClient {
3259
3277
  * @response `404` `ProblemDetails` Not Found
3260
3278
  * @response `409` `any` Conflict
3261
3279
  */
3262
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3280
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
3263
3281
  /**
3264
3282
  * No description
3265
3283
  *
@@ -3321,7 +3339,7 @@ export class Api extends HttpClient {
3321
3339
  * @response `400` `ProblemDetails` Bad Request
3322
3340
  * @response `404` `ProblemDetails` Not Found
3323
3341
  */
3324
- triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3342
+ triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3325
3343
  /**
3326
3344
  * No description
3327
3345
  *
@@ -3333,7 +3351,7 @@ export class Api extends HttpClient {
3333
3351
  * @response `200` `TaskCommentPaginated` OK
3334
3352
  * @response `404` `ProblemDetails` Not Found
3335
3353
  */
3336
- searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3354
+ searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3337
3355
  /**
3338
3356
  * No description
3339
3357
  *
@@ -3357,7 +3375,7 @@ export class Api extends HttpClient {
3357
3375
  * @response `201` `TaskComment` Created
3358
3376
  * @response `404` `ProblemDetails` Not Found
3359
3377
  */
3360
- createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3378
+ createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3361
3379
  /**
3362
3380
  * No description
3363
3381
  *
@@ -3369,7 +3387,7 @@ export class Api extends HttpClient {
3369
3387
  * @response `200` `TaskComment` OK
3370
3388
  * @response `404` `ProblemDetails` Not Found
3371
3389
  */
3372
- replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3390
+ replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3373
3391
  /**
3374
3392
  * No description
3375
3393
  *
@@ -3394,7 +3412,7 @@ export class Api extends HttpClient {
3394
3412
  * @response `404` `ProblemDetails` Not Found
3395
3413
  * @response `422` `UnprocessableEntity` Unprocessable Content
3396
3414
  */
3397
- createLoanTaskDocument: (loanId, loanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
3415
+ createLoanTaskDocument: (loanId, loanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
3398
3416
  /**
3399
3417
  * No description
3400
3418
  *
@@ -3408,7 +3426,7 @@ export class Api extends HttpClient {
3408
3426
  * @response `404` `ProblemDetails` Not Found
3409
3427
  * @response `422` `ProblemDetails` Unprocessable Content
3410
3428
  */
3411
- sendOutstandingLoanTaskNotification: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3429
+ sendOutstandingLoanTaskNotification: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3412
3430
  /**
3413
3431
  * No description
3414
3432
  *
@@ -3421,7 +3439,7 @@ export class Api extends HttpClient {
3421
3439
  * @response `400` `ProblemDetails` Bad Request
3422
3440
  * @response `404` `ProblemDetails` Not Found
3423
3441
  */
3424
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3442
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3425
3443
  /**
3426
3444
  * @description Search tasks across all loans
3427
3445
  *
@@ -3432,7 +3450,7 @@ export class Api extends HttpClient {
3432
3450
  * @secure
3433
3451
  * @response `200` `UserLoanTaskPaginated` OK
3434
3452
  */
3435
- searchLoanTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3453
+ searchLoanTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3436
3454
  /**
3437
3455
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3438
3456
  *
@@ -3444,7 +3462,7 @@ export class Api extends HttpClient {
3444
3462
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3445
3463
  * @response `422` `UnprocessableEntity` Unprocessable Content
3446
3464
  */
3447
- searchLoanTasksSummary: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search/summary`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3465
+ searchLoanTasksSummary: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search/summary`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3448
3466
  /**
3449
3467
  * No description
3450
3468
  *
@@ -3492,7 +3510,7 @@ export class Api extends HttpClient {
3492
3510
  * @response `201` `UserLoanTask` Created
3493
3511
  * @response `404` `ProblemDetails` Not Found
3494
3512
  */
3495
- createLoanTask: (loanId, taskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${taskId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3513
+ createLoanTask: (loanId, taskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${taskId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3496
3514
  /**
3497
3515
  * No description
3498
3516
  *
@@ -3504,7 +3522,7 @@ export class Api extends HttpClient {
3504
3522
  * @response `201` `(UserLoanTask)[]` Created
3505
3523
  * @response `404` `ProblemDetails` Not Found
3506
3524
  */
3507
- importLoanTask: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/import`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3525
+ importLoanTask: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/import`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3508
3526
  /**
3509
3527
  * No description
3510
3528
  *
@@ -3516,7 +3534,7 @@ export class Api extends HttpClient {
3516
3534
  * @response `200` `UserLoanTask` OK
3517
3535
  * @response `404` `ProblemDetails` Not Found
3518
3536
  */
3519
- replaceLoanTask: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3537
+ replaceLoanTask: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3520
3538
  /**
3521
3539
  * No description
3522
3540
  *
@@ -3575,7 +3593,7 @@ export class Api extends HttpClient {
3575
3593
  * @secure
3576
3594
  * @response `201` `LoanUser` Created
3577
3595
  */
3578
- addLoanUser: (loanId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3596
+ addLoanUser: (loanId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3579
3597
  /**
3580
3598
  * No description
3581
3599
  *
@@ -3608,7 +3626,7 @@ export class Api extends HttpClient {
3608
3626
  * @secure
3609
3627
  * @response `200` `LosOperationTrackingPaginated` OK
3610
3628
  */
3611
- searchLosOperationTracking: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los-operation-tracking/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3629
+ searchLosOperationTracking: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los-operation-tracking/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3612
3630
  /**
3613
3631
  * No description
3614
3632
  *
@@ -3631,7 +3649,7 @@ export class Api extends HttpClient {
3631
3649
  * @response `201` `MilestoneConfiguration` Created
3632
3650
  * @response `422` `UnprocessableEntity` Unprocessable Content
3633
3651
  */
3634
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3652
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3635
3653
  /**
3636
3654
  * No description
3637
3655
  *
@@ -3656,7 +3674,7 @@ export class Api extends HttpClient {
3656
3674
  * @response `404` `Error` Not Found
3657
3675
  * @response `422` `UnprocessableEntity` Unprocessable Content
3658
3676
  */
3659
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3677
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3660
3678
  /**
3661
3679
  * No description
3662
3680
  *
@@ -3682,7 +3700,7 @@ export class Api extends HttpClient {
3682
3700
  * @response `404` `ProblemDetails` Not Found
3683
3701
  * @response `422` `ProblemDetails` Unprocessable Content
3684
3702
  */
3685
- seedMobileAppReview: (data, params = {}) => this.request(Object.assign({ path: `/api/mobile-app-review/seed`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3703
+ seedMobileAppReview: (data, params = {}) => this.request(Object.assign({ path: `/api/mobile-app-review/seed`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3686
3704
  /**
3687
3705
  * No description
3688
3706
  *
@@ -3694,7 +3712,7 @@ export class Api extends HttpClient {
3694
3712
  * @response `200` `MonthlyPaymentCalculator` OK
3695
3713
  * @response `422` `ProblemDetails` Unprocessable Content
3696
3714
  */
3697
- calculateMortgageMonthlyPayment: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/monthly-payment`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3715
+ calculateMortgageMonthlyPayment: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/monthly-payment`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3698
3716
  /**
3699
3717
  * No description
3700
3718
  *
@@ -3706,7 +3724,7 @@ export class Api extends HttpClient {
3706
3724
  * @response `200` `AffordabilityCalculator` OK
3707
3725
  * @response `422` `ProblemDetails` Unprocessable Content
3708
3726
  */
3709
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3727
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3710
3728
  /**
3711
3729
  * No description
3712
3730
  *
@@ -3718,7 +3736,7 @@ export class Api extends HttpClient {
3718
3736
  * @response `200` `LoanComparisonCalculator` OK
3719
3737
  * @response `422` `ProblemDetails` Unprocessable Content
3720
3738
  */
3721
- calculateMortgageLoanComparison: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/loan-comparison`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3739
+ calculateMortgageLoanComparison: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/loan-comparison`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3722
3740
  /**
3723
3741
  * No description
3724
3742
  *
@@ -3730,7 +3748,7 @@ export class Api extends HttpClient {
3730
3748
  * @response `200` `RefinanceCalculator` OK
3731
3749
  * @response `422` `ProblemDetails` Unprocessable Content
3732
3750
  */
3733
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3751
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3734
3752
  /**
3735
3753
  * No description
3736
3754
  *
@@ -3753,7 +3771,7 @@ export class Api extends HttpClient {
3753
3771
  * @response `201` `NotificationTemplate` Created
3754
3772
  * @response `422` `UnprocessableEntity` Unprocessable Content
3755
3773
  */
3756
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3774
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3757
3775
  /**
3758
3776
  * No description
3759
3777
  *
@@ -3764,7 +3782,7 @@ export class Api extends HttpClient {
3764
3782
  * @secure
3765
3783
  * @response `200` `NotificationTemplateBasePaginated` OK
3766
3784
  */
3767
- searchNotificationTemplates: (data, query, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3785
+ searchNotificationTemplates: (data, query, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3768
3786
  /**
3769
3787
  * No description
3770
3788
  *
@@ -3787,7 +3805,7 @@ export class Api extends HttpClient {
3787
3805
  * @response `200` `NotificationTemplate` OK
3788
3806
  * @response `422` `UnprocessableEntity` Unprocessable Content
3789
3807
  */
3790
- replaceNotificationTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3808
+ replaceNotificationTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3791
3809
  /**
3792
3810
  * No description
3793
3811
  *
@@ -3831,7 +3849,7 @@ export class Api extends HttpClient {
3831
3849
  * @secure
3832
3850
  * @response `200` `NotificationTemplateVersion` OK
3833
3851
  */
3834
- createNotificationTemplateVersion: (notificationId, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3852
+ createNotificationTemplateVersion: (notificationId, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3835
3853
  /**
3836
3854
  * No description
3837
3855
  *
@@ -3853,7 +3871,7 @@ export class Api extends HttpClient {
3853
3871
  * @secure
3854
3872
  * @response `200` `NotificationTemplateVersion` OK
3855
3873
  */
3856
- replaceNotificationTemplateVersion: (notificationId, id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3874
+ replaceNotificationTemplateVersion: (notificationId, id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3857
3875
  /**
3858
3876
  * No description
3859
3877
  *
@@ -3886,7 +3904,7 @@ export class Api extends HttpClient {
3886
3904
  * @secure
3887
3905
  * @response `200` `BranchUserPaginated` OK
3888
3906
  */
3889
- searchPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3907
+ searchPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3890
3908
  /**
3891
3909
  * No description
3892
3910
  *
@@ -3909,7 +3927,7 @@ export class Api extends HttpClient {
3909
3927
  * @response `200` `SiteConfiguration` OK
3910
3928
  * @response `422` `UnprocessableEntity` Unprocessable Content
3911
3929
  */
3912
- createPartnerSiteConfiguration: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3930
+ createPartnerSiteConfiguration: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3913
3931
  /**
3914
3932
  * No description
3915
3933
  *
@@ -3932,7 +3950,7 @@ export class Api extends HttpClient {
3932
3950
  * @response `200` `SiteConfiguration` OK
3933
3951
  * @response `422` `UnprocessableEntity` Unprocessable Content
3934
3952
  */
3935
- replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3953
+ replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3936
3954
  /**
3937
3955
  * No description
3938
3956
  *
@@ -3956,7 +3974,7 @@ export class Api extends HttpClient {
3956
3974
  * @response `200` `SiteConfigurationByUrl` OK
3957
3975
  * @response `422` `UnprocessableEntity` Unprocessable Content
3958
3976
  */
3959
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3977
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3960
3978
  /**
3961
3979
  * No description
3962
3980
  *
@@ -3981,7 +3999,7 @@ export class Api extends HttpClient {
3981
3999
  * @response `200` `SiteConfiguration` OK
3982
4000
  * @response `422` `UnprocessableEntity` Unprocessable Content
3983
4001
  */
3984
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4002
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3985
4003
  /**
3986
4004
  * No description
3987
4005
  *
@@ -4005,7 +4023,7 @@ export class Api extends HttpClient {
4005
4023
  * @response `200` `SiteConfigurationSummaryPaginated` OK
4006
4024
  * @response `422` `UnprocessableEntity` Unprocessable Content
4007
4025
  */
4008
- searchSiteConfigurations: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4026
+ searchSiteConfigurations: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4009
4027
  /**
4010
4028
  * No description
4011
4029
  *
@@ -4097,7 +4115,7 @@ export class Api extends HttpClient {
4097
4115
  * @secure
4098
4116
  * @response `200` `GetForm` OK
4099
4117
  */
4100
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4118
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4101
4119
  /**
4102
4120
  * No description
4103
4121
  *
@@ -4120,7 +4138,7 @@ export class Api extends HttpClient {
4120
4138
  * @response `200` `(SocialSurveyRecord)[]` OK
4121
4139
  * @response `422` `UnprocessableEntity` Unprocessable Content
4122
4140
  */
4123
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4141
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4124
4142
  /**
4125
4143
  * No description
4126
4144
  *
@@ -4143,7 +4161,7 @@ export class Api extends HttpClient {
4143
4161
  * @secure
4144
4162
  * @response `201` `Task` Created
4145
4163
  */
4146
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4164
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4147
4165
  /**
4148
4166
  * No description
4149
4167
  *
@@ -4167,7 +4185,7 @@ export class Api extends HttpClient {
4167
4185
  * @response `200` `Task` OK
4168
4186
  * @response `404` `ProblemDetails` Not Found
4169
4187
  */
4170
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4188
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4171
4189
  /**
4172
4190
  * No description
4173
4191
  *
@@ -4190,7 +4208,7 @@ export class Api extends HttpClient {
4190
4208
  * @secure
4191
4209
  * @response `200` `TaskPaginated` OK
4192
4210
  */
4193
- searchTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/tasks/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4211
+ searchTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/tasks/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4194
4212
  /**
4195
4213
  * No description
4196
4214
  *
@@ -4200,7 +4218,7 @@ export class Api extends HttpClient {
4200
4218
  * @secure
4201
4219
  * @response `200` `void` OK
4202
4220
  */
4203
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4221
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4204
4222
  /**
4205
4223
  * No description
4206
4224
  *
@@ -4211,7 +4229,7 @@ export class Api extends HttpClient {
4211
4229
  * @secure
4212
4230
  * @response `200` `EncompassRequestLogPaginated` OK
4213
4231
  */
4214
- searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4232
+ searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4215
4233
  /**
4216
4234
  * No description
4217
4235
  *
@@ -4234,7 +4252,7 @@ export class Api extends HttpClient {
4234
4252
  * @secure
4235
4253
  * @response `201` `LosCredentials` Created
4236
4254
  */
4237
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4255
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4238
4256
  /**
4239
4257
  * No description
4240
4258
  *
@@ -4245,7 +4263,7 @@ export class Api extends HttpClient {
4245
4263
  * @secure
4246
4264
  * @response `200` `EncompassCredentialsDetail` OK
4247
4265
  */
4248
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4266
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4249
4267
  /**
4250
4268
  * No description
4251
4269
  *
@@ -4267,7 +4285,7 @@ export class Api extends HttpClient {
4267
4285
  * @secure
4268
4286
  * @response `201` `LosWebhook` Created
4269
4287
  */
4270
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4288
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4271
4289
  /**
4272
4290
  * No description
4273
4291
  *
@@ -4289,7 +4307,7 @@ export class Api extends HttpClient {
4289
4307
  * @secure
4290
4308
  * @response `200` `LosSyncPaginated` OK
4291
4309
  */
4292
- searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4310
+ searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4293
4311
  /**
4294
4312
  * No description
4295
4313
  *
@@ -4372,7 +4390,7 @@ export class Api extends HttpClient {
4372
4390
  * @response `201` `UserDevice` Created
4373
4391
  * @response `400` `ProblemDetails` Bad Request
4374
4392
  */
4375
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4393
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4376
4394
  /**
4377
4395
  * No description
4378
4396
  *
@@ -4417,7 +4435,7 @@ export class Api extends HttpClient {
4417
4435
  * @secure
4418
4436
  * @response `200` `UserDraft` OK
4419
4437
  */
4420
- addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4438
+ addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4421
4439
  /**
4422
4440
  * No description
4423
4441
  *
@@ -4450,7 +4468,7 @@ export class Api extends HttpClient {
4450
4468
  * @secure
4451
4469
  * @response `200` `UserGroupAccessScope` OK
4452
4470
  */
4453
- createUserGroupAccessScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4471
+ createUserGroupAccessScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4454
4472
  /**
4455
4473
  * No description
4456
4474
  *
@@ -4483,7 +4501,7 @@ export class Api extends HttpClient {
4483
4501
  * @secure
4484
4502
  * @response `200` `UserGroupMember` OK
4485
4503
  */
4486
- createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4504
+ createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4487
4505
  /**
4488
4506
  * No description
4489
4507
  *
@@ -4527,7 +4545,7 @@ export class Api extends HttpClient {
4527
4545
  * @secure
4528
4546
  * @response `200` `UserGroup` OK
4529
4547
  */
4530
- updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4548
+ updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4531
4549
  /**
4532
4550
  * No description
4533
4551
  *
@@ -4549,7 +4567,7 @@ export class Api extends HttpClient {
4549
4567
  * @secure
4550
4568
  * @response `201` `UserGroup` Created
4551
4569
  */
4552
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4570
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4553
4571
  /**
4554
4572
  * No description
4555
4573
  *
@@ -4562,7 +4580,7 @@ export class Api extends HttpClient {
4562
4580
  * @response `404` `Error` Not Found
4563
4581
  * @response `422` `UnprocessableEntity` Unprocessable Content
4564
4582
  */
4565
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4583
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4566
4584
  /**
4567
4585
  * No description
4568
4586
  *
@@ -4575,7 +4593,7 @@ export class Api extends HttpClient {
4575
4593
  * @response `404` `Error` Not Found
4576
4594
  * @response `422` `UnprocessableEntity` Unprocessable Content
4577
4595
  */
4578
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4596
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4579
4597
  /**
4580
4598
  * No description
4581
4599
  *
@@ -4625,7 +4643,7 @@ export class Api extends HttpClient {
4625
4643
  * @response `404` `Error` Not Found
4626
4644
  * @response `422` `UnprocessableEntity` Unprocessable Content
4627
4645
  */
4628
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4646
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4629
4647
  /**
4630
4648
  * No description
4631
4649
  *
@@ -4649,7 +4667,7 @@ export class Api extends HttpClient {
4649
4667
  * @response `204` `void` No Content
4650
4668
  * @response `422` `UnprocessableEntity` Unprocessable Content
4651
4669
  */
4652
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4670
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4653
4671
  /**
4654
4672
  * No description
4655
4673
  *
@@ -4696,7 +4714,7 @@ export class Api extends HttpClient {
4696
4714
  * @secure
4697
4715
  * @response `204` `void` No Content
4698
4716
  */
4699
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4717
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4700
4718
  /**
4701
4719
  * No description
4702
4720
  *
@@ -4741,7 +4759,7 @@ export class Api extends HttpClient {
4741
4759
  * @response `200` `DetailedUser` OK
4742
4760
  * @response `422` `UnprocessableEntity` Unprocessable Content
4743
4761
  */
4744
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4762
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4745
4763
  /**
4746
4764
  * No description
4747
4765
  *
@@ -4752,7 +4770,7 @@ export class Api extends HttpClient {
4752
4770
  * @secure
4753
4771
  * @response `200` `UserPaginated` OK
4754
4772
  */
4755
- searchUsers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4773
+ searchUsers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4756
4774
  /**
4757
4775
  * No description
4758
4776
  *
@@ -4763,7 +4781,7 @@ export class Api extends HttpClient {
4763
4781
  * @secure
4764
4782
  * @response `200` `AdminAccessUser` OK
4765
4783
  */
4766
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4784
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4767
4785
  /**
4768
4786
  * No description
4769
4787
  *
@@ -4775,7 +4793,7 @@ export class Api extends HttpClient {
4775
4793
  * @response `200` `User` OK
4776
4794
  * @response `422` `UnprocessableEntity` Unprocessable Content
4777
4795
  */
4778
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4796
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4779
4797
  /**
4780
4798
  * No description
4781
4799
  *
@@ -4787,7 +4805,7 @@ export class Api extends HttpClient {
4787
4805
  * @response `200` `DetailedUser` OK
4788
4806
  * @response `422` `UnprocessableEntity` Unprocessable Content
4789
4807
  */
4790
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4808
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4791
4809
  /**
4792
4810
  * No description
4793
4811
  *
@@ -4821,7 +4839,7 @@ export class Api extends HttpClient {
4821
4839
  * @response `204` `void` No Content
4822
4840
  * @response `422` `UnprocessableEntity` Unprocessable Content
4823
4841
  */
4824
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4842
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4825
4843
  /**
4826
4844
  * No description
4827
4845
  *
@@ -4833,7 +4851,7 @@ export class Api extends HttpClient {
4833
4851
  * @response `204` `void` No Content
4834
4852
  * @response `422` `UnprocessableEntity` Unprocessable Content
4835
4853
  */
4836
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4854
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4837
4855
  /**
4838
4856
  * No description
4839
4857
  *
@@ -4845,7 +4863,7 @@ export class Api extends HttpClient {
4845
4863
  * @response `204` `void` No Content
4846
4864
  * @response `422` `UnprocessableEntity` Unprocessable Content
4847
4865
  */
4848
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4866
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4849
4867
  /**
4850
4868
  * No description
4851
4869
  *
@@ -4857,7 +4875,7 @@ export class Api extends HttpClient {
4857
4875
  * @response `204` `void` No Content
4858
4876
  * @response `422` `UnprocessableEntity` Unprocessable Content
4859
4877
  */
4860
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4878
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4861
4879
  /**
4862
4880
  * No description
4863
4881
  *
@@ -4881,7 +4899,7 @@ export class Api extends HttpClient {
4881
4899
  * @response `204` `void` No Content
4882
4900
  * @response `422` `UnprocessableEntity` Unprocessable Content
4883
4901
  */
4884
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4902
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4885
4903
  /**
4886
4904
  * No description
4887
4905
  *
@@ -4904,7 +4922,7 @@ export class Api extends HttpClient {
4904
4922
  * @secure
4905
4923
  * @response `200` `DetailedUser` OK
4906
4924
  */
4907
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4925
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4908
4926
  /**
4909
4927
  * @description Update the phone number If changed will send a verification code to the new number
4910
4928
  *
@@ -4915,7 +4933,7 @@ export class Api extends HttpClient {
4915
4933
  * @secure
4916
4934
  * @response `204` `DetailedUser` No Content
4917
4935
  */
4918
- updateMyPhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/phone-number`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4936
+ updateMyPhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/phone-number`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4919
4937
  /**
4920
4938
  * No description
4921
4939
  *
@@ -4959,7 +4977,7 @@ export class Api extends HttpClient {
4959
4977
  * @secure
4960
4978
  * @response `204` `void` No Content
4961
4979
  */
4962
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4980
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4963
4981
  /**
4964
4982
  * No description
4965
4983
  *
@@ -4970,7 +4988,7 @@ export class Api extends HttpClient {
4970
4988
  * @secure
4971
4989
  * @response `200` `GetForm` OK
4972
4990
  */
4973
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4991
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4974
4992
  };
4975
4993
  this.sso = {
4976
4994
  /**