@matech/thebigpos-sdk 2.45.1-rc8 → 2.46.4-rc1

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") {
@@ -95,7 +104,7 @@ export class HttpClient {
95
104
  }
96
105
  /**
97
106
  * @title The Big POS API
98
- * @version v2.45.0
107
+ * @version v2.46.4
99
108
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
109
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
110
  */
@@ -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,289 +263,322 @@ 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 AiAccountSettings
262
- * @name GetAiAccountSettings
263
- * @summary Get account AI settings
264
- * @request GET:/api/ai/admin/account-settings
265
- * @secure
266
- * @response `200` `AiAccountSettings` OK
267
- */
268
- getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "GET", secure: true, format: "json" }, params)),
269
- /**
270
- * No description
271
- *
272
- * @tags AiAccountSettings
273
- * @name UpdateAiAccountSettings
274
- * @summary Update account AI settings
275
- * @request PUT:/api/ai/admin/account-settings
276
- * @secure
277
- * @response `200` `AiAccountSettings` OK
278
- * @response `400` `ProblemDetails` Bad Request
279
- */
280
- updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
281
- /**
282
- * No description
283
- *
284
- * @tags AiAdmin
285
- * @name GetAiAuditLogs
286
- * @summary Get paginated audit logs
287
- * @request GET:/api/ai/admin/audit-logs
270
+ * @tags AiAccess
271
+ * @name GetAiAccess
272
+ * @summary Get whether AI is enabled for the current user's account
273
+ * @request GET:/api/ai/access
288
274
  * @secure
289
- * @response `200` `AiAuditLogPaginated` OK
275
+ * @response `200` `AiEnabled` OK
290
276
  */
291
- getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
277
+ getAiAccess: (params = {}) => this.request(Object.assign({ path: `/api/ai/access`, method: "GET", secure: true, format: "json" }, params)),
292
278
  /**
293
279
  * No description
294
280
  *
295
- * @tags AiAdmin
296
- * @name GetAiRequestLifecycle
297
- * @summary Get the full event lifecycle of a single AI request
298
- * @request GET:/api/ai/admin/audit-logs/request/{requestId}
281
+ * @tags AiAccount
282
+ * @name GetAccountAiEnabled
283
+ * @summary Get whether AI is enabled for an account (SuperAdmin only)
284
+ * @request GET:/api/ai/accounts/{accountId}/ai-enabled
299
285
  * @secure
300
- * @response `200` `(AiAuditLog)[]` OK
286
+ * @response `200` `AiEnabled` OK
301
287
  */
302
- getAiRequestLifecycle: (requestId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs/request/${requestId}`, method: "GET", secure: true, format: "json" }, params)),
288
+ getAccountAiEnabled: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "GET", secure: true, format: "json" }, params)),
303
289
  /**
304
290
  * No description
305
291
  *
306
- * @tags AiAdmin
307
- * @name GetAiAuditConversations
308
- * @summary List conversations with their audit roll-up origin user, turns, status, tokens
309
- * @request GET:/api/ai/admin/audit-conversations
292
+ * @tags AiAccount
293
+ * @name SetAccountAiEnabled
294
+ * @summary Enable or disable AI for an account (SuperAdmin only)
295
+ * @request PUT:/api/ai/accounts/{accountId}/ai-enabled
310
296
  * @secure
311
- * @response `200` `AiConversationAuditSummaryPaginated` OK
297
+ * @response `204` `void` No Content
312
298
  */
313
- getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
299
+ setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
314
300
  /**
315
301
  * No description
316
302
  *
317
- * @tags AiAdmin
318
- * @name GetAiAdminStats
319
- * @summary Get AI admin dashboard stats
320
- * @request GET:/api/ai/admin/stats
303
+ * @tags AiAccountSettings
304
+ * @name GetAiAccountSettings
305
+ * @summary Get account AI settings
306
+ * @request GET:/api/ai/account-settings
321
307
  * @secure
322
- * @response `200` `AiAdminStats` OK
308
+ * @response `200` `AiAccountSettings` OK
323
309
  */
324
- getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
310
+ getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "GET", secure: true, format: "json" }, params)),
325
311
  /**
326
312
  * No description
327
313
  *
328
- * @tags AiAdmin
329
- * @name GetAiConfigChanges
330
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
331
- * @request GET:/api/ai/admin/config-changes
314
+ * @tags AiAccountSettings
315
+ * @name UpdateAiAccountSettings
316
+ * @summary Update account AI settings
317
+ * @request PUT:/api/ai/account-settings
332
318
  * @secure
333
- * @response `200` `AiConfigChangeLogPaginated` OK
319
+ * @response `200` `AiAccountSettings` OK
320
+ * @response `400` `ProblemDetails` Bad Request
334
321
  */
335
- getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
322
+ updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
336
323
  /**
337
324
  * No description
338
325
  *
339
326
  * @tags AiAdminPrompt
340
327
  * @name GetAiPrompts
341
328
  * @summary Get all prompts
342
- * @request GET:/api/ai/admin/prompts
329
+ * @request GET:/api/ai/prompts
343
330
  * @secure
344
331
  * @response `200` `(AiPrompt)[]` OK
345
332
  */
346
- getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
333
+ getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", secure: true, format: "json" }, params)),
347
334
  /**
348
335
  * No description
349
336
  *
350
337
  * @tags AiAdminPrompt
351
338
  * @name CreateAiPrompt
352
339
  * @summary Create custom prompt
353
- * @request POST:/api/ai/admin/prompts
340
+ * @request POST:/api/ai/prompts
354
341
  * @secure
355
342
  * @response `201` `AiPrompt` Created
356
343
  * @response `400` `ProblemDetails` Bad Request
357
344
  */
358
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
345
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
359
346
  /**
360
347
  * No description
361
348
  *
362
349
  * @tags AiAdminPrompt
363
350
  * @name GetAiPrompt
364
351
  * @summary Get prompt by ID
365
- * @request GET:/api/ai/admin/prompts/{id}
352
+ * @request GET:/api/ai/prompts/{id}
366
353
  * @secure
367
354
  * @response `200` `AiPrompt` OK
368
355
  * @response `404` `ProblemDetails` Not Found
369
356
  */
370
- getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
357
+ getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
371
358
  /**
372
359
  * No description
373
360
  *
374
361
  * @tags AiAdminPrompt
375
362
  * @name UpdateAiPrompt
376
363
  * @summary Update prompt
377
- * @request PUT:/api/ai/admin/prompts/{id}
364
+ * @request PUT:/api/ai/prompts/{id}
378
365
  * @secure
379
366
  * @response `200` `AiPrompt` OK
380
367
  * @response `400` `ProblemDetails` Bad Request
381
368
  * @response `404` `ProblemDetails` Not Found
382
369
  */
383
- updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
370
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
384
371
  /**
385
372
  * No description
386
373
  *
387
374
  * @tags AiAdminPrompt
388
375
  * @name DeleteAiPrompt
389
376
  * @summary Delete prompt
390
- * @request DELETE:/api/ai/admin/prompts/{id}
377
+ * @request DELETE:/api/ai/prompts/{id}
391
378
  * @secure
392
379
  * @response `204` `void` No Content
393
380
  * @response `400` `ProblemDetails` Bad Request
394
381
  * @response `404` `ProblemDetails` Not Found
395
382
  */
396
- deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
383
+ deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "DELETE", secure: true }, params)),
397
384
  /**
398
385
  * No description
399
386
  *
400
387
  * @tags AiAdminPrompt
401
388
  * @name ToggleAiPrompt
402
389
  * @summary Toggle prompt active/inactive
403
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
390
+ * @request PATCH:/api/ai/prompts/{id}/toggle
404
391
  * @secure
405
392
  * @response `200` `AiPrompt` OK
406
393
  * @response `404` `ProblemDetails` Not Found
407
394
  */
408
- toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
395
+ toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
409
396
  /**
410
397
  * No description
411
398
  *
412
399
  * @tags AiAdminPrompt
413
400
  * @name GenerateAiSystemPrompt
414
401
  * @summary Generate a system prompt from description
415
- * @request POST:/api/ai/admin/prompts/generate
402
+ * @request POST:/api/ai/prompts/generate
416
403
  * @secure
417
404
  * @response `200` `GenerateSystemPrompt` OK
418
405
  * @response `400` `ProblemDetails` Bad Request
419
406
  */
420
- generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
407
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
421
408
  /**
422
409
  * No description
423
410
  *
424
411
  * @tags AiAdminPrompt
425
- * @name GetSupportedModels
412
+ * @name GetAiSupportedModels
426
413
  * @summary Get supported LLM models
427
- * @request GET:/api/ai/admin/prompts/supported-models
414
+ * @request GET:/api/ai/prompts/supported-models
428
415
  * @secure
429
416
  * @response `200` `(SupportedModel)[]` OK
430
417
  */
431
- getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
418
+ getAiSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
432
419
  /**
433
420
  * No description
434
421
  *
435
422
  * @tags AiAdminSettings
436
423
  * @name GetAiAdminSettings
437
424
  * @summary Get global AI settings
438
- * @request GET:/api/ai/admin/settings
425
+ * @request GET:/api/ai/settings
439
426
  * @secure
440
427
  * @response `200` `AiAdminSettings` OK
441
428
  */
442
- getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
429
+ getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "GET", secure: true, format: "json" }, params)),
443
430
  /**
444
431
  * No description
445
432
  *
446
433
  * @tags AiAdminSettings
447
434
  * @name UpdateAiAdminSettings
448
435
  * @summary Update global AI settings
449
- * @request PUT:/api/ai/admin/settings
436
+ * @request PUT:/api/ai/settings
450
437
  * @secure
451
438
  * @response `200` `AiAdminSettings` OK
452
439
  * @response `400` `ProblemDetails` Bad Request
453
440
  */
454
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
441
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
442
+ /**
443
+ * No description
444
+ *
445
+ * @tags AiAudit
446
+ * @name GetAiAuditLogs
447
+ * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
448
+ * @request GET:/api/ai/audit-logs
449
+ * @secure
450
+ * @response `200` `AiAuditLogPaginated` OK
451
+ */
452
+ getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
453
+ /**
454
+ * No description
455
+ *
456
+ * @tags AiAudit
457
+ * @name GetAiRequestLifecycle
458
+ * @summary Get the full event lifecycle of a single AI request
459
+ * @request GET:/api/ai/audit-logs/request/{requestId}
460
+ * @secure
461
+ * @response `200` `(AiAuditLog)[]` OK
462
+ */
463
+ getAiRequestLifecycle: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
464
+ /**
465
+ * No description
466
+ *
467
+ * @tags AiAudit
468
+ * @name GetAiAuditConversations
469
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
470
+ * @request GET:/api/ai/audit-conversations
471
+ * @secure
472
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
473
+ */
474
+ getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
475
+ /**
476
+ * No description
477
+ *
478
+ * @tags AiAudit
479
+ * @name GetAiStats
480
+ * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
481
+ * @request GET:/api/ai/stats
482
+ * @secure
483
+ * @response `200` `AiAdminStats` OK
484
+ */
485
+ getAiStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
486
+ /**
487
+ * No description
488
+ *
489
+ * @tags AiAudit
490
+ * @name GetAiConfigChanges
491
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
492
+ * @request GET:/api/ai/config-changes
493
+ * @secure
494
+ * @response `200` `AuditLogEntryPaginated` OK
495
+ */
496
+ getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
455
497
  /**
456
498
  * No description
457
499
  *
458
500
  * @tags AiCanonicalField
459
501
  * @name GetAiCanonicalFields
460
502
  * @summary Get all canonical fields
461
- * @request GET:/api/ai/admin/fields
503
+ * @request GET:/api/ai/canonical-fields
462
504
  * @secure
463
505
  * @response `200` `(AiCanonicalField)[]` OK
464
506
  */
465
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
507
+ getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "GET", secure: true, format: "json" }, params)),
466
508
  /**
467
509
  * No description
468
510
  *
469
511
  * @tags AiCanonicalField
470
512
  * @name CreateAiCanonicalField
471
513
  * @summary Create canonical field
472
- * @request POST:/api/ai/admin/fields
514
+ * @request POST:/api/ai/canonical-fields
473
515
  * @secure
474
516
  * @response `201` `AiCanonicalField` Created
475
517
  * @response `400` `ProblemDetails` Bad Request
476
518
  */
477
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
519
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
478
520
  /**
479
521
  * No description
480
522
  *
481
523
  * @tags AiCanonicalField
482
524
  * @name GetAiCanonicalField
483
525
  * @summary Get canonical field by ID
484
- * @request GET:/api/ai/admin/fields/{id}
526
+ * @request GET:/api/ai/canonical-fields/{id}
485
527
  * @secure
486
528
  * @response `200` `AiCanonicalField` OK
487
529
  * @response `404` `ProblemDetails` Not Found
488
530
  */
489
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
531
+ getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
490
532
  /**
491
533
  * No description
492
534
  *
493
535
  * @tags AiCanonicalField
494
536
  * @name UpdateAiCanonicalField
495
537
  * @summary Update canonical field
496
- * @request PUT:/api/ai/admin/fields/{id}
538
+ * @request PUT:/api/ai/canonical-fields/{id}
497
539
  * @secure
498
540
  * @response `200` `AiCanonicalField` OK
499
541
  * @response `400` `ProblemDetails` Bad Request
500
542
  * @response `404` `ProblemDetails` Not Found
501
543
  */
502
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
544
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
503
545
  /**
504
546
  * No description
505
547
  *
506
548
  * @tags AiCanonicalField
507
549
  * @name DeleteAiCanonicalField
508
550
  * @summary Delete canonical field
509
- * @request DELETE:/api/ai/admin/fields/{id}
551
+ * @request DELETE:/api/ai/canonical-fields/{id}
510
552
  * @secure
511
553
  * @response `204` `void` No Content
512
554
  * @response `404` `ProblemDetails` Not Found
513
555
  */
514
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
556
+ deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "DELETE", secure: true }, params)),
515
557
  /**
516
558
  * No description
517
559
  *
518
560
  * @tags AiCanonicalField
519
561
  * @name ToggleAiCanonicalField
520
562
  * @summary Toggle canonical field active/inactive
521
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
563
+ * @request PATCH:/api/ai/canonical-fields/{id}/toggle
522
564
  * @secure
523
565
  * @response `200` `AiCanonicalField` OK
524
566
  * @response `404` `ProblemDetails` Not Found
525
567
  */
526
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
568
+ toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
527
569
  /**
528
570
  * No description
529
571
  *
530
572
  * @tags AiChat
531
573
  * @name AiChat
532
574
  * @summary Send AI chat message
533
- * @request POST:/api/ai/chat
575
+ * @request POST:/api/ai/chats
534
576
  * @secure
535
577
  * @response `200` `AiChat` OK
536
578
  * @response `400` `ProblemDetails` Bad Request
537
579
  * @response `401` `ProblemDetails` Unauthorized
538
580
  */
539
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
581
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
540
582
  /**
541
583
  * No description
542
584
  *
@@ -574,7 +616,7 @@ export class Api extends HttpClient {
574
616
  * @response `403` `ProblemDetails` Forbidden
575
617
  * @response `404` `ProblemDetails` Not Found
576
618
  */
577
- 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)),
619
+ 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)),
578
620
  /**
579
621
  * No description
580
622
  *
@@ -626,289 +668,245 @@ export class Api extends HttpClient {
626
668
  * @response `403` `ProblemDetails` Forbidden
627
669
  * @response `404` `ProblemDetails` Not Found
628
670
  */
629
- 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)),
671
+ 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)),
630
672
  /**
631
673
  * No description
632
674
  *
633
675
  * @tags AiConversationAdmin
634
676
  * @name GetAiAccountConversations
635
677
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
636
- * @request GET:/api/ai/admin/conversations
678
+ * @request GET:/api/ai/conversations/all
637
679
  * @secure
638
680
  * @response `200` `AiConversationListItemPaginated` OK
639
681
  */
640
- getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
682
+ getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all`, method: "GET", query: query, secure: true, format: "json" }, params)),
641
683
  /**
642
684
  * No description
643
685
  *
644
686
  * @tags AiConversationAdmin
645
687
  * @name GetAiAccountConversation
646
688
  * @summary Get an account conversation's detail (admin supervision)
647
- * @request GET:/api/ai/admin/conversations/{id}
689
+ * @request GET:/api/ai/conversations/all/{id}
648
690
  * @secure
649
691
  * @response `200` `AiConversationDetail` OK
650
692
  * @response `404` `ProblemDetails` Not Found
651
693
  */
