@matech/thebigpos-sdk 2.45.1-rc9 → 2.46.8-aibi-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.8
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,346 @@ 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
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
265
274
  * @secure
266
- * @response `200` `AiAccountSettings` OK
275
+ * @response `200` `AiEnabled` OK
267
276
  */
268
- getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "GET", secure: true, format: "json" }, params)),
277
+ getAiAccess: (params = {}) => this.request(Object.assign({ path: `/api/ai/access`, method: "GET", secure: true, format: "json" }, params)),
269
278
  /**
270
279
  * No description
271
280
  *
272
- * @tags AiAccountSettings
273
- * @name UpdateAiAccountSettings
274
- * @summary Update account AI settings
275
- * @request PUT:/api/ai/admin/account-settings
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
276
285
  * @secure
277
- * @response `200` `AiAccountSettings` OK
278
- * @response `400` `ProblemDetails` Bad Request
286
+ * @response `200` `AiEnabled` OK
279
287
  */
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)),
288
+ getAccountAiEnabled: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "GET", secure: true, format: "json" }, params)),
281
289
  /**
282
290
  * No description
283
291
  *
284
- * @tags AiAdmin
285
- * @name GetAiAuditLogs
286
- * @summary Get paginated audit logs
287
- * @request GET:/api/ai/admin/audit-logs
288
- * @secure
289
- * @response `200` `AiAuditLogPaginated` OK
290
- */
291
- getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
292
- /**
293
- * No description
294
- *
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}
299
- * @secure
300
- * @response `200` `(AiAuditLog)[]` OK
301
- */
302
- getAiRequestLifecycle: (requestId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs/request/${requestId}`, method: "GET", secure: true, format: "json" }, params)),
303
- /**
304
- * No description
305
- *
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)),
384
+ /**
385
+ * No description
386
+ *
387
+ * @tags AiAdminPrompt
388
+ * @name GetAiTools
389
+ * @summary List available agent tools and their settings schema
390
+ * @request GET:/api/ai/prompts/tools
391
+ * @secure
392
+ * @response `200` `(AiToolCatalogItem)[]` OK
393
+ */
394
+ getAiTools: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/tools`, method: "GET", secure: true, format: "json" }, params)),
395
+ /**
396
+ * No description
397
+ *
398
+ * @tags AiAdminPrompt
399
+ * @name UpdateAiPromptTools
400
+ * @summary Replace the prompt's agent tool configuration
401
+ * @request PUT:/api/ai/prompts/{id}/tools
402
+ * @secure
403
+ * @response `200` `AiPrompt` OK
404
+ * @response `400` `ProblemDetails` Bad Request
405
+ * @response `404` `ProblemDetails` Not Found
406
+ */
407
+ updateAiPromptTools: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/tools`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
397
408
  /**
398
409
  * No description
399
410
  *
400
411
  * @tags AiAdminPrompt
401
412
  * @name ToggleAiPrompt
402
413
  * @summary Toggle prompt active/inactive
403
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
414
+ * @request PATCH:/api/ai/prompts/{id}/toggle
404
415
  * @secure
405
416
  * @response `200` `AiPrompt` OK
406
417
  * @response `404` `ProblemDetails` Not Found
407
418
  */
408
- toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
419
+ toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
409
420
  /**
410
421
  * No description
411
422
  *
412
423
  * @tags AiAdminPrompt
413
424
  * @name GenerateAiSystemPrompt
414
425
  * @summary Generate a system prompt from description
415
- * @request POST:/api/ai/admin/prompts/generate
426
+ * @request POST:/api/ai/prompts/generate
416
427
  * @secure
417
428
  * @response `200` `GenerateSystemPrompt` OK
418
429
  * @response `400` `ProblemDetails` Bad Request
419
430
  */
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)),
431
+ 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
432
  /**
422
433
  * No description
423
434
  *
424
435
  * @tags AiAdminPrompt
425
- * @name GetSupportedModels
436
+ * @name GetAiSupportedModels
426
437
  * @summary Get supported LLM models
427
- * @request GET:/api/ai/admin/prompts/supported-models
438
+ * @request GET:/api/ai/prompts/supported-models
428
439
  * @secure
429
440
  * @response `200` `(SupportedModel)[]` OK
430
441
  */
431
- getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
442
+ getAiSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
432
443
  /**
433
444
  * No description
434
445
  *
435
446
  * @tags AiAdminSettings
436
447
  * @name GetAiAdminSettings
437
448
  * @summary Get global AI settings
438
- * @request GET:/api/ai/admin/settings
449
+ * @request GET:/api/ai/settings
439
450
  * @secure
440
451
  * @response `200` `AiAdminSettings` OK
441
452
  */
442
- getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
453
+ getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "GET", secure: true, format: "json" }, params)),
443
454
  /**
444
455
  * No description
445
456
  *
446
457
  * @tags AiAdminSettings
447
458
  * @name UpdateAiAdminSettings
448
459
  * @summary Update global AI settings
449
- * @request PUT:/api/ai/admin/settings
460
+ * @request PUT:/api/ai/settings
450
461
  * @secure
451
462
  * @response `200` `AiAdminSettings` OK
452
463
  * @response `400` `ProblemDetails` Bad Request
453
464
  */
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)),
465
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
466
+ /**
467
+ * No description
468
+ *
469
+ * @tags AiAudit
470
+ * @name GetAiAuditLogs
471
+ * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
472
+ * @request GET:/api/ai/audit-logs
473
+ * @secure
474
+ * @response `200` `AiAuditLogPaginated` OK
475
+ */
476
+ getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
477
+ /**
478
+ * No description
479
+ *
480
+ * @tags AiAudit
481
+ * @name GetAiRequestLifecycle
482
+ * @summary Get the full event lifecycle of a single AI request
483
+ * @request GET:/api/ai/audit-logs/request/{requestId}
484
+ * @secure
485
+ * @response `200` `(AiAuditLog)[]` OK
486
+ */
487
+ getAiRequestLifecycle: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
488
+ /**
489
+ * No description
490
+ *
491
+ * @tags AiAudit
492
+ * @name GetAiAuditConversations
493
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
494
+ * @request GET:/api/ai/audit-conversations
495
+ * @secure
496
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
497
+ */
498
+ getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
499
+ /**
500
+ * No description
501
+ *
502
+ * @tags AiAudit
503
+ * @name GetAiStats
504
+ * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
505
+ * @request GET:/api/ai/stats
506
+ * @secure
507
+ * @response `200` `AiAdminStats` OK
508
+ */
509
+ getAiStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
510
+ /**
511
+ * No description
512
+ *
513
+ * @tags AiAudit
514
+ * @name GetAiConfigChanges
515
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
516
+ * @request GET:/api/ai/config-changes
517
+ * @secure
518
+ * @response `200` `AuditLogEntryPaginated` OK
519
+ */
520
+ getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
455
521
  /**
456
522
  * No description
457
523
  *
458
524
  * @tags AiCanonicalField
459
525
  * @name GetAiCanonicalFields
460
526
  * @summary Get all canonical fields
461
- * @request GET:/api/ai/admin/fields
527
+ * @request GET:/api/ai/canonical-fields
462
528
  * @secure
463
529
  * @response `200` `(AiCanonicalField)[]` OK
464
530
  */
465
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
531
+ getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "GET", secure: true, format: "json" }, params)),
466
532
  /**
467
533
  * No description
468
534
  *
469
535
  * @tags AiCanonicalField
470
536
  * @name CreateAiCanonicalField
471
537
  * @summary Create canonical field
472
- * @request POST:/api/ai/admin/fields
538
+ * @request POST:/api/ai/canonical-fields
473
539
  * @secure
474
540
  * @response `201` `AiCanonicalField` Created
475
541
  * @response `400` `ProblemDetails` Bad Request
476
542
  */
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)),
543
+ 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
544
  /**
479
545
  * No description
480
546
  *
481
547
  * @tags AiCanonicalField
482
548
  * @name GetAiCanonicalField
483
549
  * @summary Get canonical field by ID
484
- * @request GET:/api/ai/admin/fields/{id}
550
+ * @request GET:/api/ai/canonical-fields/{id}
485
551
  * @secure
486
552
  * @response `200` `AiCanonicalField` OK
487
553
  * @response `404` `ProblemDetails` Not Found
488
554
  */
489
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
555
+ getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
490
556
  /**
491
557
  * No description
492
558
  *
493
559
  * @tags AiCanonicalField
494
560
  * @name UpdateAiCanonicalField
495
561
  * @summary Update canonical field
496
- * @request PUT:/api/ai/admin/fields/{id}
562
+ * @request PUT:/api/ai/canonical-fields/{id}
497
563
  * @secure
498
564
  * @response `200` `AiCanonicalField` OK
499
565
  * @response `400` `ProblemDetails` Bad Request
500
566
  * @response `404` `ProblemDetails` Not Found
501
567
  */
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)),
568
+ 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
569
  /**
504
570
  * No description
505
571
  *
506
572
  * @tags AiCanonicalField
507
573
  * @name DeleteAiCanonicalField
508
574
  * @summary Delete canonical field
509
- * @request DELETE:/api/ai/admin/fields/{id}
575
+ * @request DELETE:/api/ai/canonical-fields/{id}
510
576
  * @secure
511
577
  * @response `204` `void` No Content
512
578
  * @response `404` `ProblemDetails` Not Found
513
579
  */
514
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
580
+ deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "DELETE", secure: true }, params)),
515
581
  /**
516
582
  * No description
517
583
  *
518
584
  * @tags AiCanonicalField
519
585
  * @name ToggleAiCanonicalField
520
586
  * @summary Toggle canonical field active/inactive
521
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
587
+ * @request PATCH:/api/ai/canonical-fields/{id}/toggle
522
588
  * @secure
523
589
  * @response `200` `AiCanonicalField` OK
524
590
  * @response `404` `ProblemDetails` Not Found
525
591
  */
526
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
592
+ toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
527
593
  /**
528
594
  * No description
529
595
  *
530
596
  * @tags AiChat
531
597
  * @name AiChat
532
598
  * @summary Send AI chat message
533
- * @request POST:/api/ai/chat
599
+ * @request POST:/api/ai/chats
534
600
  * @secure
535
601
  * @response `200` `AiChat` OK
536
602
  * @response `400` `ProblemDetails` Bad Request
537
603
  * @response `401` `ProblemDetails` Unauthorized
538
604
  */
539
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
605
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
540
606
  /**
541
607
  * No description
542
608
  *
@@ -574,7 +640,7 @@ export class Api extends HttpClient {
574
640
  * @response `403` `ProblemDetails` Forbidden
575
641
  * @response `404` `ProblemDetails` Not Found
576
642
  */
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)),
643
+ 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
644
  /**
579
645
  * No description
580
646
  *
@@ -626,301 +692,245 @@ export class Api extends HttpClient {
626
692
  * @response `403` `ProblemDetails` Forbidden
627
693
  * @response `404` `ProblemDetails` Not Found
628
694
  */
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)),
695
+ 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
696
  /**
631
697
  * No description
632
698
  *
633
699
  * @tags AiConversationAdmin
634
700
  * @name GetAiAccountConversations
635
701
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
636
- * @request GET:/api/ai/admin/conversations
702
+ * @request GET:/api/ai/conversations/all
637
703
  * @secure
638
704
  * @response `200` `AiConversationListItemPaginated` OK
639
705
  */
640
- getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
706
+ getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all`, method: "GET", query: query, secure: true, format: "json" }, params)),
641
707
  /**
642
708
  * No description
643
709
  *
644
710
  * @tags AiConversationAdmin
645
711
  * @name GetAiAccountConversation
646
712
  * @summary Get an account conversation's detail (admin supervision)
647
- * @request GET:/api/ai/admin/conversations/{id}
713
+ * @request GET:/api/ai/conversations/all/{id}
648
714
  * @secure
649
715
  * @response `200` `AiConversationDetail` OK
650
716
  * @response `404` `ProblemDetails` Not Found
651
717
  */
