@matech/thebigpos-sdk 2.44.2-ai-bi → 2.44.3-rc0

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,15 +30,6 @@ 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 = {}));
42
33
  export class HttpClient {
43
34
  constructor(_a = {}) {
44
35
  var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
@@ -54,13 +45,13 @@ export class HttpClient {
54
45
  {};
55
46
  const requestParams = this.mergeRequestParams(params, secureParams);
56
47
  const responseFormat = format || this.format || undefined;
57
- if (type === ContentType.FormData &&
48
+ if (type === "multipart/form-data" &&
58
49
  body &&
59
50
  body !== null &&
60
51
  typeof body === "object") {
61
52
  body = this.createFormData(body);
62
53
  }
63
- if (type === ContentType.Text &&
54
+ if (type === "text/plain" &&
64
55
  body &&
65
56
  body !== null &&
66
57
  typeof body !== "string") {
@@ -156,7 +147,7 @@ export class Api extends HttpClient {
156
147
  * @response `404` `ProblemDetails` Not Found
157
148
  * @response `422` `ProblemDetails` Unprocessable Content
158
149
  */
159
- replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
150
+ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
160
151
  /**
161
152
  * No description
162
153
  *
@@ -179,7 +170,7 @@ export class Api extends HttpClient {
179
170
  * @response `200` `SiteConfiguration` OK
180
171
  * @response `422` `UnprocessableEntity` Unprocessable Content
181
172
  */
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)),
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)),
183
174
  /**
184
175
  * No description
185
176
  *
@@ -190,7 +181,7 @@ export class Api extends HttpClient {
190
181
  * @secure
191
182
  * @response `204` `void` No Content
192
183
  */
193
- requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
184
+ requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
194
185
  /**
195
186
  * No description
196
187
  *
@@ -202,7 +193,7 @@ export class Api extends HttpClient {
202
193
  * @response `204` `void` No Content
203
194
  * @response `400` `ProblemDetails` Bad Request
204
195
  */
205
- completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
196
+ completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
206
197
  /**
207
198
  * No description
208
199
  *
@@ -225,7 +216,7 @@ export class Api extends HttpClient {
225
216
  * @response `201` `Account` Created
226
217
  * @response `422` `ProblemDetails` Unprocessable Content
227
218
  */
228
- createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
219
+ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
229
220
  /**
230
221
  * No description
231
222
  *
@@ -263,660 +254,7 @@ export class Api extends HttpClient {
263
254
  * @response `404` `ProblemDetails` Not Found
264
255
  * @response `422` `ProblemDetails` Unprocessable Content
265
256
  */
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 GetAiRequestLifecycle
283
- * @summary Get the full event lifecycle of a single AI request
284
- * @request GET:/api/ai/admin/audit-logs/request/{requestId}
285
- * @secure
286
- * @response `200` `(AiAuditLog)[]` OK
287
- */
288
- getAiRequestLifecycle: (requestId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs/request/${requestId}`, method: "GET", secure: true, format: "json" }, params)),
289
- /**
290
- * No description
291
- *
292
- * @tags AiAdmin
293
- * @name GetAiAuditConversations
294
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
295
- * @request GET:/api/ai/admin/audit-conversations
296
- * @secure
297
- * @response `200` `AiConversationAuditSummaryPaginated` OK
298
- */
299
- getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
300
- /**
301
- * No description
302
- *
303
- * @tags AiAdmin
304
- * @name GetAiAdminStats
305
- * @summary Get AI admin dashboard stats
306
- * @request GET:/api/ai/admin/stats
307
- * @secure
308
- * @response `200` `AiAdminStats` OK
309
- */
310
- getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
311
- /**
312
- * No description
313
- *
314
- * @tags AiAdmin
315
- * @name GetAiConfigChanges
316
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
317
- * @request GET:/api/ai/admin/config-changes
318
- * @secure
319
- * @response `200` `AiConfigChangeLogPaginated` OK
320
- */
321
- getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
322
- /**
323
- * No description
324
- *
325
- * @tags AiAdminPrompt
326
- * @name GetAiPrompts
327
- * @summary Get all prompts
328
- * @request GET:/api/ai/admin/prompts
329
- * @secure
330
- * @response `200` `(AiPrompt)[]` OK
331
- */
332
- getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
333
- /**
334
- * No description
335
- *
336
- * @tags AiAdminPrompt
337
- * @name CreateAiPrompt
338
- * @summary Create custom prompt
339
- * @request POST:/api/ai/admin/prompts
340
- * @secure
341
- * @response `201` `AiPrompt` Created
342
- * @response `400` `ProblemDetails` Bad Request
343
- */
344
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
345
- /**
346
- * No description
347
- *
348
- * @tags AiAdminPrompt
349
- * @name GetAiPrompt
350
- * @summary Get prompt by ID
351
- * @request GET:/api/ai/admin/prompts/{id}
352
- * @secure
353
- * @response `200` `AiPrompt` OK
354
- * @response `404` `ProblemDetails` Not Found
355
- */
356
- getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
357
- /**
358
- * No description
359
- *
360
- * @tags AiAdminPrompt
361
- * @name UpdateAiPrompt
362
- * @summary Update prompt
363
- * @request PUT:/api/ai/admin/prompts/{id}
364
- * @secure
365
- * @response `200` `AiPrompt` OK
366
- * @response `400` `ProblemDetails` Bad Request
367
- * @response `404` `ProblemDetails` Not Found
368
- */
369
- 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)),
370
- /**
371
- * No description
372
- *
373
- * @tags AiAdminPrompt
374
- * @name DeleteAiPrompt
375
- * @summary Delete prompt
376
- * @request DELETE:/api/ai/admin/prompts/{id}
377
- * @secure
378
- * @response `204` `void` No Content
379
- * @response `400` `ProblemDetails` Bad Request
380
- * @response `404` `ProblemDetails` Not Found
381
- */
382
- deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
383
- /**
384
- * No description
385
- *
386
- * @tags AiAdminPrompt
387
- * @name ToggleAiPrompt
388
- * @summary Toggle prompt active/inactive
389
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
390
- * @secure
391
- * @response `200` `AiPrompt` OK
392
- * @response `404` `ProblemDetails` Not Found
393
- */
394
- toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
395
- /**
396
- * No description
397
- *
398
- * @tags AiAdminPrompt
399
- * @name GenerateAiSystemPrompt
400
- * @summary Generate a system prompt from description
401
- * @request POST:/api/ai/admin/prompts/generate
402
- * @secure
403
- * @response `200` `GenerateSystemPrompt` OK
404
- * @response `400` `ProblemDetails` Bad Request
405
- */
406
- 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)),
407
- /**
408
- * No description
409
- *
410
- * @tags AiAdminPrompt
411
- * @name GetSupportedModels
412
- * @summary Get supported LLM models
413
- * @request GET:/api/ai/admin/prompts/supported-models
414
- * @secure
415
- * @response `200` `(SupportedModel)[]` OK
416
- */
417
- getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
418
- /**
419
- * No description
420
- *
421
- * @tags AiAdminSettings
422
- * @name GetAiAdminSettings
423
- * @summary Get global AI settings
424
- * @request GET:/api/ai/admin/settings
425
- * @secure
426
- * @response `200` `AiAdminSettings` OK
427
- */
428
- getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
429
- /**
430
- * No description
431
- *
432
- * @tags AiAdminSettings
433
- * @name UpdateAiAdminSettings
434
- * @summary Update global AI settings
435
- * @request PUT:/api/ai/admin/settings
436
- * @secure
437
- * @response `200` `AiAdminSettings` OK
438
- * @response `400` `ProblemDetails` Bad Request
439
- */
440
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
441
- /**
442
- * No description
443
- *
444
- * @tags AiCanonicalField
445
- * @name GetAiCanonicalFields
446
- * @summary Get all canonical fields
447
- * @request GET:/api/ai/admin/fields
448
- * @secure
449
- * @response `200` `(AiCanonicalField)[]` OK
450
- */
451
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
452
- /**
453
- * No description
454
- *
455
- * @tags AiCanonicalField
456
- * @name CreateAiCanonicalField
457
- * @summary Create canonical field
458
- * @request POST:/api/ai/admin/fields
459
- * @secure
460
- * @response `201` `AiCanonicalField` Created
461
- * @response `400` `ProblemDetails` Bad Request
462
- */
463
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
464
- /**
465
- * No description
466
- *
467
- * @tags AiCanonicalField
468
- * @name GetAiCanonicalField
469
- * @summary Get canonical field by ID
470
- * @request GET:/api/ai/admin/fields/{id}
471
- * @secure
472
- * @response `200` `AiCanonicalField` OK
473
- * @response `404` `ProblemDetails` Not Found
474
- */
475
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
476
- /**
477
- * No description
478
- *
479
- * @tags AiCanonicalField
480
- * @name UpdateAiCanonicalField
481
- * @summary Update canonical field
482
- * @request PUT:/api/ai/admin/fields/{id}
483
- * @secure
484
- * @response `200` `AiCanonicalField` OK
485
- * @response `400` `ProblemDetails` Bad Request
486
- * @response `404` `ProblemDetails` Not Found
487
- */
488
- 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)),
489
- /**
490
- * No description
491
- *
492
- * @tags AiCanonicalField
493
- * @name DeleteAiCanonicalField
494
- * @summary Delete canonical field
495
- * @request DELETE:/api/ai/admin/fields/{id}
496
- * @secure
497
- * @response `204` `void` No Content
498
- * @response `404` `ProblemDetails` Not Found
499
- */
500
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
501
- /**
502
- * No description
503
- *
504
- * @tags AiCanonicalField
505
- * @name ToggleAiCanonicalField
506
- * @summary Toggle canonical field active/inactive
507
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
508
- * @secure
509
- * @response `200` `AiCanonicalField` OK
510
- * @response `404` `ProblemDetails` Not Found
511
- */
512
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
513
- /**
514
- * No description
515
- *
516
- * @tags AiChat
517
- * @name AiChat
518
- * @summary Send AI chat message
519
- * @request POST:/api/ai/chat
520
- * @secure
521
- * @response `200` `AiChat` OK
522
- * @response `400` `ProblemDetails` Bad Request
523
- * @response `401` `ProblemDetails` Unauthorized
524
- */
525
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
526
- /**
527
- * No description
528
- *
529
- * @tags AiConversation
530
- * @name GetAiConversations
531
- * @summary Get user conversations
532
- * @request GET:/api/ai/conversations
533
- * @secure
534
- * @response `200` `AiConversationListItemPaginated` OK
535
- */
536
- getAiConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
537
- /**
538
- * No description
539
- *
540
- * @tags AiConversation
541
- * @name GetAiConversation
542
- * @summary Get conversation metadata
543
- * @request GET:/api/ai/conversations/{id}
544
- * @secure
545
- * @response `200` `AiConversationDetail` OK
546
- * @response `403` `ProblemDetails` Forbidden
547
- * @response `404` `ProblemDetails` Not Found
548
- */
549
- getAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
550
- /**
551
- * No description
552
- *
553
- * @tags AiConversation
554
- * @name RenameAiConversation
555
- * @summary Rename conversation
556
- * @request PATCH:/api/ai/conversations/{id}
557
- * @secure
558
- * @response `200` `AiConversationDetail` OK
559
- * @response `400` `ProblemDetails` Bad Request
560
- * @response `403` `ProblemDetails` Forbidden
561
- * @response `404` `ProblemDetails` Not Found
562
- */
563
- 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)),
564
- /**
565
- * No description
566
- *
567
- * @tags AiConversation
568
- * @name DeleteAiConversation
569
- * @summary Delete conversation
570
- * @request DELETE:/api/ai/conversations/{id}
571
- * @secure
572
- * @response `204` `void` No Content
573
- * @response `403` `ProblemDetails` Forbidden
574
- * @response `404` `ProblemDetails` Not Found
575
- */
576
- deleteAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "DELETE", secure: true }, params)),
577
- /**
578
- * No description
579
- *
580
- * @tags AiConversation
581
- * @name GetAiConversationMessages
582
- * @summary Get conversation messages
583
- * @request GET:/api/ai/conversations/{id}/messages
584
- * @secure
585
- * @response `200` `AiChatMessagePaginated` OK
586
- * @response `403` `ProblemDetails` Forbidden
587
- * @response `404` `ProblemDetails` Not Found
588
- */
589
- getAiConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
590
- /**
591
- * No description
592
- *
593
- * @tags AiConversation
594
- * @name ClearAiConversationHistory
595
- * @summary Clear conversation history
596
- * @request DELETE:/api/ai/conversations/{id}/messages
597
- * @secure
598
- * @response `204` `void` No Content
599
- * @response `403` `ProblemDetails` Forbidden
600
- * @response `404` `ProblemDetails` Not Found
601
- */
602
- clearAiConversationHistory: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/messages`, method: "DELETE", secure: true }, params)),
603
- /**
604
- * No description
605
- *
606
- * @tags AiConversation
607
- * @name PinAiConversation
608
- * @summary Pin or unpin conversation
609
- * @request PUT:/api/ai/conversations/{id}/pin
610
- * @secure
611
- * @response `200` `AiConversationDetail` OK
612
- * @response `403` `ProblemDetails` Forbidden
613
- * @response `404` `ProblemDetails` Not Found
614
- */
615
- 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)),
616
- /**
617
- * No description
618
- *
619
- * @tags AiConversationAdmin
620
- * @name GetAiAccountConversations
621
- * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
622
- * @request GET:/api/ai/admin/conversations
623
- * @secure
624
- * @response `200` `AiConversationListItemPaginated` OK
625
- */
626
- getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
627
- /**
628
- * No description
629
- *
630
- * @tags AiConversationAdmin
631
- * @name GetAiAccountConversation
632
- * @summary Get an account conversation's detail (admin supervision)
633
- * @request GET:/api/ai/admin/conversations/{id}
634
- * @secure
635
- * @response `200` `AiConversationDetail` OK
636
- * @response `404` `ProblemDetails` Not Found
637
- */
638
- getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
639
- /**
640
- * No description
641
- *
642
- * @tags AiConversationAdmin
643
- * @name GetAiAccountConversationMessages
644
- * @summary Get an account conversation's messages (admin supervision)
645
- * @request GET:/api/ai/admin/conversations/{id}/messages
646
- * @secure
647
- * @response `200` `AiChatMessagePaginated` OK
648
- * @response `404` `ProblemDetails` Not Found
649
- */
650
- getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
651
- /**
652
- * No description
653
- *
654
- * @tags AiGuardrail
655
- * @name GetAiGuardrails
656
- * @summary Get all guardrails
657
- * @request GET:/api/ai/admin/guardrails
658
- * @secure
659
- * @response `200` `(AiGuardrail)[]` OK
660
- */
661
- getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
662
- /**
663
- * No description
664
- *
665
- * @tags AiGuardrail
666
- * @name CreateAiGuardrail
667
- * @summary Create custom guardrail
668
- * @request POST:/api/ai/admin/guardrails
669
- * @secure
670
- * @response `201` `AiGuardrail` Created
671
- * @response `400` `ProblemDetails` Bad Request
672
- */
673
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
674
- /**
675
- * No description
676
- *
677
- * @tags AiGuardrail
678
- * @name GetAiGuardrail
679
- * @summary Get guardrail by ID
680
- * @request GET:/api/ai/admin/guardrails/{id}
681
- * @secure
682
- * @response `200` `AiGuardrail` OK
683
- * @response `404` `ProblemDetails` Not Found
684
- */
685
- getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
686
- /**
687
- * No description
688
- *
689
- * @tags AiGuardrail
690
- * @name UpdateAiGuardrail
691
- * @summary Update guardrail
692
- * @request PUT:/api/ai/admin/guardrails/{id}
693
- * @secure
694
- * @response `200` `AiGuardrail` OK
695
- * @response `400` `ProblemDetails` Bad Request
696
- * @response `404` `ProblemDetails` Not Found
697
- */
698
- 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)),
699
- /**
700
- * No description
701
- *
702
- * @tags AiGuardrail
703
- * @name DeleteAiGuardrail
704
- * @summary Delete guardrail
705
- * @request DELETE:/api/ai/admin/guardrails/{id}
706
- * @secure
707
- * @response `204` `void` No Content
708
- * @response `400` `ProblemDetails` Bad Request
709
- * @response `404` `ProblemDetails` Not Found
710
- */
711
- deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
712
- /**
713
- * No description
714
- *
715
- * @tags AiGuardrail
716
- * @name ToggleAiGuardrail
717
- * @summary Toggle guardrail enabled/disabled
718
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
719
- * @secure
720
- * @response `200` `AiGuardrail` OK
721
- * @response `404` `ProblemDetails` Not Found
722
- */
723
- toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
724
- /**
725
- * No description
726
- *
727
- * @tags AiPrompt
728
- * @name GetAvailablePrompts
729
- * @summary Get available prompts for current user
730
- * @request GET:/api/ai/prompts
731
- * @secure
732
- * @response `200` `(AiPromptSummary)[]` OK
733
- */
734
- getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
735
- /**
736
- * No description
737
- *
738
- * @tags AiSuperAdmin
739
- * @name GetAiAuditLogsCrossAccount
740
- * @summary Get AI audit logs for a specific account or across all accounts
741
- * @request GET:/api/ai/superadmin/audit-logs
742
- * @secure
743
- * @response `200` `AiAuditLogPaginated` OK
744
- */
745
- getAiAuditLogsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
746
- /**
747
- * No description
748
- *
749
- * @tags AiSuperAdmin
750
- * @name GetAiRequestLifecycleCrossAccount
751
- * @summary Get the full event lifecycle of a single AI request from any account
752
- * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
753
- * @secure
754
- * @response `200` `(AiAuditLog)[]` OK
755
- */
756
- getAiRequestLifecycleCrossAccount: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
757
- /**
758
- * No description
759
- *
760
- * @tags AiSuperAdmin
761
- * @name GetAiStatsCrossAccount
762
- * @summary Get AI stats for a specific account or platform-wide
763
- * @request GET:/api/ai/superadmin/stats
764
- * @secure
765
- * @response `200` `AiAdminStats` OK
766
- */
767
- getAiStatsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
768
- /**
769
- * No description
770
- *
771
- * @tags AiSuperAdmin
772
- * @name GetAiConfigChangesCrossAccount
773
- * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
774
- * @request GET:/api/ai/superadmin/config-changes
775
- * @secure
776
- * @response `200` `AiConfigChangeLogPaginated` OK
777
- */
778
- getAiConfigChangesCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
779
- /**
780
- * No description
781
- *
782
- * @tags AiTokenUsageAdmin
783
- * @name SearchAiAccountTokenUsage
784
- * @summary Search accounts by current-month AI token usage and classification
785
- * @request POST:/api/ai/admin/token-usage/search
786
- * @secure
787
- * @response `200` `AiAccountUsageOverviewPaginated` OK
788
- */
789
- searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
790
- /**
791
- * No description
792
- *
793
- * @tags AiTokenUsageAdmin
794
- * @name GetAiAccountTokenUsage
795
- * @summary Get an account's current-month AI token usage
796
- * @request GET:/api/ai/admin/token-usage/{accountId}
797
- * @secure
798
- * @response `200` `AiTokenBudgetStatus` OK
799
- */
800
- getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
801
- /**
802
- * No description
803
- *
804
- * @tags AiTokenUsageAdmin
805
- * @name GetAiAccountTokenUsageHistory
806
- * @summary Get an account's monthly AI token usage history
807
- * @request GET:/api/ai/admin/token-usage/{accountId}/history
808
- * @secure
809
- * @response `200` `AiTokenUsageWindowPaginated` OK
810
- */
811
- getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
812
- /**
813
- * No description
814
- *
815
- * @tags AiTokenUsageAdmin
816
- * @name SetAiAccountTokenLimit
817
- * @summary Set or raise an account's monthly AI token limit
818
- * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
819
- * @secure
820
- * @response `200` `AiTokenBudgetStatus` OK
821
- * @response `400` `ProblemDetails` Bad Request
822
- */
823
- setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
824
- /**
825
- * No description
826
- *
827
- * @tags AiUrlSource
828
- * @name GetAiUrlSources
829
- * @summary Get all URL sources
830
- * @request GET:/api/ai/admin/url-sources
831
- * @secure
832
- * @response `200` `(AiUrlSource)[]` OK
833
- */
834
- getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
835
- /**
836
- * No description
837
- *
838
- * @tags AiUrlSource
839
- * @name CreateAiUrlSource
840
- * @summary Create URL source
841
- * @request POST:/api/ai/admin/url-sources
842
- * @secure
843
- * @response `201` `AiUrlSource` Created
844
- * @response `400` `ProblemDetails` Bad Request
845
- * @response `409` `ProblemDetails` Conflict
846
- */
847
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
848
- /**
849
- * No description
850
- *
851
- * @tags AiUrlSource
852
- * @name GetAiUrlSource
853
- * @summary Get URL source by ID
854
- * @request GET:/api/ai/admin/url-sources/{id}
855
- * @secure
856
- * @response `200` `AiUrlSource` OK
857
- * @response `404` `ProblemDetails` Not Found
858
- */
859
- getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
860
- /**
861
- * No description
862
- *
863
- * @tags AiUrlSource
864
- * @name UpdateAiUrlSource
865
- * @summary Update URL source
866
- * @request PUT:/api/ai/admin/url-sources/{id}
867
- * @secure
868
- * @response `200` `AiUrlSource` OK
869
- * @response `400` `ProblemDetails` Bad Request
870
- * @response `404` `ProblemDetails` Not Found
871
- * @response `409` `ProblemDetails` Conflict
872
- */
873
- 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)),
874
- /**
875
- * No description
876
- *
877
- * @tags AiUrlSource
878
- * @name DeleteAiUrlSource
879
- * @summary Delete URL source
880
- * @request DELETE:/api/ai/admin/url-sources/{id}
881
- * @secure
882
- * @response `204` `void` No Content
883
- * @response `404` `ProblemDetails` Not Found
884
- */
885
- deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
886
- /**
887
- * No description
888
- *
889
- * @tags AiUrlSource
890
- * @name ToggleAiUrlSource
891
- * @summary Toggle URL source active/inactive
892
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
893
- * @secure
894
- * @response `200` `AiUrlSource` OK
895
- * @response `404` `ProblemDetails` Not Found
896
- */
897
- toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
898
- /**
899
- * No description
900
- *
901
- * @tags AiUsage
902
- * @name GetAiUsage
903
- * @summary Get the current account's AI token usage for the active monthly window
904
- * @request GET:/api/ai/usage
905
- * @secure
906
- * @response `200` `AiTokenBudgetStatus` OK
907
- */
908
- getAiUsage: (params = {}) => this.request(Object.assign({ path: `/api/ai/usage`, method: "GET", secure: true, format: "json" }, params)),
909
- /**
910
- * No description
911
- *
912
- * @tags AiUsage
913
- * @name GetAiUsageHistory
914
- * @summary Get the current account's monthly AI token usage history
915
- * @request GET:/api/ai/usage/history
916
- * @secure
917
- * @response `200` `AiTokenUsageWindowPaginated` OK
918
- */
919
- getAiUsageHistory: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/usage/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
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)),
920
258
  /**
921
259
  * No description
922
260
  *
@@ -927,7 +265,7 @@ export class Api extends HttpClient {
927
265
  * @secure
928
266
  * @response `200` `AuditLogEntryPaginated` OK
929
267
  */