652
- getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
694
+ getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}`, method: "GET", secure: true, format: "json" }, params)),
653
695
  /**
654
696
  * No description
655
697
  *
656
698
  * @tags AiConversationAdmin
657
699
  * @name GetAiAccountConversationMessages
658
700
  * @summary Get an account conversation's messages (admin supervision)
659
- * @request GET:/api/ai/admin/conversations/{id}/messages
701
+ * @request GET:/api/ai/conversations/all/{id}/messages
660
702
  * @secure
661
703
  * @response `200` `AiChatMessagePaginated` OK
662
704
  * @response `404` `ProblemDetails` Not Found
663
705
  */
664
- getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
706
+ getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
665
707
  /**
666
708
  * No description
667
709
  *
668
710
  * @tags AiGuardrail
669
711
  * @name GetAiGuardrails
670
712
  * @summary Get all guardrails
671
- * @request GET:/api/ai/admin/guardrails
713
+ * @request GET:/api/ai/guardrails
672
714
  * @secure
673
715
  * @response `200` `(AiGuardrail)[]` OK
674
716
  */
675
- getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
717
+ getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "GET", secure: true, format: "json" }, params)),
676
718
  /**
677
719
  * No description
678
720
  *
679
721
  * @tags AiGuardrail
680
722
  * @name CreateAiGuardrail
681
723
  * @summary Create custom guardrail
682
- * @request POST:/api/ai/admin/guardrails
724
+ * @request POST:/api/ai/guardrails
683
725
  * @secure
684
726
  * @response `201` `AiGuardrail` Created
685
727
  * @response `400` `ProblemDetails` Bad Request
686
728
  */
687
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
729
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
688
730
  /**
689
731
  * No description
690
732
  *
691
733
  * @tags AiGuardrail
692
734
  * @name GetAiGuardrail
693
735
  * @summary Get guardrail by ID
694
- * @request GET:/api/ai/admin/guardrails/{id}
736
+ * @request GET:/api/ai/guardrails/{id}
695
737
  * @secure
696
738
  * @response `200` `AiGuardrail` OK
697
739
  * @response `404` `ProblemDetails` Not Found
698
740
  */
699
- getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
741
+ getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
700
742
  /**
701
743
  * No description
702
744
  *
703
745
  * @tags AiGuardrail
704
746
  * @name UpdateAiGuardrail
705
747
  * @summary Update guardrail
706
- * @request PUT:/api/ai/admin/guardrails/{id}
748
+ * @request PUT:/api/ai/guardrails/{id}
707
749
  * @secure
708
750
  * @response `200` `AiGuardrail` OK
709
751
  * @response `400` `ProblemDetails` Bad Request
710
752
  * @response `404` `ProblemDetails` Not Found
711
753
  */
712
- updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
754
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
713
755
  /**
714
756
  * No description
715
757
  *
716
758
  * @tags AiGuardrail
717
759
  * @name DeleteAiGuardrail
718
760
  * @summary Delete guardrail
719
- * @request DELETE:/api/ai/admin/guardrails/{id}
761
+ * @request DELETE:/api/ai/guardrails/{id}
720
762
  * @secure
721
763
  * @response `204` `void` No Content
722
764
  * @response `400` `ProblemDetails` Bad Request
723
765
  * @response `404` `ProblemDetails` Not Found
724
766
  */
725
- deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
767
+ deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "DELETE", secure: true }, params)),
726
768
  /**
727
769
  * No description
728
770
  *
729
771
  * @tags AiGuardrail
730
772
  * @name ToggleAiGuardrail
731
773
  * @summary Toggle guardrail enabled/disabled
732
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
774
+ * @request PATCH:/api/ai/guardrails/{id}/toggle
733
775
  * @secure
734
776
  * @response `200` `AiGuardrail` OK
735
777
  * @response `404` `ProblemDetails` Not Found
736
778
  */
737
- toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
779
+ toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
738
780
  /**
739
781
  * No description
740
782
  *
741
783
  * @tags AiPrompt
742
- * @name GetAvailablePrompts
784
+ * @name GetAiAvailablePrompts
743
785
  * @summary Get available prompts for current user
744
- * @request GET:/api/ai/prompts
786
+ * @request GET:/api/ai/prompts/available
745
787
  * @secure
746
788
  * @response `200` `(AiPromptSummary)[]` OK
747
789
  */
748
- getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
749
- /**
750
- * No description
751
- *
752
- * @tags AiSuperAdmin
753
- * @name GetAiAuditLogsCrossAccount
754
- * @summary Get AI audit logs for a specific account or across all accounts
755
- * @request GET:/api/ai/superadmin/audit-logs
756
- * @secure
757
- * @response `200` `AiAuditLogPaginated` OK
758
- */
759
- getAiAuditLogsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
760
- /**
761
- * No description
762
- *
763
- * @tags AiSuperAdmin
764
- * @name GetAiRequestLifecycleCrossAccount
765
- * @summary Get the full event lifecycle of a single AI request from any account
766
- * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
767
- * @secure
768
- * @response `200` `(AiAuditLog)[]` OK
769
- */
770
- 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)),
771
- /**
772
- * No description
773
- *
774
- * @tags AiSuperAdmin
775
- * @name GetAiStatsCrossAccount
776
- * @summary Get AI stats for a specific account or platform-wide
777
- * @request GET:/api/ai/superadmin/stats
778
- * @secure
779
- * @response `200` `AiAdminStats` OK
780
- */
781
- getAiStatsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
782
- /**
783
- * No description
784
- *
785
- * @tags AiSuperAdmin
786
- * @name GetAiConfigChangesCrossAccount
787
- * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
788
- * @request GET:/api/ai/superadmin/config-changes
789
- * @secure
790
- * @response `200` `AiConfigChangeLogPaginated` OK
791
- */
792
- getAiConfigChangesCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
790
+ getAiAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/available`, method: "GET", query: query, secure: true, format: "json" }, params)),
793
791
  /**
794
792
  * No description
795
793
  *
796
794
  * @tags AiTokenUsageAdmin
797
795
  * @name SearchAiAccountTokenUsage
798
796
  * @summary Search accounts by current-month AI token usage and classification
799
- * @request POST:/api/ai/admin/token-usage/search
797
+ * @request POST:/api/ai/token-usage/search
800
798
  * @secure
801
799
  * @response `200` `AiAccountUsageOverviewPaginated` OK
802
800
  */