652
- getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
718
+ getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}`, method: "GET", secure: true, format: "json" }, params)),
653
719
  /**
654
720
  * No description
655
721
  *
656
722
  * @tags AiConversationAdmin
657
723
  * @name GetAiAccountConversationMessages
658
724
  * @summary Get an account conversation's messages (admin supervision)
659
- * @request GET:/api/ai/admin/conversations/{id}/messages
725
+ * @request GET:/api/ai/conversations/all/{id}/messages
660
726
  * @secure
661
727
  * @response `200` `AiChatMessagePaginated` OK
662
728
  * @response `404` `ProblemDetails` Not Found
663
729
  */
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)),
730
+ 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
731
  /**
666
732
  * No description
667
733
  *
668
734
  * @tags AiGuardrail
669
735
  * @name GetAiGuardrails
670
736
  * @summary Get all guardrails
671
- * @request GET:/api/ai/admin/guardrails
737
+ * @request GET:/api/ai/guardrails
672
738
  * @secure
673
739
  * @response `200` `(AiGuardrail)[]` OK
674
740
  */
675
- getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
741
+ getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "GET", secure: true, format: "json" }, params)),
676
742
  /**
677
743
  * No description
678
744
  *
679
745
  * @tags AiGuardrail
680
746
  * @name CreateAiGuardrail
681
747
  * @summary Create custom guardrail
682
- * @request POST:/api/ai/admin/guardrails
748
+ * @request POST:/api/ai/guardrails
683
749
  * @secure
684
750
  * @response `201` `AiGuardrail` Created
685
751
  * @response `400` `ProblemDetails` Bad Request
686
752
  */
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)),
753
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
688
754
  /**
689
755
  * No description
690
756
  *
691
757
  * @tags AiGuardrail
692
758
  * @name GetAiGuardrail
693
759
  * @summary Get guardrail by ID
694
- * @request GET:/api/ai/admin/guardrails/{id}
760
+ * @request GET:/api/ai/guardrails/{id}
695
761
  * @secure
696
762
  * @response `200` `AiGuardrail` OK
697
763
  * @response `404` `ProblemDetails` Not Found
698
764
  */
699
- getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
765
+ getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
700
766
  /**
701
767
  * No description
702
768
  *
703
769
  * @tags AiGuardrail
704
770
  * @name UpdateAiGuardrail
705
771
  * @summary Update guardrail
706
- * @request PUT:/api/ai/admin/guardrails/{id}
772
+ * @request PUT:/api/ai/guardrails/{id}
707
773
  * @secure
708
774
  * @response `200` `AiGuardrail` OK
709
775
  * @response `400` `ProblemDetails` Bad Request
710
776
  * @response `404` `ProblemDetails` Not Found
711
777
  */
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)),
778
+ 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
779
  /**
714
780
  * No description
715
781
  *
716
782
  * @tags AiGuardrail
717
783
  * @name DeleteAiGuardrail
718
784
  * @summary Delete guardrail
719
- * @request DELETE:/api/ai/admin/guardrails/{id}
785
+ * @request DELETE:/api/ai/guardrails/{id}
720
786
  * @secure
721
787
  * @response `204` `void` No Content
722
788
  * @response `400` `ProblemDetails` Bad Request
723
789
  * @response `404` `ProblemDetails` Not Found
724
790
  */
725
- deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
791
+ deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "DELETE", secure: true }, params)),
726
792
  /**
727
793
  * No description
728
794
  *
729
795
  * @tags AiGuardrail
730
796
  * @name ToggleAiGuardrail
731
797
  * @summary Toggle guardrail enabled/disabled
732
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
798
+ * @request PATCH:/api/ai/guardrails/{id}/toggle
733
799
  * @secure
734
800
  * @response `200` `AiGuardrail` OK
735
801
  * @response `404` `ProblemDetails` Not Found
736
802
  */
737
- toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
803
+ toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
738
804
  /**
739
805
  * No description
740
806
  *
741
807
  * @tags AiPrompt
742
- * @name GetAvailablePrompts
808
+ * @name GetAiAvailablePrompts
743
809
  * @summary Get available prompts for current user
744
- * @request GET:/api/ai/prompts
810
+ * @request GET:/api/ai/prompts/available
745
811
  * @secure
746
812
  * @response `200` `(AiPromptSummary)[]` OK
747
813
  */
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)),
793
- /**
794
- * No description
795
- *
796
- * @tags AiSuperAdmin
797
- * @name SetAccountAiEnabled
798
- * @summary Enable or disable AI for an account (SuperAdmin only)
799
- * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
800
- * @secure
801
- * @response `204` `void` No Content
802
- * @response `404` `ProblemDetails` Not Found
803
- */
804
- setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
814
+ getAiAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/available`, method: "GET", query: query, secure: true, format: "json" }, params)),
805
815
  /**
806
816
  * No description
807
817
  *
808
818
  * @tags AiTokenUsageAdmin
809
819
  * @name SearchAiAccountTokenUsage
810
820
  * @summary Search accounts by current-month AI token usage and classification
811
- * @request POST:/api/ai/admin/token-usage/search
821
+ * @request POST:/api/ai/token-usage/search
812
822
  * @secure
813
823
  * @response `200` `AiAccountUsageOverviewPaginated` OK
814
824
  */
815
- 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)),
825
+ 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)),
816
826
  /**
817
827
  * No description
818
828
  *
819
829
  * @tags AiTokenUsageAdmin
820
830
  * @name GetAiAccountTokenUsage
821
831
  * @summary Get an account's current-month AI token usage
822
- * @request GET:/api/ai/admin/token-usage/{accountId}
832
+ * @request GET:/api/ai/token-usage/{accountId}
823
833
  * @secure
824
834
  * @response `200` `AiTokenBudgetStatus` OK
825
835
  */
826
- getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
836
+ getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
827
837
  /**
828
838
  * No description
829
839
  *
830
840
  * @tags AiTokenUsageAdmin
831
841
  * @name GetAiAccountTokenUsageHistory
832
842
  * @summary Get an account's monthly AI token usage history
833
- * @request GET:/api/ai/admin/token-usage/{accountId}/history
843
+ * @request GET:/api/ai/token-usage/{accountId}/history
834
844
  * @secure
835
845
  * @response `200` `AiTokenUsageWindowPaginated` OK
836
846
  */
837
- 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)),
847
+ getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
838
848
  /**
839
849
  * No description
840
850
  *
841
851
  * @tags AiTokenUsageAdmin
842
852
  * @name SetAiAccountTokenLimit
843
853
  * @summary Set or raise an account's monthly AI token limit
844
- * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
854
+ * @request PUT:/api/ai/token-usage/{accountId}/limit
845
855
  * @secure
846
856
  * @response `200` `AiTokenBudgetStatus` OK
847
857
  * @response `400` `ProblemDetails` Bad Request
848
858
  */