930
- 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)),
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)),
931
269
  /**
932
270
  * No description
933
271
  *
@@ -963,7 +301,7 @@ export class Api extends HttpClient {
963
301
  * @response `401` `ProblemDetails` Unauthorized
964
302
  * @response `422` `UnprocessableEntity` Unprocessable Content
965
303
  */
966
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
304
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
967
305
  /**
968
306
  * No description
969
307
  *
@@ -975,7 +313,7 @@ export class Api extends HttpClient {
975
313
  * @response `200` `AccountDeactivated` OK
976
314
  * @response `422` `UnprocessableEntity` Unprocessable Content
977
315
  */
978
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
316
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
979
317
  /**
980
318
  * No description
981
319
  *
@@ -987,7 +325,7 @@ export class Api extends HttpClient {
987
325
  * @response `200` `AccountDeactivated` OK
988
326
  * @response `422` `UnprocessableEntity` Unprocessable Content
989
327
  */
990
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
328
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
991
329
  /**
992
330
  * No description
993
331
  *
@@ -999,7 +337,7 @@ export class Api extends HttpClient {
999
337
  * @response `200` `Token` OK
1000
338
  * @response `422` `UnprocessableEntity` Unprocessable Content
1001
339
  */
1002
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
340
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1003
341
  /**
1004
342
  * No description
1005
343
  *
@@ -1011,7 +349,7 @@ export class Api extends HttpClient {
1011
349
  * @response `200` `SSOToken` OK
1012
350
  * @response `422` `UnprocessableEntity` Unprocessable Content
1013
351
  */
