@matech/thebigpos-sdk 2.45.1-rc10 → 2.45.1-rc11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30,6 +30,15 @@ var __rest = (this && this.__rest) || function (s, e) {
30
30
  return t;
31
31
  };
32
32
  import axios from "axios";
33
+ export var ContentType;
34
+ (function (ContentType) {
35
+ ContentType["JsonPatch"] = "application/json-patch+json";
36
+ ContentType["Json"] = "application/json";
37
+ ContentType["JsonApi"] = "application/vnd.api+json";
38
+ ContentType["FormData"] = "multipart/form-data";
39
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
40
+ ContentType["Text"] = "text/plain";
41
+ })(ContentType || (ContentType = {}));
33
42
  export class HttpClient {
34
43
  constructor(_a = {}) {
35
44
  var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
@@ -45,13 +54,13 @@ export class HttpClient {
45
54
  {};
46
55
  const requestParams = this.mergeRequestParams(params, secureParams);
47
56
  const responseFormat = format || this.format || undefined;
48
- if (type === "multipart/form-data" &&
57
+ if (type === ContentType.FormData &&
49
58
  body &&
50
59
  body !== null &&
51
60
  typeof body === "object") {
52
61
  body = this.createFormData(body);
53
62
  }
54
- if (type === "text/plain" &&
63
+ if (type === ContentType.Text &&
55
64
  body &&
56
65
  body !== null &&
57
66
  typeof body !== "string") {
@@ -95,7 +104,7 @@ export class HttpClient {
95
104
  }
96
105
  /**
97
106
  * @title The Big POS API
98
- * @version v2.45.0
107
+ * @version v2.45.1
99
108
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
109
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
110
  */
@@ -147,7 +156,7 @@ export class Api extends HttpClient {
147
156
  * @response `404` `ProblemDetails` Not Found
148
157
  * @response `422` `ProblemDetails` Unprocessable Content
149
158
  */
150
- replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
159
+ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
151
160
  /**
152
161
  * No description
153
162
  *
@@ -170,7 +179,7 @@ export class Api extends HttpClient {
170
179
  * @response `200` `SiteConfiguration` OK
171
180
  * @response `422` `UnprocessableEntity` Unprocessable Content
172
181
  */
173
- updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
182
+ updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
174
183
  /**
175
184
  * No description
176
185
  *
@@ -181,7 +190,7 @@ export class Api extends HttpClient {
181
190
  * @secure
182
191
  * @response `204` `void` No Content
183
192
  */
184
- requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
193
+ requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
185
194
  /**
186
195
  * No description
187
196
  *
@@ -193,7 +202,7 @@ export class Api extends HttpClient {
193
202
  * @response `204` `void` No Content
194
203
  * @response `400` `ProblemDetails` Bad Request
195
204
  */
196
- completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
205
+ completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
197
206
  /**
198
207
  * No description
199
208
  *
@@ -216,7 +225,7 @@ export class Api extends HttpClient {
216
225
  * @response `201` `Account` Created
217
226
  * @response `422` `ProblemDetails` Unprocessable Content
218
227
  */
219
- createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
228
+ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
220
229
  /**
221
230
  * No description
222
231
  *
@@ -254,289 +263,322 @@ export class Api extends HttpClient {
254
263
  * @response `404` `ProblemDetails` Not Found
255
264
  * @response `422` `ProblemDetails` Unprocessable Content
256
265
  */
257
- updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
266
+ updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
258
267
  /**
259
268
  * No description
260
269
  *
261
- * @tags AiAccountSettings
262
- * @name GetAiAccountSettings
263
- * @summary Get account AI settings
264
- * @request GET:/api/ai/admin/account-settings
270
+ * @tags AiAccess
271
+ * @name GetAiAccess
272
+ * @summary Get whether AI is enabled for the current user's account
273
+ * @request GET:/api/ai/access
265
274
  * @secure
266
- * @response `200` `AiAccountSettings` OK
275
+ * @response `200` `AiEnabled` OK
267
276
  */
268
- getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "GET", secure: true, format: "json" }, params)),
277
+ getAiAccess: (params = {}) => this.request(Object.assign({ path: `/api/ai/access`, method: "GET", secure: true, format: "json" }, params)),
269
278
  /**
270
279
  * No description
271
280
  *
272
- * @tags AiAccountSettings
273
- * @name UpdateAiAccountSettings
274
- * @summary Update account AI settings
275
- * @request PUT:/api/ai/admin/account-settings
281
+ * @tags AiAccount
282
+ * @name GetAccountAiEnabled
283
+ * @summary Get whether AI is enabled for an account (SuperAdmin only)
284
+ * @request GET:/api/ai/accounts/{accountId}/ai-enabled
276
285
  * @secure
277
- * @response `200` `AiAccountSettings` OK
278
- * @response `400` `ProblemDetails` Bad Request
286
+ * @response `200` `AiEnabled` OK
279
287
  */
280
- updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
288
+ getAccountAiEnabled: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "GET", secure: true, format: "json" }, params)),
281
289
  /**
282
290
  * No description
283
291
  *
284
- * @tags AiAdmin
285
- * @name GetAiAuditLogs
286
- * @summary Get paginated audit logs
287
- * @request GET:/api/ai/admin/audit-logs
288
- * @secure
289
- * @response `200` `AiAuditLogPaginated` OK
290
- */
291
- getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
292
- /**
293
- * No description
294
- *
295
- * @tags AiAdmin
296
- * @name GetAiRequestLifecycle
297
- * @summary Get the full event lifecycle of a single AI request
298
- * @request GET:/api/ai/admin/audit-logs/request/{requestId}
299
- * @secure
300
- * @response `200` `(AiAuditLog)[]` OK
301
- */
302
- getAiRequestLifecycle: (requestId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs/request/${requestId}`, method: "GET", secure: true, format: "json" }, params)),
303
- /**
304
- * No description
305
- *
306
- * @tags AiAdmin
307
- * @name GetAiAuditConversations
308
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
309
- * @request GET:/api/ai/admin/audit-conversations
292
+ * @tags AiAccount
293
+ * @name SetAccountAiEnabled
294
+ * @summary Enable or disable AI for an account (SuperAdmin only)
295
+ * @request PUT:/api/ai/accounts/{accountId}/ai-enabled
310
296
  * @secure
311
- * @response `200` `AiConversationAuditSummaryPaginated` OK
297
+ * @response `204` `void` No Content
312
298
  */
313
- getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
299
+ setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
314
300
  /**
315
301
  * No description
316
302
  *
317
- * @tags AiAdmin
318
- * @name GetAiAdminStats
319
- * @summary Get AI admin dashboard stats
320
- * @request GET:/api/ai/admin/stats
303
+ * @tags AiAccountSettings
304
+ * @name GetAiAccountSettings
305
+ * @summary Get account AI settings
306
+ * @request GET:/api/ai/account-settings
321
307
  * @secure
322
- * @response `200` `AiAdminStats` OK
308
+ * @response `200` `AiAccountSettings` OK
323
309
  */
324
- getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
310
+ getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "GET", secure: true, format: "json" }, params)),
325
311
  /**
326
312
  * No description
327
313
  *
328
- * @tags AiAdmin
329
- * @name GetAiConfigChanges
330
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
331
- * @request GET:/api/ai/admin/config-changes
314
+ * @tags AiAccountSettings
315
+ * @name UpdateAiAccountSettings
316
+ * @summary Update account AI settings
317
+ * @request PUT:/api/ai/account-settings
332
318
  * @secure
333
- * @response `200` `AiConfigChangeLogPaginated` OK
319
+ * @response `200` `AiAccountSettings` OK
320
+ * @response `400` `ProblemDetails` Bad Request
334
321
  */
335
- getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
322
+ updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
336
323
  /**
337
324
  * No description
338
325
  *
339
326
  * @tags AiAdminPrompt
340
327
  * @name GetAiPrompts
341
328
  * @summary Get all prompts
342
- * @request GET:/api/ai/admin/prompts
329
+ * @request GET:/api/ai/prompts
343
330
  * @secure
344
331
  * @response `200` `(AiPrompt)[]` OK
345
332
  */
346
- getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
333
+ getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", secure: true, format: "json" }, params)),
347
334
  /**
348
335
  * No description
349
336
  *
350
337
  * @tags AiAdminPrompt
351
338
  * @name CreateAiPrompt
352
339
  * @summary Create custom prompt
353
- * @request POST:/api/ai/admin/prompts
340
+ * @request POST:/api/ai/prompts
354
341
  * @secure
355
342
  * @response `201` `AiPrompt` Created
356
343
  * @response `400` `ProblemDetails` Bad Request
357
344
  */
358
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
345
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
359
346
  /**
360
347
  * No description
361
348
  *
362
349
  * @tags AiAdminPrompt
363
350
  * @name GetAiPrompt
364
351
  * @summary Get prompt by ID
365
- * @request GET:/api/ai/admin/prompts/{id}
352
+ * @request GET:/api/ai/prompts/{id}
366
353
  * @secure
367
354
  * @response `200` `AiPrompt` OK
368
355
  * @response `404` `ProblemDetails` Not Found
369
356
  */
370
- getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
357
+ getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
371
358
  /**
372
359
  * No description
373
360
  *
374
361
  * @tags AiAdminPrompt
375
362
  * @name UpdateAiPrompt
376
363
  * @summary Update prompt
377
- * @request PUT:/api/ai/admin/prompts/{id}
364
+ * @request PUT:/api/ai/prompts/{id}
378
365
  * @secure
379
366
  * @response `200` `AiPrompt` OK
380
367
  * @response `400` `ProblemDetails` Bad Request
381
368
  * @response `404` `ProblemDetails` Not Found
382
369
  */
383
- updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
370
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
384
371
  /**
385
372
  * No description
386
373
  *
387
374
  * @tags AiAdminPrompt
388
375
  * @name DeleteAiPrompt
389
376
  * @summary Delete prompt
390
- * @request DELETE:/api/ai/admin/prompts/{id}
377
+ * @request DELETE:/api/ai/prompts/{id}
391
378
  * @secure
392
379
  * @response `204` `void` No Content
393
380
  * @response `400` `ProblemDetails` Bad Request
394
381
  * @response `404` `ProblemDetails` Not Found
395
382
  */
396
- deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
383
+ deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "DELETE", secure: true }, params)),
397
384
  /**
398
385
  * No description
399
386
  *
400
387
  * @tags AiAdminPrompt
401
388
  * @name ToggleAiPrompt
402
389
  * @summary Toggle prompt active/inactive
403
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
390
+ * @request PATCH:/api/ai/prompts/{id}/toggle
404
391
  * @secure
405
392
  * @response `200` `AiPrompt` OK
406
393
  * @response `404` `ProblemDetails` Not Found
407
394
  */
408
- toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
395
+ toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
409
396
  /**
410
397
  * No description
411
398
  *
412
399
  * @tags AiAdminPrompt
413
400
  * @name GenerateAiSystemPrompt
414
401
  * @summary Generate a system prompt from description
415
- * @request POST:/api/ai/admin/prompts/generate
402
+ * @request POST:/api/ai/prompts/generate
416
403
  * @secure
417
404
  * @response `200` `GenerateSystemPrompt` OK
418
405
  * @response `400` `ProblemDetails` Bad Request
419
406
  */
420
- generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
407
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
421
408
  /**
422
409
  * No description
423
410
  *
424
411
  * @tags AiAdminPrompt
425
- * @name GetSupportedModels
412
+ * @name GetAiSupportedModels
426
413
  * @summary Get supported LLM models
427
- * @request GET:/api/ai/admin/prompts/supported-models
414
+ * @request GET:/api/ai/prompts/supported-models
428
415
  * @secure
429
416
  * @response `200` `(SupportedModel)[]` OK
430
417
  */
431
- getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
418
+ getAiSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
432
419
  /**
433
420
  * No description
434
421
  *
435
422
  * @tags AiAdminSettings
436
423
  * @name GetAiAdminSettings
437
424
  * @summary Get global AI settings
438
- * @request GET:/api/ai/admin/settings
425
+ * @request GET:/api/ai/settings
439
426
  * @secure
440
427
  * @response `200` `AiAdminSettings` OK
441
428
  */
442
- getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
429
+ getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "GET", secure: true, format: "json" }, params)),
443
430
  /**
444
431
  * No description
445
432
  *
446
433
  * @tags AiAdminSettings
447
434
  * @name UpdateAiAdminSettings
448
435
  * @summary Update global AI settings
449
- * @request PUT:/api/ai/admin/settings
436
+ * @request PUT:/api/ai/settings
450
437
  * @secure
451
438
  * @response `200` `AiAdminSettings` OK
452
439
  * @response `400` `ProblemDetails` Bad Request
453
440
  */
454
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
441
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
442
+ /**
443
+ * No description
444
+ *
445
+ * @tags AiAudit
446
+ * @name GetAiAuditLogs
447
+ * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
448
+ * @request GET:/api/ai/audit-logs
449
+ * @secure
450
+ * @response `200` `AiAuditLogPaginated` OK
451
+ */
452
+ getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
453
+ /**
454
+ * No description
455
+ *
456
+ * @tags AiAudit
457
+ * @name GetAiRequestLifecycle
458
+ * @summary Get the full event lifecycle of a single AI request
459
+ * @request GET:/api/ai/audit-logs/request/{requestId}
460
+ * @secure
461
+ * @response `200` `(AiAuditLog)[]` OK
462
+ */
463
+ getAiRequestLifecycle: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
464
+ /**
465
+ * No description
466
+ *
467
+ * @tags AiAudit
468
+ * @name GetAiAuditConversations
469
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
470
+ * @request GET:/api/ai/audit-conversations
471
+ * @secure
472
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
473
+ */
474
+ getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
475
+ /**
476
+ * No description
477
+ *
478
+ * @tags AiAudit
479
+ * @name GetAiStats
480
+ * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
481
+ * @request GET:/api/ai/stats
482
+ * @secure
483
+ * @response `200` `AiAdminStats` OK
484
+ */
485
+ getAiStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
486
+ /**
487
+ * No description
488
+ *
489
+ * @tags AiAudit
490
+ * @name GetAiConfigChanges
491
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
492
+ * @request GET:/api/ai/config-changes
493
+ * @secure
494
+ * @response `200` `AuditLogEntryPaginated` OK
495
+ */
496
+ getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
455
497
  /**
456
498
  * No description
457
499
  *
458
500
  * @tags AiCanonicalField
459
501
  * @name GetAiCanonicalFields
460
502
  * @summary Get all canonical fields
461
- * @request GET:/api/ai/admin/fields
503
+ * @request GET:/api/ai/canonical-fields
462
504
  * @secure
463
505
  * @response `200` `(AiCanonicalField)[]` OK
464
506
  */
465
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
507
+ getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "GET", secure: true, format: "json" }, params)),
466
508
  /**
467
509
  * No description
468
510
  *
469
511
  * @tags AiCanonicalField
470
512
  * @name CreateAiCanonicalField
471
513
  * @summary Create canonical field
472
- * @request POST:/api/ai/admin/fields
514
+ * @request POST:/api/ai/canonical-fields
473
515
  * @secure
474
516
  * @response `201` `AiCanonicalField` Created
475
517
  * @response `400` `ProblemDetails` Bad Request
476
518
  */
477
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
519
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
478
520
  /**
479
521
  * No description
480
522
  *
481
523
  * @tags AiCanonicalField
482
524
  * @name GetAiCanonicalField
483
525
  * @summary Get canonical field by ID
484
- * @request GET:/api/ai/admin/fields/{id}
526
+ * @request GET:/api/ai/canonical-fields/{id}
485
527
  * @secure
486
528
  * @response `200` `AiCanonicalField` OK
487
529
  * @response `404` `ProblemDetails` Not Found
488
530
  */
489
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
531
+ getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
490
532
  /**
491
533
  * No description
492
534
  *
493
535
  * @tags AiCanonicalField
494
536
  * @name UpdateAiCanonicalField
495
537
  * @summary Update canonical field
496
- * @request PUT:/api/ai/admin/fields/{id}
538
+ * @request PUT:/api/ai/canonical-fields/{id}
497
539
  * @secure
498
540
  * @response `200` `AiCanonicalField` OK
499
541
  * @response `400` `ProblemDetails` Bad Request
500
542
  * @response `404` `ProblemDetails` Not Found
501
543
  */
502
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
544
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
503
545
  /**
504
546
  * No description
505
547
  *
506
548
  * @tags AiCanonicalField
507
549
  * @name DeleteAiCanonicalField
508
550
  * @summary Delete canonical field
509
- * @request DELETE:/api/ai/admin/fields/{id}
551
+ * @request DELETE:/api/ai/canonical-fields/{id}
510
552
  * @secure
511
553
  * @response `204` `void` No Content
512
554
  * @response `404` `ProblemDetails` Not Found
513
555
  */
514
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
556
+ deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "DELETE", secure: true }, params)),
515
557
  /**
516
558
  * No description
517
559
  *
518
560
  * @tags AiCanonicalField
519
561
  * @name ToggleAiCanonicalField
520
562
  * @summary Toggle canonical field active/inactive
521
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
563
+ * @request PATCH:/api/ai/canonical-fields/{id}/toggle
522
564
  * @secure
523
565
  * @response `200` `AiCanonicalField` OK
524
566
  * @response `404` `ProblemDetails` Not Found
525
567
  */
526
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
568
+ toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
527
569
  /**
528
570
  * No description
529
571
  *
530
572
  * @tags AiChat
531
573
  * @name AiChat
532
574
  * @summary Send AI chat message
533
- * @request POST:/api/ai/chat
575
+ * @request POST:/api/ai/chats
534
576
  * @secure
535
577
  * @response `200` `AiChat` OK
536
578
  * @response `400` `ProblemDetails` Bad Request
537
579
  * @response `401` `ProblemDetails` Unauthorized
538
580
  */
539
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
581
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
540
582
  /**
541
583
  * No description
542
584
  *
@@ -574,7 +616,7 @@ export class Api extends HttpClient {
574
616
  * @response `403` `ProblemDetails` Forbidden
575
617
  * @response `404` `ProblemDetails` Not Found
576
618
  */
577
- renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
619
+ renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
578
620
  /**
579
621
  * No description
580
622
  *
@@ -626,301 +668,245 @@ export class Api extends HttpClient {
626
668
  * @response `403` `ProblemDetails` Forbidden
627
669
  * @response `404` `ProblemDetails` Not Found
628
670
  */
629
- pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
671
+ pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
630
672
  /**
631
673
  * No description
632
674
  *
633
675
  * @tags AiConversationAdmin
634
676
  * @name GetAiAccountConversations
635
677
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
636
- * @request GET:/api/ai/admin/conversations
678
+ * @request GET:/api/ai/conversations/all
637
679
  * @secure
638
680
  * @response `200` `AiConversationListItemPaginated` OK
639
681
  */
640
- getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
682
+ getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all`, method: "GET", query: query, secure: true, format: "json" }, params)),
641
683
  /**
642
684
  * No description
643
685
  *
644
686
  * @tags AiConversationAdmin
645
687
  * @name GetAiAccountConversation
646
688
  * @summary Get an account conversation's detail (admin supervision)
647
- * @request GET:/api/ai/admin/conversations/{id}
689
+ * @request GET:/api/ai/conversations/all/{id}
648
690
  * @secure
649
691
  * @response `200` `AiConversationDetail` OK
650
692
  * @response `404` `ProblemDetails` Not Found
651
693
  */