803
- searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
801
+ searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
804
802
  /**
805
803
  * No description
806
804
  *
807
805
  * @tags AiTokenUsageAdmin
808
806
  * @name GetAiAccountTokenUsage
809
807
  * @summary Get an account's current-month AI token usage
810
- * @request GET:/api/ai/admin/token-usage/{accountId}
808
+ * @request GET:/api/ai/token-usage/{accountId}
811
809
  * @secure
812
810
  * @response `200` `AiTokenBudgetStatus` OK
813
811
  */
814
- getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
812
+ getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
815
813
  /**
816
814
  * No description
817
815
  *
818
816
  * @tags AiTokenUsageAdmin
819
817
  * @name GetAiAccountTokenUsageHistory
820
818
  * @summary Get an account's monthly AI token usage history
821
- * @request GET:/api/ai/admin/token-usage/{accountId}/history
819
+ * @request GET:/api/ai/token-usage/{accountId}/history
822
820
  * @secure
823
821
  * @response `200` `AiTokenUsageWindowPaginated` OK
824
822
  */
825
- 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)),
823
+ getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
826
824
  /**
827
825
  * No description
828
826
  *
829
827
  * @tags AiTokenUsageAdmin
830
828
  * @name SetAiAccountTokenLimit
831
829
  * @summary Set or raise an account's monthly AI token limit
832
- * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
830
+ * @request PUT:/api/ai/token-usage/{accountId}/limit
833
831
  * @secure
834
832
  * @response `200` `AiTokenBudgetStatus` OK
835
833
  * @response `400` `ProblemDetails` Bad Request
836
834
  */
837
- setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
835
+ setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
838
836
  /**
839
837
  * No description
840
838
  *
841
839
  * @tags AiUrlSource
842
840
  * @name GetAiUrlSources
843
841
  * @summary Get all URL sources
844
- * @request GET:/api/ai/admin/url-sources
842
+ * @request GET:/api/ai/url-sources
845
843
  * @secure
846
844
  * @response `200` `(AiUrlSource)[]` OK
847
845
  */
848
- getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
846
+ getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "GET", secure: true, format: "json" }, params)),
849
847
  /**
850
848
  * No description
851
849
  *
852
850
  * @tags AiUrlSource
853
851
  * @name CreateAiUrlSource
854
852
  * @summary Create URL source
855
- * @request POST:/api/ai/admin/url-sources
853
+ * @request POST:/api/ai/url-sources
856
854
  * @secure
857
855
  * @response `201` `AiUrlSource` Created
858
856
  * @response `400` `ProblemDetails` Bad Request
859
857
  * @response `409` `ProblemDetails` Conflict
860
858
  */
861
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
859
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
862
860
  /**
863
861
  * No description
864
862
  *
865
863
  * @tags AiUrlSource
866
864
  * @name GetAiUrlSource
867
865
  * @summary Get URL source by ID
868
- * @request GET:/api/ai/admin/url-sources/{id}
866
+ * @request GET:/api/ai/url-sources/{id}
869
867
  * @secure
870
868
  * @response `200` `AiUrlSource` OK
871
869
  * @response `404` `ProblemDetails` Not Found
872
870
  */
873
- getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
871
+ getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
874
872
  /**
875
873
  * No description
876
874
  *
877
875
  * @tags AiUrlSource
878
876
  * @name UpdateAiUrlSource
879
877
  * @summary Update URL source
880
- * @request PUT:/api/ai/admin/url-sources/{id}
878
+ * @request PUT:/api/ai/url-sources/{id}
881
879
  * @secure
882
880
  * @response `200` `AiUrlSource` OK
883
881
  * @response `400` `ProblemDetails` Bad Request
884
882
  * @response `404` `ProblemDetails` Not Found
885
883
  * @response `409` `ProblemDetails` Conflict
886
884
  */
887
- updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
885
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
888
886
  /**
889
887
  * No description
890
888
  *
891
889
  * @tags AiUrlSource
892
890
  * @name DeleteAiUrlSource
893
891
  * @summary Delete URL source
894
- * @request DELETE:/api/ai/admin/url-sources/{id}
892
+ * @request DELETE:/api/ai/url-sources/{id}
895
893
  * @secure
896
894
  * @response `204` `void` No Content
897
895
  * @response `404` `ProblemDetails` Not Found
898
896
  */
899
- deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
897
+ deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "DELETE", secure: true }, params)),
900
898
  /**
901
899
  * No description
902
900
  *
903
901
  * @tags AiUrlSource
904
902
  * @name ToggleAiUrlSource
905
903
  * @summary Toggle URL source active/inactive
906
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
904
+ * @request PATCH:/api/ai/url-sources/{id}/toggle
907
905
  * @secure
908
906
  * @response `200` `AiUrlSource` OK
909
907
  * @response `404` `ProblemDetails` Not Found
910
908
  */
911
- toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
909
+ toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
912
910
  /**
913
911
  * No description
914
912
  *
@@ -941,7 +939,7 @@ export class Api extends HttpClient {
941
939
  * @secure
942
940
  * @response `200` `AuditLogEntryPaginated` OK
943
941
  */
944
- 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)),
942
+ 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)),
945
943
  /**
946
944
  * No description
947
945
  *
@@ -977,7 +975,7 @@ export class Api extends HttpClient {
977
975
  * @response `401` `ProblemDetails` Unauthorized
978
976
  * @response `422` `UnprocessableEntity` Unprocessable Content
979
977
  */
980
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
978
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
981
979
  /**
982
980
  * No description
983
981
  *
@@ -989,7 +987,7 @@ export class Api extends HttpClient {
989
987
  * @response `200` `AccountDeactivated` OK
990
988
  * @response `422` `UnprocessableEntity` Unprocessable Content
991
989
  */
992
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
990
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
993
991
  /**
994
992
  * No description
995
993
  *
@@ -1001,7 +999,7 @@ export class Api extends HttpClient {
1001
999
  * @response `200` `AccountDeactivated` OK
1002
1000
  * @response `422` `UnprocessableEntity` Unprocessable Content
1003
1001
  */
1004
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1002
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1005
1003
  /**
1006
1004
  * No description
1007
1005
  *
@@ -1013,7 +1011,7 @@ export class Api extends HttpClient {
1013
1011
  * @response `200` `Token` OK
1014
1012
  * @response `422` `UnprocessableEntity` Unprocessable Content
1015
1013
  */
1016
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1014
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1017
1015
  /**
1018
1016
  * No description
1019
1017
  *
@@ -1025,7 +1023,7 @@ export class Api extends HttpClient {
1025
1023
  * @response `200` `SSOToken` OK
1026
1024
  * @response `422` `UnprocessableEntity` Unprocessable Content
1027
1025
  */
1028
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1026
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1029
1027
  /**
1030
1028
  * No description
1031
1029
  *
@@ -1060,7 +1058,7 @@ export class Api extends HttpClient {
1060
1058
  * @response `200` `GetBranch` OK
1061
1059
  * @response `422` `UnprocessableEntity` Unprocessable Content
1062
1060
  */
1063
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1061
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1064
1062
  /**
1065
1063
  * No description
1066
1064
  *
@@ -1071,7 +1069,7 @@ export class Api extends HttpClient {
1071
1069
  * @secure
1072
1070
  * @response `200` `GetBranchPaginated` OK
1073
1071
  */
