@matech/thebigpos-sdk 2.43.1-rc.0 → 2.43.8-aibi-1

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.43.0
107
+ * @version v2.43.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,7 +263,481 @@ 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)),
267
+ /**
268
+ * No description
269
+ *
270
+ * @tags AiAdmin
271
+ * @name GetAiAuditLogs
272
+ * @summary Get paginated audit logs
273
+ * @request GET:/api/ai/admin/audit-logs
274
+ * @secure
275
+ * @response `200` `AiAuditLogPaginated` OK
276
+ */
277
+ getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
278
+ /**
279
+ * No description
280
+ *
281
+ * @tags AiAdmin
282
+ * @name GetAiAdminStats
283
+ * @summary Get AI admin dashboard stats
284
+ * @request GET:/api/ai/admin/stats
285
+ * @secure
286
+ * @response `200` `AiAdminStats` OK
287
+ */
288
+ getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
289
+ /**
290
+ * No description
291
+ *
292
+ * @tags AiAdminPrompt
293
+ * @name GetAiPrompts
294
+ * @summary Get all prompts
295
+ * @request GET:/api/ai/admin/prompts
296
+ * @secure
297
+ * @response `200` `(AiPrompt)[]` OK
298
+ */
299
+ getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
300
+ /**
301
+ * No description
302
+ *
303
+ * @tags AiAdminPrompt
304
+ * @name CreateAiPrompt
305
+ * @summary Create custom prompt
306
+ * @request POST:/api/ai/admin/prompts
307
+ * @secure
308
+ * @response `201` `AiPrompt` Created
309
+ * @response `400` `ProblemDetails` Bad Request
310
+ */
311
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
312
+ /**
313
+ * No description
314
+ *
315
+ * @tags AiAdminPrompt
316
+ * @name GetAiPrompt
317
+ * @summary Get prompt by ID
318
+ * @request GET:/api/ai/admin/prompts/{id}
319
+ * @secure
320
+ * @response `200` `AiPrompt` OK
321
+ * @response `404` `ProblemDetails` Not Found
322
+ */
323
+ getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
324
+ /**
325
+ * No description
326
+ *
327
+ * @tags AiAdminPrompt
328
+ * @name UpdateAiPrompt
329
+ * @summary Update prompt
330
+ * @request PUT:/api/ai/admin/prompts/{id}
331
+ * @secure
332
+ * @response `200` `AiPrompt` OK
333
+ * @response `400` `ProblemDetails` Bad Request
334
+ * @response `404` `ProblemDetails` Not Found
335
+ */
336
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
337
+ /**
338
+ * No description
339
+ *
340
+ * @tags AiAdminPrompt
341
+ * @name DeleteAiPrompt
342
+ * @summary Delete prompt
343
+ * @request DELETE:/api/ai/admin/prompts/{id}
344
+ * @secure
345
+ * @response `204` `void` No Content
346
+ * @response `400` `ProblemDetails` Bad Request
347
+ * @response `404` `ProblemDetails` Not Found
348
+ */
349
+ deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
350
+ /**
351
+ * No description
352
+ *
353
+ * @tags AiAdminPrompt
354
+ * @name ToggleAiPrompt
355
+ * @summary Toggle prompt active/inactive
356
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
357
+ * @secure
358
+ * @response `200` `AiPrompt` OK
359
+ * @response `404` `ProblemDetails` Not Found
360
+ */
361
+ toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
362
+ /**
363
+ * No description
364
+ *
365
+ * @tags AiAdminPrompt
366
+ * @name GenerateAiSystemPrompt
367
+ * @summary Generate a system prompt from description
368
+ * @request POST:/api/ai/admin/prompts/generate
369
+ * @secure
370
+ * @response `200` `GenerateSystemPrompt` OK
371
+ * @response `400` `ProblemDetails` Bad Request
372
+ */
373
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
374
+ /**
375
+ * No description
376
+ *
377
+ * @tags AiAdminPrompt
378
+ * @name GetSupportedModels
379
+ * @summary Get supported LLM models
380
+ * @request GET:/api/ai/admin/prompts/supported-models
381
+ * @secure
382
+ * @response `200` `(SupportedModel)[]` OK
383
+ */
384
+ getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
385
+ /**
386
+ * No description
387
+ *
388
+ * @tags AiAdminSettings
389
+ * @name GetAiAdminSettings
390
+ * @summary Get global AI settings
391
+ * @request GET:/api/ai/admin/settings
392
+ * @secure
393
+ * @response `200` `AiAdminSettings` OK
394
+ */
395
+ getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
396
+ /**
397
+ * No description
398
+ *
399
+ * @tags AiAdminSettings
400
+ * @name UpdateAiAdminSettings
401
+ * @summary Update global AI settings
402
+ * @request PUT:/api/ai/admin/settings
403
+ * @secure
404
+ * @response `200` `AiAdminSettings` OK
405
+ * @response `400` `ProblemDetails` Bad Request
406
+ */
407
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
408
+ /**
409
+ * No description
410
+ *
411
+ * @tags AiCanonicalField
412
+ * @name GetAiCanonicalFields
413
+ * @summary Get all canonical fields
414
+ * @request GET:/api/ai/admin/fields
415
+ * @secure
416
+ * @response `200` `(AiCanonicalField)[]` OK
417
+ */
418
+ getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
419
+ /**
420
+ * No description
421
+ *
422
+ * @tags AiCanonicalField
423
+ * @name CreateAiCanonicalField
424
+ * @summary Create canonical field
425
+ * @request POST:/api/ai/admin/fields
426
+ * @secure
427
+ * @response `201` `AiCanonicalField` Created
428
+ * @response `400` `ProblemDetails` Bad Request
429
+ */
430
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
431
+ /**
432
+ * No description
433
+ *
434
+ * @tags AiCanonicalField
435
+ * @name GetAiCanonicalField
436
+ * @summary Get canonical field by ID
437
+ * @request GET:/api/ai/admin/fields/{id}
438
+ * @secure
439
+ * @response `200` `AiCanonicalField` OK
440
+ * @response `404` `ProblemDetails` Not Found
441
+ */
442
+ getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
443
+ /**
444
+ * No description
445
+ *
446
+ * @tags AiCanonicalField
447
+ * @name UpdateAiCanonicalField
448
+ * @summary Update canonical field
449
+ * @request PUT:/api/ai/admin/fields/{id}
450
+ * @secure
451
+ * @response `200` `AiCanonicalField` OK
452
+ * @response `400` `ProblemDetails` Bad Request
453
+ * @response `404` `ProblemDetails` Not Found
454
+ */
455
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
456
+ /**
457
+ * No description
458
+ *
459
+ * @tags AiCanonicalField
460
+ * @name DeleteAiCanonicalField
461
+ * @summary Delete canonical field
462
+ * @request DELETE:/api/ai/admin/fields/{id}
463
+ * @secure
464
+ * @response `204` `void` No Content
465
+ * @response `404` `ProblemDetails` Not Found
466
+ */
467
+ deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
468
+ /**
469
+ * No description
470
+ *
471
+ * @tags AiCanonicalField
472
+ * @name ToggleAiCanonicalField
473
+ * @summary Toggle canonical field active/inactive
474
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
475
+ * @secure
476
+ * @response `200` `AiCanonicalField` OK
477
+ * @response `404` `ProblemDetails` Not Found
478
+ */
479
+ toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
480
+ /**
481
+ * No description
482
+ *
483
+ * @tags AiChat
484
+ * @name AiChat
485
+ * @summary Send AI chat message
486
+ * @request POST:/api/ai/chat
487
+ * @secure
488
+ * @response `200` `AiChat` OK
489
+ * @response `400` `ProblemDetails` Bad Request
490
+ * @response `401` `ProblemDetails` Unauthorized
491
+ */
492
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
493
+ /**
494
+ * No description
495
+ *
496
+ * @tags AiConversation
497
+ * @name GetAiConversations
498
+ * @summary Get user conversations
499
+ * @request GET:/api/ai/conversations
500
+ * @secure
501
+ * @response `200` `AiConversationListItemPaginated` OK
502
+ */
503
+ getAiConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
504
+ /**
505
+ * No description
506
+ *
507
+ * @tags AiConversation
508
+ * @name GetAiConversation
509
+ * @summary Get conversation metadata
510
+ * @request GET:/api/ai/conversations/{id}
511
+ * @secure
512
+ * @response `200` `AiConversationDetail` OK
513
+ * @response `403` `ProblemDetails` Forbidden
514
+ * @response `404` `ProblemDetails` Not Found
515
+ */
516
+ getAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
517
+ /**
518
+ * No description
519
+ *
520
+ * @tags AiConversation
521
+ * @name RenameAiConversation
522
+ * @summary Rename conversation
523
+ * @request PATCH:/api/ai/conversations/{id}
524
+ * @secure
525
+ * @response `200` `AiConversationDetail` OK
526
+ * @response `400` `ProblemDetails` Bad Request
527
+ * @response `403` `ProblemDetails` Forbidden
528
+ * @response `404` `ProblemDetails` Not Found
529
+ */
530
+ 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)),
531
+ /**
532
+ * No description
533
+ *
534
+ * @tags AiConversation
535
+ * @name DeleteAiConversation
536
+ * @summary Delete conversation
537
+ * @request DELETE:/api/ai/conversations/{id}
538
+ * @secure
539
+ * @response `204` `void` No Content
540
+ * @response `403` `ProblemDetails` Forbidden
541
+ * @response `404` `ProblemDetails` Not Found
542
+ */
543
+ deleteAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "DELETE", secure: true }, params)),
544
+ /**
545
+ * No description
546
+ *
547
+ * @tags AiConversation
548
+ * @name GetAiConversationMessages
549
+ * @summary Get conversation messages
550
+ * @request GET:/api/ai/conversations/{id}/messages
551
+ * @secure
552
+ * @response `200` `AiChatMessagePaginated` OK
553
+ * @response `403` `ProblemDetails` Forbidden
554
+ * @response `404` `ProblemDetails` Not Found
555
+ */
556
+ getAiConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
557
+ /**
558
+ * No description
559
+ *
560
+ * @tags AiConversation
561
+ * @name ClearAiConversationHistory
562
+ * @summary Clear conversation history
563
+ * @request DELETE:/api/ai/conversations/{id}/messages
564
+ * @secure
565
+ * @response `204` `void` No Content
566
+ * @response `403` `ProblemDetails` Forbidden
567
+ * @response `404` `ProblemDetails` Not Found
568
+ */
569
+ clearAiConversationHistory: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/messages`, method: "DELETE", secure: true }, params)),
570
+ /**
571
+ * No description
572
+ *
573
+ * @tags AiConversation
574
+ * @name PinAiConversation
575
+ * @summary Pin or unpin conversation
576
+ * @request PUT:/api/ai/conversations/{id}/pin
577
+ * @secure
578
+ * @response `200` `AiConversationDetail` OK
579
+ * @response `403` `ProblemDetails` Forbidden
580
+ * @response `404` `ProblemDetails` Not Found
581
+ */
582
+ 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)),
583
+ /**
584
+ * No description
585
+ *
586
+ * @tags AiGuardrail
587
+ * @name GetAiGuardrails
588
+ * @summary Get all guardrails
589
+ * @request GET:/api/ai/admin/guardrails
590
+ * @secure
591
+ * @response `200` `(AiGuardrail)[]` OK
592
+ */
593
+ getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
594
+ /**
595
+ * No description
596
+ *
597
+ * @tags AiGuardrail
598
+ * @name CreateAiGuardrail
599
+ * @summary Create custom guardrail
600
+ * @request POST:/api/ai/admin/guardrails
601
+ * @secure
602
+ * @response `201` `AiGuardrail` Created
603
+ * @response `400` `ProblemDetails` Bad Request
604
+ */
605
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
606
+ /**
607
+ * No description
608
+ *
609
+ * @tags AiGuardrail
610
+ * @name GetAiGuardrail
611
+ * @summary Get guardrail by ID
612
+ * @request GET:/api/ai/admin/guardrails/{id}
613
+ * @secure
614
+ * @response `200` `AiGuardrail` OK
615
+ * @response `404` `ProblemDetails` Not Found
616
+ */
617
+ getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
618
+ /**
619
+ * No description
620
+ *
621
+ * @tags AiGuardrail
622
+ * @name UpdateAiGuardrail
623
+ * @summary Update guardrail
624
+ * @request PUT:/api/ai/admin/guardrails/{id}
625
+ * @secure
626
+ * @response `200` `AiGuardrail` OK
627
+ * @response `400` `ProblemDetails` Bad Request
628
+ * @response `404` `ProblemDetails` Not Found
629
+ */
630
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
631
+ /**
632
+ * No description
633
+ *
634
+ * @tags AiGuardrail
635
+ * @name DeleteAiGuardrail
636
+ * @summary Delete guardrail
637
+ * @request DELETE:/api/ai/admin/guardrails/{id}
638
+ * @secure
639
+ * @response `204` `void` No Content
640
+ * @response `400` `ProblemDetails` Bad Request
641
+ * @response `404` `ProblemDetails` Not Found
642
+ */
643
+ deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
644
+ /**
645
+ * No description
646
+ *
647
+ * @tags AiGuardrail
648
+ * @name ToggleAiGuardrail
649
+ * @summary Toggle guardrail enabled/disabled
650
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
651
+ * @secure
652
+ * @response `200` `AiGuardrail` OK
653
+ * @response `404` `ProblemDetails` Not Found
654
+ */
655
+ toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
656
+ /**
657
+ * No description
658
+ *
659
+ * @tags AiPrompt
660
+ * @name GetAvailablePrompts
661
+ * @summary Get available prompts for current user
662
+ * @request GET:/api/ai/prompts
663
+ * @secure
664
+ * @response `200` `(AiPromptSummary)[]` OK
665
+ */
666
+ getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
667
+ /**
668
+ * No description
669
+ *
670
+ * @tags AiUrlSource
671
+ * @name GetAiUrlSources
672
+ * @summary Get all URL sources
673
+ * @request GET:/api/ai/admin/url-sources
674
+ * @secure
675
+ * @response `200` `(AiUrlSource)[]` OK
676
+ */
677
+ getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
678
+ /**
679
+ * No description
680
+ *
681
+ * @tags AiUrlSource
682
+ * @name CreateAiUrlSource
683
+ * @summary Create URL source
684
+ * @request POST:/api/ai/admin/url-sources
685
+ * @secure
686
+ * @response `201` `AiUrlSource` Created
687
+ * @response `400` `ProblemDetails` Bad Request
688
+ * @response `409` `ProblemDetails` Conflict
689
+ */
690
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
691
+ /**
692
+ * No description
693
+ *
694
+ * @tags AiUrlSource
695
+ * @name GetAiUrlSource
696
+ * @summary Get URL source by ID
697
+ * @request GET:/api/ai/admin/url-sources/{id}
698
+ * @secure
699
+ * @response `200` `AiUrlSource` OK
700
+ * @response `404` `ProblemDetails` Not Found
701
+ */
702
+ getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
703
+ /**
704
+ * No description
705
+ *
706
+ * @tags AiUrlSource
707
+ * @name UpdateAiUrlSource
708
+ * @summary Update URL source
709
+ * @request PUT:/api/ai/admin/url-sources/{id}
710
+ * @secure
711
+ * @response `200` `AiUrlSource` OK
712
+ * @response `400` `ProblemDetails` Bad Request
713
+ * @response `404` `ProblemDetails` Not Found
714
+ * @response `409` `ProblemDetails` Conflict
715
+ */
716
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
717
+ /**
718
+ * No description
719
+ *
720
+ * @tags AiUrlSource
721
+ * @name DeleteAiUrlSource
722
+ * @summary Delete URL source
723
+ * @request DELETE:/api/ai/admin/url-sources/{id}
724
+ * @secure
725
+ * @response `204` `void` No Content
726
+ * @response `404` `ProblemDetails` Not Found
727
+ */
728
+ deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
729
+ /**
730
+ * No description
731
+ *
732
+ * @tags AiUrlSource
733
+ * @name ToggleAiUrlSource
734
+ * @summary Toggle URL source active/inactive
735
+ * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
736
+ * @secure
737
+ * @response `200` `AiUrlSource` OK
738
+ * @response `404` `ProblemDetails` Not Found
739
+ */
740
+ toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
258
741
  /**
259
742
  * No description
260
743
  *
@@ -265,7 +748,7 @@ export class Api extends HttpClient {
265
748
  * @secure
266
749
  * @response `200` `AuditLogEntryPaginated` OK
267
750
  */
268
- 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)),
751
+ 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)),
269
752
  /**
270
753
  * No description
271
754
  *
@@ -301,7 +784,7 @@ export class Api extends HttpClient {
301
784
  * @response `401` `ProblemDetails` Unauthorized
302
785
  * @response `422` `UnprocessableEntity` Unprocessable Content
303
786
  */
304
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
787
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
305
788
  /**
306
789
  * No description
307
790
  *
@@ -313,7 +796,7 @@ export class Api extends HttpClient {
313
796
  * @response `200` `AccountDeactivated` OK
314
797
  * @response `422` `UnprocessableEntity` Unprocessable Content
315
798
  */
316
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
799
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
317
800
  /**
318
801
  * No description
319
802
  *
@@ -325,7 +808,7 @@ export class Api extends HttpClient {
325
808
  * @response `200` `AccountDeactivated` OK
326
809
  * @response `422` `UnprocessableEntity` Unprocessable Content
327
810
  */
328
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
811
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
329
812
  /**
330
813
  * No description
331
814
  *
@@ -337,7 +820,7 @@ export class Api extends HttpClient {
337
820
  * @response `200` `Token` OK
338
821
  * @response `422` `UnprocessableEntity` Unprocessable Content
339
822
  */
340
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
823
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
341
824
  /**
342
825
  * No description
343
826
  *
@@ -349,7 +832,7 @@ export class Api extends HttpClient {
349
832
  * @response `200` `SSOToken` OK
350
833
  * @response `422` `UnprocessableEntity` Unprocessable Content
351
834
  */
352
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
835
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
353
836
  /**
354
837
  * No description
355
838
  *
@@ -384,7 +867,7 @@ export class Api extends HttpClient {
384
867
  * @response `200` `GetBranch` OK
385
868
  * @response `422` `UnprocessableEntity` Unprocessable Content
386
869
  */
387
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
870
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
388
871
  /**
389
872
  * No description
390
873
  *
@@ -395,7 +878,7 @@ export class Api extends HttpClient {
395
878
  * @secure
396
879
  * @response `200` `GetBranchPaginated` OK
397
880
  */
398
- 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)),
881
+ 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)),
399
882
  /**
400
883
  * No description
401
884
  *
@@ -418,7 +901,7 @@ export class Api extends HttpClient {
418
901
  * @response `200` `GetBranch` OK
419
902
  * @response `422` `UnprocessableEntity` Unprocessable Content
420
903
  */
421
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
904
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
422
905
  /**
423
906
  * No description
424
907
  *
@@ -453,7 +936,7 @@ export class Api extends HttpClient {
453
936
  * @response `200` `SiteConfiguration` OK
454
937
  * @response `422` `UnprocessableEntity` Unprocessable Content
455
938
  */
456
- 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)),
939
+ 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)),
457
940
  /**
458
941
  * No description
459
942
  *
@@ -476,7 +959,7 @@ export class Api extends HttpClient {
476
959
  * @response `200` `SiteConfiguration` OK
477
960
  * @response `422` `UnprocessableEntity` Unprocessable Content
478
961
  */
479
- 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)),
962
+ 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)),
480
963
  /**
481
964
  * No description
482
965
  *
@@ -510,7 +993,7 @@ export class Api extends HttpClient {
510
993
  * @response `200` `BusinessRule` OK
511
994
  * @response `422` `UnprocessableEntity` Unprocessable Content
512
995
  */
513
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
996
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
514
997
  /**
515
998
  * No description
516
999
  *
@@ -533,7 +1016,7 @@ export class Api extends HttpClient {
533
1016
  * @response `200` `BusinessRule` OK
534
1017
  * @response `422` `UnprocessableEntity` Unprocessable Content
535
1018
  */
536
- 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)),
1019
+ 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)),
537
1020
  /**
538
1021
  * No description
539
1022
  *
@@ -566,7 +1049,7 @@ export class Api extends HttpClient {
566
1049
  * @secure
567
1050
  * @response `200` `ClosedLoansReport` OK
568
1051
  */
569
- 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)),
1052
+ 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)),
570
1053
  /**
571
1054
  * No description
572
1055
  *
@@ -611,7 +1094,7 @@ export class Api extends HttpClient {
611
1094
  * @response `200` `Corporate` OK
612
1095
  * @response `422` `UnprocessableEntity` Unprocessable Content
613
1096
  */
614
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1097
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
615
1098
  /**
616
1099
  * No description
617
1100
  *
@@ -622,7 +1105,7 @@ export class Api extends HttpClient {
622
1105
  * @secure
623
1106
  * @response `200` `CorporatePaginated` OK
624
1107
  */
625
- 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)),
1108
+ 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)),
626
1109
  /**
627
1110
  * No description
628
1111
  *
@@ -645,7 +1128,7 @@ export class Api extends HttpClient {
645
1128
  * @response `200` `Corporate` OK
646
1129
  * @response `422` `UnprocessableEntity` Unprocessable Content
647
1130
  */
648
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1131
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
649
1132
  /**
650
1133
  * No description
651
1134
  *
@@ -679,7 +1162,7 @@ export class Api extends HttpClient {
679
1162
  * @response `200` `SiteConfiguration` OK
680
1163
  * @response `422` `UnprocessableEntity` Unprocessable Content
681
1164
  */
682
- 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)),
1165
+ 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)),
683
1166
  /**
684
1167
  * No description
685
1168
  *
@@ -702,7 +1185,7 @@ export class Api extends HttpClient {
702
1185
  * @response `200` `SiteConfiguration` OK
703
1186
  * @response `422` `UnprocessableEntity` Unprocessable Content
704
1187
  */
705
- 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)),
1188
+ 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)),
706
1189
  /**
707
1190
  * No description
708
1191
  *
@@ -748,7 +1231,7 @@ export class Api extends HttpClient {
748
1231
  * @response `409` `ProblemDetails` Conflict
749
1232
  * @response `422` `ProblemDetails` Unprocessable Content
750
1233
  */
751
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1234
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
752
1235
  /**
753
1236
  * No description
754
1237
  *
@@ -775,7 +1258,7 @@ export class Api extends HttpClient {
775
1258
  * @response `409` `ProblemDetails` Conflict
776
1259
  * @response `422` `ProblemDetails` Unprocessable Content
777
1260
  */
778
- 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)),
1261
+ 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)),
779
1262
  /**
780
1263
  * No description
781
1264
  *
@@ -845,7 +1328,7 @@ export class Api extends HttpClient {
845
1328
  * @secure
846
1329
  * @response `200` `Device` OK
847
1330
  */
848
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1331
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
849
1332
  /**
850
1333
  * No description
851
1334
  *
@@ -902,7 +1385,7 @@ export class Api extends HttpClient {
902
1385
  * @response `404` `ProblemDetails` Not Found
903
1386
  * @response `422` `UnprocessableEntity` Unprocessable Content
904
1387
  */
905
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1388
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
906
1389
  /**
907
1390
  * No description
908
1391
  *
@@ -939,7 +1422,7 @@ export class Api extends HttpClient {
939
1422
  * @response `404` `ProblemDetails` Not Found
940
1423
  * @response `422` `UnprocessableEntity` Unprocessable Content
941
1424
  */
942
- 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)),
1425
+ 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)),
943
1426
  /**
944
1427
  * No description
945
1428
  *
@@ -987,7 +1470,7 @@ export class Api extends HttpClient {
987
1470
  * @secure
988
1471
  * @response `200` `DocumentTemplateVersion` OK
989
1472
  */
990
- 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)),
1473
+ 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)),
991
1474
  /**
992
1475
  * No description
993
1476
  *
@@ -1009,7 +1492,7 @@ export class Api extends HttpClient {
1009
1492
  * @secure
1010
1493
  * @response `200` `DocumentTemplateVersion` OK
1011
1494
  */
1012
- 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)),
1495
+ 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)),
1013
1496
  /**
1014
1497
  * No description
1015
1498
  *
@@ -1047,7 +1530,7 @@ export class Api extends HttpClient {
1047
1530
  * @response `409` `void` Conflict
1048
1531
  * @response `422` `ProblemDetails` Unprocessable Content
1049
1532
  */
1050
- 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)),
1533
+ 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)),
1051
1534
  /**
1052
1535
  * No description
1053
1536
  *
@@ -1136,7 +1619,7 @@ export class Api extends HttpClient {
1136
1619
  * @response `404` `EncompassError` Not Found
1137
1620
  * @response `500` `EncompassError` Internal Server Error
1138
1621
  */
1139
- 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)),
1622
+ 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)),
1140
1623
  /**
1141
1624
  * No description
1142
1625
  *
@@ -1159,7 +1642,7 @@ export class Api extends HttpClient {
1159
1642
  * @response `201` `File` Created
1160
1643
  * @response `422` `UnprocessableEntity` Unprocessable Content
1161
1644
  */
1162
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1645
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1163
1646
  /**
1164
1647
  * No description
1165
1648
  *
@@ -1182,7 +1665,7 @@ export class Api extends HttpClient {
1182
1665
  * @response `200` `string` OK
1183
1666
  * @response `422` `UnprocessableEntity` Unprocessable Content
1184
1667
  */
1185
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1668
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1186
1669
  /**
1187
1670
  * No description
1188
1671
  *
@@ -1204,7 +1687,7 @@ export class Api extends HttpClient {
1204
1687
  * @secure
1205
1688
  * @response `200` `FilePaginated` OK
1206
1689
  */
1207
- 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)),
1690
+ 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)),
1208
1691
  /**
1209
1692
  * No description
1210
1693
  *
@@ -1227,7 +1710,7 @@ export class Api extends HttpClient {
1227
1710
  * @response `201` `Form` Created
1228
1711
  * @response `422` `UnprocessableEntity` Unprocessable Content
1229
1712
  */
1230
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1713
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1231
1714
  /**
1232
1715
  * No description
1233
1716
  *
@@ -1250,7 +1733,7 @@ export class Api extends HttpClient {
1250
1733
  * @response `200` `Form` OK
1251
1734
  * @response `422` `UnprocessableEntity` Unprocessable Content
1252
1735
  */
1253
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1736
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1254
1737
  /**
1255
1738
  * No description
1256
1739
  *
@@ -1283,7 +1766,7 @@ export class Api extends HttpClient {
1283
1766
  * @secure
1284
1767
  * @response `200` `FormSubmissionFile` OK
1285
1768
  */
1286
- 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)),
1769
+ 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)),
1287
1770
  /**
1288
1771
  * No description
1289
1772
  *
@@ -1327,7 +1810,7 @@ export class Api extends HttpClient {
1327
1810
  * @secure
1328
1811
  * @response `201` `FormSubmission` Created
1329
1812
  */
1330
- 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)),
1813
+ 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)),
1331
1814
  /**
1332
1815
  * No description
1333
1816
  *
@@ -1349,7 +1832,7 @@ export class Api extends HttpClient {
1349
1832
  * @secure
1350
1833
  * @response `200` `FormSubmission` OK
1351
1834
  */
1352
- 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)),
1835
+ 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)),
1353
1836
  /**
1354
1837
  * No description
1355
1838
  *
@@ -1371,7 +1854,7 @@ export class Api extends HttpClient {
1371
1854
  * @secure
1372
1855
  * @response `200` `FormSubmissionPaginated` OK
1373
1856
  */
1374
- 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)),
1857
+ 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)),
1375
1858
  /**
1376
1859
  * No description
1377
1860
  *
@@ -1393,7 +1876,7 @@ export class Api extends HttpClient {
1393
1876
  * @secure
1394
1877
  * @response `200` `FormVersion` OK
1395
1878
  */
1396
- 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)),
1879
+ 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)),
1397
1880
  /**
1398
1881
  * No description
1399
1882
  *
@@ -1415,7 +1898,7 @@ export class Api extends HttpClient {
1415
1898
  * @secure
1416
1899
  * @response `200` `FormVersion` OK
1417
1900
  */
1418
- 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)),
1901
+ 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)),
1419
1902
  /**
1420
1903
  * No description
1421
1904
  *
@@ -1461,7 +1944,7 @@ export class Api extends HttpClient {
1461
1944
  * @response `200` `string` OK
1462
1945
  * @response `422` `UnprocessableEntity` Unprocessable Content
1463
1946
  */
1464
- 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)),
1947
+ 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)),
1465
1948
  /**
1466
1949
  * No description
1467
1950
  *
@@ -1472,7 +1955,7 @@ export class Api extends HttpClient {
1472
1955
  * @secure
1473
1956
  * @response `200` `GetReport` OK
1474
1957
  */
1475
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1958
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1476
1959
  /**
1477
1960
  * No description
1478
1961
  *
@@ -1486,7 +1969,7 @@ export class Api extends HttpClient {
1486
1969
  * @response `422` `UnprocessableEntity` Unprocessable Content
1487
1970
  * @response `423` `UnprocessableEntity` Locked
1488
1971
  */
1489
- 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)),
1972
+ 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)),
1490
1973
  /**
1491
1974
  * No description
1492
1975
  *
@@ -1499,7 +1982,7 @@ export class Api extends HttpClient {
1499
1982
  * @response `422` `UnprocessableEntity` Unprocessable Content
1500
1983
  * @response `423` `UnprocessableEntity` Locked
1501
1984
  */
1502
- 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)),
1985
+ 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)),
1503
1986
  /**
1504
1987
  * No description
1505
1988
  *
@@ -1511,7 +1994,7 @@ export class Api extends HttpClient {
1511
1994
  * @response `200` `string` OK
1512
1995
  * @response `422` `UnprocessableEntity` Unprocessable Content
1513
1996
  */
1514
- 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)),
1997
+ 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)),
1515
1998
  /**
1516
1999
  * No description
1517
2000
  *
@@ -1524,7 +2007,7 @@ export class Api extends HttpClient {
1524
2007
  * @response `202` `string` Accepted
1525
2008
  * @response `422` `UnprocessableEntity` Unprocessable Content
1526
2009
  */
1527
- 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)),
2010
+ 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)),
1528
2011
  /**
1529
2012
  * No description
1530
2013
  *
@@ -1602,7 +2085,7 @@ export class Api extends HttpClient {
1602
2085
  * @secure
1603
2086
  * @response `200` `DocumentDataRequest` OK
1604
2087
  */
1605
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2088
+ createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1606
2089
  /**
1607
2090
  * No description
1608
2091
  *
@@ -1627,7 +2110,7 @@ export class Api extends HttpClient {
1627
2110
  * @secure
1628
2111
  * @response `200` `ListingFile` OK
1629
2112
  */
1630
- 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)),
2113
+ 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)),
1631
2114
  /**
1632
2115
  * No description
1633
2116
  *
@@ -1638,7 +2121,7 @@ export class Api extends HttpClient {
1638
2121
  * @secure
1639
2122
  * @response `200` `ListingFile` OK
1640
2123
  */
1641
- 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)),
2124
+ 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)),
1642
2125
  /**
1643
2126
  * No description
1644
2127
  *
@@ -1660,7 +2143,7 @@ export class Api extends HttpClient {
1660
2143
  * @secure
1661
2144
  * @response `200` `ListingPhoto` OK
1662
2145
  */
1663
- 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)),
2146
+ 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)),
1664
2147
  /**
1665
2148
  * No description
1666
2149
  *
@@ -1671,7 +2154,7 @@ export class Api extends HttpClient {
1671
2154
  * @secure
1672
2155
  * @response `200` `(ListingPhoto)[]` OK
1673
2156
  */
1674
- 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)),
2157
+ 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)),
1675
2158
  /**
1676
2159
  * No description
1677
2160
  *
@@ -1704,7 +2187,7 @@ export class Api extends HttpClient {
1704
2187
  * @secure
1705
2188
  * @response `201` `Listing` Created
1706
2189
  */
1707
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2190
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1708
2191
  /**
1709
2192
  * No description
1710
2193
  *
@@ -1737,7 +2220,7 @@ export class Api extends HttpClient {
1737
2220
  * @secure
1738
2221
  * @response `200` `Listing` OK
1739
2222
  */
1740
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2223
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1741
2224
  /**
1742
2225
  * No description
1743
2226
  *
@@ -1759,7 +2242,7 @@ export class Api extends HttpClient {
1759
2242
  * @secure
1760
2243
  * @response `200` `ListingPaginated` OK
1761
2244
  */
1762
- 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)),
2245
+ 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)),
1763
2246
  /**
1764
2247
  * No description
1765
2248
  *
@@ -1770,7 +2253,7 @@ export class Api extends HttpClient {
1770
2253
  * @secure
1771
2254
  * @response `200` `File` OK
1772
2255
  */
1773
- 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)),
2256
+ 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)),
1774
2257
  /**
1775
2258
  * No description
1776
2259
  *
@@ -1816,7 +2299,7 @@ export class Api extends HttpClient {
1816
2299
  * @response `422` `UnprocessableEntity` Unprocessable Content
1817
2300
  * @response `423` `UnprocessableEntity` Locked
1818
2301
  */
1819
- 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)),
2302
+ 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)),
1820
2303
  /**
1821
2304
  * No description
1822
2305
  *
@@ -1840,7 +2323,7 @@ export class Api extends HttpClient {
1840
2323
  * @response `422` `UnprocessableEntity` Unprocessable Content
1841
2324
  * @response `423` `UnprocessableEntity` Locked
1842
2325
  */
1843
- 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)),
2326
+ 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)),
1844
2327
  /**
1845
2328
  * No description
1846
2329
  *
@@ -1863,7 +2346,7 @@ export class Api extends HttpClient {
1863
2346
  * @response `204` `void` No Content
1864
2347
  * @response `422` `UnprocessableEntity` Unprocessable Content
1865
2348
  */
1866
- 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)),
2349
+ 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)),
1867
2350
  /**
1868
2351
  * No description
1869
2352
  *
@@ -1900,7 +2383,7 @@ export class Api extends HttpClient {
1900
2383
  * @response `400` `ProblemDetails` Bad Request
1901
2384
  * @response `422` `ProblemDetails` Unprocessable Content
1902
2385
  */
1903
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2386
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
1904
2387
  /**
1905
2388
  * No description
1906
2389
  *
@@ -1914,7 +2397,7 @@ export class Api extends HttpClient {
1914
2397
  * @response `404` `ProblemDetails` Not Found
1915
2398
  * @response `422` `ProblemDetails` Unprocessable Content
1916
2399
  */
1917
- 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)),
2400
+ 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)),
1918
2401
  /**
1919
2402
  * No description
1920
2403
  *
@@ -1948,7 +2431,7 @@ export class Api extends HttpClient {
1948
2431
  * @secure
1949
2432
  * @response `201` `(string)[]` Created
1950
2433
  */
1951
- 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)),
2434
+ 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)),
1952
2435
  /**
1953
2436
  * No description
1954
2437
  *
@@ -1972,7 +2455,7 @@ export class Api extends HttpClient {
1972
2455
  * @response `409` `ProblemDetails` Conflict
1973
2456
  * @response `422` `ProblemDetails` Unprocessable Content
1974
2457
  */
1975
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2458
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1976
2459
  /**
1977
2460
  * No description
1978
2461
  *
@@ -1999,7 +2482,7 @@ export class Api extends HttpClient {
1999
2482
  * @response `409` `ProblemDetails` Conflict
2000
2483
  * @response `422` `ProblemDetails` Unprocessable Content
2001
2484
  */
2002
- 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)),
2485
+ 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)),
2003
2486
  /**
2004
2487
  * No description
2005
2488
  *
@@ -2074,7 +2557,7 @@ export class Api extends HttpClient {
2074
2557
  * @response `200` `Record<string,string>` OK
2075
2558
  * @response `400` `ProblemDetails` Bad Request
2076
2559
  */
2077
- 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)),
2560
+ 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)),
2078
2561
  /**
2079
2562
  * No description
2080
2563
  *
@@ -2085,7 +2568,7 @@ export class Api extends HttpClient {
2085
2568
  * @secure
2086
2569
  * @response `200` `LoanDocumentSearchPaginated` OK
2087
2570
  */
2088
- 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)),
2571
+ 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)),
2089
2572
  /**
2090
2573
  * @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).
2091
2574
  *
@@ -2096,7 +2579,7 @@ export class Api extends HttpClient {
2096
2579
  * @secure
2097
2580
  * @response `200` `(DocumentFolder)[]` OK
2098
2581
  */
2099
- 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)),
2582
+ 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)),
2100
2583
  /**
2101
2584
  * No description
2102
2585
  *
@@ -2105,7 +2588,7 @@ export class Api extends HttpClient {
2105
2588
  * @summary Download By ID
2106
2589
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2107
2590
  * @secure
2108
- * @response `200` `Blob` OK
2591
+ * @response `200` `string` OK
2109
2592
  * @response `404` `ProblemDetails` Not Found
2110
2593
  */
2111
2594
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2121,7 +2604,7 @@ export class Api extends HttpClient {
2121
2604
  * @response `404` `ProblemDetails` Not Found
2122
2605
  * @response `422` `UnprocessableEntity` Unprocessable Content
2123
2606
  */
2124
- 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)),
2607
+ 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)),
2125
2608
  /**
2126
2609
  * No description
2127
2610
  *
@@ -2145,7 +2628,7 @@ export class Api extends HttpClient {
2145
2628
  * @secure
2146
2629
  * @response `200` `DocumentDataRequest` OK
2147
2630
  */
2148
- 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)),
2631
+ 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)),
2149
2632
  /**
2150
2633
  * No description
2151
2634
  *
@@ -2158,7 +2641,7 @@ export class Api extends HttpClient {
2158
2641
  * @response `400` `ProblemDetails` Bad Request
2159
2642
  * @response `404` `ProblemDetails` Not Found
2160
2643
  */
2161
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2644
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2162
2645
  /**
2163
2646
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2164
2647
  *
@@ -2194,7 +2677,7 @@ export class Api extends HttpClient {
2194
2677
  * @secure
2195
2678
  * @response `201` `Draft` Created
2196
2679
  */
2197
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2680
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2198
2681
  /**
2199
2682
  * No description
2200
2683
  *
@@ -2227,7 +2710,7 @@ export class Api extends HttpClient {
2227
2710
  * @secure
2228
2711
  * @response `200` `Draft` OK
2229
2712
  */
2230
- 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)),
2713
+ 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)),
2231
2714
  /**
2232
2715
  * No description
2233
2716
  *
@@ -2249,7 +2732,7 @@ export class Api extends HttpClient {
2249
2732
  * @secure
2250
2733
  * @response `201` `DraftContentPaginated` Created
2251
2734
  */
2252
- 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)),
2735
+ 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)),
2253
2736
  /**
2254
2737
  * No description
2255
2738
  *
@@ -2260,7 +2743,7 @@ export class Api extends HttpClient {
2260
2743
  * @secure
2261
2744
  * @response `200` `Draft` OK
2262
2745
  */
2263
- 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)),
2746
+ 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)),
2264
2747
  /**
2265
2748
  * No description
2266
2749
  *
@@ -2293,7 +2776,7 @@ export class Api extends HttpClient {
2293
2776
  * @secure
2294
2777
  * @response `201` `LoanImport` Created
2295
2778
  */
2296
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2779
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2297
2780
  /**
2298
2781
  * No description
2299
2782
  *
@@ -2339,7 +2822,7 @@ export class Api extends HttpClient {
2339
2822
  * @response `200` `(Invite)[]` OK
2340
2823
  * @response `404` `ProblemDetails` Not Found
2341
2824
  */
2342
- 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)),
2825
+ 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)),
2343
2826
  /**
2344
2827
  * No description
2345
2828
  *
@@ -2350,7 +2833,7 @@ export class Api extends HttpClient {
2350
2833
  * @secure
2351
2834
  * @response `200` `LoanLogPaginated` OK
2352
2835
  */
2353
- 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)),
2836
+ 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)),
2354
2837
  /**
2355
2838
  * No description
2356
2839
  *
@@ -2384,7 +2867,7 @@ export class Api extends HttpClient {
2384
2867
  * @secure
2385
2868
  * @response `200` `BranchUserPaginated` OK
2386
2869
  */
2387
- 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)),
2870
+ 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)),
2388
2871
  /**
2389
2872
  * No description
2390
2873
  *
@@ -2407,7 +2890,7 @@ export class Api extends HttpClient {
2407
2890
  * @response `200` `SiteConfiguration` OK
2408
2891
  * @response `422` `UnprocessableEntity` Unprocessable Content
2409
2892
  */
2410
- 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)),
2893
+ 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)),
2411
2894
  /**
2412
2895
  * No description
2413
2896
  *
@@ -2430,7 +2913,7 @@ export class Api extends HttpClient {
2430
2913
  * @response `200` `SiteConfiguration` OK
2431
2914
  * @response `422` `UnprocessableEntity` Unprocessable Content
2432
2915
  */
2433
- 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)),
2916
+ 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)),
2434
2917
  /**
2435
2918
  * No description
2436
2919
  *
@@ -2441,7 +2924,7 @@ export class Api extends HttpClient {
2441
2924
  * @secure
2442
2925
  * @response `200` `LoanQueuePaginated` OK
2443
2926
  */
2444
- 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)),
2927
+ 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)),
2445
2928
  /**
2446
2929
  * No description
2447
2930
  *
@@ -2465,7 +2948,7 @@ export class Api extends HttpClient {
2465
2948
  * @response `200` `LoanQueueWithData` OK
2466
2949
  * @response `404` `ProblemDetails` Not Found
2467
2950
  */
2468
- 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)),
2951
+ 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)),
2469
2952
  /**
2470
2953
  * No description
2471
2954
  *
@@ -2526,7 +3009,7 @@ export class Api extends HttpClient {
2526
3009
  * @response `401` `ProblemDetails` Unauthorized
2527
3010
  * @response `403` `ProblemDetails` Forbidden
2528
3011
  */
2529
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3012
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2530
3013
  /**
2531
3014
  * No description
2532
3015
  *
@@ -2537,7 +3020,7 @@ export class Api extends HttpClient {
2537
3020
  * @secure
2538
3021
  * @response `200` `LoanListPaginated` OK
2539
3022
  */
2540
- 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)),
3023
+ 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)),
2541
3024
  /**
2542
3025
  * No description
2543
3026
  *
@@ -2553,7 +3036,7 @@ export class Api extends HttpClient {
2553
3036
  * @response `404` `ProblemDetails` Not Found
2554
3037
  * @response `409` `any` Conflict
2555
3038
  */
2556
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, format: "json" }, params)),
3039
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2557
3040
  /**
2558
3041
  * No description
2559
3042
  *
@@ -2615,7 +3098,7 @@ export class Api extends HttpClient {
2615
3098
  * @response `400` `ProblemDetails` Bad Request
2616
3099
  * @response `404` `ProblemDetails` Not Found
2617
3100
  */
2618
- 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)),
3101
+ 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)),
2619
3102
  /**
2620
3103
  * No description
2621
3104
  *
@@ -2627,7 +3110,7 @@ export class Api extends HttpClient {
2627
3110
  * @response `200` `TaskCommentPaginated` OK
2628
3111
  * @response `404` `ProblemDetails` Not Found
2629
3112
  */
2630
- 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)),
3113
+ 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)),
2631
3114
  /**
2632
3115
  * No description
2633
3116
  *
@@ -2651,7 +3134,7 @@ export class Api extends HttpClient {
2651
3134
  * @response `201` `TaskComment` Created
2652
3135
  * @response `404` `ProblemDetails` Not Found
2653
3136
  */
2654
- 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)),
3137
+ 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)),
2655
3138
  /**
2656
3139
  * No description
2657
3140
  *
@@ -2663,7 +3146,7 @@ export class Api extends HttpClient {
2663
3146
  * @response `200` `TaskComment` OK
2664
3147
  * @response `404` `ProblemDetails` Not Found
2665
3148
  */
2666
- 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)),
3149
+ 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)),
2667
3150
  /**
2668
3151
  * No description
2669
3152
  *
@@ -2688,7 +3171,7 @@ export class Api extends HttpClient {
2688
3171
  * @response `404` `ProblemDetails` Not Found
2689
3172
  * @response `422` `UnprocessableEntity` Unprocessable Content
2690
3173
  */
2691
- 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)),
3174
+ 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)),
2692
3175
  /**
2693
3176
  * No description
2694
3177
  *
@@ -2725,7 +3208,7 @@ export class Api extends HttpClient {
2725
3208
  * @response `400` `ProblemDetails` Bad Request
2726
3209
  * @response `404` `ProblemDetails` Not Found
2727
3210
  */
2728
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3211
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2729
3212
  /**
2730
3213
  * @description Search tasks across all loans
2731
3214
  *
@@ -2736,7 +3219,7 @@ export class Api extends HttpClient {
2736
3219
  * @secure
2737
3220
  * @response `200` `UserLoanTaskPaginated` OK
2738
3221
  */
2739
- 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)),
3222
+ 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)),
2740
3223
  /**
2741
3224
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
2742
3225
  *
@@ -2748,7 +3231,7 @@ export class Api extends HttpClient {
2748
3231
  * @response `200` `(LoanTaskStatusSummary)[]` OK
2749
3232
  * @response `422` `UnprocessableEntity` Unprocessable Content
2750
3233
  */
2751
- 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)),
3234
+ 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)),
2752
3235
  /**
2753
3236
  * No description
2754
3237
  *
@@ -2796,7 +3279,7 @@ export class Api extends HttpClient {
2796
3279
  * @response `201` `UserLoanTask` Created
2797
3280
  * @response `404` `ProblemDetails` Not Found
2798
3281
  */
2799
- 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)),
3282
+ 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)),
2800
3283
  /**
2801
3284
  * No description
2802
3285
  *
@@ -2808,7 +3291,7 @@ export class Api extends HttpClient {
2808
3291
  * @response `201` `(UserLoanTask)[]` Created
2809
3292
  * @response `404` `ProblemDetails` Not Found
2810
3293
  */
2811
- 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)),
3294
+ 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)),
2812
3295
  /**
2813
3296
  * No description
2814
3297
  *
@@ -2820,7 +3303,7 @@ export class Api extends HttpClient {
2820
3303
  * @response `200` `UserLoanTask` OK
2821
3304
  * @response `404` `ProblemDetails` Not Found
2822
3305
  */
2823
- 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)),
3306
+ 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)),
2824
3307
  /**
2825
3308
  * No description
2826
3309
  *
@@ -2879,7 +3362,7 @@ export class Api extends HttpClient {
2879
3362
  * @secure
2880
3363
  * @response `201` `LoanUser` Created
2881
3364
  */
2882
- 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)),
3365
+ 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)),
2883
3366
  /**
2884
3367
  * No description
2885
3368
  *
@@ -2912,7 +3395,7 @@ export class Api extends HttpClient {
2912
3395
  * @secure
2913
3396
  * @response `200` `LosOperationTrackingPaginated` OK
2914
3397
  */
2915
- 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)),
3398
+ 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)),
2916
3399
  /**
2917
3400
  * No description
2918
3401
  *
@@ -2935,7 +3418,7 @@ export class Api extends HttpClient {
2935
3418
  * @response `201` `MilestoneConfiguration` Created
2936
3419
  * @response `422` `UnprocessableEntity` Unprocessable Content
2937
3420
  */
2938
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3421
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2939
3422
  /**
2940
3423
  * No description
2941
3424
  *
@@ -2960,7 +3443,7 @@ export class Api extends HttpClient {
2960
3443
  * @response `404` `Error` Not Found
2961
3444
  * @response `422` `UnprocessableEntity` Unprocessable Content
2962
3445
  */
2963
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3446
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2964
3447
  /**
2965
3448
  * No description
2966
3449
  *
@@ -2986,7 +3469,7 @@ export class Api extends HttpClient {
2986
3469
  * @response `404` `ProblemDetails` Not Found
2987
3470
  * @response `422` `ProblemDetails` Unprocessable Content
2988
3471
  */
2989
- 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)),
3472
+ 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)),
2990
3473
  /**
2991
3474
  * No description
2992
3475
  *
@@ -2998,7 +3481,7 @@ export class Api extends HttpClient {
2998
3481
  * @response `200` `MonthlyPaymentCalculator` OK
2999
3482
  * @response `422` `ProblemDetails` Unprocessable Content
3000
3483
  */
3001
- 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)),
3484
+ 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)),
3002
3485
  /**
3003
3486
  * No description
3004
3487
  *
@@ -3010,7 +3493,7 @@ export class Api extends HttpClient {
3010
3493
  * @response `200` `AffordabilityCalculator` OK
3011
3494
  * @response `422` `ProblemDetails` Unprocessable Content
3012
3495
  */
3013
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3496
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3014
3497
  /**
3015
3498
  * No description
3016
3499
  *
@@ -3022,7 +3505,7 @@ export class Api extends HttpClient {
3022
3505
  * @response `200` `LoanComparisonCalculator` OK
3023
3506
  * @response `422` `ProblemDetails` Unprocessable Content
3024
3507
  */
3025
- 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)),
3508
+ 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)),
3026
3509
  /**
3027
3510
  * No description
3028
3511
  *
@@ -3034,7 +3517,7 @@ export class Api extends HttpClient {
3034
3517
  * @response `200` `RefinanceCalculator` OK
3035
3518
  * @response `422` `ProblemDetails` Unprocessable Content
3036
3519
  */
3037
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3520
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3038
3521
  /**
3039
3522
  * No description
3040
3523
  *
@@ -3046,7 +3529,7 @@ export class Api extends HttpClient {
3046
3529
  * @response `200` `void` OK
3047
3530
  * @response `422` `UnprocessableEntity` Unprocessable Content
3048
3531
  */
3049
- sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3532
+ sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3050
3533
  /**
3051
3534
  * No description
3052
3535
  *
@@ -3058,7 +3541,7 @@ export class Api extends HttpClient {
3058
3541
  * @response `200` `void` OK
3059
3542
  * @response `422` `UnprocessableEntity` Unprocessable Content
3060
3543
  */
3061
- sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3544
+ sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3062
3545
  /**
3063
3546
  * No description
3064
3547
  *
@@ -3081,7 +3564,7 @@ export class Api extends HttpClient {
3081
3564
  * @response `201` `NotificationTemplate` Created
3082
3565
  * @response `422` `UnprocessableEntity` Unprocessable Content
3083
3566
  */
3084
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3567
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3085
3568
  /**
3086
3569
  * No description
3087
3570
  *
@@ -3092,7 +3575,7 @@ export class Api extends HttpClient {
3092
3575
  * @secure
3093
3576
  * @response `200` `NotificationTemplateBasePaginated` OK
3094
3577
  */
3095
- 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)),
3578
+ 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)),
3096
3579
  /**
3097
3580
  * No description
3098
3581
  *
@@ -3115,7 +3598,7 @@ export class Api extends HttpClient {
3115
3598
  * @response `200` `NotificationTemplate` OK
3116
3599
  * @response `422` `UnprocessableEntity` Unprocessable Content
3117
3600
  */
3118
- 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)),
3601
+ 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)),
3119
3602
  /**
3120
3603
  * No description
3121
3604
  *
@@ -3159,7 +3642,7 @@ export class Api extends HttpClient {
3159
3642
  * @secure
3160
3643
  * @response `200` `NotificationTemplateVersion` OK
3161
3644
  */
3162
- 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)),
3645
+ 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)),
3163
3646
  /**
3164
3647
  * No description
3165
3648
  *
@@ -3181,7 +3664,7 @@ export class Api extends HttpClient {
3181
3664
  * @secure
3182
3665
  * @response `200` `NotificationTemplateVersion` OK
3183
3666
  */
3184
- 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)),
3667
+ 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)),
3185
3668
  /**
3186
3669
  * No description
3187
3670
  *
@@ -3214,7 +3697,7 @@ export class Api extends HttpClient {
3214
3697
  * @secure
3215
3698
  * @response `200` `BranchUserPaginated` OK
3216
3699
  */
3217
- 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)),
3700
+ 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)),
3218
3701
  /**
3219
3702
  * No description
3220
3703
  *
@@ -3237,7 +3720,7 @@ export class Api extends HttpClient {
3237
3720
  * @response `200` `SiteConfiguration` OK
3238
3721
  * @response `422` `UnprocessableEntity` Unprocessable Content
3239
3722
  */
3240
- 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)),
3723
+ 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)),
3241
3724
  /**
3242
3725
  * No description
3243
3726
  *
@@ -3260,7 +3743,7 @@ export class Api extends HttpClient {
3260
3743
  * @response `200` `SiteConfiguration` OK
3261
3744
  * @response `422` `UnprocessableEntity` Unprocessable Content
3262
3745
  */
3263
- 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)),
3746
+ 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)),
3264
3747
  /**
3265
3748
  * No description
3266
3749
  *
@@ -3284,7 +3767,7 @@ export class Api extends HttpClient {
3284
3767
  * @response `200` `SiteConfigurationByUrl` OK
3285
3768
  * @response `422` `UnprocessableEntity` Unprocessable Content
3286
3769
  */
3287
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3770
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3288
3771
  /**
3289
3772
  * No description
3290
3773
  *
@@ -3309,7 +3792,7 @@ export class Api extends HttpClient {
3309
3792
  * @response `200` `SiteConfiguration` OK
3310
3793
  * @response `422` `UnprocessableEntity` Unprocessable Content
3311
3794
  */
3312
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3795
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3313
3796
  /**
3314
3797
  * No description
3315
3798
  *
@@ -3333,7 +3816,7 @@ export class Api extends HttpClient {
3333
3816
  * @response `200` `SiteConfigurationSummaryPaginated` OK
3334
3817
  * @response `422` `UnprocessableEntity` Unprocessable Content
3335
3818
  */
3336
- 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)),
3819
+ 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)),
3337
3820
  /**
3338
3821
  * No description
3339
3822
  *
@@ -3425,7 +3908,7 @@ export class Api extends HttpClient {
3425
3908
  * @secure
3426
3909
  * @response `200` `GetForm` OK
3427
3910
  */
3428
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3911
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3429
3912
  /**
3430
3913
  * No description
3431
3914
  *
@@ -3448,7 +3931,7 @@ export class Api extends HttpClient {
3448
3931
  * @response `200` `(SocialSurveyRecord)[]` OK
3449
3932
  * @response `422` `UnprocessableEntity` Unprocessable Content
3450
3933
  */
3451
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3934
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3452
3935
  /**
3453
3936
  * No description
3454
3937
  *
@@ -3471,7 +3954,7 @@ export class Api extends HttpClient {
3471
3954
  * @secure
3472
3955
  * @response `201` `Task` Created
3473
3956
  */
3474
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3957
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3475
3958
  /**
3476
3959
  * No description
3477
3960
  *
@@ -3495,7 +3978,7 @@ export class Api extends HttpClient {
3495
3978
  * @response `200` `Task` OK
3496
3979
  * @response `404` `ProblemDetails` Not Found
3497
3980
  */
3498
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3981
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3499
3982
  /**
3500
3983
  * No description
3501
3984
  *
@@ -3518,7 +4001,7 @@ export class Api extends HttpClient {
3518
4001
  * @secure
3519
4002
  * @response `200` `TaskPaginated` OK
3520
4003
  */
3521
- 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)),
4004
+ 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)),
3522
4005
  /**
3523
4006
  * No description
3524
4007
  *
@@ -3528,7 +4011,7 @@ export class Api extends HttpClient {
3528
4011
  * @secure
3529
4012
  * @response `200` `void` OK
3530
4013
  */
3531
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4014
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3532
4015
  /**
3533
4016
  * No description
3534
4017
  *
@@ -3539,7 +4022,7 @@ export class Api extends HttpClient {
3539
4022
  * @secure
3540
4023
  * @response `200` `EncompassRequestLogPaginated` OK
3541
4024
  */
3542
- 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)),
4025
+ 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)),
3543
4026
  /**
3544
4027
  * No description
3545
4028
  *
@@ -3562,7 +4045,7 @@ export class Api extends HttpClient {
3562
4045
  * @secure
3563
4046
  * @response `201` `LosCredentials` Created
3564
4047
  */
3565
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4048
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3566
4049
  /**
3567
4050
  * No description
3568
4051
  *
@@ -3573,7 +4056,7 @@ export class Api extends HttpClient {
3573
4056
  * @secure
3574
4057
  * @response `200` `EncompassCredentialsDetail` OK
3575
4058
  */
3576
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4059
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3577
4060
  /**
3578
4061
  * No description
3579
4062
  *
@@ -3595,7 +4078,7 @@ export class Api extends HttpClient {
3595
4078
  * @secure
3596
4079
  * @response `201` `LosWebhook` Created
3597
4080
  */
3598
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4081
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3599
4082
  /**
3600
4083
  * No description
3601
4084
  *
@@ -3617,7 +4100,7 @@ export class Api extends HttpClient {
3617
4100
  * @secure
3618
4101
  * @response `200` `LosSyncPaginated` OK
3619
4102
  */
3620
- 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)),
4103
+ 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)),
3621
4104
  /**
3622
4105
  * No description
3623
4106
  *
@@ -3700,7 +4183,7 @@ export class Api extends HttpClient {
3700
4183
  * @response `201` `UserDevice` Created
3701
4184
  * @response `400` `ProblemDetails` Bad Request
3702
4185
  */
3703
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4186
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3704
4187
  /**
3705
4188
  * No description
3706
4189
  *
@@ -3745,7 +4228,7 @@ export class Api extends HttpClient {
3745
4228
  * @secure
3746
4229
  * @response `200` `UserDraft` OK
3747
4230
  */
3748
- 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)),
4231
+ 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)),
3749
4232
  /**
3750
4233
  * No description
3751
4234
  *
@@ -3778,7 +4261,7 @@ export class Api extends HttpClient {
3778
4261
  * @secure
3779
4262
  * @response `200` `UserGroupAccessScope` OK
3780
4263
  */
3781
- 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)),
4264
+ 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)),
3782
4265
  /**
3783
4266
  * No description
3784
4267
  *
@@ -3811,7 +4294,7 @@ export class Api extends HttpClient {
3811
4294
  * @secure
3812
4295
  * @response `200` `UserGroupMember` OK
3813
4296
  */
3814
- 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)),
4297
+ 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)),
3815
4298
  /**
3816
4299
  * No description
3817
4300
  *
@@ -3855,7 +4338,7 @@ export class Api extends HttpClient {
3855
4338
  * @secure
3856
4339
  * @response `200` `UserGroup` OK
3857
4340
  */
3858
- 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)),
4341
+ 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)),
3859
4342
  /**
3860
4343
  * No description
3861
4344
  *
@@ -3877,7 +4360,7 @@ export class Api extends HttpClient {
3877
4360
  * @secure
3878
4361
  * @response `201` `UserGroup` Created
3879
4362
  */
3880
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4363
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3881
4364
  /**
3882
4365
  * No description
3883
4366
  *
@@ -3890,7 +4373,7 @@ export class Api extends HttpClient {
3890
4373
  * @response `404` `Error` Not Found
3891
4374
  * @response `422` `UnprocessableEntity` Unprocessable Content
3892
4375
  */
3893
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4376
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3894
4377
  /**
3895
4378
  * No description
3896
4379
  *
@@ -3903,7 +4386,7 @@ export class Api extends HttpClient {
3903
4386
  * @response `404` `Error` Not Found
3904
4387
  * @response `422` `UnprocessableEntity` Unprocessable Content
3905
4388
  */
3906
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4389
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3907
4390
  /**
3908
4391
  * No description
3909
4392
  *
@@ -3953,7 +4436,7 @@ export class Api extends HttpClient {
3953
4436
  * @response `404` `Error` Not Found
3954
4437
  * @response `422` `UnprocessableEntity` Unprocessable Content
3955
4438
  */
3956
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4439
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3957
4440
  /**
3958
4441
  * No description
3959
4442
  *
@@ -3977,7 +4460,7 @@ export class Api extends HttpClient {
3977
4460
  * @response `204` `void` No Content
3978
4461
  * @response `422` `UnprocessableEntity` Unprocessable Content
3979
4462
  */
3980
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4463
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3981
4464
  /**
3982
4465
  * No description
3983
4466
  *
@@ -4024,7 +4507,7 @@ export class Api extends HttpClient {
4024
4507
  * @secure
4025
4508
  * @response `204` `void` No Content
4026
4509
  */
4027
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4510
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4028
4511
  /**
4029
4512
  * No description
4030
4513
  *
@@ -4069,7 +4552,7 @@ export class Api extends HttpClient {
4069
4552
  * @response `200` `DetailedUser` OK
4070
4553
  * @response `422` `UnprocessableEntity` Unprocessable Content
4071
4554
  */
4072
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4555
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4073
4556
  /**
4074
4557
  * No description
4075
4558
  *
@@ -4080,7 +4563,7 @@ export class Api extends HttpClient {
4080
4563
  * @secure
4081
4564
  * @response `200` `UserPaginated` OK
4082
4565
  */
4083
- 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)),
4566
+ 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)),
4084
4567
  /**
4085
4568
  * No description
4086
4569
  *
@@ -4091,7 +4574,7 @@ export class Api extends HttpClient {
4091
4574
  * @secure
4092
4575
  * @response `200` `AdminAccessUser` OK
4093
4576
  */
4094
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4577
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4095
4578
  /**
4096
4579
  * No description
4097
4580
  *
@@ -4103,7 +4586,7 @@ export class Api extends HttpClient {
4103
4586
  * @response `200` `User` OK
4104
4587
  * @response `422` `UnprocessableEntity` Unprocessable Content
4105
4588
  */
4106
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4589
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4107
4590
  /**
4108
4591
  * No description
4109
4592
  *
@@ -4115,7 +4598,7 @@ export class Api extends HttpClient {
4115
4598
  * @response `200` `DetailedUser` OK
4116
4599
  * @response `422` `UnprocessableEntity` Unprocessable Content
4117
4600
  */
4118
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4601
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4119
4602
  /**
4120
4603
  * No description
4121
4604
  *
@@ -4149,7 +4632,7 @@ export class Api extends HttpClient {
4149
4632
  * @response `204` `void` No Content
4150
4633
  * @response `422` `UnprocessableEntity` Unprocessable Content
4151
4634
  */
4152
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4635
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4153
4636
  /**
4154
4637
  * No description
4155
4638
  *
@@ -4161,7 +4644,7 @@ export class Api extends HttpClient {
4161
4644
  * @response `204` `void` No Content
4162
4645
  * @response `422` `UnprocessableEntity` Unprocessable Content
4163
4646
  */
4164
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4647
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4165
4648
  /**
4166
4649
  * No description
4167
4650
  *
@@ -4173,7 +4656,7 @@ export class Api extends HttpClient {
4173
4656
  * @response `204` `void` No Content
4174
4657
  * @response `422` `UnprocessableEntity` Unprocessable Content
4175
4658
  */
4176
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4659
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4177
4660
  /**
4178
4661
  * No description
4179
4662
  *
@@ -4185,7 +4668,7 @@ export class Api extends HttpClient {
4185
4668
  * @response `204` `void` No Content
4186
4669
  * @response `422` `UnprocessableEntity` Unprocessable Content
4187
4670
  */
4188
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4671
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4189
4672
  /**
4190
4673
  * No description
4191
4674
  *
@@ -4209,7 +4692,7 @@ export class Api extends HttpClient {
4209
4692
  * @response `204` `void` No Content
4210
4693
  * @response `422` `UnprocessableEntity` Unprocessable Content
4211
4694
  */
4212
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4695
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4213
4696
  /**
4214
4697
  * No description
4215
4698
  *
@@ -4232,7 +4715,7 @@ export class Api extends HttpClient {
4232
4715
  * @secure
4233
4716
  * @response `200` `DetailedUser` OK
4234
4717
  */
4235
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4718
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4236
4719
  /**
4237
4720
  * @description Update the phone number If changed will send a verification code to the new number
4238
4721
  *
@@ -4243,7 +4726,7 @@ export class Api extends HttpClient {
4243
4726
  * @secure
4244
4727
  * @response `204` `DetailedUser` No Content
4245
4728
  */
4246
- 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)),
4729
+ 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)),
4247
4730
  /**
4248
4731
  * No description
4249
4732
  *
@@ -4287,7 +4770,7 @@ export class Api extends HttpClient {
4287
4770
  * @secure
4288
4771
  * @response `204` `void` No Content
4289
4772
  */
4290
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4773
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4291
4774
  /**
4292
4775
  * No description
4293
4776
  *
@@ -4298,7 +4781,7 @@ export class Api extends HttpClient {
4298
4781
  * @secure
4299
4782
  * @response `200` `GetForm` OK
4300
4783
  */
4301
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4784
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4302
4785
  };
4303
4786
  this.sso = {
4304
4787
  /**