652
- getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
694
+ getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}`, method: "GET", secure: true, format: "json" }, params)),
653
695
  /**
654
696
  * No description
655
697
  *
656
698
  * @tags AiConversationAdmin
657
699
  * @name GetAiAccountConversationMessages
658
700
  * @summary Get an account conversation's messages (admin supervision)
659
- * @request GET:/api/ai/admin/conversations/{id}/messages
701
+ * @request GET:/api/ai/conversations/all/{id}/messages
660
702
  * @secure
661
703
  * @response `200` `AiChatMessagePaginated` OK
662
704
  * @response `404` `ProblemDetails` Not Found
663
705
  */
664
- getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
706
+ getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/all/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
665
707
  /**
666
708
  * No description
667
709
  *
668
710
  * @tags AiGuardrail
669
711
  * @name GetAiGuardrails
670
712
  * @summary Get all guardrails
671
- * @request GET:/api/ai/admin/guardrails
713
+ * @request GET:/api/ai/guardrails
672
714
  * @secure
673
715
  * @response `200` `(AiGuardrail)[]` OK
674
716
  */
675
- getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
717
+ getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "GET", secure: true, format: "json" }, params)),
676
718
  /**
677
719
  * No description
678
720
  *
679
721
  * @tags AiGuardrail
680
722
  * @name CreateAiGuardrail
681
723
  * @summary Create custom guardrail
682
- * @request POST:/api/ai/admin/guardrails
724
+ * @request POST:/api/ai/guardrails
683
725
  * @secure
684
726
  * @response `201` `AiGuardrail` Created
685
727
  * @response `400` `ProblemDetails` Bad Request
686
728
  */
687
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
729
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
688
730
  /**
689
731
  * No description
690
732
  *
691
733
  * @tags AiGuardrail
692
734
  * @name GetAiGuardrail
693
735
  * @summary Get guardrail by ID
694
- * @request GET:/api/ai/admin/guardrails/{id}
736
+ * @request GET:/api/ai/guardrails/{id}
695
737
  * @secure
696
738
  * @response `200` `AiGuardrail` OK
697
739
  * @response `404` `ProblemDetails` Not Found
698
740
  */
699
- getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
741
+ getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
700
742
  /**
701
743
  * No description
702
744
  *
703
745
  * @tags AiGuardrail
704
746
  * @name UpdateAiGuardrail
705
747
  * @summary Update guardrail
706
- * @request PUT:/api/ai/admin/guardrails/{id}
748
+ * @request PUT:/api/ai/guardrails/{id}
707
749
  * @secure
708
750
  * @response `200` `AiGuardrail` OK
709
751
  * @response `400` `ProblemDetails` Bad Request
710
752
  * @response `404` `ProblemDetails` Not Found
711
753
  */
712
- updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
754
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
713
755
  /**
714
756
  * No description
715
757
  *
716
758
  * @tags AiGuardrail
717
759
  * @name DeleteAiGuardrail
718
760
  * @summary Delete guardrail
719
- * @request DELETE:/api/ai/admin/guardrails/{id}
761
+ * @request DELETE:/api/ai/guardrails/{id}
720
762
  * @secure
721
763
  * @response `204` `void` No Content
722
764
  * @response `400` `ProblemDetails` Bad Request
723
765
  * @response `404` `ProblemDetails` Not Found
724
766
  */
725
- deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
767
+ deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "DELETE", secure: true }, params)),
726
768
  /**
727
769
  * No description
728
770
  *
729
771
  * @tags AiGuardrail
730
772
  * @name ToggleAiGuardrail
731
773
  * @summary Toggle guardrail enabled/disabled
732
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
774
+ * @request PATCH:/api/ai/guardrails/{id}/toggle
733
775
  * @secure
734
776
  * @response `200` `AiGuardrail` OK
735
777
  * @response `404` `ProblemDetails` Not Found
736
778
  */
737
- toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
779
+ toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
738
780
  /**
739
781
  * No description
740
782
  *
741
783
  * @tags AiPrompt
742
- * @name GetAvailablePrompts
784
+ * @name GetAiAvailablePrompts
743
785
  * @summary Get available prompts for current user
744
- * @request GET:/api/ai/prompts
786
+ * @request GET:/api/ai/prompts/available
745
787
  * @secure
746
788
  * @response `200` `(AiPromptSummary)[]` OK
747
789
  */
748
- getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
749
- /**
750
- * No description
751
- *
752
- * @tags AiSuperAdmin
753
- * @name GetAiAuditLogsCrossAccount
754
- * @summary Get AI audit logs for a specific account or across all accounts
755
- * @request GET:/api/ai/superadmin/audit-logs
756
- * @secure
757
- * @response `200` `AiAuditLogPaginated` OK
758
- */
759
- getAiAuditLogsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
760
- /**
761
- * No description
762
- *
763
- * @tags AiSuperAdmin
764
- * @name GetAiRequestLifecycleCrossAccount
765
- * @summary Get the full event lifecycle of a single AI request from any account
766
- * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
767
- * @secure
768
- * @response `200` `(AiAuditLog)[]` OK
769
- */
770
- getAiRequestLifecycleCrossAccount: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
771
- /**
772
- * No description
773
- *
774
- * @tags AiSuperAdmin
775
- * @name GetAiStatsCrossAccount
776
- * @summary Get AI stats for a specific account or platform-wide
777
- * @request GET:/api/ai/superadmin/stats
778
- * @secure
779
- * @response `200` `AiAdminStats` OK
780
- */
781
- getAiStatsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
782
- /**
783
- * No description
784
- *
785
- * @tags AiSuperAdmin
786
- * @name GetAiConfigChangesCrossAccount
787
- * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
788
- * @request GET:/api/ai/superadmin/config-changes
789
- * @secure
790
- * @response `200` `AiConfigChangeLogPaginated` OK
791
- */
792
- getAiConfigChangesCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
793
- /**
794
- * No description
795
- *
796
- * @tags AiSuperAdmin
797
- * @name SetAccountAiEnabled
798
- * @summary Enable or disable AI for an account (SuperAdmin only)
799
- * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
800
- * @secure
801
- * @response `204` `void` No Content
802
- * @response `404` `ProblemDetails` Not Found
803
- */
804
- setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
790
+ getAiAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/available`, method: "GET", query: query, secure: true, format: "json" }, params)),
805
791
  /**
806
792
  * No description
807
793
  *
808
794
  * @tags AiTokenUsageAdmin
809
795
  * @name SearchAiAccountTokenUsage
810
796
  * @summary Search accounts by current-month AI token usage and classification
811
- * @request POST:/api/ai/admin/token-usage/search
797
+ * @request POST:/api/ai/token-usage/search
812
798
  * @secure
813
799
  * @response `200` `AiAccountUsageOverviewPaginated` OK
814
800
  */