1014
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
352
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1015
353
  /**
1016
354
  * No description
1017
355
  *
@@ -1046,7 +384,7 @@ export class Api extends HttpClient {
1046
384
  * @response `200` `GetBranch` OK
1047
385
  * @response `422` `UnprocessableEntity` Unprocessable Content
1048
386
  */
1049
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
387
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1050
388
  /**
1051
389
  * No description
1052
390
  *
@@ -1057,7 +395,7 @@ export class Api extends HttpClient {
1057
395
  * @secure
1058
396
  * @response `200` `GetBranchPaginated` OK
1059
397
  */
1060
- 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)),
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)),
1061
399
  /**
1062
400
  * No description
1063
401
  *
@@ -1080,7 +418,7 @@ export class Api extends HttpClient {
1080
418
  * @response `200` `GetBranch` OK
1081
419
  * @response `422` `UnprocessableEntity` Unprocessable Content
1082
420
  */
1083
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
1084
422
  /**
1085
423
  * No description
1086
424
  *
@@ -1115,7 +453,7 @@ export class Api extends HttpClient {
1115
453
  * @response `200` `SiteConfiguration` OK
1116
454
  * @response `422` `UnprocessableEntity` Unprocessable Content
1117
455
  */
1118
- 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)),
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)),
1119
457
  /**
1120
458
  * No description
1121
459
  *
@@ -1138,7 +476,7 @@ export class Api extends HttpClient {
1138
476
  * @response `200` `SiteConfiguration` OK
1139
477
  * @response `422` `UnprocessableEntity` Unprocessable Content
1140
478
  */
1141
- 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)),
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)),
1142
480
  /**
1143
481
  * No description
1144
482
  *
@@ -1172,7 +510,7 @@ export class Api extends HttpClient {
1172
510
  * @response `200` `BusinessRule` OK
1173
511
  * @response `422` `UnprocessableEntity` Unprocessable Content
1174
512
  */
1175
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
513
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1176
514
  /**
1177
515
  * No description
1178
516
  *
@@ -1195,7 +533,7 @@ export class Api extends HttpClient {
1195
533
  * @response `200` `BusinessRule` OK
1196
534
  * @response `422` `UnprocessableEntity` Unprocessable Content
1197
535
  */
1198
- 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)),
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)),
1199
537
  /**
1200
538
  * No description
1201
539
  *
@@ -1228,7 +566,7 @@ export class Api extends HttpClient {
1228
566
  * @secure
1229
567
  * @response `200` `ClosedLoansReport` OK
1230
568
  */