849
- 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)),
859
+ 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)),
850
860
  /**
851
861
  * No description
852
862
  *
853
863
  * @tags AiUrlSource
854
864
  * @name GetAiUrlSources
855
865
  * @summary Get all URL sources
856
- * @request GET:/api/ai/admin/url-sources
866
+ * @request GET:/api/ai/url-sources
857
867
  * @secure
858
868
  * @response `200` `(AiUrlSource)[]` OK
859
869
  */
860
- getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
870
+ getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "GET", secure: true, format: "json" }, params)),
861
871
  /**
862
872
  * No description
863
873
  *
864
874
  * @tags AiUrlSource
865
875
  * @name CreateAiUrlSource
866
876
  * @summary Create URL source
867
- * @request POST:/api/ai/admin/url-sources
877
+ * @request POST:/api/ai/url-sources
868
878
  * @secure
869
879
  * @response `201` `AiUrlSource` Created
870
880
  * @response `400` `ProblemDetails` Bad Request
871
881
  * @response `409` `ProblemDetails` Conflict
872
882
  */
873
- 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)),
883
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
874
884
  /**
875
885
  * No description
876
886
  *
877
887
  * @tags AiUrlSource
878
888
  * @name GetAiUrlSource
879
889
  * @summary Get URL source by ID
880
- * @request GET:/api/ai/admin/url-sources/{id}
890
+ * @request GET:/api/ai/url-sources/{id}
881
891
  * @secure
882
892
  * @response `200` `AiUrlSource` OK
883
893
  * @response `404` `ProblemDetails` Not Found
884
894
  */
885
- getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
895
+ getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
886
896
  /**
887
897
  * No description
888
898
  *
889
899
  * @tags AiUrlSource
890
900
  * @name UpdateAiUrlSource
891
901
  * @summary Update URL source
892
- * @request PUT:/api/ai/admin/url-sources/{id}
902
+ * @request PUT:/api/ai/url-sources/{id}
893
903
  * @secure
894
904
  * @response `200` `AiUrlSource` OK
895
905
  * @response `400` `ProblemDetails` Bad Request
896
906
  * @response `404` `ProblemDetails` Not Found
897
907
  * @response `409` `ProblemDetails` Conflict
898
908
  */
899
- 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)),
909
+ 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)),
900
910
  /**
901
911
  * No description
902
912
  *
903
913
  * @tags AiUrlSource
904
914
  * @name DeleteAiUrlSource
905
915
  * @summary Delete URL source
906
- * @request DELETE:/api/ai/admin/url-sources/{id}
916
+ * @request DELETE:/api/ai/url-sources/{id}
907
917
  * @secure
908
918
  * @response `204` `void` No Content
909
919
  * @response `404` `ProblemDetails` Not Found
910
920
  */
911
- deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
921
+ deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "DELETE", secure: true }, params)),
912
922
  /**
913
923
  * No description
914
924
  *
915
925
  * @tags AiUrlSource
916
926
  * @name ToggleAiUrlSource
917
927
  * @summary Toggle URL source active/inactive
918
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
928
+ * @request PATCH:/api/ai/url-sources/{id}/toggle
919
929
  * @secure
920
930
  * @response `200` `AiUrlSource` OK
921
931
  * @response `404` `ProblemDetails` Not Found
922
932
  */
923
- toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
933
+ toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
924
934
  /**
925
935
  * No description
926
936
  *
@@ -953,7 +963,7 @@ export class Api extends HttpClient {
953
963
  * @secure
954
964
  * @response `200` `AuditLogEntryPaginated` OK
955
965
  */
956
- 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)),
966
+ 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)),
957
967
  /**
958
968
  * No description
959
969
  *
@@ -989,7 +999,7 @@ export class Api extends HttpClient {
989
999
  * @response `401` `ProblemDetails` Unauthorized
990
1000
  * @response `422` `UnprocessableEntity` Unprocessable Content
991
1001
  */
992
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1002
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
993
1003
  /**
994
1004
  * No description
995
1005
  *
@@ -1001,7 +1011,7 @@ export class Api extends HttpClient {
1001
1011
  * @response `200` `AccountDeactivated` OK
1002
1012
  * @response `422` `UnprocessableEntity` Unprocessable Content
1003
1013
  */
1004
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1014
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1005
1015
  /**
1006
1016
  * No description
1007
1017
  *
@@ -1013,7 +1023,7 @@ export class Api extends HttpClient {
1013
1023
  * @response `200` `AccountDeactivated` OK
1014
1024
  * @response `422` `UnprocessableEntity` Unprocessable Content
1015
1025
  */
1016
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1026
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1017
1027
  /**
1018
1028
  * No description
1019
1029
  *
@@ -1025,7 +1035,7 @@ export class Api extends HttpClient {
1025
1035
  * @response `200` `Token` OK
1026
1036
  * @response `422` `UnprocessableEntity` Unprocessable Content
1027
1037
  */
1028
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1038
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1029
1039
  /**
1030
1040
  * No description
1031
1041
  *
@@ -1037,7 +1047,7 @@ export class Api extends HttpClient {
1037
1047
  * @response `200` `SSOToken` OK
1038
1048
  * @response `422` `UnprocessableEntity` Unprocessable Content
1039
1049
  */
1040
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1050
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1041
1051
  /**
1042
1052
  * No description
1043
1053
  *
@@ -1072,7 +1082,7 @@ export class Api extends HttpClient {
1072
1082
  * @response `200` `GetBranch` OK
1073
1083
  * @response `422` `UnprocessableEntity` Unprocessable Content
1074
1084
  */
1075
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1085
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1076
1086
  /**
1077
1087
  * No description
1078
1088
  *
@@ -1083,7 +1093,7 @@ export class Api extends HttpClient {
1083
1093
  * @secure
1084
1094
  * @response `200` `GetBranchPaginated` OK
1085
1095
  */
1086
- 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)),
1096
+ 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)),
1087
1097
  /**
1088
1098
  * No description
1089
1099
  *
@@ -1106,7 +1116,7 @@ export class Api extends HttpClient {
1106
1116
  * @response `200` `GetBranch` OK
1107
1117
  * @response `422` `UnprocessableEntity` Unprocessable Content
1108
1118
  */
1109
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1119
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1110
1120
  /**
1111
1121
  * No description
1112
1122
  *
@@ -1141,7 +1151,7 @@ export class Api extends HttpClient {
1141
1151
  * @response `200` `SiteConfiguration` OK
1142
1152
  * @response `422` `UnprocessableEntity` Unprocessable Content
1143
1153
  */
1144
- 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)),
1154
+ 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)),
1145
1155
  /**
1146
1156
  * No description
1147
1157
  *
@@ -1164,7 +1174,7 @@ export class Api extends HttpClient {
1164
1174
  * @response `200` `SiteConfiguration` OK
1165
1175
  * @response `422` `UnprocessableEntity` Unprocessable Content
1166
1176
  */
1167
- 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)),
1177
+ 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)),
1168
1178
  /**
1169
1179
  * No description
1170
1180
  *
@@ -1198,7 +1208,7 @@ export class Api extends HttpClient {
1198
1208
  * @response `200` `BusinessRule` OK
1199
1209
  * @response `422` `UnprocessableEntity` Unprocessable Content
1200
1210
  */
1201
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1211
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1202
1212
  /**
1203
1213
  * No description
1204
1214
  *
@@ -1221,7 +1231,7 @@ export class Api extends HttpClient {
1221
1231
  * @response `200` `BusinessRule` OK
1222
1232
  * @response `422` `UnprocessableEntity` Unprocessable Content
1223
1233
  */
1224
- 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)),
1234
+ 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)),
1225
1235
  /**
1226
1236
  * No description
1227
1237
  *
@@ -1254,7 +1264,7 @@ export class Api extends HttpClient {
1254
1264
  * @secure
1255
1265
  * @response `200` `ClosedLoansReport` OK
1256
1266
  */
1257
- 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)),
1267
+ 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)),
1258
1268
  /**
1259
1269
  * No description
1260
1270
  *
@@ -1271,12 +1281,12 @@ export class Api extends HttpClient {
1271
1281
  *
1272
1282
  * @tags ConsumerConnect
1273
1283
  * @name RetryConsumerConnectAssociation
1274
- * @summary Manually retry Consumer Connect association for failed borrowers on a loan. Returns per-borrower results; check individual Success fields for partial failures.
1284
+ * @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.
1275
1285
  * @request POST:/api/loans/{loanId}/consumer-connect/retry
1276
1286
  * @secure
1277
1287
  * @response `200` `(ConsumerConnectRetry)[]` OK
1278
1288
  */
1279
- retryConsumerConnectAssociation: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/consumer-connect/retry`, method: "POST", secure: true, format: "json" }, params)),
1289
+ retryConsumerConnectAssociation: (loanId, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/consumer-connect/retry`, method: "POST", query: query, secure: true, format: "json" }, params)),
1280
1290
  /**
1281
1291
  * No description
1282
1292
  *
@@ -1299,7 +1309,7 @@ export class Api extends HttpClient {
1299
1309
  * @response `200` `Corporate` OK
1300
1310
  * @response `422` `UnprocessableEntity` Unprocessable Content
1301
1311
  */
1302
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1312
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1303
1313
  /**
1304
1314
  * No description
1305
1315
  *
@@ -1310,7 +1320,7 @@ export class Api extends HttpClient {
1310
1320
  * @secure
1311
1321
  * @response `200` `CorporatePaginated` OK
1312
1322
  */