815
- searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
801
+ searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
816
802
  /**
817
803
  * No description
818
804
  *
819
805
  * @tags AiTokenUsageAdmin
820
806
  * @name GetAiAccountTokenUsage
821
807
  * @summary Get an account's current-month AI token usage
822
- * @request GET:/api/ai/admin/token-usage/{accountId}
808
+ * @request GET:/api/ai/token-usage/{accountId}
823
809
  * @secure
824
810
  * @response `200` `AiTokenBudgetStatus` OK
825
811
  */
826
- getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
812
+ getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
827
813
  /**
828
814
  * No description
829
815
  *
830
816
  * @tags AiTokenUsageAdmin
831
817
  * @name GetAiAccountTokenUsageHistory
832
818
  * @summary Get an account's monthly AI token usage history
833
- * @request GET:/api/ai/admin/token-usage/{accountId}/history
819
+ * @request GET:/api/ai/token-usage/{accountId}/history
834
820
  * @secure
835
821
  * @response `200` `AiTokenUsageWindowPaginated` OK
836
822
  */
837
- getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
823
+ getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
838
824
  /**
839
825
  * No description
840
826
  *
841
827
  * @tags AiTokenUsageAdmin
842
828
  * @name SetAiAccountTokenLimit
843
829
  * @summary Set or raise an account's monthly AI token limit
844
- * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
830
+ * @request PUT:/api/ai/token-usage/{accountId}/limit
845
831
  * @secure
846
832
  * @response `200` `AiTokenBudgetStatus` OK
847
833
  * @response `400` `ProblemDetails` Bad Request
848
834
  */
849
- setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
835
+ setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
850
836
  /**
851
837
  * No description
852
838
  *
853
839
  * @tags AiUrlSource
854
840
  * @name GetAiUrlSources
855
841
  * @summary Get all URL sources
856
- * @request GET:/api/ai/admin/url-sources
842
+ * @request GET:/api/ai/url-sources
857
843
  * @secure
858
844
  * @response `200` `(AiUrlSource)[]` OK
859
845
  */
860
- getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
846
+ getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "GET", secure: true, format: "json" }, params)),
861
847
  /**
862
848
  * No description
863
849
  *
864
850
  * @tags AiUrlSource
865
851
  * @name CreateAiUrlSource
866
852
  * @summary Create URL source
867
- * @request POST:/api/ai/admin/url-sources
853
+ * @request POST:/api/ai/url-sources
868
854
  * @secure
869
855
  * @response `201` `AiUrlSource` Created
870
856
  * @response `400` `ProblemDetails` Bad Request
871
857
  * @response `409` `ProblemDetails` Conflict
872
858
  */
873
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
859
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
874
860
  /**
875
861
  * No description
876
862
  *
877
863
  * @tags AiUrlSource
878
864
  * @name GetAiUrlSource
879
865
  * @summary Get URL source by ID
880
- * @request GET:/api/ai/admin/url-sources/{id}
866
+ * @request GET:/api/ai/url-sources/{id}
881
867
  * @secure
882
868
  * @response `200` `AiUrlSource` OK
883
869
  * @response `404` `ProblemDetails` Not Found
884
870
  */
885
- getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
871
+ getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
886
872
  /**
887
873
  * No description
888
874
  *
889
875
  * @tags AiUrlSource
890
876
  * @name UpdateAiUrlSource
891
877
  * @summary Update URL source
892
- * @request PUT:/api/ai/admin/url-sources/{id}
878
+ * @request PUT:/api/ai/url-sources/{id}
893
879
  * @secure
894
880
  * @response `200` `AiUrlSource` OK
895
881
  * @response `400` `ProblemDetails` Bad Request
896
882
  * @response `404` `ProblemDetails` Not Found
897
883
  * @response `409` `ProblemDetails` Conflict
898
884
  */
899
- updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
885
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
900
886
  /**
901
887
  * No description
902
888
  *
903
889
  * @tags AiUrlSource
904
890
  * @name DeleteAiUrlSource
905
891
  * @summary Delete URL source
906
- * @request DELETE:/api/ai/admin/url-sources/{id}
892
+ * @request DELETE:/api/ai/url-sources/{id}
907
893
  * @secure
908
894
  * @response `204` `void` No Content
909
895
  * @response `404` `ProblemDetails` Not Found
910
896
  */