1074
- 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)),
1072
+ 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)),
1075
1073
  /**
1076
1074
  * No description
1077
1075
  *
@@ -1094,7 +1092,7 @@ export class Api extends HttpClient {
1094
1092
  * @response `200` `GetBranch` OK
1095
1093
  * @response `422` `UnprocessableEntity` Unprocessable Content
1096
1094
  */
1097
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1095
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1098
1096
  /**
1099
1097
  * No description
1100
1098
  *
@@ -1129,7 +1127,7 @@ export class Api extends HttpClient {
1129
1127
  * @response `200` `SiteConfiguration` OK
1130
1128
  * @response `422` `UnprocessableEntity` Unprocessable Content
1131
1129
  */
1132
- 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)),
1130
+ 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)),
1133
1131
  /**
1134
1132
  * No description
1135
1133
  *
@@ -1152,7 +1150,7 @@ export class Api extends HttpClient {
1152
1150
  * @response `200` `SiteConfiguration` OK
1153
1151
  * @response `422` `UnprocessableEntity` Unprocessable Content
1154
1152
  */
1155
- 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)),
1153
+ 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)),
1156
1154
  /**
1157
1155
  * No description
1158
1156
  *
@@ -1186,7 +1184,7 @@ export class Api extends HttpClient {
1186
1184
  * @response `200` `BusinessRule` OK
1187
1185
  * @response `422` `UnprocessableEntity` Unprocessable Content
1188
1186
  */
1189
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1187
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1190
1188
  /**
1191
1189
  * No description
1192
1190
  *
@@ -1209,7 +1207,7 @@ export class Api extends HttpClient {
1209
1207
  * @response `200` `BusinessRule` OK
1210
1208
  * @response `422` `UnprocessableEntity` Unprocessable Content
1211
1209
  */
1212
- 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)),
1210
+ 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)),
1213
1211
  /**
1214
1212
  * No description
1215
1213
  *
@@ -1242,7 +1240,7 @@ export class Api extends HttpClient {
1242
1240
  * @secure
1243
1241
  * @response `200` `ClosedLoansReport` OK
1244
1242
  */
1245
- 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)),
1243
+ 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)),
1246
1244
  /**
1247
1245
  * No description
1248
1246
  *
@@ -1259,12 +1257,12 @@ export class Api extends HttpClient {
1259
1257
  *
1260
1258
  * @tags ConsumerConnect
1261
1259
  * @name RetryConsumerConnectAssociation
1262
- * @summary Manually retry Consumer Connect association for failed borrowers on a loan. Returns per-borrower results; check individual Success fields for partial failures.
1260
+ * @summary Manually retry Consumer Connect association for failed borrowers on a loan. Set force=true to also re-run borrowers already marked Success. Returns per-borrower results; check individual Success fields for partial failures.
1263
1261
  * @request POST:/api/loans/{loanId}/consumer-connect/retry
1264
1262
  * @secure
1265
1263
  * @response `200` `(ConsumerConnectRetry)[]` OK
1266
1264
  */
1267
- retryConsumerConnectAssociation: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/consumer-connect/retry`, method: "POST", secure: true, format: "json" }, params)),
1265
+ retryConsumerConnectAssociation: (loanId, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/consumer-connect/retry`, method: "POST", query: query, secure: true, format: "json" }, params)),
1268
1266
  /**
1269
1267
  * No description
1270
1268
  *
@@ -1287,7 +1285,7 @@ export class Api extends HttpClient {
1287
1285
  * @response `200` `Corporate` OK
1288
1286
  * @response `422` `UnprocessableEntity` Unprocessable Content
1289
1287
  */
1290
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1288
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1291
1289
  /**
1292
1290
  * No description
1293
1291
  *
@@ -1298,7 +1296,7 @@ export class Api extends HttpClient {
1298
1296
  * @secure
1299
1297
  * @response `200` `CorporatePaginated` OK
1300
1298
  */
1301
- 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)),
1299
+ 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)),
1302
1300
  /**
1303
1301
  * No description
1304
1302
  *
@@ -1321,7 +1319,7 @@ export class Api extends HttpClient {
1321
1319
  * @response `200` `Corporate` OK
1322
1320
  * @response `422` `UnprocessableEntity` Unprocessable Content
1323
1321
  */
1324
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1322
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1325
1323
  /**
1326
1324
  * No description
1327
1325
  *
@@ -1355,7 +1353,7 @@ export class Api extends HttpClient {
1355
1353
  * @response `200` `SiteConfiguration` OK
1356
1354
  * @response `422` `UnprocessableEntity` Unprocessable Content
1357
1355
  */
1358
- 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)),
1356
+ 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)),
1359
1357
  /**
1360
1358
  * No description
1361
1359
  *
@@ -1378,7 +1376,7 @@ export class Api extends HttpClient {
1378
1376
  * @response `200` `SiteConfiguration` OK
1379
1377
  * @response `422` `UnprocessableEntity` Unprocessable Content
1380
1378
  */
1381
- 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)),
1379
+ 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)),
1382
1380
  /**
1383
1381
  * No description
1384
1382
  *
@@ -1424,7 +1422,7 @@ export class Api extends HttpClient {
1424
1422
  * @response `409` `ProblemDetails` Conflict
1425
1423
  * @response `422` `ProblemDetails` Unprocessable Content
1426
1424
  */
1427
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1425
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1428
1426
  /**
1429
1427
  * No description
1430
1428
  *
@@ -1451,7 +1449,7 @@ export class Api extends HttpClient {
1451
1449
  * @response `409` `ProblemDetails` Conflict
1452
1450
  * @response `422` `ProblemDetails` Unprocessable Content
1453
1451
  */
1454
- 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)),
1452
+ 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)),
1455
1453
  /**
1456
1454
  * No description
1457
1455
  *
@@ -1521,7 +1519,7 @@ export class Api extends HttpClient {
1521
1519
  * @secure
1522
1520
  * @response `200` `Device` OK
1523
1521
  */
1524
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1522
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1525
1523
  /**
1526
1524
  * No description
1527
1525
  *
@@ -1578,7 +1576,7 @@ export class Api extends HttpClient {
1578
1576
  * @response `404` `ProblemDetails` Not Found
1579
1577
  * @response `422` `UnprocessableEntity` Unprocessable Content
1580
1578
  */
1581
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1579
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1582
1580
  /**
1583
1581
  * No description
1584
1582
  *
@@ -1615,7 +1613,7 @@ export class Api extends HttpClient {
1615
1613
  * @response `404` `ProblemDetails` Not Found
1616
1614
  * @response `422` `UnprocessableEntity` Unprocessable Content
1617
1615
  */
1618
- 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)),
1616
+ 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)),
1619
1617
  /**
1620
1618
  * No description
1621
1619
  *
@@ -1663,7 +1661,7 @@ export class Api extends HttpClient {
1663
1661
  * @secure
1664
1662
  * @response `200` `DocumentTemplateVersion` OK
1665
1663
  */
1666
- 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)),
1664
+ 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)),
1667
1665
  /**
1668
1666
  * No description
1669
1667
  *
@@ -1685,7 +1683,7 @@ export class Api extends HttpClient {
1685
1683
  * @secure
1686
1684
  * @response `200` `DocumentTemplateVersion` OK
1687
1685
  */
1688
- 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)),
1686
+ 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)),
1689
1687
  /**
1690
1688
  * No description
1691
1689
  *
@@ -1723,7 +1721,7 @@ export class Api extends HttpClient {
1723
1721
  * @response `409` `void` Conflict
1724
1722
  * @response `422` `ProblemDetails` Unprocessable Content
1725
1723
  */
1726
- 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)),
1724
+ 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)),
1727
1725
  /**
1728
1726
  * No description
1729
1727
  *
@@ -1786,6 +1784,20 @@ export class Api extends HttpClient {
1786
1784
  * @response `500` `EncompassError` Internal Server Error
1787
1785
  */