1313
- 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)),
1323
+ 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)),
1314
1324
  /**
1315
1325
  * No description
1316
1326
  *
@@ -1333,7 +1343,7 @@ export class Api extends HttpClient {
1333
1343
  * @response `200` `Corporate` OK
1334
1344
  * @response `422` `UnprocessableEntity` Unprocessable Content
1335
1345
  */
1336
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1346
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1337
1347
  /**
1338
1348
  * No description
1339
1349
  *
@@ -1367,7 +1377,7 @@ export class Api extends HttpClient {
1367
1377
  * @response `200` `SiteConfiguration` OK
1368
1378
  * @response `422` `UnprocessableEntity` Unprocessable Content
1369
1379
  */
1370
- 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)),
1380
+ 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)),
1371
1381
  /**
1372
1382
  * No description
1373
1383
  *
@@ -1390,7 +1400,7 @@ export class Api extends HttpClient {
1390
1400
  * @response `200` `SiteConfiguration` OK
1391
1401
  * @response `422` `UnprocessableEntity` Unprocessable Content
1392
1402
  */
1393
- 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)),
1403
+ 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)),
1394
1404
  /**
1395
1405
  * No description
1396
1406
  *
@@ -1436,7 +1446,7 @@ export class Api extends HttpClient {
1436
1446
  * @response `409` `ProblemDetails` Conflict
1437
1447
  * @response `422` `ProblemDetails` Unprocessable Content
1438
1448
  */
1439
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1449
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1440
1450
  /**
1441
1451
  * No description
1442
1452
  *
@@ -1463,7 +1473,7 @@ export class Api extends HttpClient {
1463
1473
  * @response `409` `ProblemDetails` Conflict
1464
1474
  * @response `422` `ProblemDetails` Unprocessable Content
1465
1475
  */
1466
- 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)),
1476
+ 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)),
1467
1477
  /**
1468
1478
  * No description
1469
1479
  *
@@ -1533,7 +1543,7 @@ export class Api extends HttpClient {
1533
1543
  * @secure
1534
1544
  * @response `200` `Device` OK
1535
1545
  */
1536
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1546
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1537
1547
  /**
1538
1548
  * No description
1539
1549
  *
@@ -1590,7 +1600,7 @@ export class Api extends HttpClient {
1590
1600
  * @response `404` `ProblemDetails` Not Found
1591
1601
  * @response `422` `UnprocessableEntity` Unprocessable Content
1592
1602
  */
1593
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1603
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1594
1604
  /**
1595
1605
  * No description
1596
1606
  *
@@ -1627,7 +1637,7 @@ export class Api extends HttpClient {
1627
1637
  * @response `404` `ProblemDetails` Not Found
1628
1638
  * @response `422` `UnprocessableEntity` Unprocessable Content
1629
1639
  */
1630
- 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)),
1640
+ 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)),
1631
1641
  /**
1632
1642
  * No description
1633
1643
  *
@@ -1675,7 +1685,7 @@ export class Api extends HttpClient {
1675
1685
  * @secure
1676
1686
  * @response `200` `DocumentTemplateVersion` OK
1677
1687
  */
1678
- 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)),
1688
+ 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)),
1679
1689
  /**
1680
1690
  * No description
1681
1691
  *
@@ -1697,7 +1707,7 @@ export class Api extends HttpClient {
1697
1707
  * @secure
1698
1708
  * @response `200` `DocumentTemplateVersion` OK
1699
1709
  */
1700
- 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)),
1710
+ 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)),
1701
1711
  /**
1702
1712
  * No description
1703
1713
  *
@@ -1735,7 +1745,7 @@ export class Api extends HttpClient {
1735
1745
  * @response `409` `void` Conflict
1736
1746
  * @response `422` `ProblemDetails` Unprocessable Content
1737
1747
  */
1738
- 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)),
1748
+ 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)),
1739
1749
  /**
1740
1750
  * No description
1741
1751
  *
@@ -1798,6 +1808,20 @@ export class Api extends HttpClient {
1798
1808
  * @response `500` `EncompassError` Internal Server Error
1799
1809
  */