911
- deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
897
+ deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "DELETE", secure: true }, params)),
912
898
  /**
913
899
  * No description
914
900
  *
915
901
  * @tags AiUrlSource
916
902
  * @name ToggleAiUrlSource
917
903
  * @summary Toggle URL source active/inactive
918
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
904
+ * @request PATCH:/api/ai/url-sources/{id}/toggle
919
905
  * @secure
920
906
  * @response `200` `AiUrlSource` OK
921
907
  * @response `404` `ProblemDetails` Not Found
922
908
  */
923
- toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
909
+ toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
924
910
  /**
925
911
  * No description
926
912
  *
@@ -953,7 +939,7 @@ export class Api extends HttpClient {
953
939
  * @secure
954
940
  * @response `200` `AuditLogEntryPaginated` OK
955
941
  */
956
- searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
942
+ searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
957
943
  /**
958
944
  * No description
959
945
  *
@@ -989,7 +975,7 @@ export class Api extends HttpClient {
989
975
  * @response `401` `ProblemDetails` Unauthorized
990
976
  * @response `422` `UnprocessableEntity` Unprocessable Content
991
977
  */
992
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
978
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
993
979
  /**
994
980
  * No description
995
981
  *
@@ -1001,7 +987,7 @@ export class Api extends HttpClient {
1001
987
  * @response `200` `AccountDeactivated` OK
1002
988
  * @response `422` `UnprocessableEntity` Unprocessable Content
1003
989
  */
1004
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
990
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1005
991
  /**
1006
992
  * No description
1007
993
  *
@@ -1013,7 +999,7 @@ export class Api extends HttpClient {
1013
999
  * @response `200` `AccountDeactivated` OK
1014
1000
  * @response `422` `UnprocessableEntity` Unprocessable Content
1015
1001
  */
1016
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1002
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1017
1003
  /**
1018
1004
  * No description
1019
1005
  *
@@ -1025,7 +1011,7 @@ export class Api extends HttpClient {
1025
1011
  * @response `200` `Token` OK
1026
1012
  * @response `422` `UnprocessableEntity` Unprocessable Content
1027
1013
  */
1028
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1014
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1029
1015
  /**
1030
1016
  * No description
1031
1017
  *
@@ -1037,7 +1023,7 @@ export class Api extends HttpClient {
1037
1023
  * @response `200` `SSOToken` OK
1038
1024
  * @response `422` `UnprocessableEntity` Unprocessable Content
1039
1025
  */
1040
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1026
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1041
1027
  /**
1042
1028
  * No description
1043
1029
  *
@@ -1072,7 +1058,7 @@ export class Api extends HttpClient {
1072
1058
  * @response `200` `GetBranch` OK
1073
1059
  * @response `422` `UnprocessableEntity` Unprocessable Content
1074
1060
  */
1075
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1061
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1076
1062
  /**
1077
1063
  * No description
1078
1064
  *
@@ -1083,7 +1069,7 @@ export class Api extends HttpClient {
1083
1069
  * @secure
1084
1070
  * @response `200` `GetBranchPaginated` OK
1085
1071
  */
1086
- searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1072
+ searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1087
1073
  /**
1088
1074
  * No description
1089
1075
  *
@@ -1106,7 +1092,7 @@ export class Api extends HttpClient {
1106
1092
  * @response `200` `GetBranch` OK
1107
1093
  * @response `422` `UnprocessableEntity` Unprocessable Content
1108
1094
  */
1109
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1095
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1110
1096
  /**
1111
1097
  * No description
1112
1098
  *
@@ -1141,7 +1127,7 @@ export class Api extends HttpClient {
1141
1127
  * @response `200` `SiteConfiguration` OK
1142
1128
  * @response `422` `UnprocessableEntity` Unprocessable Content
1143
1129
  */
1144
- createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1130
+ createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1145
1131
  /**
1146
1132
  * No description
1147
1133
  *
@@ -1164,7 +1150,7 @@ export class Api extends HttpClient {
1164
1150
  * @response `200` `SiteConfiguration` OK
1165
1151
  * @response `422` `UnprocessableEntity` Unprocessable Content
1166
1152
  */
1167
- replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1153
+ replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1168
1154
  /**
1169
1155
  * No description
1170
1156
  *
@@ -1198,7 +1184,7 @@ export class Api extends HttpClient {
1198
1184
  * @response `200` `BusinessRule` OK
1199
1185
  * @response `422` `UnprocessableEntity` Unprocessable Content
1200
1186
  */
1201
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1187
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1202
1188
  /**
1203
1189
  * No description
1204
1190
  *
@@ -1221,7 +1207,7 @@ export class Api extends HttpClient {
1221
1207
  * @response `200` `BusinessRule` OK
1222
1208
  * @response `422` `UnprocessableEntity` Unprocessable Content
1223
1209
  */
1224
- replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1210
+ replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1225
1211
  /**
1226
1212
  * No description
1227
1213
  *
@@ -1254,7 +1240,7 @@ export class Api extends HttpClient {
1254
1240
  * @secure
1255
1241
  * @response `200` `ClosedLoansReport` OK
1256
1242
  */
1257
- getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1243
+ getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1258
1244
  /**
1259
1245
  * No description
1260
1246
  *
@@ -1299,7 +1285,7 @@ export class Api extends HttpClient {
1299
1285
  * @response `200` `Corporate` OK
1300
1286
  * @response `422` `UnprocessableEntity` Unprocessable Content
1301
1287
  */
1302
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1288
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1303
1289
  /**
1304
1290
  * No description
1305
1291
  *
@@ -1310,7 +1296,7 @@ export class Api extends HttpClient {
1310
1296
  * @secure
1311
1297
  * @response `200` `CorporatePaginated` OK
1312
1298
  */
1313
- searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1299
+ searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1314
1300
  /**
1315
1301
  * No description
1316
1302
  *
@@ -1333,7 +1319,7 @@ export class Api extends HttpClient {
1333
1319
  * @response `200` `Corporate` OK
1334
1320
  * @response `422` `UnprocessableEntity` Unprocessable Content
1335
1321
  */
1336
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1322
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1337
1323
  /**
1338
1324
  * No description
1339
1325
  *
@@ -1367,7 +1353,7 @@ export class Api extends HttpClient {
1367
1353
  * @response `200` `SiteConfiguration` OK
1368
1354
  * @response `422` `UnprocessableEntity` Unprocessable Content
1369
1355
  */
1370
- createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1356
+ createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1371
1357
  /**
1372
1358
  * No description
1373
1359
  *
@@ -1390,7 +1376,7 @@ export class Api extends HttpClient {
1390
1376
  * @response `200` `SiteConfiguration` OK
1391
1377
  * @response `422` `UnprocessableEntity` Unprocessable Content
1392
1378
  */
1393
- replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1379
+ replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1394
1380
  /**
1395
1381
  * No description
1396
1382
  *
@@ -1436,7 +1422,7 @@ export class Api extends HttpClient {
1436
1422
  * @response `409` `ProblemDetails` Conflict
1437
1423
  * @response `422` `ProblemDetails` Unprocessable Content
1438
1424
  */
1439
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1425
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1440
1426
  /**
1441
1427
  * No description
1442
1428
  *
@@ -1463,7 +1449,7 @@ export class Api extends HttpClient {
1463
1449
  * @response `409` `ProblemDetails` Conflict
1464
1450
  * @response `422` `ProblemDetails` Unprocessable Content
1465
1451
  */
1466
- updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1452
+ updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1467
1453
  /**
1468
1454
  * No description
1469
1455
  *
@@ -1533,7 +1519,7 @@ export class Api extends HttpClient {
1533
1519
  * @secure
1534
1520
  * @response `200` `Device` OK
1535
1521
  */
1536
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1522
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1537
1523
  /**
1538
1524
  * No description
1539
1525
  *
@@ -1590,7 +1576,7 @@ export class Api extends HttpClient {
1590
1576
  * @response `404` `ProblemDetails` Not Found
1591
1577
  * @response `422` `UnprocessableEntity` Unprocessable Content
1592
1578
  */
1593
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1579
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1594
1580
  /**
1595
1581
  * No description
1596
1582
  *
@@ -1627,7 +1613,7 @@ export class Api extends HttpClient {
1627
1613
  * @response `404` `ProblemDetails` Not Found
1628
1614
  * @response `422` `UnprocessableEntity` Unprocessable Content
1629
1615
  */
1630
- replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1616
+ replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1631
1617
  /**
1632
1618
  * No description
1633
1619
  *
@@ -1675,7 +1661,7 @@ export class Api extends HttpClient {
1675
1661
  * @secure
1676
1662
  * @response `200` `DocumentTemplateVersion` OK
1677
1663
  */
1678
- createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1664
+ createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1679
1665
  /**
1680
1666
  * No description
1681
1667
  *
@@ -1697,7 +1683,7 @@ export class Api extends HttpClient {
1697
1683
  * @secure
1698
1684
  * @response `200` `DocumentTemplateVersion` OK
1699
1685
  */
1700
- replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1686
+ replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1701
1687
  /**
1702
1688
  * No description
1703
1689
  *
@@ -1735,7 +1721,7 @@ export class Api extends HttpClient {
1735
1721
  * @response `409` `void` Conflict
1736
1722
  * @response `422` `ProblemDetails` Unprocessable Content
1737
1723
  */
1738
- addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1724
+ addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1739
1725
  /**
1740
1726
  * No description
1741
1727
  *
@@ -1838,7 +1824,7 @@ export class Api extends HttpClient {
1838
1824
  * @response `404` `EncompassError` Not Found
1839
1825
  * @response `500` `EncompassError` Internal Server Error
1840
1826
  */
1841
- createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1827
+ createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1842
1828
  /**
1843
1829
  * No description
1844
1830
  *
@@ -1861,7 +1847,7 @@ export class Api extends HttpClient {
1861
1847
  * @response `201` `File` Created
1862
1848
  * @response `422` `UnprocessableEntity` Unprocessable Content
1863
1849
  */