1231
- 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)),
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)),
1232
570
  /**
1233
571
  * No description
1234
572
  *
@@ -1273,7 +611,7 @@ export class Api extends HttpClient {
1273
611
  * @response `200` `Corporate` OK
1274
612
  * @response `422` `UnprocessableEntity` Unprocessable Content
1275
613
  */
1276
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
614
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1277
615
  /**
1278
616
  * No description
1279
617
  *
@@ -1284,7 +622,7 @@ export class Api extends HttpClient {
1284
622
  * @secure
1285
623
  * @response `200` `CorporatePaginated` OK
1286
624
  */
1287
- 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)),
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)),
1288
626
  /**
1289
627
  * No description
1290
628
  *
@@ -1307,7 +645,7 @@ export class Api extends HttpClient {
1307
645
  * @response `200` `Corporate` OK
1308
646
  * @response `422` `UnprocessableEntity` Unprocessable Content
1309
647
  */
1310
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
1311
649
  /**
1312
650
  * No description
1313
651
  *
@@ -1341,7 +679,7 @@ export class Api extends HttpClient {
1341
679
  * @response `200` `SiteConfiguration` OK
1342
680
  * @response `422` `UnprocessableEntity` Unprocessable Content
1343
681
  */
1344
- 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)),
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)),
1345
683
  /**
1346
684
  * No description
1347
685
  *
@@ -1364,7 +702,7 @@ export class Api extends HttpClient {
1364
702
  * @response `200` `SiteConfiguration` OK
1365
703
  * @response `422` `UnprocessableEntity` Unprocessable Content
1366
704
  */
1367
- 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)),
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)),
1368
706
  /**
1369
707
  * No description
1370
708
  *
@@ -1410,7 +748,7 @@ export class Api extends HttpClient {
1410
748
  * @response `409` `ProblemDetails` Conflict
1411
749
  * @response `422` `ProblemDetails` Unprocessable Content
1412
750
  */
1413
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
1414
752
  /**
1415
753
  * No description
1416
754
  *
@@ -1437,7 +775,7 @@ export class Api extends HttpClient {
1437
775
  * @response `409` `ProblemDetails` Conflict
1438
776
  * @response `422` `ProblemDetails` Unprocessable Content
1439
777
  */
1440
- 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)),
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)),
1441
779
  /**
1442
780
  * No description
1443
781
  *
@@ -1507,7 +845,7 @@ export class Api extends HttpClient {
1507
845
  * @secure
1508
846
  * @response `200` `Device` OK
1509
847
  */
1510
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
1511
849
  /**
1512
850
  * No description
1513
851
  *
@@ -1564,7 +902,7 @@ export class Api extends HttpClient {
1564
902
  * @response `404` `ProblemDetails` Not Found
1565
903
  * @response `422` `UnprocessableEntity` Unprocessable Content
1566
904
  */
1567
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
905
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1568
906
  /**
1569
907
  * No description
1570
908
  *
@@ -1601,7 +939,7 @@ export class Api extends HttpClient {
1601
939
  * @response `404` `ProblemDetails` Not Found
1602
940
  * @response `422` `UnprocessableEntity` Unprocessable Content
1603
941
  */
1604
- 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)),
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)),
1605
943
  /**
1606
944
  * No description
1607
945
  *
@@ -1649,7 +987,7 @@ export class Api extends HttpClient {
1649
987
  * @secure
1650
988
  * @response `200` `DocumentTemplateVersion` OK
1651
989
  */
1652
- 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)),
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)),
1653
991
  /**
1654
992
  * No description
1655
993
  *
@@ -1671,7 +1009,7 @@ export class Api extends HttpClient {
1671
1009
  * @secure
1672
1010
  * @response `200` `DocumentTemplateVersion` OK
1673
1011
  */
1674
- 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)),
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)),
1675
1013
  /**
1676
1014
  * No description
1677
1015
  *
@@ -1709,7 +1047,7 @@ export class Api extends HttpClient {
1709
1047
  * @response `409` `void` Conflict
1710
1048
  * @response `422` `ProblemDetails` Unprocessable Content
1711
1049
  */
1712
- 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)),
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)),
1713
1051
  /**
1714
1052
  * No description
1715
1053
  *
@@ -1798,7 +1136,7 @@ export class Api extends HttpClient {
1798
1136
  * @response `404` `EncompassError` Not Found
1799
1137
  * @response `500` `EncompassError` Internal Server Error
1800
1138
  */
1801
- 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)),
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)),
1802
1140
  /**
1803
1141
  * No description
1804
1142
  *
@@ -1821,7 +1159,7 @@ export class Api extends HttpClient {
1821
1159
  * @response `201` `File` Created
1822
1160
  * @response `422` `UnprocessableEntity` Unprocessable Content
1823
1161
  */
1824
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1162
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1825
1163
  /**
1826
1164
  * No description
1827
1165
  *
@@ -1844,7 +1182,7 @@ export class Api extends HttpClient {
1844
1182
  * @response `200` `string` OK
1845
1183
  * @response `422` `UnprocessableEntity` Unprocessable Content
1846
1184
  */
1847
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
1848
1186
  /**
1849
1187
  * No description
1850
1188
  *
@@ -1866,7 +1204,7 @@ export class Api extends HttpClient {
1866
1204
  * @secure
1867
1205
  * @response `200` `FilePaginated` OK
1868
1206
  */
1869
- 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)),
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)),
1870
1208
  /**
1871
1209
  * No description
1872
1210
  *
@@ -1889,7 +1227,7 @@ export class Api extends HttpClient {
1889
1227
  * @response `201` `Form` Created
1890
1228
  * @response `422` `UnprocessableEntity` Unprocessable Content
1891
1229
  */
1892
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1230
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1893
1231
  /**
1894
1232
  * No description
1895
1233
  *
@@ -1912,7 +1250,7 @@ export class Api extends HttpClient {
1912
1250
  * @response `200` `Form` OK
1913
1251
  * @response `422` `UnprocessableEntity` Unprocessable Content
1914
1252
  */
1915
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
1916
1254
  /**
1917
1255
  * No description
1918
1256
  *
@@ -1945,7 +1283,7 @@ export class Api extends HttpClient {
1945
1283
  * @secure
1946
1284
  * @response `200` `FormSubmissionFile` OK
1947
1285
  */
1948
- 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)),
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)),
1949
1287
  /**
1950
1288
  * No description
1951
1289
  *
@@ -1989,7 +1327,7 @@ export class Api extends HttpClient {
1989
1327
  * @secure
1990
1328
  * @response `201` `FormSubmission` Created
1991
1329
  */
1992
- 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)),
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)),
1993
1331
  /**
1994
1332
  * No description
1995
1333
  *
@@ -2011,7 +1349,7 @@ export class Api extends HttpClient {
2011
1349
  * @secure
2012
1350
  * @response `200` `FormSubmission` OK
2013
1351
  */
2014
- 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)),
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)),
2015
1353
  /**
2016
1354
  * No description
2017
1355
  *
@@ -2033,7 +1371,7 @@ export class Api extends HttpClient {
2033
1371
  * @secure
2034
1372
  * @response `200` `FormSubmissionPaginated` OK
2035
1373
  */
2036
- 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)),
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)),
2037
1375
  /**
2038
1376
  * No description
2039
1377
  *
@@ -2055,7 +1393,7 @@ export class Api extends HttpClient {
2055
1393
  * @secure
2056
1394
  * @response `200` `FormVersion` OK
2057
1395
  */
2058
- 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)),
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)),
2059
1397
  /**
2060
1398
  * No description
2061
1399
  *
@@ -2077,7 +1415,7 @@ export class Api extends HttpClient {
2077
1415
  * @secure
2078
1416
  * @response `200` `FormVersion` OK
2079
1417
  */
2080
- 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)),
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)),
2081
1419
  /**
2082
1420
  * No description
2083
1421
  *
@@ -2123,7 +1461,7 @@ export class Api extends HttpClient {
2123
1461
  * @response `200` `string` OK
2124
1462
  * @response `422` `UnprocessableEntity` Unprocessable Content
2125
1463
  */
2126
- 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)),
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)),
2127
1465
  /**
2128
1466
  * No description
2129
1467
  *
@@ -2134,7 +1472,7 @@ export class Api extends HttpClient {
2134
1472
  * @secure
2135
1473
  * @response `200` `GetReport` OK
2136
1474
  */
2137
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
2138
1476
  /**
2139
1477
  * No description
2140
1478
  *
@@ -2148,7 +1486,7 @@ export class Api extends HttpClient {
2148
1486
  * @response `422` `UnprocessableEntity` Unprocessable Content
2149
1487
  * @response `423` `UnprocessableEntity` Locked
2150
1488
  */
2151
- 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)),
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)),
2152
1490
  /**
2153
1491
  * No description
2154
1492
  *
@@ -2161,7 +1499,7 @@ export class Api extends HttpClient {
2161
1499
  * @response `422` `UnprocessableEntity` Unprocessable Content
2162
1500
  * @response `423` `UnprocessableEntity` Locked
2163
1501
  */