1800
1810
  getUserPackages: (query, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/packages`, method: "GET", query: query, secure: true, format: "json" }, params)),
1811
+ /**
1812
+ * No description
1813
+ *
1814
+ * @tags Encompass Packages
1815
+ * @name GetLoanPackages
1816
+ * @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
1817
+ * @secure
1818
+ * @response `200` `EncompassPackageList` OK
1819
+ * @response `400` `EncompassError` Bad Request
1820
+ * @response `401` `EncompassError` Unauthorized
1821
+ * @response `403` `EncompassError` Forbidden
1822
+ * @response `500` `EncompassError` Internal Server Error
1823
+ */
1824
+ 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)),
1801
1825
  /**
1802
1826
  * No description
1803
1827
  *
@@ -1824,7 +1848,7 @@ export class Api extends HttpClient {
1824
1848
  * @response `404` `EncompassError` Not Found
1825
1849
  * @response `500` `EncompassError` Internal Server Error
1826
1850
  */
1827
- 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)),
1851
+ 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)),
1828
1852
  /**
1829
1853
  * No description
1830
1854
  *
@@ -1847,7 +1871,7 @@ export class Api extends HttpClient {
1847
1871
  * @response `201` `File` Created
1848
1872
  * @response `422` `UnprocessableEntity` Unprocessable Content
1849
1873
  */
1850
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1874
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1851
1875
  /**
1852
1876
  * No description
1853
1877
  *
@@ -1870,7 +1894,7 @@ export class Api extends HttpClient {
1870
1894
  * @response `200` `string` OK
1871
1895
  * @response `422` `UnprocessableEntity` Unprocessable Content
1872
1896
  */
1873
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1897
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1874
1898
  /**
1875
1899
  * No description
1876
1900
  *
@@ -1892,7 +1916,7 @@ export class Api extends HttpClient {
1892
1916
  * @secure
1893
1917
  * @response `200` `FilePaginated` OK
1894
1918
  */
1895
- 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)),
1919
+ 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)),
1896
1920
  /**
1897
1921
  * No description
1898
1922
  *
@@ -1915,7 +1939,7 @@ export class Api extends HttpClient {
1915
1939
  * @response `201` `Form` Created
1916
1940
  * @response `422` `UnprocessableEntity` Unprocessable Content
1917
1941
  */
1918
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1942
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1919
1943
  /**
1920
1944
  * No description
1921
1945
  *
@@ -1938,7 +1962,7 @@ export class Api extends HttpClient {
1938
1962
  * @response `200` `Form` OK
1939
1963
  * @response `422` `UnprocessableEntity` Unprocessable Content
1940
1964
  */
1941
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1965
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1942
1966
  /**
1943
1967
  * No description
1944
1968
  *
@@ -1971,7 +1995,7 @@ export class Api extends HttpClient {
1971
1995
  * @secure
1972
1996
  * @response `200` `FormSubmissionFile` OK
1973
1997
  */
1974
- 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)),
1998
+ 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)),
1975
1999
  /**
1976
2000
  * No description
1977
2001
  *
@@ -2015,7 +2039,7 @@ export class Api extends HttpClient {
2015
2039
  * @secure
2016
2040
  * @response `201` `FormSubmission` Created
2017
2041
  */
2018
- 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)),
2042
+ 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)),
2019
2043
  /**
2020
2044
  * No description
2021
2045
  *
@@ -2037,7 +2061,7 @@ export class Api extends HttpClient {
2037
2061
  * @secure
2038
2062
  * @response `200` `FormSubmission` OK
2039
2063
  */
2040
- 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)),
2064
+ 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)),
2041
2065
  /**
2042
2066
  * No description
2043
2067
  *
@@ -2059,7 +2083,7 @@ export class Api extends HttpClient {
2059
2083
  * @secure
2060
2084
  * @response `200` `FormSubmissionPaginated` OK
2061
2085
  */
2062
- 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)),
2086
+ 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)),
2063
2087
  /**
2064
2088
  * No description
2065
2089
  *
@@ -2081,7 +2105,7 @@ export class Api extends HttpClient {
2081
2105
  * @secure
2082
2106
  * @response `200` `FormVersion` OK
2083
2107
  */
2084
- 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)),
2108
+ 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)),
2085
2109
  /**
2086
2110
  * No description
2087
2111
  *
@@ -2103,7 +2127,7 @@ export class Api extends HttpClient {
2103
2127
  * @secure
2104
2128
  * @response `200` `FormVersion` OK
2105
2129
  */
2106
- 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)),
2130
+ 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)),
2107
2131
  /**
2108
2132
  * No description
2109
2133
  *
@@ -2149,7 +2173,7 @@ export class Api extends HttpClient {
2149
2173
  * @response `200` `string` OK
2150
2174
  * @response `422` `UnprocessableEntity` Unprocessable Content
2151
2175
  */
2152
- 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)),
2176
+ 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)),
2153
2177
  /**
2154
2178
  * No description
2155
2179
  *
@@ -2160,7 +2184,7 @@ export class Api extends HttpClient {
2160
2184
  * @secure
2161
2185
  * @response `200` `GetReport` OK
2162
2186
  */
2163
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2187
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2164
2188
  /**
2165
2189
  * No description
2166
2190
  *
@@ -2174,7 +2198,7 @@ export class Api extends HttpClient {
2174
2198
  * @response `422` `UnprocessableEntity` Unprocessable Content
2175
2199
  * @response `423` `UnprocessableEntity` Locked
2176
2200
  */
2177
- 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)),
2201
+ 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)),
2178
2202
  /**
2179
2203
  * No description
2180
2204
  *
@@ -2187,7 +2211,7 @@ export class Api extends HttpClient {
2187
2211
  * @response `422` `UnprocessableEntity` Unprocessable Content
2188
2212
  * @response `423` `UnprocessableEntity` Locked
2189
2213
  */
2190
- 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)),
2214
+ 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)),
2191
2215
  /**
2192
2216
  * No description
2193
2217
  *
@@ -2199,7 +2223,7 @@ export class Api extends HttpClient {
2199
2223
  * @response `200` `string` OK
2200
2224
  * @response `422` `UnprocessableEntity` Unprocessable Content
2201
2225
  */
2202
- 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)),
2226
+ 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)),
2203
2227
  /**
2204
2228
  * No description
2205
2229
  *
@@ -2212,18 +2236,7 @@ export class Api extends HttpClient {
2212
2236
  * @response `202` `string` Accepted
2213
2237
  * @response `422` `UnprocessableEntity` Unprocessable Content
2214
2238
  */
2215
- 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)),
2216
- /**
2217
- * No description
2218
- *
2219
- * @tags LegacyLoan
2220
- * @name GetTaskDocumentsByLoan
2221
- * @summary Get Documents
2222
- * @request GET:/api/los/loan/tasks/documents/{loanID}
2223
- * @secure
2224
- * @response `200` `(DocumentData)[]` OK
2225
- */
2226
- getTaskDocumentsByLoan: (loanId, params = {}) => this.request(Object.assign({ path: `/api/los/loan/tasks/documents/${loanId}`, method: "GET", secure: true, format: "json" }, params)),
2239
+ 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)),
2227
2240
  /**
2228
2241
  * No description
2229
2242
  *
@@ -2303,7 +2316,7 @@ export class Api extends HttpClient {
2303
2316
  * @secure
2304
2317
  * @response `200` `ListingFile` OK
2305
2318
  */
2306
- 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)),
2319
+ 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)),
2307
2320
  /**
2308
2321
  * No description
2309
2322
  *
@@ -2314,7 +2327,7 @@ export class Api extends HttpClient {
2314
2327
  * @secure
2315
2328
  * @response `200` `ListingFile` OK
2316
2329
  */
2317
- 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)),
2330
+ 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)),
2318
2331
  /**
2319
2332
  * No description
2320
2333
  *
@@ -2336,7 +2349,7 @@ export class Api extends HttpClient {
2336
2349
  * @secure
2337
2350
  * @response `200` `ListingPhoto` OK
2338
2351
  */
2339
- 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)),
2352
+ 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)),
2340
2353
  /**
2341
2354
  * No description
2342
2355
  *
@@ -2347,7 +2360,7 @@ export class Api extends HttpClient {
2347
2360
  * @secure
2348
2361
  * @response `200` `(ListingPhoto)[]` OK
2349
2362
  */
2350
- 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)),
2363
+ 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)),
2351
2364
  /**
2352
2365
  * No description
2353
2366
  *
@@ -2380,7 +2393,7 @@ export class Api extends HttpClient {
2380
2393
  * @secure
2381
2394
  * @response `201` `Listing` Created
2382
2395
  */
2383
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2396
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2384
2397
  /**
2385
2398
  * No description
2386
2399
  *
@@ -2413,7 +2426,7 @@ export class Api extends HttpClient {
2413
2426
  * @secure
2414
2427
  * @response `200` `Listing` OK
2415
2428
  */
2416
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2429
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2417
2430
  /**
2418
2431
  * No description
2419
2432
  *
@@ -2435,7 +2448,7 @@ export class Api extends HttpClient {
2435
2448
  * @secure
2436
2449
  * @response `200` `ListingPaginated` OK
2437
2450
  */
2438
- 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)),
2451
+ 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)),
2439
2452
  /**
2440
2453
  * No description
2441
2454
  *
@@ -2446,7 +2459,7 @@ export class Api extends HttpClient {
2446
2459
  * @secure
2447
2460
  * @response `200` `File` OK
2448
2461
  */
2449
- 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)),
2462
+ 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)),
2450
2463
  /**
2451
2464
  * No description
2452
2465
  *
@@ -2492,7 +2505,7 @@ export class Api extends HttpClient {
2492
2505
  * @response `422` `UnprocessableEntity` Unprocessable Content
2493
2506
  * @response `423` `UnprocessableEntity` Locked
2494
2507
  */
2495
- 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)),
2508
+ 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)),
2496
2509
  /**
2497
2510
  * No description
2498
2511
  *
@@ -2516,7 +2529,7 @@ export class Api extends HttpClient {
2516
2529
  * @response `422` `UnprocessableEntity` Unprocessable Content
2517
2530
  * @response `423` `UnprocessableEntity` Locked
2518
2531
  */
2519
- 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)),
2532
+ 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)),
2520
2533
  /**
2521
2534
  * No description
2522
2535
  *
@@ -2539,7 +2552,7 @@ export class Api extends HttpClient {
2539
2552
  * @response `204` `void` No Content
2540
2553
  * @response `422` `UnprocessableEntity` Unprocessable Content
2541
2554
  */
2542
- 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)),
2555
+ 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)),
2543
2556
  /**
2544
2557
  * No description
2545
2558
  *
@@ -2576,7 +2589,7 @@ export class Api extends HttpClient {
2576
2589
  * @response `400` `ProblemDetails` Bad Request
2577
2590
  * @response `422` `ProblemDetails` Unprocessable Content
2578
2591
  */
2579
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2592
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2580
2593
  /**
2581
2594
  * No description
2582
2595
  *
@@ -2590,7 +2603,7 @@ export class Api extends HttpClient {
2590
2603
  * @response `404` `ProblemDetails` Not Found
2591
2604
  * @response `422` `ProblemDetails` Unprocessable Content
2592
2605
  */
2593
- 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)),
2606
+ 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)),
2594
2607
  /**
2595
2608
  * No description
2596
2609
  *
@@ -2624,7 +2637,7 @@ export class Api extends HttpClient {
2624
2637
  * @secure
2625
2638
  * @response `201` `(string)[]` Created
2626
2639
  */
2627
- 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)),
2640
+ 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)),
2628
2641
  /**
2629
2642
  * No description
2630
2643
  *
@@ -2648,7 +2661,7 @@ export class Api extends HttpClient {
2648
2661
  * @response `409` `ProblemDetails` Conflict
2649
2662
  * @response `422` `ProblemDetails` Unprocessable Content
2650
2663
  */
2651
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2664
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2652
2665
  /**
2653
2666
  * No description
2654
2667
  *
@@ -2675,7 +2688,7 @@ export class Api extends HttpClient {
2675
2688
  * @response `409` `ProblemDetails` Conflict
2676
2689
  * @response `422` `ProblemDetails` Unprocessable Content
2677
2690
  */
2678
- 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)),
2691
+ 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)),
2679
2692
  /**
2680
2693
  * No description
2681
2694
  *
@@ -2750,7 +2763,7 @@ export class Api extends HttpClient {
2750
2763
  * @response `200` `Record<string,string>` OK
2751
2764
  * @response `400` `ProblemDetails` Bad Request
2752
2765
  */
2753
- 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)),
2766
+ 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)),
2754
2767
  /**
2755
2768
  * No description
2756
2769
  *
@@ -2761,7 +2774,7 @@ export class Api extends HttpClient {
2761
2774
  * @secure
2762
2775
  * @response `200` `LoanDocumentSearchPaginated` OK
2763
2776
  */
2764
- 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)),
2777
+ 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)),
2765
2778
  /**
2766
2779
  * @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).
2767
2780
  *
@@ -2772,7 +2785,7 @@ export class Api extends HttpClient {
2772
2785
  * @secure
2773
2786
  * @response `200` `(DocumentFolder)[]` OK
2774
2787
  */
2775
- 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)),
2788
+ 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)),
2776
2789
  /**
2777
2790
  * No description
2778
2791
  *
@@ -2781,7 +2794,7 @@ export class Api extends HttpClient {
2781
2794
  * @summary Download By ID
2782
2795
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2783
2796
  * @secure
2784
- * @response `200` `Blob` OK
2797
+ * @response `200` `string` OK
2785
2798
  * @response `404` `ProblemDetails` Not Found
2786
2799
  */
2787
2800
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2797,7 +2810,7 @@ export class Api extends HttpClient {
2797
2810
  * @response `404` `ProblemDetails` Not Found
2798
2811
  * @response `422` `UnprocessableEntity` Unprocessable Content
2799
2812
  */
2800
- 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)),
2813
+ 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)),
2801
2814
  /**
2802
2815
  * No description
2803
2816
  *
@@ -2821,7 +2834,7 @@ export class Api extends HttpClient {
2821
2834
  * @secure
2822
2835
  * @response `200` `DocumentDataRequest` OK
2823
2836
  */
2824
- 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)),
2837
+ 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)),
2825
2838
  /**
2826
2839
  * No description
2827
2840
  *
@@ -2834,7 +2847,7 @@ export class Api extends HttpClient {
2834
2847
  * @response `400` `ProblemDetails` Bad Request
2835
2848
  * @response `404` `ProblemDetails` Not Found
2836
2849
  */
2837
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2850
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2838
2851
  /**
2839
2852
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2840
2853
  *
@@ -2859,7 +2872,7 @@ export class Api extends HttpClient {
2859
2872
  * @response `404` `ProblemDetails` Not Found
2860
2873
  * @response `422` `UnprocessableEntity` Unprocessable Content
2861
2874
  */
2862
- 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)),
2875
+ 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)),
2863
2876
  /**
2864
2877
  * @description Re-attempts to push a failed document to LOS
2865
2878
  *
@@ -2883,7 +2896,7 @@ export class Api extends HttpClient {
2883
2896
  * @secure
2884
2897
  * @response `201` `Draft` Created
2885
2898
  */
2886
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2899
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2887
2900
  /**
2888
2901
  * No description
2889
2902
  *
@@ -2916,7 +2929,7 @@ export class Api extends HttpClient {
2916
2929
  * @secure
2917
2930
  * @response `200` `Draft` OK
2918
2931
  */
2919
- 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)),
2932
+ 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)),
2920
2933
  /**
2921
2934
  * No description
2922
2935
  *
@@ -2938,7 +2951,7 @@ export class Api extends HttpClient {
2938
2951
  * @secure
2939
2952
  * @response `201` `DraftContentPaginated` Created
2940
2953
  */
2941
- 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)),
2954
+ 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)),
2942
2955
  /**
2943
2956
  * No description
2944
2957
  *
@@ -2949,7 +2962,7 @@ export class Api extends HttpClient {
2949
2962
  * @secure
2950
2963
  * @response `200` `Draft` OK
2951
2964
  */
2952
- 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)),
2965
+ 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)),
2953
2966
  /**
2954
2967
  * No description
2955
2968
  *
@@ -2982,7 +2995,7 @@ export class Api extends HttpClient {
2982
2995
  * @secure
2983
2996
  * @response `201` `LoanImport` Created
2984
2997
  */
2985
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2998
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2986
2999
  /**
2987
3000
  * No description
2988
3001
  *
@@ -3028,7 +3041,7 @@ export class Api extends HttpClient {
3028
3041
  * @response `200` `(Invite)[]` OK
3029
3042
  * @response `404` `ProblemDetails` Not Found
3030
3043
  */
3031
- 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)),
3044
+ 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)),
3032
3045
  /**
3033
3046
  * No description
3034
3047
  *
@@ -3039,7 +3052,7 @@ export class Api extends HttpClient {
3039
3052
  * @secure
3040
3053
  * @response `200` `LoanLogPaginated` OK
3041
3054
  */
3042
- 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)),
3055
+ 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)),
3043
3056
  /**
3044
3057
  * No description
3045
3058
  *
@@ -3064,7 +3077,7 @@ export class Api extends HttpClient {
3064
3077
  * @response `400` `ProblemDetails` Bad Request
3065
3078
  * @response `404` `ProblemDetails` Not Found
3066
3079
  */
3067
- 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)),
3080
+ 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)),
3068
3081
  /**
3069
3082
  * No description
3070
3083
  *
@@ -3077,7 +3090,7 @@ export class Api extends HttpClient {
3077
3090
  * @response `400` `ProblemDetails` Bad Request
3078
3091
  * @response `404` `ProblemDetails` Not Found
3079
3092
  */
3080
- 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)),
3093
+ 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)),
3081
3094
  /**
3082
3095
  * No description
3083
3096
  *
@@ -3099,7 +3112,7 @@ export class Api extends HttpClient {
3099
3112
  * @secure
3100
3113
  * @response `200` `BranchUserPaginated` OK
3101
3114
  */
3102
- 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)),
3115
+ 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)),
3103
3116
  /**
3104
3117
  * No description
3105
3118
  *
@@ -3122,7 +3135,7 @@ export class Api extends HttpClient {
3122
3135
  * @response `200` `SiteConfiguration` OK
3123
3136
  * @response `422` `UnprocessableEntity` Unprocessable Content
3124
3137
  */
3125
- 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)),
3138
+ 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)),
3126
3139
  /**
3127
3140
  * No description
3128
3141
  *
@@ -3145,7 +3158,7 @@ export class Api extends HttpClient {
3145
3158
  * @response `200` `SiteConfiguration` OK
3146
3159
  * @response `422` `UnprocessableEntity` Unprocessable Content
3147
3160
  */
3148
- 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)),
3161
+ 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)),
3149
3162
  /**
3150
3163
  * No description
3151
3164
  *
@@ -3156,7 +3169,7 @@ export class Api extends HttpClient {
3156
3169
  * @secure
3157
3170
  * @response `200` `LoanQueuePaginated` OK
3158
3171
  */
3159
- 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)),
3172
+ 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)),
3160
3173
  /**
3161
3174
  * No description
3162
3175
  *
@@ -3180,7 +3193,7 @@ export class Api extends HttpClient {
3180
3193
  * @response `200` `LoanQueueWithData` OK
3181
3194
  * @response `404` `ProblemDetails` Not Found
3182
3195
  */
3183
- 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)),
3196
+ 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)),
3184
3197
  /**
3185
3198
  * No description
3186
3199
  *
@@ -3241,7 +3254,7 @@ export class Api extends HttpClient {
3241
3254
  * @response `401` `ProblemDetails` Unauthorized
3242
3255
  * @response `403` `ProblemDetails` Forbidden
3243
3256
  */
3244
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3257
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3245
3258
  /**
3246
3259
  * No description
3247
3260
  *
@@ -3252,7 +3265,7 @@ export class Api extends HttpClient {
3252
3265
  * @secure
3253
3266
  * @response `200` `LoanListPaginated` OK
3254
3267
  */
3255
- 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)),
3268
+ 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)),
3256
3269
  /**
3257
3270
  * No description
3258
3271
  *
@@ -3268,7 +3281,7 @@ export class Api extends HttpClient {
3268
3281
  * @response `404` `ProblemDetails` Not Found
3269
3282
  * @response `409` `any` Conflict
3270
3283
  */
3271
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3284
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
3272
3285
  /**
3273
3286
  * No description
3274
3287
  *
@@ -3330,7 +3343,7 @@ export class Api extends HttpClient {
3330
3343
  * @response `400` `ProblemDetails` Bad Request
3331
3344
  * @response `404` `ProblemDetails` Not Found
3332
3345
  */
3333
- 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)),
3346
+ 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)),
3334
3347
  /**
3335
3348
  * No description
3336
3349
  *
@@ -3342,7 +3355,7 @@ export class Api extends HttpClient {
3342
3355
  * @response `200` `TaskCommentPaginated` OK
3343
3356
  * @response `404` `ProblemDetails` Not Found
3344
3357
  */
3345
- 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)),
3358
+ 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)),
3346
3359
  /**
3347
3360
  * No description
3348
3361
  *
@@ -3366,7 +3379,7 @@ export class Api extends HttpClient {
3366
3379
  * @response `201` `TaskComment` Created
3367
3380
  * @response `404` `ProblemDetails` Not Found
3368
3381
  */
3369
- 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)),
3382
+ 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)),
3370
3383
  /**
3371
3384
  * No description
3372
3385
  *
@@ -3378,7 +3391,7 @@ export class Api extends HttpClient {
3378
3391
  * @response `200` `TaskComment` OK
3379
3392
  * @response `404` `ProblemDetails` Not Found
3380
3393
  */
3381
- 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)),
3394
+ 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)),
3382
3395
  /**
3383
3396
  * No description
3384
3397
  *
@@ -3403,7 +3416,7 @@ export class Api extends HttpClient {
3403
3416
  * @response `404` `ProblemDetails` Not Found
3404
3417
  * @response `422` `UnprocessableEntity` Unprocessable Content
3405
3418
  */
3406
- 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)),
3419
+ 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)),
3407
3420
  /**
3408
3421
  * No description
3409
3422
  *
@@ -3417,7 +3430,7 @@ export class Api extends HttpClient {
3417
3430
  * @response `404` `ProblemDetails` Not Found
3418
3431
  * @response `422` `ProblemDetails` Unprocessable Content
3419
3432
  */
3420
- 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)),
3433
+ 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)),
3421
3434
  /**
3422
3435
  * No description
3423
3436
  *
@@ -3430,7 +3443,7 @@ export class Api extends HttpClient {
3430
3443
  * @response `400` `ProblemDetails` Bad Request
3431
3444
  * @response `404` `ProblemDetails` Not Found
3432
3445
  */
3433
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3446
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3434
3447
  /**
3435
3448
  * @description Search tasks across all loans
3436
3449
  *
@@ -3441,7 +3454,7 @@ export class Api extends HttpClient {
3441
3454
  * @secure
3442
3455
  * @response `200` `UserLoanTaskPaginated` OK
3443
3456
  */
3444
- 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)),
3457
+ 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)),
3445
3458
  /**
3446
3459
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3447
3460
  *
@@ -3453,7 +3466,7 @@ export class Api extends HttpClient {
3453
3466
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3454
3467
  * @response `422` `UnprocessableEntity` Unprocessable Content
3455
3468
  */
3456
- 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)),
3469
+ 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)),
3457
3470
  /**
3458
3471
  * No description
3459
3472
  *
@@ -3501,7 +3514,7 @@ export class Api extends HttpClient {
3501
3514
  * @response `201` `UserLoanTask` Created
3502
3515
  * @response `404` `ProblemDetails` Not Found
3503
3516
  */
3504
- 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)),
3517
+ 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)),
3505
3518
  /**
3506
3519
  * No description
3507
3520
  *
@@ -3513,7 +3526,7 @@ export class Api extends HttpClient {
3513
3526
  * @response `201` `(UserLoanTask)[]` Created
3514
3527
  * @response `404` `ProblemDetails` Not Found
3515
3528
  */
3516
- 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)),
3529
+ 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)),
3517
3530
  /**
3518
3531
  * No description
3519
3532
  *
@@ -3525,7 +3538,7 @@ export class Api extends HttpClient {
3525
3538
  * @response `200` `UserLoanTask` OK
3526
3539
  * @response `404` `ProblemDetails` Not Found
3527
3540
  */
3528
- 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)),
3541
+ 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)),
3529
3542
  /**
3530
3543
  * No description
3531
3544
  *
@@ -3584,7 +3597,7 @@ export class Api extends HttpClient {
3584
3597
  * @secure
3585
3598
  * @response `201` `LoanUser` Created
3586
3599
  */
3587
- 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)),
3600
+ 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)),
3588
3601
  /**
3589
3602
  * No description
3590
3603
  *
@@ -3617,7 +3630,7 @@ export class Api extends HttpClient {
3617
3630
  * @secure
3618
3631
  * @response `200` `LosOperationTrackingPaginated` OK
3619
3632
  */
3620
- 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)),
3633
+ 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)),
3621
3634
  /**
3622
3635
  * No description
3623
3636
  *
@@ -3640,7 +3653,7 @@ export class Api extends HttpClient {
3640
3653
  * @response `201` `MilestoneConfiguration` Created
3641
3654
  * @response `422` `UnprocessableEntity` Unprocessable Content
3642
3655
  */
3643
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3656
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3644
3657
  /**
3645
3658
  * No description
3646
3659
  *
@@ -3665,7 +3678,7 @@ export class Api extends HttpClient {
3665
3678
  * @response `404` `Error` Not Found
3666
3679
  * @response `422` `UnprocessableEntity` Unprocessable Content
3667
3680
  */
3668
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3681
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3669
3682
  /**
3670
3683
  * No description
3671
3684
  *
@@ -3691,7 +3704,7 @@ export class Api extends HttpClient {
3691
3704
  * @response `404` `ProblemDetails` Not Found
3692
3705
  * @response `422` `ProblemDetails` Unprocessable Content
3693
3706
  */
3694
- 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)),
3707
+ 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)),
3695
3708
  /**
3696
3709
  * No description
3697
3710
  *
@@ -3703,7 +3716,7 @@ export class Api extends HttpClient {
3703
3716
  * @response `200` `MonthlyPaymentCalculator` OK
3704
3717
  * @response `422` `ProblemDetails` Unprocessable Content
3705
3718
  */
3706
- 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)),
3719
+ 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)),
3707
3720
  /**
3708
3721
  * No description
3709
3722
  *
@@ -3715,7 +3728,7 @@ export class Api extends HttpClient {
3715
3728
  * @response `200` `AffordabilityCalculator` OK
3716
3729
  * @response `422` `ProblemDetails` Unprocessable Content
3717
3730
  */
3718
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3731
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3719
3732
  /**
3720
3733
  * No description
3721
3734
  *
@@ -3727,7 +3740,7 @@ export class Api extends HttpClient {
3727
3740
  * @response `200` `LoanComparisonCalculator` OK
3728
3741
  * @response `422` `ProblemDetails` Unprocessable Content
3729
3742
  */
3730
- 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)),
3743
+ 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)),
3731
3744
  /**
3732
3745
  * No description
3733
3746
  *
@@ -3739,7 +3752,7 @@ export class Api extends HttpClient {
3739
3752
  * @response `200` `RefinanceCalculator` OK
3740
3753
  * @response `422` `ProblemDetails` Unprocessable Content
3741
3754
  */
3742
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3755
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3743
3756
  /**
3744
3757
  * No description
3745
3758
  *
@@ -3762,7 +3775,7 @@ export class Api extends HttpClient {
3762
3775
  * @response `201` `NotificationTemplate` Created
3763
3776
  * @response `422` `UnprocessableEntity` Unprocessable Content
3764
3777
  */
3765
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3778
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3766
3779
  /**
3767
3780
  * No description
3768
3781
  *
@@ -3773,7 +3786,7 @@ export class Api extends HttpClient {
3773
3786
  * @secure
3774
3787
  * @response `200` `NotificationTemplateBasePaginated` OK
3775
3788
  */
3776
- 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)),
3789
+ 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)),
3777
3790
  /**
3778
3791
  * No description
3779
3792
  *
@@ -3796,7 +3809,7 @@ export class Api extends HttpClient {
3796
3809
  * @response `200` `NotificationTemplate` OK
3797
3810
  * @response `422` `UnprocessableEntity` Unprocessable Content
3798
3811
  */
3799
- 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)),
3812
+ 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)),
3800
3813
  /**
3801
3814
  * No description
3802
3815
  *
@@ -3840,7 +3853,7 @@ export class Api extends HttpClient {
3840
3853
  * @secure
3841
3854
  * @response `200` `NotificationTemplateVersion` OK
3842
3855
  */
3843
- 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)),
3856
+ 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)),
3844
3857
  /**
3845
3858
  * No description
3846
3859
  *
@@ -3862,7 +3875,7 @@ export class Api extends HttpClient {
3862
3875
  * @secure
3863
3876
  * @response `200` `NotificationTemplateVersion` OK
3864
3877
  */
3865
- 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)),
3878
+ 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)),
3866
3879
  /**
3867
3880
  * No description
3868
3881
  *
@@ -3895,7 +3908,7 @@ export class Api extends HttpClient {
3895
3908
  * @secure
3896
3909
  * @response `200` `BranchUserPaginated` OK
3897
3910
  */
3898
- 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)),
3911
+ 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)),
3899
3912
  /**
3900
3913
  * No description
3901
3914
  *
@@ -3918,7 +3931,7 @@ export class Api extends HttpClient {
3918
3931
  * @response `200` `SiteConfiguration` OK
3919
3932
  * @response `422` `UnprocessableEntity` Unprocessable Content
3920
3933
  */
3921
- 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)),
3934
+ 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)),
3922
3935
  /**
3923
3936
  * No description
3924
3937
  *
@@ -3941,7 +3954,7 @@ export class Api extends HttpClient {
3941
3954
  * @response `200` `SiteConfiguration` OK
3942
3955
  * @response `422` `UnprocessableEntity` Unprocessable Content
3943
3956
  */
3944
- 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)),
3957
+ 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)),
3945
3958
  /**
3946
3959
  * No description
3947
3960
  *
@@ -3965,7 +3978,7 @@ export class Api extends HttpClient {
3965
3978
  * @response `200` `SiteConfigurationByUrl` OK
3966
3979
  * @response `422` `UnprocessableEntity` Unprocessable Content
3967
3980
  */
3968
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3981
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3969
3982
  /**
3970
3983
  * No description
3971
3984
  *
@@ -3990,7 +4003,7 @@ export class Api extends HttpClient {
3990
4003
  * @response `200` `SiteConfiguration` OK
3991
4004
  * @response `422` `UnprocessableEntity` Unprocessable Content
3992
4005
  */
3993
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4006
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3994
4007
  /**
3995
4008
  * No description
3996
4009
  *
@@ -4014,7 +4027,7 @@ export class Api extends HttpClient {
4014
4027
  * @response `200` `SiteConfigurationSummaryPaginated` OK
4015
4028
  * @response `422` `UnprocessableEntity` Unprocessable Content
4016
4029
  */
4017
- 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)),
4030
+ 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)),
4018
4031
  /**
4019
4032
  * No description
4020
4033
  *
@@ -4106,7 +4119,7 @@ export class Api extends HttpClient {
4106
4119
  * @secure
4107
4120
  * @response `200` `GetForm` OK
4108
4121
  */
4109
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4122
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4110
4123
  /**
4111
4124
  * No description
4112
4125
  *
@@ -4129,7 +4142,7 @@ export class Api extends HttpClient {
4129
4142
  * @response `200` `(SocialSurveyRecord)[]` OK
4130
4143
  * @response `422` `UnprocessableEntity` Unprocessable Content
4131
4144
  */
4132
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4145
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4133
4146
  /**
4134
4147
  * No description
4135
4148
  *
@@ -4152,7 +4165,7 @@ export class Api extends HttpClient {
4152
4165
  * @secure
4153
4166
  * @response `201` `Task` Created
4154
4167
  */
4155
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4168
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4156
4169
  /**
4157
4170
  * No description
4158
4171
  *
@@ -4176,7 +4189,7 @@ export class Api extends HttpClient {
4176
4189
  * @response `200` `Task` OK
4177
4190
  * @response `404` `ProblemDetails` Not Found
4178
4191
  */
4179
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4192
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4180
4193
  /**
4181
4194
  * No description
4182
4195
  *
@@ -4199,7 +4212,7 @@ export class Api extends HttpClient {
4199
4212
  * @secure
4200
4213
  * @response `200` `TaskPaginated` OK
4201
4214
  */
4202
- 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)),
4215
+ 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)),
4203
4216
  /**
4204
4217
  * No description
4205
4218
  *
@@ -4209,7 +4222,7 @@ export class Api extends HttpClient {
4209
4222
  * @secure
4210
4223
  * @response `200` `void` OK
4211
4224
  */
4212
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4225
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4213
4226
  /**
4214
4227
  * No description
4215
4228
  *
@@ -4220,7 +4233,7 @@ export class Api extends HttpClient {
4220
4233
  * @secure
4221
4234
  * @response `200` `EncompassRequestLogPaginated` OK
4222
4235
  */
4223
- 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)),
4236
+ 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)),
4224
4237
  /**
4225
4238
  * No description
4226
4239
  *
@@ -4243,7 +4256,7 @@ export class Api extends HttpClient {
4243
4256
  * @secure
4244
4257
  * @response `201` `LosCredentials` Created
4245
4258
  */
4246
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4259
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4247
4260
  /**
4248
4261
  * No description
4249
4262
  *
@@ -4254,7 +4267,7 @@ export class Api extends HttpClient {
4254
4267
  * @secure
4255
4268
  * @response `200` `EncompassCredentialsDetail` OK
4256
4269
  */
4257
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4270
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4258
4271
  /**
4259
4272
  * No description
4260
4273
  *
@@ -4276,7 +4289,7 @@ export class Api extends HttpClient {
4276
4289
  * @secure
4277
4290
  * @response `201` `LosWebhook` Created
4278
4291
  */
4279
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4292
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4280
4293
  /**
4281
4294
  * No description
4282
4295
  *
@@ -4298,7 +4311,7 @@ export class Api extends HttpClient {
4298
4311
  * @secure
4299
4312
  * @response `200` `LosSyncPaginated` OK
4300
4313
  */
4301
- 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)),
4314
+ 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)),
4302
4315
  /**
4303
4316
  * No description
4304
4317
  *
@@ -4381,7 +4394,7 @@ export class Api extends HttpClient {
4381
4394
  * @response `201` `UserDevice` Created
4382
4395
  * @response `400` `ProblemDetails` Bad Request
4383
4396
  */
4384
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4397
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4385
4398
  /**
4386
4399
  * No description
4387
4400
  *
@@ -4426,7 +4439,7 @@ export class Api extends HttpClient {
4426
4439
  * @secure
4427
4440
  * @response `200` `UserDraft` OK
4428
4441
  */
4429
- 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)),
4442
+ 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)),
4430
4443
  /**
4431
4444
  * No description
4432
4445
  *
@@ -4459,7 +4472,7 @@ export class Api extends HttpClient {
4459
4472
  * @secure
4460
4473
  * @response `200` `UserGroupAccessScope` OK
4461
4474
  */
4462
- 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)),
4475
+ 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)),
4463
4476
  /**
4464
4477
  * No description
4465
4478
  *
@@ -4492,7 +4505,7 @@ export class Api extends HttpClient {
4492
4505
  * @secure
4493
4506
  * @response `200` `UserGroupMember` OK
4494
4507
  */
4495
- 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)),
4508
+ 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)),
4496
4509
  /**
4497
4510
  * No description
4498
4511
  *
@@ -4536,7 +4549,7 @@ export class Api extends HttpClient {
4536
4549
  * @secure
4537
4550
  * @response `200` `UserGroup` OK
4538
4551
  */
4539
- 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)),
4552
+ 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)),
4540
4553
  /**
4541
4554
  * No description
4542
4555
  *
@@ -4558,7 +4571,7 @@ export class Api extends HttpClient {
4558
4571
  * @secure
4559
4572
  * @response `201` `UserGroup` Created
4560
4573
  */
4561
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4574
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4562
4575
  /**
4563
4576
  * No description
4564
4577
  *
@@ -4571,7 +4584,7 @@ export class Api extends HttpClient {
4571
4584
  * @response `404` `Error` Not Found
4572
4585
  * @response `422` `UnprocessableEntity` Unprocessable Content
4573
4586
  */
4574
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4587
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4575
4588
  /**
4576
4589
  * No description
4577
4590
  *
@@ -4584,7 +4597,7 @@ export class Api extends HttpClient {
4584
4597
  * @response `404` `Error` Not Found
4585
4598
  * @response `422` `UnprocessableEntity` Unprocessable Content
4586
4599
  */
4587
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4600
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4588
4601
  /**
4589
4602
  * No description
4590
4603
  *
@@ -4634,7 +4647,7 @@ export class Api extends HttpClient {
4634
4647
  * @response `404` `Error` Not Found
4635
4648
  * @response `422` `UnprocessableEntity` Unprocessable Content
4636
4649
  */
4637
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4650
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4638
4651
  /**
4639
4652
  * No description
4640
4653
  *
@@ -4658,7 +4671,7 @@ export class Api extends HttpClient {
4658
4671
  * @response `204` `void` No Content
4659
4672
  * @response `422` `UnprocessableEntity` Unprocessable Content
4660
4673
  */
4661
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4674
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4662
4675
  /**
4663
4676
  * No description
4664
4677
  *
@@ -4705,7 +4718,7 @@ export class Api extends HttpClient {
4705
4718
  * @secure
4706
4719
  * @response `204` `void` No Content
4707
4720
  */
4708
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4721
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4709
4722
  /**
4710
4723
  * No description
4711
4724
  *
@@ -4750,7 +4763,7 @@ export class Api extends HttpClient {
4750
4763
  * @response `200` `DetailedUser` OK
4751
4764
  * @response `422` `UnprocessableEntity` Unprocessable Content
4752
4765
  */
4753
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4766
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4754
4767
  /**
4755
4768
  * No description
4756
4769
  *
@@ -4761,7 +4774,7 @@ export class Api extends HttpClient {
4761
4774
  * @secure
4762
4775
  * @response `200` `UserPaginated` OK
4763
4776
  */
4764
- 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)),
4777
+ 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)),
4765
4778
  /**
4766
4779
  * No description
4767
4780
  *
@@ -4772,7 +4785,7 @@ export class Api extends HttpClient {
4772
4785
  * @secure
4773
4786
  * @response `200` `AdminAccessUser` OK
4774
4787
  */
4775
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4788
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4776
4789
  /**
4777
4790
  * No description
4778
4791
  *
@@ -4784,7 +4797,7 @@ export class Api extends HttpClient {
4784
4797
  * @response `200` `User` OK
4785
4798
  * @response `422` `UnprocessableEntity` Unprocessable Content
4786
4799
  */
4787
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4800
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4788
4801
  /**
4789
4802
  * No description
4790
4803
  *
@@ -4796,7 +4809,7 @@ export class Api extends HttpClient {
4796
4809
  * @response `200` `DetailedUser` OK
4797
4810
  * @response `422` `UnprocessableEntity` Unprocessable Content
4798
4811
  */
4799
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4812
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4800
4813
  /**
4801
4814
  * No description
4802
4815
  *
@@ -4830,7 +4843,7 @@ export class Api extends HttpClient {
4830
4843
  * @response `204` `void` No Content
4831
4844
  * @response `422` `UnprocessableEntity` Unprocessable Content
4832
4845
  */
4833
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4846
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4834
4847
  /**
4835
4848
  * No description
4836
4849
  *
@@ -4842,7 +4855,7 @@ export class Api extends HttpClient {
4842
4855
  * @response `204` `void` No Content
4843
4856
  * @response `422` `UnprocessableEntity` Unprocessable Content
4844
4857
  */
4845
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4858
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4846
4859
  /**
4847
4860
  * No description
4848
4861
  *
@@ -4854,7 +4867,7 @@ export class Api extends HttpClient {
4854
4867
  * @response `204` `void` No Content
4855
4868
  * @response `422` `UnprocessableEntity` Unprocessable Content
4856
4869
  */
4857
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4870
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4858
4871
  /**
4859
4872
  * No description
4860
4873
  *
@@ -4866,7 +4879,7 @@ export class Api extends HttpClient {
4866
4879
  * @response `204` `void` No Content
4867
4880
  * @response `422` `UnprocessableEntity` Unprocessable Content
4868
4881
  */
4869
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4882
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4870
4883
  /**
4871
4884
  * No description
4872
4885
  *
@@ -4890,7 +4903,7 @@ export class Api extends HttpClient {
4890
4903
  * @response `204` `void` No Content
4891
4904
  * @response `422` `UnprocessableEntity` Unprocessable Content
4892
4905
  */
4893
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4906
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4894
4907
  /**
4895
4908
  * No description
4896
4909
  *
@@ -4913,7 +4926,7 @@ export class Api extends HttpClient {
4913
4926
  * @secure
4914
4927
  * @response `200` `DetailedUser` OK
4915
4928
  */
4916
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4929
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4917
4930
  /**
4918
4931
  * @description Update the phone number If changed will send a verification code to the new number
4919
4932
  *
@@ -4924,7 +4937,7 @@ export class Api extends HttpClient {
4924
4937
  * @secure
4925
4938
  * @response `204` `DetailedUser` No Content
4926
4939
  */
4927
- 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)),
4940
+ 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)),
4928
4941
  /**
4929
4942
  * No description
4930
4943
  *
@@ -4968,7 +4981,7 @@ export class Api extends HttpClient {
4968
4981
  * @secure
4969
4982
  * @response `204` `void` No Content
4970
4983
  */
4971
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4984
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4972
4985
  /**
4973
4986
  * No description
4974
4987
  *
@@ -4979,7 +4992,7 @@ export class Api extends HttpClient {
4979
4992
  * @secure
4980
4993
  * @response `200` `GetForm` OK
4981
4994
  */
4982
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4995
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4983
4996
  };
4984
4997
  this.sso = {
4985
4998
  /**