1864
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1850
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1865
1851
  /**
1866
1852
  * No description
1867
1853
  *
@@ -1884,7 +1870,7 @@ export class Api extends HttpClient {
1884
1870
  * @response `200` `string` OK
1885
1871
  * @response `422` `UnprocessableEntity` Unprocessable Content
1886
1872
  */
1887
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1873
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1888
1874
  /**
1889
1875
  * No description
1890
1876
  *
@@ -1906,7 +1892,7 @@ export class Api extends HttpClient {
1906
1892
  * @secure
1907
1893
  * @response `200` `FilePaginated` OK
1908
1894
  */
1909
- searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1895
+ searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1910
1896
  /**
1911
1897
  * No description
1912
1898
  *
@@ -1929,7 +1915,7 @@ export class Api extends HttpClient {
1929
1915
  * @response `201` `Form` Created
1930
1916
  * @response `422` `UnprocessableEntity` Unprocessable Content
1931
1917
  */
1932
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1918
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1933
1919
  /**
1934
1920
  * No description
1935
1921
  *
@@ -1952,7 +1938,7 @@ export class Api extends HttpClient {
1952
1938
  * @response `200` `Form` OK
1953
1939
  * @response `422` `UnprocessableEntity` Unprocessable Content
1954
1940
  */
1955
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1941
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1956
1942
  /**
1957
1943
  * No description
1958
1944
  *
@@ -1985,7 +1971,7 @@ export class Api extends HttpClient {
1985
1971
  * @secure
1986
1972
  * @response `200` `FormSubmissionFile` OK
1987
1973
  */
1988
- addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1974
+ addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1989
1975
  /**
1990
1976
  * No description
1991
1977
  *
@@ -2029,7 +2015,7 @@ export class Api extends HttpClient {
2029
2015
  * @secure
2030
2016
  * @response `201` `FormSubmission` Created
2031
2017
  */
2032
- createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2018
+ createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2033
2019
  /**
2034
2020
  * No description
2035
2021
  *
@@ -2051,7 +2037,7 @@ export class Api extends HttpClient {
2051
2037
  * @secure
2052
2038
  * @response `200` `FormSubmission` OK
2053
2039
  */
2054
- replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2040
+ replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2055
2041
  /**
2056
2042
  * No description
2057
2043
  *
@@ -2073,7 +2059,7 @@ export class Api extends HttpClient {
2073
2059
  * @secure
2074
2060
  * @response `200` `FormSubmissionPaginated` OK
2075
2061
  */
2076
- searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2062
+ searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2077
2063
  /**
2078
2064
  * No description
2079
2065
  *
@@ -2095,7 +2081,7 @@ export class Api extends HttpClient {
2095
2081
  * @secure
2096
2082
  * @response `200` `FormVersion` OK
2097
2083
  */
2098
- createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2084
+ createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2099
2085
  /**
2100
2086
  * No description
2101
2087
  *
@@ -2117,7 +2103,7 @@ export class Api extends HttpClient {
2117
2103
  * @secure
2118
2104
  * @response `200` `FormVersion` OK
2119
2105
  */
2120
- replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2106
+ replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2121
2107
  /**
2122
2108
  * No description
2123
2109
  *
@@ -2163,7 +2149,7 @@ export class Api extends HttpClient {
2163
2149
  * @response `200` `string` OK
2164
2150
  * @response `422` `UnprocessableEntity` Unprocessable Content
2165
2151
  */
2166
- updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2152
+ updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2167
2153
  /**
2168
2154
  * No description
2169
2155
  *
@@ -2174,7 +2160,7 @@ export class Api extends HttpClient {
2174
2160
  * @secure
2175
2161
  * @response `200` `GetReport` OK
2176
2162
  */
2177
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2163
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2178
2164
  /**
2179
2165
  * No description
2180
2166
  *
@@ -2188,7 +2174,7 @@ export class Api extends HttpClient {
2188
2174
  * @response `422` `UnprocessableEntity` Unprocessable Content
2189
2175
  * @response `423` `UnprocessableEntity` Locked
2190
2176
  */
2191
- createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2177
+ createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2192
2178
  /**
2193
2179
  * No description
2194
2180
  *
@@ -2201,7 +2187,7 @@ export class Api extends HttpClient {
2201
2187
  * @response `422` `UnprocessableEntity` Unprocessable Content
2202
2188
  * @response `423` `UnprocessableEntity` Locked
2203
2189
  */
2204
- createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2190
+ createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2205
2191
  /**
2206
2192
  * No description
2207
2193
  *
@@ -2213,7 +2199,7 @@ export class Api extends HttpClient {
2213
2199
  * @response `200` `string` OK
2214
2200
  * @response `422` `UnprocessableEntity` Unprocessable Content
2215
2201
  */
2216
- updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2202
+ updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2217
2203
  /**
2218
2204
  * No description
2219
2205
  *
@@ -2226,7 +2212,7 @@ export class Api extends HttpClient {
2226
2212
  * @response `202` `string` Accepted
2227
2213
  * @response `422` `UnprocessableEntity` Unprocessable Content
2228
2214
  */
2229
- 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)),
2215
+ updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2230
2216
  /**
2231
2217
  * No description
2232
2218
  *
@@ -2317,7 +2303,7 @@ export class Api extends HttpClient {
2317
2303
  * @secure
2318
2304
  * @response `200` `ListingFile` OK
2319
2305
  */
2320
- 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)),
2306
+ 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)),
2321
2307
  /**
2322
2308
  * No description
2323
2309
  *
@@ -2328,7 +2314,7 @@ export class Api extends HttpClient {
2328
2314
  * @secure
2329
2315
  * @response `200` `ListingFile` OK
2330
2316
  */
2331
- 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)),
2317
+ 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)),
2332
2318
  /**
2333
2319
  * No description
2334
2320
  *
@@ -2350,7 +2336,7 @@ export class Api extends HttpClient {
2350
2336
  * @secure
2351
2337
  * @response `200` `ListingPhoto` OK
2352
2338
  */
2353
- 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)),
2339
+ 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)),
2354
2340
  /**
2355
2341
  * No description
2356
2342
  *
@@ -2361,7 +2347,7 @@ export class Api extends HttpClient {
2361
2347
  * @secure
2362
2348
  * @response `200` `(ListingPhoto)[]` OK
2363
2349
  */
2364
- 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)),
2350
+ 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)),
2365
2351
  /**
2366
2352
  * No description
2367
2353
  *
@@ -2394,7 +2380,7 @@ export class Api extends HttpClient {
2394
2380
  * @secure
2395
2381
  * @response `201` `Listing` Created
2396
2382
  */
2397
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2383
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2398
2384
  /**
2399
2385
  * No description
2400
2386
  *
@@ -2427,7 +2413,7 @@ export class Api extends HttpClient {
2427
2413
  * @secure
2428
2414
  * @response `200` `Listing` OK
2429
2415
  */
2430
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2416
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2431
2417
  /**
2432
2418
  * No description
2433
2419
  *
@@ -2449,7 +2435,7 @@ export class Api extends HttpClient {
2449
2435
  * @secure
2450
2436
  * @response `200` `ListingPaginated` OK
2451
2437
  */
2452
- 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)),
2438
+ 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)),
2453
2439
  /**
2454
2440
  * No description
2455
2441
  *
@@ -2460,7 +2446,7 @@ export class Api extends HttpClient {
2460
2446
  * @secure
2461
2447
  * @response `200` `File` OK
2462
2448
  */
2463
- 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)),
2449
+ 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)),
2464
2450
  /**
2465
2451
  * No description
2466
2452
  *
@@ -2506,7 +2492,7 @@ export class Api extends HttpClient {
2506
2492
  * @response `422` `UnprocessableEntity` Unprocessable Content
2507
2493
  * @response `423` `UnprocessableEntity` Locked
2508
2494
  */
2509
- 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)),
2495
+ 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)),
2510
2496
  /**
2511
2497
  * No description
2512
2498
  *
@@ -2530,7 +2516,7 @@ export class Api extends HttpClient {
2530
2516
  * @response `422` `UnprocessableEntity` Unprocessable Content
2531
2517
  * @response `423` `UnprocessableEntity` Locked
2532
2518
  */
2533
- 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)),
2519
+ 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)),
2534
2520
  /**
2535
2521
  * No description
2536
2522
  *
@@ -2553,7 +2539,7 @@ export class Api extends HttpClient {
2553
2539
  * @response `204` `void` No Content
2554
2540
  * @response `422` `UnprocessableEntity` Unprocessable Content
2555
2541
  */
2556
- 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)),
2542
+ 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)),
2557
2543
  /**
2558
2544
  * No description
2559
2545
  *
@@ -2590,7 +2576,7 @@ export class Api extends HttpClient {
2590
2576
  * @response `400` `ProblemDetails` Bad Request
2591
2577
  * @response `422` `ProblemDetails` Unprocessable Content
2592
2578
  */
2593
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2579
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2594
2580
  /**
2595
2581
  * No description
2596
2582
  *
@@ -2604,7 +2590,7 @@ export class Api extends HttpClient {
2604
2590
  * @response `404` `ProblemDetails` Not Found
2605
2591
  * @response `422` `ProblemDetails` Unprocessable Content
2606
2592
  */
2607
- 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)),
2593
+ 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)),
2608
2594
  /**
2609
2595
  * No description
2610
2596
  *
@@ -2638,7 +2624,7 @@ export class Api extends HttpClient {
2638
2624
  * @secure
2639
2625
  * @response `201` `(string)[]` Created
2640
2626
  */
2641
- 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)),
2627
+ 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)),
2642
2628
  /**
2643
2629
  * No description
2644
2630
  *
@@ -2662,7 +2648,7 @@ export class Api extends HttpClient {
2662
2648
  * @response `409` `ProblemDetails` Conflict
2663
2649
  * @response `422` `ProblemDetails` Unprocessable Content
2664
2650
  */
2665
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2651
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2666
2652
  /**
2667
2653
  * No description
2668
2654
  *
@@ -2689,7 +2675,7 @@ export class Api extends HttpClient {
2689
2675
  * @response `409` `ProblemDetails` Conflict
2690
2676
  * @response `422` `ProblemDetails` Unprocessable Content
2691
2677
  */