2164
- 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)),
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)),
2165
1503
  /**
2166
1504
  * No description
2167
1505
  *
@@ -2173,7 +1511,7 @@ export class Api extends HttpClient {
2173
1511
  * @response `200` `string` OK
2174
1512
  * @response `422` `UnprocessableEntity` Unprocessable Content
2175
1513
  */
2176
- 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)),
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)),
2177
1515
  /**
2178
1516
  * No description
2179
1517
  *
@@ -2186,7 +1524,7 @@ export class Api extends HttpClient {
2186
1524
  * @response `202` `string` Accepted
2187
1525
  * @response `422` `UnprocessableEntity` Unprocessable Content
2188
1526
  */
2189
- 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)),
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)),
2190
1528
  /**
2191
1529
  * No description
2192
1530
  *
@@ -2264,7 +1602,7 @@ export class Api extends HttpClient {
2264
1602
  * @secure
2265
1603
  * @response `200` `DocumentDataRequest` OK
2266
1604
  */
2267
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
2268
1606
  /**
2269
1607
  * No description
2270
1608
  *
@@ -2289,7 +1627,7 @@ export class Api extends HttpClient {
2289
1627
  * @secure
2290
1628
  * @response `200` `ListingFile` OK
2291
1629
  */
2292
- 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)),
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)),
2293
1631
  /**
2294
1632
  * No description
2295
1633
  *
@@ -2300,7 +1638,7 @@ export class Api extends HttpClient {
2300
1638
  * @secure
2301
1639
  * @response `200` `ListingFile` OK
2302
1640
  */
2303
- 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)),
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)),
2304
1642
  /**
2305
1643
  * No description
2306
1644
  *
@@ -2322,7 +1660,7 @@ export class Api extends HttpClient {
2322
1660
  * @secure
2323
1661
  * @response `200` `ListingPhoto` OK
2324
1662
  */
2325
- 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)),
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)),
2326
1664
  /**
2327
1665
  * No description
2328
1666
  *
@@ -2333,7 +1671,7 @@ export class Api extends HttpClient {
2333
1671
  * @secure
2334
1672
  * @response `200` `(ListingPhoto)[]` OK
2335
1673
  */
2336
- 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)),
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)),
2337
1675
  /**
2338
1676
  * No description
2339
1677
  *
@@ -2366,7 +1704,7 @@ export class Api extends HttpClient {
2366
1704
  * @secure
2367
1705
  * @response `201` `Listing` Created
2368
1706
  */
2369
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1707
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2370
1708
  /**
2371
1709
  * No description
2372
1710
  *
@@ -2399,7 +1737,7 @@ export class Api extends HttpClient {
2399
1737
  * @secure
2400
1738
  * @response `200` `Listing` OK
2401
1739
  */
2402
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
2403
1741
  /**
2404
1742
  * No description
2405
1743
  *
@@ -2421,7 +1759,7 @@ export class Api extends HttpClient {
2421
1759
  * @secure
2422
1760
  * @response `200` `ListingPaginated` OK
2423
1761
  */
2424
- 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)),
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)),
2425
1763
  /**
2426
1764
  * No description
2427
1765
  *
@@ -2432,7 +1770,7 @@ export class Api extends HttpClient {
2432
1770
  * @secure
2433
1771
  * @response `200` `File` OK
2434
1772
  */
2435
- 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)),
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)),
2436
1774
  /**
2437
1775
  * No description
2438
1776
  *
@@ -2478,7 +1816,7 @@ export class Api extends HttpClient {
2478
1816
  * @response `422` `UnprocessableEntity` Unprocessable Content
2479
1817
  * @response `423` `UnprocessableEntity` Locked
2480
1818
  */
2481
- 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)),
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)),
2482
1820
  /**
2483
1821
  * No description
2484
1822
  *
@@ -2502,7 +1840,7 @@ export class Api extends HttpClient {
2502
1840
  * @response `422` `UnprocessableEntity` Unprocessable Content
2503
1841
  * @response `423` `UnprocessableEntity` Locked
2504
1842
  */
2505
- 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)),
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)),
2506
1844
  /**
2507
1845
  * No description
2508
1846
  *
@@ -2525,7 +1863,7 @@ export class Api extends HttpClient {
2525
1863
  * @response `204` `void` No Content
2526
1864
  * @response `422` `UnprocessableEntity` Unprocessable Content
2527
1865
  */
2528
- 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)),
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)),
2529
1867
  /**
2530
1868
  * No description
2531
1869
  *
@@ -2562,7 +1900,7 @@ export class Api extends HttpClient {
2562
1900
  * @response `400` `ProblemDetails` Bad Request
2563
1901
  * @response `422` `ProblemDetails` Unprocessable Content
2564
1902
  */
2565
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
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)),
2566
1904
  /**
2567
1905
  * No description
2568
1906
  *
@@ -2576,7 +1914,7 @@ export class Api extends HttpClient {
2576
1914
  * @response `404` `ProblemDetails` Not Found
2577
1915
  * @response `422` `ProblemDetails` Unprocessable Content
2578
1916
  */
2579
- 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)),
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)),
2580
1918
  /**
2581
1919
  * No description
2582
1920
  *
@@ -2610,7 +1948,7 @@ export class Api extends HttpClient {
2610
1948
  * @secure
2611
1949
  * @response `201` `(string)[]` Created
2612
1950
  */
2613
- 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)),
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)),
2614
1952
  /**
2615
1953
  * No description
2616
1954
  *
@@ -2634,7 +1972,7 @@ export class Api extends HttpClient {
2634
1972
  * @response `409` `ProblemDetails` Conflict
2635
1973
  * @response `422` `ProblemDetails` Unprocessable Content
2636
1974
  */
2637
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
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)),
2638
1976
  /**
2639
1977
  * No description
2640
1978
  *
@@ -2661,7 +1999,7 @@ export class Api extends HttpClient {
2661
1999
  * @response `409` `ProblemDetails` Conflict
2662
2000
  * @response `422` `ProblemDetails` Unprocessable Content
2663
2001
  */
2664
- 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)),
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)),
2665
2003
  /**
2666
2004
  * No description
2667
2005
  *
@@ -2736,7 +2074,7 @@ export class Api extends HttpClient {
2736
2074
  * @response `200` `Record<string,string>` OK
2737
2075
  * @response `400` `ProblemDetails` Bad Request
2738
2076
  */
2739
- 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)),
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)),
2740
2078
  /**
2741
2079
  * No description
2742
2080
  *
@@ -2747,7 +2085,7 @@ export class Api extends HttpClient {
2747
2085
  * @secure
2748
2086
  * @response `200` `LoanDocumentSearchPaginated` OK
2749
2087
  */
2750
- 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)),
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)),
2751
2089
  /**
2752
2090
  * @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).
2753
2091
  *
@@ -2758,7 +2096,7 @@ export class Api extends HttpClient {
2758
2096
  * @secure
2759
2097
  * @response `200` `(DocumentFolder)[]` OK
2760
2098
  */
2761
- 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)),
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)),
2762
2100
  /**
2763
2101
  * No description
2764
2102
  *
@@ -2767,7 +2105,7 @@ export class Api extends HttpClient {
2767
2105
  * @summary Download By ID
2768
2106
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2769
2107
  * @secure
2770
- * @response `200` `string` OK
2108
+ * @response `200` `Blob` OK
2771
2109
  * @response `404` `ProblemDetails` Not Found
2772
2110
  */
2773
2111
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2783,7 +2121,7 @@ export class Api extends HttpClient {
2783
2121
  * @response `404` `ProblemDetails` Not Found
2784
2122
  * @response `422` `UnprocessableEntity` Unprocessable Content
2785
2123
  */
2786
- 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)),
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)),
2787
2125
  /**
2788
2126
  * No description
2789
2127
  *
@@ -2807,7 +2145,7 @@ export class Api extends HttpClient {
2807
2145
  * @secure
2808
2146
  * @response `200` `DocumentDataRequest` OK
2809
2147
  */
2810
- 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)),
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)),
2811
2149
  /**
2812
2150
  * No description
2813
2151
  *
@@ -2820,7 +2158,7 @@ export class Api extends HttpClient {
2820
2158
  * @response `400` `ProblemDetails` Bad Request
2821
2159
  * @response `404` `ProblemDetails` Not Found
2822
2160
  */
2823
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
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)),
2824
2162
  /**
2825
2163
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2826
2164
  *
@@ -2833,19 +2171,6 @@ export class Api extends HttpClient {
2833
2171
  * @response `404` `ProblemDetails` Not Found
2834
2172
  */