1788
1786
  getUserPackages: (query, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/packages`, method: "GET", query: query, secure: true, format: "json" }, params)),
1787
+ /**
1788
+ * No description
1789
+ *
1790
+ * @tags Encompass Packages
1791
+ * @name GetLoanPackages
1792
+ * @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
1793
+ * @secure
1794
+ * @response `200` `EncompassPackageList` OK
1795
+ * @response `400` `EncompassError` Bad Request
1796
+ * @response `401` `EncompassError` Unauthorized
1797
+ * @response `403` `EncompassError` Forbidden
1798
+ * @response `500` `EncompassError` Internal Server Error
1799
+ */
1800
+ 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)),
1789
1801
  /**
1790
1802
  * No description
1791
1803
  *
@@ -1812,7 +1824,7 @@ export class Api extends HttpClient {
1812
1824
  * @response `404` `EncompassError` Not Found
1813
1825
  * @response `500` `EncompassError` Internal Server Error
1814
1826
  */
1815
- 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)),
1827
+ 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)),
1816
1828
  /**
1817
1829
  * No description
1818
1830
  *
@@ -1835,7 +1847,7 @@ export class Api extends HttpClient {
1835
1847
  * @response `201` `File` Created
1836
1848
  * @response `422` `UnprocessableEntity` Unprocessable Content
1837
1849
  */
1838
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1850
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1839
1851
  /**
1840
1852
  * No description
1841
1853
  *
@@ -1858,7 +1870,7 @@ export class Api extends HttpClient {
1858
1870
  * @response `200` `string` OK
1859
1871
  * @response `422` `UnprocessableEntity` Unprocessable Content
1860
1872
  */
1861
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1873
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1862
1874
  /**
1863
1875
  * No description
1864
1876
  *
@@ -1880,7 +1892,7 @@ export class Api extends HttpClient {
1880
1892
  * @secure
1881
1893
  * @response `200` `FilePaginated` OK
1882
1894
  */
1883
- 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)),
1895
+ 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)),
1884
1896
  /**
1885
1897
  * No description
1886
1898
  *
@@ -1903,7 +1915,7 @@ export class Api extends HttpClient {
1903
1915
  * @response `201` `Form` Created
1904
1916
  * @response `422` `UnprocessableEntity` Unprocessable Content
1905
1917
  */
1906
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1918
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1907
1919
  /**
1908
1920
  * No description
1909
1921
  *
@@ -1926,7 +1938,7 @@ export class Api extends HttpClient {
1926
1938
  * @response `200` `Form` OK
1927
1939
  * @response `422` `UnprocessableEntity` Unprocessable Content
1928
1940
  */
1929
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1941
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1930
1942
  /**
1931
1943
  * No description
1932
1944
  *
@@ -1959,7 +1971,7 @@ export class Api extends HttpClient {
1959
1971
  * @secure
1960
1972
  * @response `200` `FormSubmissionFile` OK
1961
1973
  */
1962
- 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)),
1974
+ 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)),
1963
1975
  /**
1964
1976
  * No description
1965
1977
  *
@@ -2003,7 +2015,7 @@ export class Api extends HttpClient {
2003
2015
  * @secure
2004
2016
  * @response `201` `FormSubmission` Created
2005
2017
  */
2006
- 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)),
2018
+ 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)),
2007
2019
  /**
2008
2020
  * No description
2009
2021
  *
@@ -2025,7 +2037,7 @@ export class Api extends HttpClient {
2025
2037
  * @secure
2026
2038
  * @response `200` `FormSubmission` OK
2027
2039
  */
2028
- 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)),
2040
+ 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)),
2029
2041
  /**
2030
2042
  * No description
2031
2043
  *
@@ -2047,7 +2059,7 @@ export class Api extends HttpClient {
2047
2059
  * @secure
2048
2060
  * @response `200` `FormSubmissionPaginated` OK
2049
2061
  */
2050
- 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)),
2062
+ 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)),
2051
2063
  /**
2052
2064
  * No description
2053
2065
  *
@@ -2069,7 +2081,7 @@ export class Api extends HttpClient {
2069
2081
  * @secure
2070
2082
  * @response `200` `FormVersion` OK
2071
2083
  */
2072
- 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)),
2084
+ 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)),
2073
2085
  /**
2074
2086
  * No description
2075
2087
  *
@@ -2091,7 +2103,7 @@ export class Api extends HttpClient {
2091
2103
  * @secure
2092
2104
  * @response `200` `FormVersion` OK
2093
2105
  */
2094
- 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)),
2106
+ 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)),
2095
2107
  /**
2096
2108
  * No description
2097
2109
  *
@@ -2137,7 +2149,7 @@ export class Api extends HttpClient {
2137
2149
  * @response `200` `string` OK
2138
2150
  * @response `422` `UnprocessableEntity` Unprocessable Content
2139
2151
  */
2140
- 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)),
2152
+ 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)),
2141
2153
  /**
2142
2154
  * No description
2143
2155
  *
@@ -2148,7 +2160,7 @@ export class Api extends HttpClient {
2148
2160
  * @secure
2149
2161
  * @response `200` `GetReport` OK
2150
2162
  */
2151
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2163
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2152
2164
  /**
2153
2165
  * No description
2154
2166
  *
@@ -2162,7 +2174,7 @@ export class Api extends HttpClient {
2162
2174
  * @response `422` `UnprocessableEntity` Unprocessable Content
2163
2175
  * @response `423` `UnprocessableEntity` Locked
2164
2176
  */
2165
- 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)),
2177
+ 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)),
2166
2178
  /**
2167
2179
  * No description
2168
2180
  *
@@ -2175,7 +2187,7 @@ export class Api extends HttpClient {
2175
2187
  * @response `422` `UnprocessableEntity` Unprocessable Content
2176
2188
  * @response `423` `UnprocessableEntity` Locked
2177
2189
  */
2178
- 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)),
2190
+ 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)),
2179
2191
  /**
2180
2192
  * No description
2181
2193
  *
@@ -2187,7 +2199,7 @@ export class Api extends HttpClient {
2187
2199
  * @response `200` `string` OK
2188
2200
  * @response `422` `UnprocessableEntity` Unprocessable Content
2189
2201
  */
2190
- 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)),
2202
+ 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)),
2191
2203
  /**
2192
2204
  * No description
2193
2205
  *
@@ -2200,18 +2212,7 @@ export class Api extends HttpClient {
2200
2212
  * @response `202` `string` Accepted
2201
2213
  * @response `422` `UnprocessableEntity` Unprocessable Content
2202
2214
  */
2203
- 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)),
2204
- /**
2205
- * No description
2206
- *
2207
- * @tags LegacyLoan
2208
- * @name GetTaskDocumentsByLoan
2209
- * @summary Get Documents
2210
- * @request GET:/api/los/loan/tasks/documents/{loanID}
2211
- * @secure
2212
- * @response `200` `(DocumentData)[]` OK
2213
- */
2214
- getTaskDocumentsByLoan: (loanId, params = {}) => this.request(Object.assign({ path: `/api/los/loan/tasks/documents/${loanId}`, method: "GET", secure: true, format: "json" }, params)),
2215
+ 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)),
2215
2216
  /**
2216
2217
  * No description
2217
2218
  *
@@ -2291,7 +2292,7 @@ export class Api extends HttpClient {
2291
2292
  * @secure
2292
2293
  * @response `200` `ListingFile` OK
2293
2294
  */
2294
- 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)),
2295
+ 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)),
2295
2296
  /**
2296
2297
  * No description
2297
2298
  *
@@ -2302,7 +2303,7 @@ export class Api extends HttpClient {
2302
2303
  * @secure
2303
2304
  * @response `200` `ListingFile` OK
2304
2305
  */
2305
- 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)),
2306
+ 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)),
2306
2307
  /**
2307
2308
  * No description
2308
2309
  *
@@ -2324,7 +2325,7 @@ export class Api extends HttpClient {
2324
2325
  * @secure
2325
2326
  * @response `200` `ListingPhoto` OK
2326
2327
  */
2327
- 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)),
2328
+ 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)),
2328
2329
  /**
2329
2330
  * No description
2330
2331
  *
@@ -2335,7 +2336,7 @@ export class Api extends HttpClient {
2335
2336
  * @secure
2336
2337
  * @response `200` `(ListingPhoto)[]` OK
2337
2338
  */
2338
- 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)),
2339
+ 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)),
2339
2340
  /**
2340
2341
  * No description
2341
2342
  *
@@ -2368,7 +2369,7 @@ export class Api extends HttpClient {
2368
2369
  * @secure
2369
2370
  * @response `201` `Listing` Created
2370
2371
  */
2371
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2372
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2372
2373
  /**
2373
2374
  * No description
2374
2375
  *
@@ -2401,7 +2402,7 @@ export class Api extends HttpClient {
2401
2402
  * @secure
2402
2403
  * @response `200` `Listing` OK
2403
2404
  */
2404
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2405
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2405
2406
  /**
2406
2407
  * No description
2407
2408
  *
@@ -2423,7 +2424,7 @@ export class Api extends HttpClient {
2423
2424
  * @secure
2424
2425
  * @response `200` `ListingPaginated` OK
2425
2426
  */
2426
- 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)),
2427
+ 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)),
2427
2428
  /**
2428
2429
  * No description
2429
2430
  *
@@ -2434,7 +2435,7 @@ export class Api extends HttpClient {
2434
2435
  * @secure
2435
2436
  * @response `200` `File` OK
2436
2437
  */
2437
- 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)),
2438
+ 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)),
2438
2439
  /**
2439
2440
  * No description
2440
2441
  *
@@ -2480,7 +2481,7 @@ export class Api extends HttpClient {
2480
2481
  * @response `422` `UnprocessableEntity` Unprocessable Content
2481
2482
  * @response `423` `UnprocessableEntity` Locked
2482
2483
  */
2483
- 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)),
2484
+ 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)),
2484
2485
  /**
2485
2486
  * No description
2486
2487
  *
@@ -2504,7 +2505,7 @@ export class Api extends HttpClient {
2504
2505
  * @response `422` `UnprocessableEntity` Unprocessable Content
2505
2506
  * @response `423` `UnprocessableEntity` Locked
2506
2507
  */
2507
- 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)),
2508
+ 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)),
2508
2509
  /**
2509
2510
  * No description
2510
2511
  *
@@ -2527,7 +2528,7 @@ export class Api extends HttpClient {
2527
2528
  * @response `204` `void` No Content
2528
2529
  * @response `422` `UnprocessableEntity` Unprocessable Content
2529
2530
  */
2530
- 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)),
2531
+ 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)),
2531
2532
  /**
2532
2533
  * No description
2533
2534
  *
@@ -2564,7 +2565,7 @@ export class Api extends HttpClient {
2564
2565
  * @response `400` `ProblemDetails` Bad Request
2565
2566
  * @response `422` `ProblemDetails` Unprocessable Content
2566
2567
  */
2567
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2568
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2568
2569
  /**
2569
2570
  * No description
2570
2571
  *
@@ -2578,7 +2579,7 @@ export class Api extends HttpClient {
2578
2579
  * @response `404` `ProblemDetails` Not Found
2579
2580
  * @response `422` `ProblemDetails` Unprocessable Content
2580
2581
  */
2581
- 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)),
2582
+ 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)),
2582
2583
  /**
2583
2584
  * No description
2584
2585
  *
@@ -2612,7 +2613,7 @@ export class Api extends HttpClient {
2612
2613
  * @secure
2613
2614
  * @response `201` `(string)[]` Created
2614
2615
  */
2615
- 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)),
2616
+ 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)),
2616
2617
  /**
2617
2618
  * No description
2618
2619
  *
@@ -2636,7 +2637,7 @@ export class Api extends HttpClient {
2636
2637
  * @response `409` `ProblemDetails` Conflict
2637
2638
  * @response `422` `ProblemDetails` Unprocessable Content
2638
2639
  */
2639
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2640
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2640
2641
  /**
2641
2642
  * No description
2642
2643
  *
@@ -2663,7 +2664,7 @@ export class Api extends HttpClient {
2663
2664
  * @response `409` `ProblemDetails` Conflict
2664
2665
  * @response `422` `ProblemDetails` Unprocessable Content
2665
2666
  */
2666
- 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)),
2667
+ 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)),
2667
2668
  /**
2668
2669
  * No description
2669
2670
  *
@@ -2738,7 +2739,7 @@ export class Api extends HttpClient {
2738
2739
  * @response `200` `Record<string,string>` OK
2739
2740
  * @response `400` `ProblemDetails` Bad Request
2740
2741
  */
2741
- 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)),
2742
+ 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)),
2742
2743
  /**
2743
2744
  * No description
2744
2745
  *
@@ -2749,7 +2750,7 @@ export class Api extends HttpClient {
2749
2750
  * @secure
2750
2751
  * @response `200` `LoanDocumentSearchPaginated` OK
2751
2752
  */
2752
- 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)),
2753
+ 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)),
2753
2754
  /**
2754
2755
  * @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).
2755
2756
  *
@@ -2760,7 +2761,7 @@ export class Api extends HttpClient {
2760
2761
  * @secure
2761
2762
  * @response `200` `(DocumentFolder)[]` OK
2762
2763
  */
2763
- 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)),
2764
+ 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)),
2764
2765
  /**
2765
2766
  * No description
2766
2767
  *
@@ -2769,7 +2770,7 @@ export class Api extends HttpClient {
2769
2770
  * @summary Download By ID
2770
2771
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2771
2772
  * @secure
2772
- * @response `200` `Blob` OK
2773
+ * @response `200` `string` OK
2773
2774
  * @response `404` `ProblemDetails` Not Found
2774
2775
  */
2775
2776
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2785,7 +2786,7 @@ export class Api extends HttpClient {
2785
2786
  * @response `404` `ProblemDetails` Not Found
2786
2787
  * @response `422` `UnprocessableEntity` Unprocessable Content
2787
2788
  */
2788
- 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)),
2789
+ 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)),
2789
2790
  /**
2790
2791
  * No description
2791
2792
  *
@@ -2809,7 +2810,7 @@ export class Api extends HttpClient {
2809
2810
  * @secure
2810
2811
  * @response `200` `DocumentDataRequest` OK
2811
2812
  */
2812
- 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)),
2813
+ 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)),
2813
2814
  /**
2814
2815
  * No description
2815
2816
  *
@@ -2822,7 +2823,7 @@ export class Api extends HttpClient {
2822
2823
  * @response `400` `ProblemDetails` Bad Request
2823
2824
  * @response `404` `ProblemDetails` Not Found
2824
2825
  */
2825
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2826
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2826
2827
  /**
2827
2828
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2828
2829
  *
@@ -2847,7 +2848,7 @@ export class Api extends HttpClient {
2847
2848
  * @response `404` `ProblemDetails` Not Found
2848
2849
  * @response `422` `UnprocessableEntity` Unprocessable Content
2849
2850
  */
2850
- 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)),
2851
+ 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)),
2851
2852
  /**
2852
2853
  * @description Re-attempts to push a failed document to LOS
2853
2854
  *
@@ -2871,7 +2872,7 @@ export class Api extends HttpClient {
2871
2872
  * @secure
2872
2873
  * @response `201` `Draft` Created
2873
2874
  */
2874
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2875
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2875
2876
  /**
2876
2877
  * No description
2877
2878
  *
@@ -2904,7 +2905,7 @@ export class Api extends HttpClient {
2904
2905
  * @secure
2905
2906
  * @response `200` `Draft` OK
2906
2907
  */
2907
- 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)),
2908
+ 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)),
2908
2909
  /**
2909
2910
  * No description
2910
2911
  *
@@ -2926,7 +2927,7 @@ export class Api extends HttpClient {
2926
2927
  * @secure
2927
2928
  * @response `201` `DraftContentPaginated` Created
2928
2929
  */
2929
- 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)),
2930
+ 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)),
2930
2931
  /**
2931
2932
  * No description
2932
2933
  *
@@ -2937,7 +2938,7 @@ export class Api extends HttpClient {
2937
2938
  * @secure
2938
2939
  * @response `200` `Draft` OK
2939
2940
  */
2940
- 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)),
2941
+ 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)),
2941
2942
  /**
2942
2943
  * No description
2943
2944
  *
@@ -2970,7 +2971,7 @@ export class Api extends HttpClient {
2970
2971
  * @secure
2971
2972
  * @response `201` `LoanImport` Created
2972
2973
  */
2973
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2974
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2974
2975
  /**
2975
2976
  * No description
2976
2977
  *
@@ -3016,7 +3017,7 @@ export class Api extends HttpClient {
3016
3017
  * @response `200` `(Invite)[]` OK
3017
3018
  * @response `404` `ProblemDetails` Not Found
3018
3019
  */
3019
- 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)),
3020
+ 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)),
3020
3021
  /**
3021
3022
  * No description
3022
3023
  *
@@ -3027,7 +3028,7 @@ export class Api extends HttpClient {
3027
3028
  * @secure
3028
3029
  * @response `200` `LoanLogPaginated` OK
3029
3030
  */
3030
- 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)),
3031
+ 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)),
3031
3032
  /**
3032
3033
  * No description
3033
3034
  *
@@ -3052,7 +3053,7 @@ export class Api extends HttpClient {
3052
3053
  * @response `400` `ProblemDetails` Bad Request
3053
3054
  * @response `404` `ProblemDetails` Not Found
3054
3055
  */
3055
- 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)),
3056
+ 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)),
3056
3057
  /**
3057
3058
  * No description
3058
3059
  *
@@ -3065,7 +3066,7 @@ export class Api extends HttpClient {
3065
3066
  * @response `400` `ProblemDetails` Bad Request
3066
3067
  * @response `404` `ProblemDetails` Not Found
3067
3068
  */
3068
- 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)),
3069
+ 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)),
3069
3070
  /**
3070
3071
  * No description
3071
3072
  *
@@ -3087,7 +3088,7 @@ export class Api extends HttpClient {
3087
3088
  * @secure
3088
3089
  * @response `200` `BranchUserPaginated` OK
3089
3090
  */
3090
- 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)),
3091
+ 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)),
3091
3092
  /**
3092
3093
  * No description
3093
3094
  *
@@ -3110,7 +3111,7 @@ export class Api extends HttpClient {
3110
3111
  * @response `200` `SiteConfiguration` OK
3111
3112
  * @response `422` `UnprocessableEntity` Unprocessable Content
3112
3113
  */
3113
- 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)),
3114
+ 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)),
3114
3115
  /**
3115
3116
  * No description
3116
3117
  *
@@ -3133,7 +3134,7 @@ export class Api extends HttpClient {
3133
3134
  * @response `200` `SiteConfiguration` OK
3134
3135
  * @response `422` `UnprocessableEntity` Unprocessable Content
3135
3136
  */
3136
- 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)),
3137
+ 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)),
3137
3138
  /**
3138
3139
  * No description
3139
3140
  *
@@ -3144,7 +3145,7 @@ export class Api extends HttpClient {
3144
3145
  * @secure
3145
3146
  * @response `200` `LoanQueuePaginated` OK
3146
3147
  */
3147
- 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)),
3148
+ 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)),
3148
3149
  /**
3149
3150
  * No description
3150
3151
  *
@@ -3168,7 +3169,7 @@ export class Api extends HttpClient {
3168
3169
  * @response `200` `LoanQueueWithData` OK
3169
3170
  * @response `404` `ProblemDetails` Not Found
3170
3171
  */
3171
- 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)),
3172
+ 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)),
3172
3173
  /**
3173
3174
  * No description
3174
3175
  *
@@ -3229,7 +3230,7 @@ export class Api extends HttpClient {
3229
3230
  * @response `401` `ProblemDetails` Unauthorized
3230
3231
  * @response `403` `ProblemDetails` Forbidden
3231
3232
  */
3232
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3233
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3233
3234
  /**
3234
3235
  * No description
3235
3236
  *
@@ -3240,7 +3241,7 @@ export class Api extends HttpClient {
3240
3241
  * @secure
3241
3242
  * @response `200` `LoanListPaginated` OK
3242
3243
  */
3243
- 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)),
3244
+ 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)),
3244
3245
  /**
3245
3246
  * No description
3246
3247
  *
@@ -3256,7 +3257,7 @@ export class Api extends HttpClient {
3256
3257
  * @response `404` `ProblemDetails` Not Found
3257
3258
  * @response `409` `any` Conflict
3258
3259
  */
3259
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3260
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
3260
3261
  /**
3261
3262
  * No description
3262
3263
  *
@@ -3318,7 +3319,7 @@ export class Api extends HttpClient {
3318
3319
  * @response `400` `ProblemDetails` Bad Request
3319
3320
  * @response `404` `ProblemDetails` Not Found
3320
3321
  */
3321
- 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)),
3322
+ 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)),
3322
3323
  /**
3323
3324
  * No description
3324
3325
  *
@@ -3330,7 +3331,7 @@ export class Api extends HttpClient {
3330
3331
  * @response `200` `TaskCommentPaginated` OK
3331
3332
  * @response `404` `ProblemDetails` Not Found
3332
3333
  */
3333
- 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)),
3334
+ 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)),
3334
3335
  /**
3335
3336
  * No description
3336
3337
  *
@@ -3354,7 +3355,7 @@ export class Api extends HttpClient {
3354
3355
  * @response `201` `TaskComment` Created
3355
3356
  * @response `404` `ProblemDetails` Not Found
3356
3357
  */
3357
- 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)),
3358
+ 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)),
3358
3359
  /**
3359
3360
  * No description
3360
3361
  *
@@ -3366,7 +3367,7 @@ export class Api extends HttpClient {
3366
3367
  * @response `200` `TaskComment` OK
3367
3368
  * @response `404` `ProblemDetails` Not Found
3368
3369
  */
3369
- 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)),
3370
+ 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)),
3370
3371
  /**
3371
3372
  * No description
3372
3373
  *
@@ -3391,7 +3392,7 @@ export class Api extends HttpClient {
3391
3392
  * @response `404` `ProblemDetails` Not Found
3392
3393
  * @response `422` `UnprocessableEntity` Unprocessable Content
3393
3394
  */
3394
- 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)),
3395
+ 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)),
3395
3396
  /**
3396
3397
  * No description
3397
3398
  *
@@ -3405,7 +3406,7 @@ export class Api extends HttpClient {
3405
3406
  * @response `404` `ProblemDetails` Not Found
3406
3407
  * @response `422` `ProblemDetails` Unprocessable Content
3407
3408
  */
3408
- 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)),
3409
+ 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)),
3409
3410
  /**
3410
3411
  * No description
3411
3412
  *
@@ -3418,7 +3419,7 @@ export class Api extends HttpClient {
3418
3419
  * @response `400` `ProblemDetails` Bad Request
3419
3420
  * @response `404` `ProblemDetails` Not Found
3420
3421
  */
3421
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3422
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3422
3423
  /**
3423
3424
  * @description Search tasks across all loans
3424
3425
  *
@@ -3429,7 +3430,7 @@ export class Api extends HttpClient {
3429
3430
  * @secure
3430
3431
  * @response `200` `UserLoanTaskPaginated` OK
3431
3432
  */
3432
- 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)),
3433
+ 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)),
3433
3434
  /**
3434
3435
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3435
3436
  *
@@ -3441,7 +3442,7 @@ export class Api extends HttpClient {
3441
3442
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3442
3443
  * @response `422` `UnprocessableEntity` Unprocessable Content
3443
3444
  */
3444
- 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)),
3445
+ 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)),
3445
3446
  /**
3446
3447
  * No description
3447
3448
  *
@@ -3489,7 +3490,7 @@ export class Api extends HttpClient {
3489
3490
  * @response `201` `UserLoanTask` Created
3490
3491
  * @response `404` `ProblemDetails` Not Found
3491
3492
  */
3492
- 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)),
3493
+ 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)),
3493
3494
  /**
3494
3495
  * No description
3495
3496
  *
@@ -3501,7 +3502,7 @@ export class Api extends HttpClient {
3501
3502
  * @response `201` `(UserLoanTask)[]` Created
3502
3503
  * @response `404` `ProblemDetails` Not Found
3503
3504
  */
3504
- 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)),
3505
+ 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)),
3505
3506
  /**
3506
3507
  * No description
3507
3508
  *
@@ -3513,7 +3514,7 @@ export class Api extends HttpClient {
3513
3514
  * @response `200` `UserLoanTask` OK
3514
3515
  * @response `404` `ProblemDetails` Not Found
3515
3516
  */
3516
- 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)),
3517
+ 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)),
3517
3518
  /**
3518
3519
  * No description
3519
3520
  *
@@ -3572,7 +3573,7 @@ export class Api extends HttpClient {
3572
3573
  * @secure
3573
3574
  * @response `201` `LoanUser` Created
3574
3575
  */
3575
- 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)),
3576
+ 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)),
3576
3577
  /**
3577
3578
  * No description
3578
3579
  *
@@ -3605,7 +3606,7 @@ export class Api extends HttpClient {
3605
3606
  * @secure
3606
3607
  * @response `200` `LosOperationTrackingPaginated` OK
3607
3608
  */
3608
- 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)),
3609
+ 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)),
3609
3610
  /**
3610
3611
  * No description
3611
3612
  *
@@ -3628,7 +3629,7 @@ export class Api extends HttpClient {
3628
3629
  * @response `201` `MilestoneConfiguration` Created
3629
3630
  * @response `422` `UnprocessableEntity` Unprocessable Content
3630
3631
  */
3631
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3632
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3632
3633
  /**
3633
3634
  * No description
3634
3635
  *
@@ -3653,7 +3654,7 @@ export class Api extends HttpClient {
3653
3654
  * @response `404` `Error` Not Found
3654
3655
  * @response `422` `UnprocessableEntity` Unprocessable Content
3655
3656
  */
3656
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3657
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3657
3658
  /**
3658
3659
  * No description
3659
3660
  *
@@ -3679,7 +3680,7 @@ export class Api extends HttpClient {
3679
3680
  * @response `404` `ProblemDetails` Not Found
3680
3681
  * @response `422` `ProblemDetails` Unprocessable Content
3681
3682
  */
3682
- 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)),
3683
+ 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)),
3683
3684
  /**
3684
3685
  * No description
3685
3686
  *
@@ -3691,7 +3692,7 @@ export class Api extends HttpClient {
3691
3692
  * @response `200` `MonthlyPaymentCalculator` OK
3692
3693
  * @response `422` `ProblemDetails` Unprocessable Content
3693
3694
  */
3694
- 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)),
3695
+ 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)),
3695
3696
  /**
3696
3697
  * No description
3697
3698
  *
@@ -3703,7 +3704,7 @@ export class Api extends HttpClient {
3703
3704
  * @response `200` `AffordabilityCalculator` OK
3704
3705
  * @response `422` `ProblemDetails` Unprocessable Content
3705
3706
  */
3706
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3707
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3707
3708
  /**
3708
3709
  * No description
3709
3710
  *
@@ -3715,7 +3716,7 @@ export class Api extends HttpClient {
3715
3716
  * @response `200` `LoanComparisonCalculator` OK
3716
3717
  * @response `422` `ProblemDetails` Unprocessable Content
3717
3718
  */
3718
- 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)),
3719
+ 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)),
3719
3720
  /**
3720
3721
  * No description
3721
3722
  *
@@ -3727,7 +3728,7 @@ export class Api extends HttpClient {
3727
3728
  * @response `200` `RefinanceCalculator` OK
3728
3729
  * @response `422` `ProblemDetails` Unprocessable Content
3729
3730
  */
3730
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3731
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3731
3732
  /**
3732
3733
  * No description
3733
3734
  *
@@ -3750,7 +3751,7 @@ export class Api extends HttpClient {
3750
3751
  * @response `201` `NotificationTemplate` Created
3751
3752
  * @response `422` `UnprocessableEntity` Unprocessable Content
3752
3753
  */
3753
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3754
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3754
3755
  /**
3755
3756
  * No description
3756
3757
  *
@@ -3761,7 +3762,7 @@ export class Api extends HttpClient {
3761
3762
  * @secure
3762
3763
  * @response `200` `NotificationTemplateBasePaginated` OK
3763
3764
  */
3764
- 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)),
3765
+ 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)),
3765
3766
  /**
3766
3767
  * No description
3767
3768
  *
@@ -3784,7 +3785,7 @@ export class Api extends HttpClient {
3784
3785
  * @response `200` `NotificationTemplate` OK
3785
3786
  * @response `422` `UnprocessableEntity` Unprocessable Content
3786
3787
  */
3787
- 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)),
3788
+ 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)),
3788
3789
  /**
3789
3790
  * No description
3790
3791
  *
@@ -3828,7 +3829,7 @@ export class Api extends HttpClient {
3828
3829
  * @secure
3829
3830
  * @response `200` `NotificationTemplateVersion` OK
3830
3831
  */
3831
- 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)),
3832
+ 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)),
3832
3833
  /**
3833
3834
  * No description
3834
3835
  *
@@ -3850,7 +3851,7 @@ export class Api extends HttpClient {
3850
3851
  * @secure
3851
3852
  * @response `200` `NotificationTemplateVersion` OK
3852
3853
  */
3853
- 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)),
3854
+ 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)),
3854
3855
  /**
3855
3856
  * No description
3856
3857
  *
@@ -3883,7 +3884,7 @@ export class Api extends HttpClient {
3883
3884
  * @secure
3884
3885
  * @response `200` `BranchUserPaginated` OK
3885
3886
  */
3886
- 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)),
3887
+ 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)),
3887
3888
  /**
3888
3889
  * No description
3889
3890
  *
@@ -3906,7 +3907,7 @@ export class Api extends HttpClient {
3906
3907
  * @response `200` `SiteConfiguration` OK
3907
3908
  * @response `422` `UnprocessableEntity` Unprocessable Content
3908
3909
  */
3909
- 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)),
3910
+ 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)),
3910
3911
  /**
3911
3912
  * No description
3912
3913
  *
@@ -3929,7 +3930,7 @@ export class Api extends HttpClient {
3929
3930
  * @response `200` `SiteConfiguration` OK
3930
3931
  * @response `422` `UnprocessableEntity` Unprocessable Content
3931
3932
  */
3932
- 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)),
3933
+ 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)),
3933
3934
  /**
3934
3935
  * No description
3935
3936
  *
@@ -3953,7 +3954,7 @@ export class Api extends HttpClient {
3953
3954
  * @response `200` `SiteConfigurationByUrl` OK
3954
3955
  * @response `422` `UnprocessableEntity` Unprocessable Content
3955
3956
  */
3956
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3957
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3957
3958
  /**
3958
3959
  * No description
3959
3960
  *
@@ -3978,7 +3979,7 @@ export class Api extends HttpClient {
3978
3979
  * @response `200` `SiteConfiguration` OK
3979
3980
  * @response `422` `UnprocessableEntity` Unprocessable Content
3980
3981
  */
3981
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3982
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3982
3983
  /**
3983
3984
  * No description
3984
3985
  *
@@ -4002,7 +4003,7 @@ export class Api extends HttpClient {
4002
4003
  * @response `200` `SiteConfigurationSummaryPaginated` OK
4003
4004
  * @response `422` `UnprocessableEntity` Unprocessable Content
4004
4005
  */
4005
- 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)),
4006
+ 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)),
4006
4007
  /**
4007
4008
  * No description
4008
4009
  *
@@ -4094,7 +4095,7 @@ export class Api extends HttpClient {
4094
4095
  * @secure
4095
4096
  * @response `200` `GetForm` OK
4096
4097
  */
4097
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4098
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4098
4099
  /**
4099
4100
  * No description
4100
4101
  *
@@ -4117,7 +4118,7 @@ export class Api extends HttpClient {
4117
4118
  * @response `200` `(SocialSurveyRecord)[]` OK
4118
4119
  * @response `422` `UnprocessableEntity` Unprocessable Content
4119
4120
  */
4120
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4121
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4121
4122
  /**
4122
4123
  * No description
4123
4124
  *
@@ -4140,7 +4141,7 @@ export class Api extends HttpClient {
4140
4141
  * @secure
4141
4142
  * @response `201` `Task` Created
4142
4143
  */
4143
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4144
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4144
4145
  /**
4145
4146
  * No description
4146
4147
  *
@@ -4164,7 +4165,7 @@ export class Api extends HttpClient {
4164
4165
  * @response `200` `Task` OK
4165
4166
  * @response `404` `ProblemDetails` Not Found
4166
4167
  */
4167
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4168
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4168
4169
  /**
4169
4170
  * No description
4170
4171
  *
@@ -4187,7 +4188,7 @@ export class Api extends HttpClient {
4187
4188
  * @secure
4188
4189
  * @response `200` `TaskPaginated` OK
4189
4190
  */
4190
- 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)),
4191
+ 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)),
4191
4192
  /**
4192
4193
  * No description
4193
4194
  *
@@ -4197,7 +4198,7 @@ export class Api extends HttpClient {
4197
4198
  * @secure
4198
4199
  * @response `200` `void` OK
4199
4200
  */
4200
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4201
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4201
4202
  /**
4202
4203
  * No description
4203
4204
  *
@@ -4208,7 +4209,7 @@ export class Api extends HttpClient {
4208
4209
  * @secure
4209
4210
  * @response `200` `EncompassRequestLogPaginated` OK
4210
4211
  */
4211
- 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)),
4212
+ 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)),
4212
4213
  /**
4213
4214
  * No description
4214
4215
  *
@@ -4231,7 +4232,7 @@ export class Api extends HttpClient {
4231
4232
  * @secure
4232
4233
  * @response `201` `LosCredentials` Created
4233
4234
  */
4234
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4235
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4235
4236
  /**
4236
4237
  * No description
4237
4238
  *
@@ -4242,7 +4243,7 @@ export class Api extends HttpClient {
4242
4243
  * @secure
4243
4244
  * @response `200` `EncompassCredentialsDetail` OK
4244
4245
  */
4245
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4246
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4246
4247
  /**
4247
4248
  * No description
4248
4249
  *
@@ -4264,7 +4265,7 @@ export class Api extends HttpClient {
4264
4265
  * @secure
4265
4266
  * @response `201` `LosWebhook` Created
4266
4267
  */
4267
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4268
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4268
4269
  /**
4269
4270
  * No description
4270
4271
  *
@@ -4286,7 +4287,7 @@ export class Api extends HttpClient {
4286
4287
  * @secure
4287
4288
  * @response `200` `LosSyncPaginated` OK
4288
4289
  */
4289
- 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)),
4290
+ 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)),
4290
4291
  /**
4291
4292
  * No description
4292
4293
  *
@@ -4369,7 +4370,7 @@ export class Api extends HttpClient {
4369
4370
  * @response `201` `UserDevice` Created
4370
4371
  * @response `400` `ProblemDetails` Bad Request
4371
4372
  */
4372
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4373
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4373
4374
  /**
4374
4375
  * No description
4375
4376
  *
@@ -4414,7 +4415,7 @@ export class Api extends HttpClient {
4414
4415
  * @secure
4415
4416
  * @response `200` `UserDraft` OK
4416
4417
  */
4417
- 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)),
4418
+ 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)),
4418
4419
  /**
4419
4420
  * No description
4420
4421
  *
@@ -4447,7 +4448,7 @@ export class Api extends HttpClient {
4447
4448
  * @secure
4448
4449
  * @response `200` `UserGroupAccessScope` OK
4449
4450
  */
4450
- 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)),
4451
+ 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)),
4451
4452
  /**
4452
4453
  * No description
4453
4454
  *
@@ -4480,7 +4481,7 @@ export class Api extends HttpClient {
4480
4481
  * @secure
4481
4482
  * @response `200` `UserGroupMember` OK
4482
4483
  */
4483
- 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)),
4484
+ 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)),
4484
4485
  /**
4485
4486
  * No description
4486
4487
  *
@@ -4524,7 +4525,7 @@ export class Api extends HttpClient {
4524
4525
  * @secure
4525
4526
  * @response `200` `UserGroup` OK
4526
4527
  */
4527
- 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)),
4528
+ 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)),
4528
4529
  /**
4529
4530
  * No description
4530
4531
  *
@@ -4546,7 +4547,7 @@ export class Api extends HttpClient {
4546
4547
  * @secure
4547
4548
  * @response `201` `UserGroup` Created
4548
4549
  */
4549
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4550
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4550
4551
  /**
4551
4552
  * No description
4552
4553
  *
@@ -4559,7 +4560,7 @@ export class Api extends HttpClient {
4559
4560
  * @response `404` `Error` Not Found
4560
4561
  * @response `422` `UnprocessableEntity` Unprocessable Content
4561
4562
  */
4562
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4563
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4563
4564
  /**
4564
4565
  * No description
4565
4566
  *
@@ -4572,7 +4573,7 @@ export class Api extends HttpClient {
4572
4573
  * @response `404` `Error` Not Found
4573
4574
  * @response `422` `UnprocessableEntity` Unprocessable Content
4574
4575
  */
4575
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4576
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4576
4577
  /**
4577
4578
  * No description
4578
4579
  *
@@ -4622,7 +4623,7 @@ export class Api extends HttpClient {
4622
4623
  * @response `404` `Error` Not Found
4623
4624
  * @response `422` `UnprocessableEntity` Unprocessable Content
4624
4625
  */
4625
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4626
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4626
4627
  /**
4627
4628
  * No description
4628
4629
  *
@@ -4646,7 +4647,7 @@ export class Api extends HttpClient {
4646
4647
  * @response `204` `void` No Content
4647
4648
  * @response `422` `UnprocessableEntity` Unprocessable Content
4648
4649
  */
4649
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4650
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4650
4651
  /**
4651
4652
  * No description
4652
4653
  *
@@ -4693,7 +4694,7 @@ export class Api extends HttpClient {
4693
4694
  * @secure
4694
4695
  * @response `204` `void` No Content
4695
4696
  */
4696
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4697
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4697
4698
  /**
4698
4699
  * No description
4699
4700
  *
@@ -4738,7 +4739,7 @@ export class Api extends HttpClient {
4738
4739
  * @response `200` `DetailedUser` OK
4739
4740
  * @response `422` `UnprocessableEntity` Unprocessable Content
4740
4741
  */
4741
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4742
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4742
4743
  /**
4743
4744
  * No description
4744
4745
  *
@@ -4749,7 +4750,7 @@ export class Api extends HttpClient {
4749
4750
  * @secure
4750
4751
  * @response `200` `UserPaginated` OK
4751
4752
  */
4752
- 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)),
4753
+ 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)),
4753
4754
  /**
4754
4755
  * No description
4755
4756
  *
@@ -4760,7 +4761,7 @@ export class Api extends HttpClient {
4760
4761
  * @secure
4761
4762
  * @response `200` `AdminAccessUser` OK
4762
4763
  */
4763
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4764
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4764
4765
  /**
4765
4766
  * No description
4766
4767
  *
@@ -4772,7 +4773,7 @@ export class Api extends HttpClient {
4772
4773
  * @response `200` `User` OK
4773
4774
  * @response `422` `UnprocessableEntity` Unprocessable Content
4774
4775
  */
4775
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4776
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4776
4777
  /**
4777
4778
  * No description
4778
4779
  *
@@ -4784,7 +4785,7 @@ export class Api extends HttpClient {
4784
4785
  * @response `200` `DetailedUser` OK
4785
4786
  * @response `422` `UnprocessableEntity` Unprocessable Content
4786
4787
  */
4787
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4788
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4788
4789
  /**
4789
4790
  * No description
4790
4791
  *
@@ -4818,7 +4819,7 @@ export class Api extends HttpClient {
4818
4819
  * @response `204` `void` No Content
4819
4820
  * @response `422` `UnprocessableEntity` Unprocessable Content
4820
4821
  */
4821
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4822
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4822
4823
  /**
4823
4824
  * No description
4824
4825
  *
@@ -4830,7 +4831,7 @@ export class Api extends HttpClient {
4830
4831
  * @response `204` `void` No Content
4831
4832
  * @response `422` `UnprocessableEntity` Unprocessable Content
4832
4833
  */
4833
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4834
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4834
4835
  /**
4835
4836
  * No description
4836
4837
  *
@@ -4842,7 +4843,7 @@ export class Api extends HttpClient {
4842
4843
  * @response `204` `void` No Content
4843
4844
  * @response `422` `UnprocessableEntity` Unprocessable Content
4844
4845
  */
4845
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4846
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4846
4847
  /**
4847
4848
  * No description
4848
4849
  *
@@ -4854,7 +4855,7 @@ export class Api extends HttpClient {
4854
4855
  * @response `204` `void` No Content
4855
4856
  * @response `422` `UnprocessableEntity` Unprocessable Content
4856
4857
  */
4857
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4858
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4858
4859
  /**
4859
4860
  * No description
4860
4861
  *
@@ -4878,7 +4879,7 @@ export class Api extends HttpClient {
4878
4879
  * @response `204` `void` No Content
4879
4880
  * @response `422` `UnprocessableEntity` Unprocessable Content
4880
4881
  */
4881
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4882
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4882
4883
  /**
4883
4884
  * No description
4884
4885
  *
@@ -4901,7 +4902,7 @@ export class Api extends HttpClient {
4901
4902
  * @secure
4902
4903
  * @response `200` `DetailedUser` OK
4903
4904
  */
4904
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4905
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4905
4906
  /**
4906
4907
  * @description Update the phone number If changed will send a verification code to the new number
4907
4908
  *
@@ -4912,7 +4913,7 @@ export class Api extends HttpClient {
4912
4913
  * @secure
4913
4914
  * @response `204` `DetailedUser` No Content
4914
4915
  */
4915
- 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)),
4916
+ 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)),
4916
4917
  /**
4917
4918
  * No description
4918
4919
  *
@@ -4956,7 +4957,7 @@ export class Api extends HttpClient {
4956
4957
  * @secure
4957
4958
  * @response `204` `void` No Content
4958
4959
  */
4959
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4960
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4960
4961
  /**
4961
4962
  * No description
4962
4963
  *
@@ -4967,7 +4968,7 @@ export class Api extends HttpClient {
4967
4968
  * @secure
4968
4969
  * @response `200` `GetForm` OK
4969
4970
  */
4970
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4971
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4971
4972
  };
4972
4973
  this.sso = {
4973
4974
  /**