2692
- 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)),
2678
+ 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)),
2693
2679
  /**
2694
2680
  * No description
2695
2681
  *
@@ -2764,7 +2750,7 @@ export class Api extends HttpClient {
2764
2750
  * @response `200` `Record<string,string>` OK
2765
2751
  * @response `400` `ProblemDetails` Bad Request
2766
2752
  */
2767
- 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)),
2753
+ 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)),
2768
2754
  /**
2769
2755
  * No description
2770
2756
  *
@@ -2775,7 +2761,7 @@ export class Api extends HttpClient {
2775
2761
  * @secure
2776
2762
  * @response `200` `LoanDocumentSearchPaginated` OK
2777
2763
  */
2778
- 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)),
2764
+ searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2779
2765
  /**
2780
2766
  * @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).
2781
2767
  *
@@ -2786,7 +2772,7 @@ export class Api extends HttpClient {
2786
2772
  * @secure
2787
2773
  * @response `200` `(DocumentFolder)[]` OK
2788
2774
  */
2789
- 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)),
2775
+ getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2790
2776
  /**
2791
2777
  * No description
2792
2778
  *
@@ -2795,7 +2781,7 @@ export class Api extends HttpClient {
2795
2781
  * @summary Download By ID
2796
2782
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2797
2783
  * @secure
2798
- * @response `200` `Blob` OK
2784
+ * @response `200` `string` OK
2799
2785
  * @response `404` `ProblemDetails` Not Found
2800
2786
  */
2801
2787
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2811,7 +2797,7 @@ export class Api extends HttpClient {
2811
2797
  * @response `404` `ProblemDetails` Not Found
2812
2798
  * @response `422` `UnprocessableEntity` Unprocessable Content
2813
2799
  */
2814
- 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)),
2800
+ 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)),
2815
2801
  /**
2816
2802
  * No description
2817
2803
  *
@@ -2835,7 +2821,7 @@ export class Api extends HttpClient {
2835
2821
  * @secure
2836
2822
  * @response `200` `DocumentDataRequest` OK
2837
2823
  */
2838
- 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)),
2824
+ 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)),
2839
2825
  /**
2840
2826
  * No description
2841
2827
  *
@@ -2848,7 +2834,7 @@ export class Api extends HttpClient {
2848
2834
  * @response `400` `ProblemDetails` Bad Request
2849
2835
  * @response `404` `ProblemDetails` Not Found
2850
2836
  */
2851
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2837
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2852
2838
  /**
2853
2839
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2854
2840
  *
@@ -2873,7 +2859,7 @@ export class Api extends HttpClient {
2873
2859
  * @response `404` `ProblemDetails` Not Found
2874
2860
  * @response `422` `UnprocessableEntity` Unprocessable Content
2875
2861
  */
2876
- classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2862
+ classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2877
2863
  /**
2878
2864
  * @description Re-attempts to push a failed document to LOS
2879
2865
  *
@@ -2897,7 +2883,7 @@ export class Api extends HttpClient {
2897
2883
  * @secure
2898
2884
  * @response `201` `Draft` Created
2899
2885
  */
2900
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2886
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2901
2887
  /**
2902
2888
  * No description
2903
2889
  *
@@ -2930,7 +2916,7 @@ export class Api extends HttpClient {
2930
2916
  * @secure
2931
2917
  * @response `200` `Draft` OK
2932
2918
  */
2933
- 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)),
2919
+ 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)),
2934
2920
  /**
2935
2921
  * No description
2936
2922
  *
@@ -2952,7 +2938,7 @@ export class Api extends HttpClient {
2952
2938
  * @secure
2953
2939
  * @response `201` `DraftContentPaginated` Created
2954
2940
  */
2955
- 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)),
2941
+ 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)),
2956
2942
  /**
2957
2943
  * No description
2958
2944
  *
@@ -2963,7 +2949,7 @@ export class Api extends HttpClient {
2963
2949
  * @secure
2964
2950
  * @response `200` `Draft` OK
2965
2951
  */
2966
- 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)),
2952
+ 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)),
2967
2953
  /**
2968
2954
  * No description
2969
2955
  *
@@ -2996,7 +2982,7 @@ export class Api extends HttpClient {
2996
2982
  * @secure
2997
2983
  * @response `201` `LoanImport` Created
2998
2984
  */
2999
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2985
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3000
2986
  /**
3001
2987
  * No description
3002
2988
  *
@@ -3042,7 +3028,7 @@ export class Api extends HttpClient {
3042
3028
  * @response `200` `(Invite)[]` OK
3043
3029
  * @response `404` `ProblemDetails` Not Found
3044
3030
  */
3045
- 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)),
3031
+ 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)),
3046
3032
  /**
3047
3033
  * No description
3048
3034
  *
@@ -3053,7 +3039,7 @@ export class Api extends HttpClient {
3053
3039
  * @secure
3054
3040
  * @response `200` `LoanLogPaginated` OK
3055
3041
  */
3056
- 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)),
3042
+ searchLoanLogs: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3057
3043
  /**
3058
3044
  * No description
3059
3045
  *
@@ -3078,7 +3064,7 @@ export class Api extends HttpClient {
3078
3064
  * @response `400` `ProblemDetails` Bad Request
3079
3065
  * @response `404` `ProblemDetails` Not Found
3080
3066
  */
3081
- 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)),
3067
+ 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)),
3082
3068
  /**
3083
3069
  * No description
3084
3070
  *
@@ -3091,7 +3077,7 @@ export class Api extends HttpClient {
3091
3077
  * @response `400` `ProblemDetails` Bad Request
3092
3078
  * @response `404` `ProblemDetails` Not Found
3093
3079
  */
3094
- sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3080
+ sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3095
3081
  /**
3096
3082
  * No description
3097
3083
  *
@@ -3113,7 +3099,7 @@ export class Api extends HttpClient {
3113
3099
  * @secure
3114
3100
  * @response `200` `BranchUserPaginated` OK
3115
3101
  */
3116
- 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)),
3102
+ 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)),
3117
3103
  /**
3118
3104
  * No description
3119
3105
  *
@@ -3136,7 +3122,7 @@ export class Api extends HttpClient {
3136
3122
  * @response `200` `SiteConfiguration` OK
3137
3123
  * @response `422` `UnprocessableEntity` Unprocessable Content
3138
3124
  */
3139
- 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)),
3125
+ 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)),
3140
3126
  /**
3141
3127
  * No description
3142
3128
  *
@@ -3159,7 +3145,7 @@ export class Api extends HttpClient {
3159
3145
  * @response `200` `SiteConfiguration` OK
3160
3146
  * @response `422` `UnprocessableEntity` Unprocessable Content
3161
3147
  */
3162
- 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)),
3148
+ replaceLoanOfficerSiteConfiguration: (loanOfficerId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3163
3149
  /**
3164
3150
  * No description
3165
3151
  *
@@ -3170,7 +3156,7 @@ export class Api extends HttpClient {
3170
3156
  * @secure
3171
3157
  * @response `200` `LoanQueuePaginated` OK
3172
3158
  */
3173
- 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)),
3159
+ 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)),
3174
3160
  /**
3175
3161
  * No description
3176
3162
  *
@@ -3194,7 +3180,7 @@ export class Api extends HttpClient {
3194
3180
  * @response `200` `LoanQueueWithData` OK
3195
3181
  * @response `404` `ProblemDetails` Not Found
3196
3182
  */
3197
- 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)),
3183
+ 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)),
3198
3184
  /**
3199
3185
  * No description
3200
3186
  *
@@ -3255,7 +3241,7 @@ export class Api extends HttpClient {
3255
3241
  * @response `401` `ProblemDetails` Unauthorized
3256
3242
  * @response `403` `ProblemDetails` Forbidden
3257
3243
  */
3258
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3244
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3259
3245
  /**
3260
3246
  * No description
3261
3247
  *
@@ -3266,7 +3252,7 @@ export class Api extends HttpClient {
3266
3252
  * @secure
3267
3253
  * @response `200` `LoanListPaginated` OK
3268
3254
  */
3269
- 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)),
3255
+ 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)),
3270
3256
  /**
3271
3257
  * No description
3272
3258
  *
@@ -3282,7 +3268,7 @@ export class Api extends HttpClient {
3282
3268
  * @response `404` `ProblemDetails` Not Found
3283
3269
  * @response `409` `any` Conflict
3284
3270
  */
3285
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3271
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
3286
3272
  /**
3287
3273
  * No description
3288
3274
  *
@@ -3344,7 +3330,7 @@ export class Api extends HttpClient {
3344
3330
  * @response `400` `ProblemDetails` Bad Request
3345
3331
  * @response `404` `ProblemDetails` Not Found
3346
3332
  */
3347
- 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)),
3333
+ 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)),
3348
3334
  /**
3349
3335
  * No description
3350
3336
  *
@@ -3356,7 +3342,7 @@ export class Api extends HttpClient {
3356
3342
  * @response `200` `TaskCommentPaginated` OK
3357
3343
  * @response `404` `ProblemDetails` Not Found
3358
3344
  */
3359
- 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)),
3345
+ searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3360
3346
  /**
3361
3347
  * No description
3362
3348
  *
@@ -3380,7 +3366,7 @@ export class Api extends HttpClient {
3380
3366
  * @response `201` `TaskComment` Created
3381
3367
  * @response `404` `ProblemDetails` Not Found
3382
3368
  */
3383
- 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)),
3369
+ 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)),
3384
3370
  /**
3385
3371
  * No description
3386
3372
  *
@@ -3392,7 +3378,7 @@ export class Api extends HttpClient {
3392
3378
  * @response `200` `TaskComment` OK
3393
3379
  * @response `404` `ProblemDetails` Not Found
3394
3380
  */
3395
- 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)),
3381
+ replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3396
3382
  /**
3397
3383
  * No description
3398
3384
  *
@@ -3417,7 +3403,7 @@ export class Api extends HttpClient {
3417
3403
  * @response `404` `ProblemDetails` Not Found
3418
3404
  * @response `422` `UnprocessableEntity` Unprocessable Content
3419
3405
  */