2835
2173
  syncLoanDocumentsFromLos: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/sync`, method: "POST", secure: true, format: "json" }, params)),
2836
- /**
2837
- * No description
2838
- *
2839
- * @tags LoanDocuments
2840
- * @name ClassifyLoanDocumentManually
2841
- * @summary Manually classify a loan document
2842
- * @request POST:/api/loans/{loanId}/documents/{documentId}/classify-manual
2843
- * @secure
2844
- * @response `200` `LoanDocument` OK
2845
- * @response `404` `ProblemDetails` Not Found
2846
- * @response `422` `UnprocessableEntity` Unprocessable Content
2847
- */
2848
- classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2849
2174
  /**
2850
2175
  * @description Re-attempts to push a failed document to LOS
2851
2176
  *
@@ -2869,7 +2194,7 @@ export class Api extends HttpClient {
2869
2194
  * @secure
2870
2195
  * @response `201` `Draft` Created
2871
2196
  */
2872
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2197
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2873
2198
  /**
2874
2199
  * No description
2875
2200
  *
@@ -2902,7 +2227,7 @@ export class Api extends HttpClient {
2902
2227
  * @secure
2903
2228
  * @response `200` `Draft` OK
2904
2229
  */
2905
- 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)),
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)),
2906
2231
  /**
2907
2232
  * No description
2908
2233
  *
@@ -2924,7 +2249,7 @@ export class Api extends HttpClient {
2924
2249
  * @secure
2925
2250
  * @response `201` `DraftContentPaginated` Created
2926
2251
  */
2927
- 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)),
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)),
2928
2253
  /**
2929
2254
  * No description
2930
2255
  *
@@ -2935,7 +2260,7 @@ export class Api extends HttpClient {
2935
2260
  * @secure
2936
2261
  * @response `200` `Draft` OK
2937
2262
  */
2938
- 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)),
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)),
2939
2264
  /**
2940
2265
  * No description
2941
2266
  *
@@ -2968,7 +2293,7 @@ export class Api extends HttpClient {
2968
2293
  * @secure
2969
2294
  * @response `201` `LoanImport` Created
2970
2295
  */
2971
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2296
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2972
2297
  /**
2973
2298
  * No description
2974
2299
  *
@@ -3014,7 +2339,7 @@ export class Api extends HttpClient {
3014
2339
  * @response `200` `(Invite)[]` OK
3015
2340
  * @response `404` `ProblemDetails` Not Found
3016
2341
  */
3017
- 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)),
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)),
3018
2343
  /**
3019
2344
  * No description
3020
2345
  *
@@ -3025,7 +2350,7 @@ export class Api extends HttpClient {
3025
2350
  * @secure
3026
2351
  * @response `200` `LoanLogPaginated` OK
3027
2352
  */
3028
- 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)),
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)),
3029
2354
  /**
3030
2355
  * No description
3031
2356
  *
@@ -3050,7 +2375,7 @@ export class Api extends HttpClient {
3050
2375
  * @response `400` `ProblemDetails` Bad Request
3051
2376
  * @response `404` `ProblemDetails` Not Found
3052
2377
  */
3053
- sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2378
+ sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3054
2379
  /**
3055
2380
  * No description
3056
2381
  *
@@ -3072,7 +2397,7 @@ export class Api extends HttpClient {
3072
2397
  * @secure
3073
2398
  * @response `200` `BranchUserPaginated` OK
3074
2399
  */
3075
- 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)),
2400
+ 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)),
3076
2401
  /**
3077
2402
  * No description
3078
2403
  *
@@ -3095,7 +2420,7 @@ export class Api extends HttpClient {
3095
2420
  * @response `200` `SiteConfiguration` OK
3096
2421
  * @response `422` `UnprocessableEntity` Unprocessable Content
3097
2422
  */
3098
- 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)),
2423
+ 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)),
3099
2424
  /**
3100
2425
  * No description
3101
2426
  *
@@ -3118,7 +2443,7 @@ export class Api extends HttpClient {
3118
2443
  * @response `200` `SiteConfiguration` OK
3119
2444
  * @response `422` `UnprocessableEntity` Unprocessable Content
3120
2445
  */
3121
- 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)),
2446
+ 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)),
3122
2447
  /**
3123
2448
  * No description
3124
2449
  *
@@ -3129,7 +2454,7 @@ export class Api extends HttpClient {
3129
2454
  * @secure
3130
2455
  * @response `200` `LoanQueuePaginated` OK
3131
2456
  */
3132
- 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)),
2457
+ 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)),
3133
2458
  /**
3134
2459
  * No description
3135
2460
  *
@@ -3153,7 +2478,7 @@ export class Api extends HttpClient {
3153
2478
  * @response `200` `LoanQueueWithData` OK
3154
2479
  * @response `404` `ProblemDetails` Not Found
3155
2480
  */
3156
- 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)),
2481
+ 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)),
3157
2482
  /**
3158
2483
  * No description
3159
2484
  *
@@ -3214,7 +2539,7 @@ export class Api extends HttpClient {
3214
2539
  * @response `401` `ProblemDetails` Unauthorized
3215
2540
  * @response `403` `ProblemDetails` Forbidden
3216
2541
  */
3217
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2542
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3218
2543
  /**
3219
2544
  * No description
3220
2545
  *
@@ -3225,7 +2550,7 @@ export class Api extends HttpClient {
3225
2550
  * @secure
3226
2551
  * @response `200` `LoanListPaginated` OK
3227
2552
  */
3228
- 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)),
2553
+ 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)),
3229
2554
  /**
3230
2555
  * No description
3231
2556
  *
@@ -3241,7 +2566,7 @@ export class Api extends HttpClient {
3241
2566
  * @response `404` `ProblemDetails` Not Found
3242
2567
  * @response `409` `any` Conflict
3243
2568
  */
3244
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2569
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3245
2570
  /**
3246
2571
  * No description
3247
2572
  *
@@ -3303,7 +2628,7 @@ export class Api extends HttpClient {
3303
2628
  * @response `400` `ProblemDetails` Bad Request
3304
2629
  * @response `404` `ProblemDetails` Not Found
3305
2630
  */
3306
- 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)),
2631
+ 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)),
3307
2632
  /**
3308
2633
  * No description
3309
2634
  *
@@ -3315,7 +2640,7 @@ export class Api extends HttpClient {
3315
2640
  * @response `200` `TaskCommentPaginated` OK
3316
2641
  * @response `404` `ProblemDetails` Not Found
3317
2642
  */
3318
- 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)),
2643
+ 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)),
3319
2644
  /**
3320
2645
  * No description
3321
2646
  *
@@ -3339,7 +2664,7 @@ export class Api extends HttpClient {
3339
2664
  * @response `201` `TaskComment` Created
3340
2665
  * @response `404` `ProblemDetails` Not Found
3341
2666
  */
3342
- 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)),
2667
+ 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)),
3343
2668
  /**
3344
2669
  * No description
3345
2670
  *
@@ -3351,7 +2676,7 @@ export class Api extends HttpClient {
3351
2676
  * @response `200` `TaskComment` OK
3352
2677
  * @response `404` `ProblemDetails` Not Found
3353
2678
  */
3354
- 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)),
2679
+ 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)),
3355
2680
  /**
3356
2681
  * No description
3357
2682
  *
@@ -3376,7 +2701,7 @@ export class Api extends HttpClient {
3376
2701
  * @response `404` `ProblemDetails` Not Found
3377
2702
  * @response `422` `UnprocessableEntity` Unprocessable Content
3378
2703
  */
3379
- 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)),
2704
+ 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)),
3380
2705
  /**
3381
2706
  * No description
3382
2707
  *
@@ -3413,7 +2738,7 @@ export class Api extends HttpClient {
3413
2738
  * @response `400` `ProblemDetails` Bad Request
3414
2739
  * @response `404` `ProblemDetails` Not Found
3415
2740
  */
3416
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2741
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3417
2742
  /**
3418
2743
  * @description Search tasks across all loans
3419
2744
  *
@@ -3424,7 +2749,7 @@ export class Api extends HttpClient {
3424
2749
  * @secure
3425
2750
  * @response `200` `UserLoanTaskPaginated` OK
3426
2751
  */
3427
- 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)),
2752
+ 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)),
3428
2753
  /**
3429
2754
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3430
2755
  *
@@ -3436,7 +2761,7 @@ export class Api extends HttpClient {
3436
2761
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3437
2762
  * @response `422` `UnprocessableEntity` Unprocessable Content
3438
2763
  */
3439
- 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)),
2764
+ 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)),
3440
2765
  /**
3441
2766
  * No description
3442
2767
  *
@@ -3484,7 +2809,7 @@ export class Api extends HttpClient {
3484
2809
  * @response `201` `UserLoanTask` Created
3485
2810
  * @response `404` `ProblemDetails` Not Found
3486
2811
  */
3487
- 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)),
2812
+ 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)),
3488
2813
  /**
3489
2814
  * No description
3490
2815
  *
@@ -3496,7 +2821,7 @@ export class Api extends HttpClient {
3496
2821
  * @response `201` `(UserLoanTask)[]` Created
3497
2822
  * @response `404` `ProblemDetails` Not Found
3498
2823
  */
3499
- 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)),
2824
+ 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)),
3500
2825
  /**
3501
2826
  * No description
3502
2827
  *
@@ -3508,7 +2833,7 @@ export class Api extends HttpClient {
3508
2833
  * @response `200` `UserLoanTask` OK
3509
2834
  * @response `404` `ProblemDetails` Not Found
3510
2835
  */
3511
- 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)),
2836
+ 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)),
3512
2837
  /**
3513
2838
  * No description
3514
2839
  *
@@ -3567,7 +2892,7 @@ export class Api extends HttpClient {
3567
2892
  * @secure
3568
2893
  * @response `201` `LoanUser` Created
3569
2894
  */
3570
- 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)),
2895
+ 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)),
3571
2896
  /**
3572
2897
  * No description
3573
2898
  *
@@ -3600,7 +2925,7 @@ export class Api extends HttpClient {
3600
2925
  * @secure
3601
2926
  * @response `200` `LosOperationTrackingPaginated` OK
3602
2927
  */
3603
- 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)),
2928
+ 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)),
3604
2929
  /**
3605
2930
  * No description
3606
2931
  *
@@ -3623,7 +2948,7 @@ export class Api extends HttpClient {
3623
2948
  * @response `201` `MilestoneConfiguration` Created
3624
2949
  * @response `422` `UnprocessableEntity` Unprocessable Content
3625
2950
  */
3626
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2951
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3627
2952
  /**
3628
2953
  * No description
3629
2954
  *
@@ -3648,7 +2973,7 @@ export class Api extends HttpClient {
3648
2973
  * @response `404` `Error` Not Found
3649
2974
  * @response `422` `UnprocessableEntity` Unprocessable Content
3650
2975
  */
3651
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2976
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3652
2977
  /**
3653
2978
  * No description
3654
2979
  *
@@ -3674,7 +2999,7 @@ export class Api extends HttpClient {
3674
2999
  * @response `404` `ProblemDetails` Not Found
3675
3000
  * @response `422` `ProblemDetails` Unprocessable Content
3676
3001
  */
3677
- 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)),
3002
+ 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)),
3678
3003
  /**
3679
3004
  * No description
3680
3005
  *
@@ -3686,7 +3011,7 @@ export class Api extends HttpClient {
3686
3011
  * @response `200` `MonthlyPaymentCalculator` OK
3687
3012
  * @response `422` `ProblemDetails` Unprocessable Content
3688
3013
  */
3689
- 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)),
3014
+ 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)),
3690
3015
  /**
3691
3016
  * No description
3692
3017
  *
@@ -3698,7 +3023,7 @@ export class Api extends HttpClient {
3698
3023
  * @response `200` `AffordabilityCalculator` OK
3699
3024
  * @response `422` `ProblemDetails` Unprocessable Content
3700
3025
  */
3701
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3026
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3702
3027
  /**
3703
3028
  * No description
3704
3029
  *
@@ -3710,7 +3035,7 @@ export class Api extends HttpClient {
3710
3035
  * @response `200` `LoanComparisonCalculator` OK
3711
3036
  * @response `422` `ProblemDetails` Unprocessable Content
3712
3037
  */
3713
- 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)),
3038
+ 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)),
3714
3039
  /**
3715
3040
  * No description
3716
3041
  *
@@ -3722,7 +3047,7 @@ export class Api extends HttpClient {
3722
3047
  * @response `200` `RefinanceCalculator` OK
3723
3048
  * @response `422` `ProblemDetails` Unprocessable Content
3724
3049
  */
3725
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3050
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3726
3051
  /**
3727
3052
  * No description
3728
3053
  *
@@ -3735,7 +3060,7 @@ export class Api extends HttpClient {
3735
3060
  * @response `200` `void` OK
3736
3061
  * @response `422` `UnprocessableEntity` Unprocessable Content
3737
3062
  */
3738
- sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3063
+ sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3739
3064
  /**
3740
3065
  * No description
3741
3066
  *
@@ -3748,7 +3073,7 @@ export class Api extends HttpClient {
3748
3073
  * @response `200` `void` OK
3749
3074
  * @response `422` `UnprocessableEntity` Unprocessable Content
3750
3075
  */
3751
- sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3076
+ sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3752
3077
  /**
3753
3078
  * No description
3754
3079
  *
@@ -3771,7 +3096,7 @@ export class Api extends HttpClient {
3771
3096
  * @response `201` `NotificationTemplate` Created
3772
3097
  * @response `422` `UnprocessableEntity` Unprocessable Content
3773
3098
  */
3774
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3099
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3775
3100
  /**
3776
3101
  * No description
3777
3102
  *
@@ -3782,7 +3107,7 @@ export class Api extends HttpClient {
3782
3107
  * @secure
3783
3108
  * @response `200` `NotificationTemplateBasePaginated` OK
3784
3109
  */
3785
- searchNotificationTemplates: (data, query, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3110
+ 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)),
3786
3111
  /**
3787
3112
  * No description
3788
3113
  *
@@ -3805,7 +3130,7 @@ export class Api extends HttpClient {
3805
3130
  * @response `200` `NotificationTemplate` OK
3806
3131
  * @response `422` `UnprocessableEntity` Unprocessable Content
3807
3132
  */
3808
- replaceNotificationTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3133
+ 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)),
3809
3134
  /**
3810
3135
  * No description
3811
3136
  *
@@ -3849,7 +3174,7 @@ export class Api extends HttpClient {
3849
3174
  * @secure
3850
3175
  * @response `200` `NotificationTemplateVersion` OK
3851
3176
  */
3852
- createNotificationTemplateVersion: (notificationId, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3177
+ 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)),
3853
3178
  /**
3854
3179
  * No description
3855
3180
  *
@@ -3871,7 +3196,7 @@ export class Api extends HttpClient {
3871
3196
  * @secure
3872
3197
  * @response `200` `NotificationTemplateVersion` OK
3873
3198
  */
3874
- replaceNotificationTemplateVersion: (notificationId, id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3199
+ 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)),
3875
3200
  /**
3876
3201
  * No description
3877
3202
  *
@@ -3904,7 +3229,7 @@ export class Api extends HttpClient {
3904
3229
  * @secure
3905
3230
  * @response `200` `BranchUserPaginated` OK
3906
3231
  */
3907
- searchPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3232
+ 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)),
3908
3233
  /**
3909
3234
  * No description
3910
3235
  *
@@ -3927,7 +3252,7 @@ export class Api extends HttpClient {
3927
3252
  * @response `200` `SiteConfiguration` OK
3928
3253
  * @response `422` `UnprocessableEntity` Unprocessable Content
3929
3254
  */
3930
- createPartnerSiteConfiguration: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3255
+ 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)),
3931
3256
  /**
3932
3257
  * No description
3933
3258
  *
@@ -3950,7 +3275,7 @@ export class Api extends HttpClient {
3950
3275
  * @response `200` `SiteConfiguration` OK
3951
3276
  * @response `422` `UnprocessableEntity` Unprocessable Content
3952
3277
  */
3953
- replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3278
+ 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)),
3954
3279
  /**
3955
3280
  * No description
3956
3281
  *
@@ -3974,7 +3299,7 @@ export class Api extends HttpClient {
3974
3299
  * @response `200` `SiteConfigurationByUrl` OK
3975
3300
  * @response `422` `UnprocessableEntity` Unprocessable Content
3976
3301
  */
3977
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3302
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3978
3303
  /**
3979
3304
  * No description
3980
3305
  *
@@ -3999,7 +3324,7 @@ export class Api extends HttpClient {
3999
3324
  * @response `200` `SiteConfiguration` OK
4000
3325
  * @response `422` `UnprocessableEntity` Unprocessable Content
4001
3326
  */
4002
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3327
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4003
3328
  /**
4004
3329
  * No description
4005
3330
  *
@@ -4023,7 +3348,7 @@ export class Api extends HttpClient {
4023
3348
  * @response `200` `SiteConfigurationSummaryPaginated` OK
4024
3349
  * @response `422` `UnprocessableEntity` Unprocessable Content
4025
3350
  */
4026
- searchSiteConfigurations: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3351
+ 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)),
4027
3352
  /**
4028
3353
  * No description
4029
3354
  *
@@ -4115,7 +3440,7 @@ export class Api extends HttpClient {
4115
3440
  * @secure
4116
3441
  * @response `200` `GetForm` OK
4117
3442
  */
4118
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3443
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4119
3444
  /**
4120
3445
  * No description
4121
3446
  *
@@ -4138,7 +3463,7 @@ export class Api extends HttpClient {
4138
3463
  * @response `200` `(SocialSurveyRecord)[]` OK
4139
3464
  * @response `422` `UnprocessableEntity` Unprocessable Content
4140
3465
  */
4141
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3466
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4142
3467
  /**
4143
3468
  * No description
4144
3469
  *
@@ -4161,7 +3486,7 @@ export class Api extends HttpClient {
4161
3486
  * @secure
4162
3487
  * @response `201` `Task` Created
4163
3488
  */
4164
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3489
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4165
3490
  /**
4166
3491
  * No description
4167
3492
  *
@@ -4185,7 +3510,7 @@ export class Api extends HttpClient {
4185
3510
  * @response `200` `Task` OK
4186
3511
  * @response `404` `ProblemDetails` Not Found
4187
3512
  */
4188
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3513
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4189
3514
  /**
4190
3515
  * No description
4191
3516
  *
@@ -4208,7 +3533,7 @@ export class Api extends HttpClient {
4208
3533
  * @secure
4209
3534
  * @response `200` `TaskPaginated` OK
4210
3535
  */
4211
- searchTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/tasks/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3536
+ 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)),
4212
3537
  /**
4213
3538
  * No description
4214
3539
  *
@@ -4218,7 +3543,7 @@ export class Api extends HttpClient {
4218
3543
  * @secure
4219
3544
  * @response `200` `void` OK
4220
3545
  */
4221
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3546
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4222
3547
  /**
4223
3548
  * No description
4224
3549
  *
@@ -4229,7 +3554,7 @@ export class Api extends HttpClient {
4229
3554
  * @secure
4230
3555
  * @response `200` `EncompassRequestLogPaginated` OK
4231
3556
  */
4232
- searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3557
+ 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)),
4233
3558
  /**
4234
3559
  * No description
4235
3560
  *
@@ -4252,7 +3577,7 @@ export class Api extends HttpClient {
4252
3577
  * @secure
4253
3578
  * @response `201` `LosCredentials` Created
4254
3579
  */
4255
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3580
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4256
3581
  /**
4257
3582
  * No description
4258
3583
  *
@@ -4263,7 +3588,7 @@ export class Api extends HttpClient {
4263
3588
  * @secure
4264
3589
  * @response `200` `EncompassCredentialsDetail` OK
4265
3590
  */
4266
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3591
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4267
3592
  /**
4268
3593
  * No description
4269
3594
  *
@@ -4285,7 +3610,7 @@ export class Api extends HttpClient {
4285
3610
  * @secure
4286
3611
  * @response `201` `LosWebhook` Created
4287
3612
  */
4288
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3613
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4289
3614
  /**
4290
3615
  * No description
4291
3616
  *
@@ -4307,7 +3632,7 @@ export class Api extends HttpClient {
4307
3632
  * @secure
4308
3633
  * @response `200` `LosSyncPaginated` OK
4309
3634
  */
4310
- searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3635
+ 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)),
4311
3636
  /**
4312
3637
  * No description
4313
3638
  *
@@ -4390,7 +3715,7 @@ export class Api extends HttpClient {
4390
3715
  * @response `201` `UserDevice` Created
4391
3716
  * @response `400` `ProblemDetails` Bad Request
4392
3717
  */
4393
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3718
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4394
3719
  /**
4395
3720
  * No description
4396
3721
  *
@@ -4435,7 +3760,7 @@ export class Api extends HttpClient {
4435
3760
  * @secure
4436
3761
  * @response `200` `UserDraft` OK
4437
3762
  */
4438
- addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3763
+ 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)),
4439
3764
  /**
4440
3765
  * No description
4441
3766
  *
@@ -4468,7 +3793,7 @@ export class Api extends HttpClient {
4468
3793
  * @secure
4469
3794
  * @response `200` `UserGroupAccessScope` OK
4470
3795
  */
4471
- createUserGroupAccessScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3796
+ 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)),
4472
3797
  /**
4473
3798
  * No description
4474
3799
  *
@@ -4501,7 +3826,7 @@ export class Api extends HttpClient {
4501
3826
  * @secure
4502
3827
  * @response `200` `UserGroupMember` OK
4503
3828
  */
4504
- createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3829
+ 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)),
4505
3830
  /**
4506
3831
  * No description
4507
3832
  *
@@ -4545,7 +3870,7 @@ export class Api extends HttpClient {
4545
3870
  * @secure
4546
3871
  * @response `200` `UserGroup` OK
4547
3872
  */
4548
- updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3873
+ 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)),
4549
3874
  /**
4550
3875
  * No description
4551
3876
  *
@@ -4567,7 +3892,7 @@ export class Api extends HttpClient {
4567
3892
  * @secure
4568
3893
  * @response `201` `UserGroup` Created
4569
3894
  */
4570
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3895
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4571
3896
  /**
4572
3897
  * No description
4573
3898
  *
@@ -4580,7 +3905,7 @@ export class Api extends HttpClient {
4580
3905
  * @response `404` `Error` Not Found
4581
3906
  * @response `422` `UnprocessableEntity` Unprocessable Content
4582
3907
  */
4583
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3908
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4584
3909
  /**
4585
3910
  * No description
4586
3911
  *
@@ -4593,7 +3918,7 @@ export class Api extends HttpClient {
4593
3918
  * @response `404` `Error` Not Found
4594
3919
  * @response `422` `UnprocessableEntity` Unprocessable Content
4595
3920
  */
4596
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3921
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4597
3922
  /**
4598
3923
  * No description
4599
3924
  *
@@ -4643,7 +3968,7 @@ export class Api extends HttpClient {
4643
3968
  * @response `404` `Error` Not Found
4644
3969
  * @response `422` `UnprocessableEntity` Unprocessable Content
4645
3970
  */
4646
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3971
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4647
3972
  /**
4648
3973
  * No description
4649
3974
  *
@@ -4667,7 +3992,7 @@ export class Api extends HttpClient {
4667
3992
  * @response `204` `void` No Content
4668
3993
  * @response `422` `UnprocessableEntity` Unprocessable Content
4669
3994
  */
4670
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3995
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4671
3996
  /**
4672
3997
  * No description
4673
3998
  *
@@ -4714,7 +4039,7 @@ export class Api extends HttpClient {
4714
4039
  * @secure
4715
4040
  * @response `204` `void` No Content
4716
4041
  */
4717
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4042
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4718
4043
  /**
4719
4044
  * No description
4720
4045
  *
@@ -4759,7 +4084,7 @@ export class Api extends HttpClient {
4759
4084
  * @response `200` `DetailedUser` OK
4760
4085
  * @response `422` `UnprocessableEntity` Unprocessable Content
4761
4086
  */
4762
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4087
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4763
4088
  /**
4764
4089
  * No description
4765
4090
  *
@@ -4770,7 +4095,7 @@ export class Api extends HttpClient {
4770
4095
  * @secure
4771
4096
  * @response `200` `UserPaginated` OK
4772
4097
  */
4773
- searchUsers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4098
+ 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)),
4774
4099
  /**
4775
4100
  * No description
4776
4101
  *
@@ -4781,7 +4106,7 @@ export class Api extends HttpClient {
4781
4106
  * @secure
4782
4107
  * @response `200` `AdminAccessUser` OK
4783
4108
  */
4784
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4109
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4785
4110
  /**
4786
4111
  * No description
4787
4112
  *
@@ -4793,7 +4118,7 @@ export class Api extends HttpClient {
4793
4118
  * @response `200` `User` OK
4794
4119
  * @response `422` `UnprocessableEntity` Unprocessable Content
4795
4120
  */
4796
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4121
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4797
4122
  /**
4798
4123
  * No description
4799
4124
  *
@@ -4805,7 +4130,7 @@ export class Api extends HttpClient {
4805
4130
  * @response `200` `DetailedUser` OK
4806
4131
  * @response `422` `UnprocessableEntity` Unprocessable Content
4807
4132
  */
4808
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4133
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4809
4134
  /**
4810
4135
  * No description
4811
4136
  *
@@ -4839,7 +4164,7 @@ export class Api extends HttpClient {
4839
4164
  * @response `204` `void` No Content
4840
4165
  * @response `422` `UnprocessableEntity` Unprocessable Content
4841
4166
  */
4842
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4167
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4843
4168
  /**
4844
4169
  * No description
4845
4170
  *
@@ -4851,7 +4176,7 @@ export class Api extends HttpClient {
4851
4176
  * @response `204` `void` No Content
4852
4177
  * @response `422` `UnprocessableEntity` Unprocessable Content
4853
4178
  */
4854
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4179
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4855
4180
  /**
4856
4181
  * No description
4857
4182
  *
@@ -4863,7 +4188,7 @@ export class Api extends HttpClient {
4863
4188
  * @response `204` `void` No Content
4864
4189
  * @response `422` `UnprocessableEntity` Unprocessable Content
4865
4190
  */
4866
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4191
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4867
4192
  /**
4868
4193
  * No description
4869
4194
  *
@@ -4875,7 +4200,7 @@ export class Api extends HttpClient {
4875
4200
  * @response `204` `void` No Content
4876
4201
  * @response `422` `UnprocessableEntity` Unprocessable Content
4877
4202
  */
4878
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4203
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4879
4204
  /**
4880
4205
  * No description
4881
4206
  *
@@ -4899,7 +4224,7 @@ export class Api extends HttpClient {
4899
4224
  * @response `204` `void` No Content
4900
4225
  * @response `422` `UnprocessableEntity` Unprocessable Content
4901
4226
  */
4902
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4227
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4903
4228
  /**
4904
4229
  * No description
4905
4230
  *
@@ -4922,7 +4247,7 @@ export class Api extends HttpClient {
4922
4247
  * @secure
4923
4248
  * @response `200` `DetailedUser` OK
4924
4249
  */
4925
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4250
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4926
4251
  /**
4927
4252
  * @description Update the phone number If changed will send a verification code to the new number
4928
4253
  *
@@ -4933,7 +4258,7 @@ export class Api extends HttpClient {
4933
4258
  * @secure
4934
4259
  * @response `204` `DetailedUser` No Content
4935
4260
  */
4936
- updateMyPhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/phone-number`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4261
+ 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)),
4937
4262
  /**
4938
4263
  * No description
4939
4264
  *
@@ -4977,7 +4302,7 @@ export class Api extends HttpClient {
4977
4302
  * @secure
4978
4303
  * @response `204` `void` No Content
4979
4304
  */
4980
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4305
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4981
4306
  /**
4982
4307
  * No description
4983
4308
  *
@@ -4988,7 +4313,7 @@ export class Api extends HttpClient {
4988
4313
  * @secure
4989
4314
  * @response `200` `GetForm` OK
4990
4315
  */
4991
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4316
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4992
4317
  };
4993
4318
  this.sso = {
4994
4319
  /**