3420
- 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)),
3406
+ 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)),
3421
3407
  /**
3422
3408
  * No description
3423
3409
  *
@@ -3431,7 +3417,7 @@ export class Api extends HttpClient {
3431
3417
  * @response `404` `ProblemDetails` Not Found
3432
3418
  * @response `422` `ProblemDetails` Unprocessable Content
3433
3419
  */
3434
- sendOutstandingLoanTaskNotification: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3420
+ sendOutstandingLoanTaskNotification: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3435
3421
  /**
3436
3422
  * No description
3437
3423
  *
@@ -3444,7 +3430,7 @@ export class Api extends HttpClient {
3444
3430
  * @response `400` `ProblemDetails` Bad Request
3445
3431
  * @response `404` `ProblemDetails` Not Found
3446
3432
  */
3447
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3433
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3448
3434
  /**
3449
3435
  * @description Search tasks across all loans
3450
3436
  *
@@ -3455,7 +3441,7 @@ export class Api extends HttpClient {
3455
3441
  * @secure
3456
3442
  * @response `200` `UserLoanTaskPaginated` OK
3457
3443
  */
3458
- 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)),
3444
+ 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)),
3459
3445
  /**
3460
3446
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3461
3447
  *
@@ -3467,7 +3453,7 @@ export class Api extends HttpClient {
3467
3453
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3468
3454
  * @response `422` `UnprocessableEntity` Unprocessable Content
3469
3455
  */
3470
- 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)),
3456
+ 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)),
3471
3457
  /**
3472
3458
  * No description
3473
3459
  *
@@ -3515,7 +3501,7 @@ export class Api extends HttpClient {
3515
3501
  * @response `201` `UserLoanTask` Created
3516
3502
  * @response `404` `ProblemDetails` Not Found
3517
3503
  */
3518
- 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)),
3504
+ 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)),
3519
3505
  /**
3520
3506
  * No description
3521
3507
  *
@@ -3527,7 +3513,7 @@ export class Api extends HttpClient {
3527
3513
  * @response `201` `(UserLoanTask)[]` Created
3528
3514
  * @response `404` `ProblemDetails` Not Found
3529
3515
  */
3530
- 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)),
3516
+ 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)),
3531
3517
  /**
3532
3518
  * No description
3533
3519
  *
@@ -3539,7 +3525,7 @@ export class Api extends HttpClient {
3539
3525
  * @response `200` `UserLoanTask` OK
3540
3526
  * @response `404` `ProblemDetails` Not Found
3541
3527
  */
3542
- 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)),
3528
+ 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)),
3543
3529
  /**
3544
3530
  * No description
3545
3531
  *
@@ -3598,7 +3584,7 @@ export class Api extends HttpClient {
3598
3584
  * @secure
3599
3585
  * @response `201` `LoanUser` Created
3600
3586
  */
3601
- 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)),
3587
+ 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)),
3602
3588
  /**
3603
3589
  * No description
3604
3590
  *
@@ -3631,7 +3617,7 @@ export class Api extends HttpClient {
3631
3617
  * @secure
3632
3618
  * @response `200` `LosOperationTrackingPaginated` OK
3633
3619
  */
3634
- 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)),
3620
+ 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)),
3635
3621
  /**
3636
3622
  * No description
3637
3623
  *
@@ -3654,7 +3640,7 @@ export class Api extends HttpClient {
3654
3640
  * @response `201` `MilestoneConfiguration` Created
3655
3641
  * @response `422` `UnprocessableEntity` Unprocessable Content
3656
3642
  */
3657
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3643
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3658
3644
  /**
3659
3645
  * No description
3660
3646
  *
@@ -3679,7 +3665,7 @@ export class Api extends HttpClient {
3679
3665
  * @response `404` `Error` Not Found
3680
3666
  * @response `422` `UnprocessableEntity` Unprocessable Content
3681
3667
  */
3682
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3668
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3683
3669
  /**
3684
3670
  * No description
3685
3671
  *
@@ -3705,7 +3691,7 @@ export class Api extends HttpClient {
3705
3691
  * @response `404` `ProblemDetails` Not Found
3706
3692
  * @response `422` `ProblemDetails` Unprocessable Content
3707
3693
  */
3708
- 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)),
3694
+ 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)),
3709
3695
  /**
3710
3696
  * No description
3711
3697
  *
@@ -3717,7 +3703,7 @@ export class Api extends HttpClient {
3717
3703
  * @response `200` `MonthlyPaymentCalculator` OK
3718
3704
  * @response `422` `ProblemDetails` Unprocessable Content
3719
3705
  */
3720
- 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)),
3706
+ 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)),
3721
3707
  /**
3722
3708
  * No description
3723
3709
  *
@@ -3729,7 +3715,7 @@ export class Api extends HttpClient {
3729
3715
  * @response `200` `AffordabilityCalculator` OK
3730
3716
  * @response `422` `ProblemDetails` Unprocessable Content
3731
3717
  */
3732
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3718
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3733
3719
  /**
3734
3720
  * No description
3735
3721
  *
@@ -3741,7 +3727,7 @@ export class Api extends HttpClient {
3741
3727
  * @response `200` `LoanComparisonCalculator` OK
3742
3728
  * @response `422` `ProblemDetails` Unprocessable Content
3743
3729
  */
3744
- 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)),
3730
+ 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)),
3745
3731
  /**
3746
3732
  * No description
3747
3733
  *
@@ -3753,7 +3739,7 @@ export class Api extends HttpClient {
3753
3739
  * @response `200` `RefinanceCalculator` OK
3754
3740
  * @response `422` `ProblemDetails` Unprocessable Content
3755
3741
  */
3756
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3742
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3757
3743
  /**
3758
3744
  * No description
3759
3745
  *
@@ -3776,7 +3762,7 @@ export class Api extends HttpClient {
3776
3762
  * @response `201` `NotificationTemplate` Created
3777
3763
  * @response `422` `UnprocessableEntity` Unprocessable Content
3778
3764
  */
3779
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3765
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3780
3766
  /**
3781
3767
  * No description
3782
3768
  *
@@ -3787,7 +3773,7 @@ export class Api extends HttpClient {
3787
3773
  * @secure
3788
3774
  * @response `200` `NotificationTemplateBasePaginated` OK
3789
3775
  */
3790
- 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)),
3776
+ 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)),
3791
3777
  /**
3792
3778
  * No description
3793
3779
  *
@@ -3810,7 +3796,7 @@ export class Api extends HttpClient {
3810
3796
  * @response `200` `NotificationTemplate` OK
3811
3797
  * @response `422` `UnprocessableEntity` Unprocessable Content
3812
3798
  */
3813
- 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)),
3799
+ 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)),
3814
3800
  /**
3815
3801
  * No description
3816
3802
  *
@@ -3854,7 +3840,7 @@ export class Api extends HttpClient {
3854
3840
  * @secure
3855
3841
  * @response `200` `NotificationTemplateVersion` OK
3856
3842
  */
3857
- 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)),
3843
+ 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)),
3858
3844
  /**
3859
3845
  * No description
3860
3846
  *
@@ -3876,7 +3862,7 @@ export class Api extends HttpClient {
3876
3862
  * @secure
3877
3863
  * @response `200` `NotificationTemplateVersion` OK
3878
3864
  */
3879
- 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)),
3865
+ 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)),
3880
3866
  /**
3881
3867
  * No description
3882
3868
  *
@@ -3909,7 +3895,7 @@ export class Api extends HttpClient {
3909
3895
  * @secure
3910
3896
  * @response `200` `BranchUserPaginated` OK
3911
3897
  */
3912
- 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)),
3898
+ 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)),
3913
3899
  /**
3914
3900
  * No description
3915
3901
  *
@@ -3932,7 +3918,7 @@ export class Api extends HttpClient {
3932
3918
  * @response `200` `SiteConfiguration` OK
3933
3919
  * @response `422` `UnprocessableEntity` Unprocessable Content
3934
3920
  */
3935
- 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)),
3921
+ 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)),
3936
3922
  /**
3937
3923
  * No description
3938
3924
  *
@@ -3955,7 +3941,7 @@ export class Api extends HttpClient {
3955
3941
  * @response `200` `SiteConfiguration` OK
3956
3942
  * @response `422` `UnprocessableEntity` Unprocessable Content
3957
3943
  */
3958
- 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)),
3944
+ replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3959
3945
  /**
3960
3946
  * No description
3961
3947
  *
@@ -3979,7 +3965,7 @@ export class Api extends HttpClient {
3979
3965
  * @response `200` `SiteConfigurationByUrl` OK
3980
3966
  * @response `422` `UnprocessableEntity` Unprocessable Content
3981
3967
  */
3982
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3968
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3983
3969
  /**
3984
3970
  * No description
3985
3971
  *
@@ -4004,7 +3990,7 @@ export class Api extends HttpClient {
4004
3990
  * @response `200` `SiteConfiguration` OK
4005
3991
  * @response `422` `UnprocessableEntity` Unprocessable Content
4006
3992
  */
4007
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3993
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4008
3994
  /**
4009
3995
  * No description
4010
3996
  *
@@ -4028,7 +4014,7 @@ export class Api extends HttpClient {
4028
4014
  * @response `200` `SiteConfigurationSummaryPaginated` OK
4029
4015
  * @response `422` `UnprocessableEntity` Unprocessable Content
4030
4016
  */
4031
- 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)),
4017
+ 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)),
4032
4018
  /**
4033
4019
  * No description
4034
4020
  *
@@ -4120,7 +4106,7 @@ export class Api extends HttpClient {
4120
4106
  * @secure
4121
4107
  * @response `200` `GetForm` OK
4122
4108
  */
4123
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4109
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4124
4110
  /**
4125
4111
  * No description
4126
4112
  *
@@ -4143,7 +4129,7 @@ export class Api extends HttpClient {
4143
4129
  * @response `200` `(SocialSurveyRecord)[]` OK
4144
4130
  * @response `422` `UnprocessableEntity` Unprocessable Content
4145
4131
  */
4146
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4132
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4147
4133
  /**
4148
4134
  * No description
4149
4135
  *
@@ -4166,7 +4152,7 @@ export class Api extends HttpClient {
4166
4152
  * @secure
4167
4153
  * @response `201` `Task` Created
4168
4154
  */
4169
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4155
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4170
4156
  /**
4171
4157
  * No description
4172
4158
  *
@@ -4190,7 +4176,7 @@ export class Api extends HttpClient {
4190
4176
  * @response `200` `Task` OK
4191
4177
  * @response `404` `ProblemDetails` Not Found
4192
4178
  */
4193
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4179
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4194
4180
  /**
4195
4181
  * No description
4196
4182
  *
@@ -4213,7 +4199,7 @@ export class Api extends HttpClient {
4213
4199
  * @secure
4214
4200
  * @response `200` `TaskPaginated` OK
4215
4201
  */
4216
- 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)),
4202
+ 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)),
4217
4203
  /**
4218
4204
  * No description
4219
4205
  *
@@ -4223,7 +4209,7 @@ export class Api extends HttpClient {
4223
4209
  * @secure
4224
4210
  * @response `200` `void` OK
4225
4211
  */
4226
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4212
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4227
4213
  /**
4228
4214
  * No description
4229
4215
  *
@@ -4234,7 +4220,7 @@ export class Api extends HttpClient {
4234
4220
  * @secure
4235
4221
  * @response `200` `EncompassRequestLogPaginated` OK
4236
4222
  */
4237
- 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)),
4223
+ searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4238
4224
  /**
4239
4225
  * No description
4240
4226
  *
@@ -4257,7 +4243,7 @@ export class Api extends HttpClient {
4257
4243
  * @secure
4258
4244
  * @response `201` `LosCredentials` Created
4259
4245
  */
4260
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4246
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4261
4247
  /**
4262
4248
  * No description
4263
4249
  *
@@ -4268,7 +4254,7 @@ export class Api extends HttpClient {
4268
4254
  * @secure
4269
4255
  * @response `200` `EncompassCredentialsDetail` OK
4270
4256
  */
4271
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4257
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4272
4258
  /**
4273
4259
  * No description
4274
4260
  *
@@ -4290,7 +4276,7 @@ export class Api extends HttpClient {
4290
4276
  * @secure
4291
4277
  * @response `201` `LosWebhook` Created
4292
4278
  */
4293
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4279
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4294
4280
  /**
4295
4281
  * No description
4296
4282
  *
@@ -4312,7 +4298,7 @@ export class Api extends HttpClient {
4312
4298
  * @secure
4313
4299
  * @response `200` `LosSyncPaginated` OK
4314
4300
  */
4315
- 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)),
4301
+ searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4316
4302
  /**
4317
4303
  * No description
4318
4304
  *
@@ -4395,7 +4381,7 @@ export class Api extends HttpClient {
4395
4381
  * @response `201` `UserDevice` Created
4396
4382
  * @response `400` `ProblemDetails` Bad Request
4397
4383
  */
4398
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4384
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4399
4385
  /**
4400
4386
  * No description
4401
4387
  *
@@ -4440,7 +4426,7 @@ export class Api extends HttpClient {
4440
4426
  * @secure
4441
4427
  * @response `200` `UserDraft` OK
4442
4428
  */
4443
- 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)),
4429
+ 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)),
4444
4430
  /**
4445
4431
  * No description
4446
4432
  *
@@ -4473,7 +4459,7 @@ export class Api extends HttpClient {
4473
4459
  * @secure
4474
4460
  * @response `200` `UserGroupAccessScope` OK
4475
4461
  */
4476
- 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)),
4462
+ 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)),
4477
4463
  /**
4478
4464
  * No description
4479
4465
  *
@@ -4506,7 +4492,7 @@ export class Api extends HttpClient {
4506
4492
  * @secure
4507
4493
  * @response `200` `UserGroupMember` OK
4508
4494
  */
4509
- 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)),
4495
+ createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4510
4496
  /**
4511
4497
  * No description
4512
4498
  *
@@ -4550,7 +4536,7 @@ export class Api extends HttpClient {
4550
4536
  * @secure
4551
4537
  * @response `200` `UserGroup` OK
4552
4538
  */
4553
- 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)),
4539
+ 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)),
4554
4540
  /**
4555
4541
  * No description
4556
4542
  *
@@ -4572,7 +4558,7 @@ export class Api extends HttpClient {
4572
4558
  * @secure
4573
4559
  * @response `201` `UserGroup` Created
4574
4560
  */
4575
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4561
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4576
4562
  /**
4577
4563
  * No description
4578
4564
  *
@@ -4585,7 +4571,7 @@ export class Api extends HttpClient {
4585
4571
  * @response `404` `Error` Not Found
4586
4572
  * @response `422` `UnprocessableEntity` Unprocessable Content
4587
4573
  */
4588
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4574
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4589
4575
  /**
4590
4576
  * No description
4591
4577
  *
@@ -4598,7 +4584,7 @@ export class Api extends HttpClient {
4598
4584
  * @response `404` `Error` Not Found
4599
4585
  * @response `422` `UnprocessableEntity` Unprocessable Content
4600
4586
  */
4601
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4587
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4602
4588
  /**
4603
4589
  * No description
4604
4590
  *
@@ -4648,7 +4634,7 @@ export class Api extends HttpClient {
4648
4634
  * @response `404` `Error` Not Found
4649
4635
  * @response `422` `UnprocessableEntity` Unprocessable Content
4650
4636
  */
4651
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4637
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4652
4638
  /**
4653
4639
  * No description
4654
4640
  *
@@ -4672,7 +4658,7 @@ export class Api extends HttpClient {
4672
4658
  * @response `204` `void` No Content
4673
4659
  * @response `422` `UnprocessableEntity` Unprocessable Content
4674
4660
  */
4675
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4661
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4676
4662
  /**
4677
4663
  * No description
4678
4664
  *
@@ -4719,7 +4705,7 @@ export class Api extends HttpClient {
4719
4705
  * @secure
4720
4706
  * @response `204` `void` No Content
4721
4707
  */
4722
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4708
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4723
4709
  /**
4724
4710
  * No description
4725
4711
  *
@@ -4764,7 +4750,7 @@ export class Api extends HttpClient {
4764
4750
  * @response `200` `DetailedUser` OK
4765
4751
  * @response `422` `UnprocessableEntity` Unprocessable Content
4766
4752
  */
4767
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4753
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4768
4754
  /**
4769
4755
  * No description
4770
4756
  *
@@ -4775,7 +4761,7 @@ export class Api extends HttpClient {
4775
4761
  * @secure
4776
4762
  * @response `200` `UserPaginated` OK
4777
4763
  */
4778
- 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)),
4764
+ 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)),
4779
4765
  /**
4780
4766
  * No description
4781
4767
  *
@@ -4786,7 +4772,7 @@ export class Api extends HttpClient {
4786
4772
  * @secure
4787
4773
  * @response `200` `AdminAccessUser` OK
4788
4774
  */
4789
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4775
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4790
4776
  /**
4791
4777
  * No description
4792
4778
  *
@@ -4798,7 +4784,7 @@ export class Api extends HttpClient {
4798
4784
  * @response `200` `User` OK
4799
4785
  * @response `422` `UnprocessableEntity` Unprocessable Content
4800
4786
  */
4801
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4787
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4802
4788
  /**
4803
4789
  * No description
4804
4790
  *
@@ -4810,7 +4796,7 @@ export class Api extends HttpClient {
4810
4796
  * @response `200` `DetailedUser` OK
4811
4797
  * @response `422` `UnprocessableEntity` Unprocessable Content
4812
4798
  */
4813
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4799
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4814
4800
  /**
4815
4801
  * No description
4816
4802
  *
@@ -4844,7 +4830,7 @@ export class Api extends HttpClient {
4844
4830
  * @response `204` `void` No Content
4845
4831
  * @response `422` `UnprocessableEntity` Unprocessable Content
4846
4832
  */
4847
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4833
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4848
4834
  /**
4849
4835
  * No description
4850
4836
  *
@@ -4856,7 +4842,7 @@ export class Api extends HttpClient {
4856
4842
  * @response `204` `void` No Content
4857
4843
  * @response `422` `UnprocessableEntity` Unprocessable Content
4858
4844
  */
4859
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4845
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4860
4846
  /**
4861
4847
  * No description
4862
4848
  *
@@ -4868,7 +4854,7 @@ export class Api extends HttpClient {
4868
4854
  * @response `204` `void` No Content
4869
4855
  * @response `422` `UnprocessableEntity` Unprocessable Content
4870
4856
  */
4871
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4857
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4872
4858
  /**
4873
4859
  * No description
4874
4860
  *
@@ -4880,7 +4866,7 @@ export class Api extends HttpClient {
4880
4866
  * @response `204` `void` No Content
4881
4867
  * @response `422` `UnprocessableEntity` Unprocessable Content
4882
4868
  */
4883
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4869
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4884
4870
  /**
4885
4871
  * No description
4886
4872
  *
@@ -4904,7 +4890,7 @@ export class Api extends HttpClient {
4904
4890
  * @response `204` `void` No Content
4905
4891
  * @response `422` `UnprocessableEntity` Unprocessable Content
4906
4892
  */
4907
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4893
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4908
4894
  /**
4909
4895
  * No description
4910
4896
  *
@@ -4927,7 +4913,7 @@ export class Api extends HttpClient {
4927
4913
  * @secure
4928
4914
  * @response `200` `DetailedUser` OK
4929
4915
  */
4930
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4916
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4931
4917
  /**
4932
4918
  * @description Update the phone number If changed will send a verification code to the new number
4933
4919
  *
@@ -4938,7 +4924,7 @@ export class Api extends HttpClient {
4938
4924
  * @secure
4939
4925
  * @response `204` `DetailedUser` No Content
4940
4926
  */
4941
- 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)),
4927
+ 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)),
4942
4928
  /**
4943
4929
  * No description
4944
4930
  *
@@ -4982,7 +4968,7 @@ export class Api extends HttpClient {
4982
4968
  * @secure
4983
4969
  * @response `204` `void` No Content
4984
4970
  */
4985
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4971
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4986
4972
  /**
4987
4973
  * No description
4988
4974
  *
@@ -4993,7 +4979,7 @@ export class Api extends HttpClient {
4993
4979
  * @secure
4994
4980
  * @response `200` `GetForm` OK
4995
4981
  */
4996
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4982
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4997
4983
  };
4998
4984
  this.sso = {
4999
4985
  /**