@matech/thebigpos-sdk 3.25.0 → 3.26.0-dev-8210

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
@@ -86,7 +86,13 @@ export class HttpClient {
86
86
  const property = input[key];
87
87
  const propertyContent = property instanceof Array ? property : [property];
88
88
  for (const formItem of propertyContent) {
89
- const isFileType = formItem instanceof Blob || formItem instanceof File;
89
+ // React Native files are plain { uri, name, type } objects, not Blob/File.
90
+ const isReactNativeFile = !!formItem &&
91
+ typeof formItem === "object" &&
92
+ "uri" in formItem &&
93
+ "name" in formItem &&
94
+ "type" in formItem;
95
+ const isFileType = isReactNativeFile || formItem instanceof Blob || formItem instanceof File;
90
96
  formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
91
97
  }
92
98
  return formData;
@@ -95,7 +101,7 @@ export class HttpClient {
95
101
  }
96
102
  /**
97
103
  * @title The Big POS API
98
- * @version v3.25.0
104
+ * @version v3.26.0
99
105
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
106
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
107
  */
@@ -446,11 +452,11 @@ export class Api extends HttpClient {
446
452
  */
447
453
  getAiRequestLifecycle: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
448
454
  /**
449
- * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
455
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59. searchText matches a case-insensitive substring of the originating user's name or email, the conversation name or the loan number, or an exact conversation, request or user id.
450
456
  *
451
457
  * @tags AiAudit
452
458
  * @name GetAiAuditConversations
453
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
459
+ * @summary List conversations with their audit roll-up — origin user, loan, turns, status, tokens
454
460
  * @request GET:/api/ai/audit-conversations
455
461
  * @secure
456
462
  * @response `200` `AiConversationAuditSummaryPaginated` OK
@@ -492,6 +498,20 @@ export class Api extends HttpClient {
492
498
  * @response `429` `ProblemDetails` Too Many Requests
493
499
  */
494
500
  aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
501
+ /**
502
+ * No description
503
+ *
504
+ * @tags AiChat
505
+ * @name RejectAiPendingLoanUpdate
506
+ * @summary Reject a pending AI loan change so a new one can be proposed
507
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
508
+ * @secure
509
+ * @response `204` `void` No Content
510
+ * @response `401` `ProblemDetails` Unauthorized
511
+ * @response `404` `ProblemDetails` Not Found
512
+ * @response `429` `ProblemDetails` Too Many Requests
513
+ */
514
+ rejectAiPendingLoanUpdate: (pendingLoanUpdateId, params = {}) => this.request(Object.assign({ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`, method: "POST", secure: true }, params)),
495
515
  /**
496
516
  * No description
497
517
  *
@@ -738,6 +758,22 @@ export class Api extends HttpClient {
738
758
  * @response `400` `ProblemDetails` Bad Request
739
759
  */
740
760
  getAiPromptRuns: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs`, method: "GET", query: query, secure: true, format: "json" }, params)),
761
+ /**
762
+ * No description
763
+ *
764
+ * @tags AiPromptRun
765
+ * @name RerunAiPromptRun
766
+ * @summary Re-run the AI verification bound to a loan task
767
+ * @request POST:/api/ai/prompt-runs/rerun
768
+ * @secure
769
+ * @response `202` `void` Accepted
770
+ * @response `400` `ProblemDetails` Bad Request
771
+ * @response `404` `ProblemDetails` Not Found
772
+ * @response `409` `ProblemDetails` Conflict
773
+ * @response `429` `ProblemDetails` Too Many Requests
774
+ * @response `503` `void` Service Unavailable
775
+ */
776
+ rerunAiPromptRun: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs/rerun`, method: "POST", query: query, secure: true }, params)),
741
777
  /**
742
778
  * No description
743
779
  *
@@ -1096,6 +1132,8 @@ export class Api extends HttpClient {
1096
1132
  * @secure
1097
1133
  * @response `200` `UserDeactivated` OK
1098
1134
  * @response `422` `UnprocessableEntity` Unprocessable Content
1135
+ * @response `429` `ProblemDetails` Too Many Requests
1136
+ * @response `503` `void` Service Unavailable
1099
1137
  */
1100
1138
  getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1101
1139
  /**
@@ -1107,9 +1145,25 @@ export class Api extends HttpClient {
1107
1145
  * @request POST:/api/token/code
1108
1146
  * @secure
1109
1147
  * @response `200` `UserDeactivated` OK
1148
+ * @response `400` `ProblemDetails` Bad Request
1110
1149
  * @response `422` `UnprocessableEntity` Unprocessable Content
1150
+ * @response `429` `ProblemDetails` Too Many Requests
1111
1151
  */
1112
1152
  getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1153
+ /**
1154
+ * No description
1155
+ *
1156
+ * @tags Authentication
1157
+ * @name ResendChallengeCode
1158
+ * @summary Resend Challenge Code
1159
+ * @request POST:/api/token/code/resend
1160
+ * @secure
1161
+ * @response `204` `void` No Content
1162
+ * @response `422` `UnprocessableEntity` Unprocessable Content
1163
+ * @response `429` `ProblemDetails` Too Many Requests
1164
+ * @response `503` `void` Service Unavailable
1165
+ */
1166
+ resendChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code/resend`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
1113
1167
  /**
1114
1168
  * No description
1115
1169
  *
@@ -6189,6 +6243,21 @@ export class Api extends HttpClient {
6189
6243
  * @response `422` `UnprocessableEntity` Unprocessable Content
6190
6244
  */
6191
6245
  verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
6246
+ /**
6247
+ * No description
6248
+ *
6249
+ * @tags Users
6250
+ * @name ClearUserMfa
6251
+ * @summary Clear MFA
6252
+ * @request PUT:/api/users/{id}/mfa
6253
+ * @secure
6254
+ * @response `200` `UserMfaState` OK
6255
+ * @response `400` `ProblemDetails` Bad Request
6256
+ * @response `403` `ProblemDetails` Forbidden
6257
+ * @response `404` `ProblemDetails` Not Found
6258
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6259
+ */
6260
+ clearUserMfa: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/mfa`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6192
6261
  /**
6193
6262
  * No description
6194
6263
  *
@@ -6425,6 +6494,81 @@ export class Api extends HttpClient {
6425
6494
  * @response `204` `void` No Content
6426
6495
  */
6427
6496
  deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
6497
+ /**
6498
+ * No description
6499
+ *
6500
+ * @tags UsersMeMfa
6501
+ * @name GetMyMfa
6502
+ * @summary Get MFA
6503
+ * @request GET:/api/users/me/mfa
6504
+ * @secure
6505
+ * @response `200` `UserMfaState` OK
6506
+ * @response `401` `ProblemDetails` Unauthorized
6507
+ */
6508
+ getMyMfa: (params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa`, method: "GET", secure: true, format: "json" }, params)),
6509
+ /**
6510
+ * No description
6511
+ *
6512
+ * @tags UsersMeMfa
6513
+ * @name UpdateMyMfa
6514
+ * @summary Update MFA
6515
+ * @request PUT:/api/users/me/mfa
6516
+ * @secure
6517
+ * @response `200` `UserMfaState` OK
6518
+ * @response `400` `ProblemDetails` Bad Request
6519
+ * @response `401` `ProblemDetails` Unauthorized
6520
+ * @response `403` `ProblemDetails` Forbidden
6521
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6522
+ */
6523
+ updateMyMfa: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6524
+ /**
6525
+ * No description
6526
+ *
6527
+ * @tags UsersMeMfa
6528
+ * @name StartMyMfaEnrollment
6529
+ * @summary Start MFA Enrollment
6530
+ * @request POST:/api/users/me/mfa/enrollments
6531
+ * @secure
6532
+ * @response `200` `MfaEnrollment` OK
6533
+ * @response `400` `ProblemDetails` Bad Request
6534
+ * @response `401` `ProblemDetails` Unauthorized
6535
+ * @response `403` `ProblemDetails` Forbidden
6536
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6537
+ * @response `429` `ProblemDetails` Too Many Requests
6538
+ * @response `503` `void` Service Unavailable
6539
+ */
6540
+ startMyMfaEnrollment: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa/enrollments`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
6541
+ /**
6542
+ * No description
6543
+ *
6544
+ * @tags UsersMeMfa
6545
+ * @name ConfirmMyMfaEnrollment
6546
+ * @summary Confirm MFA Enrollment
6547
+ * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/confirm
6548
+ * @secure
6549
+ * @response `200` `UserMfaState` OK
6550
+ * @response `400` `ProblemDetails` Bad Request
6551
+ * @response `401` `ProblemDetails` Unauthorized
6552
+ * @response `403` `ProblemDetails` Forbidden
6553
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6554
+ * @response `429` `ProblemDetails` Too Many Requests
6555
+ */
6556
+ confirmMyMfaEnrollment: (enrollmentId, data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa/enrollments/${enrollmentId}/confirm`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
6557
+ /**
6558
+ * No description
6559
+ *
6560
+ * @tags UsersMeMfa
6561
+ * @name ResendMyMfaEnrollmentCode
6562
+ * @summary Resend MFA Enrollment Code
6563
+ * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/resend
6564
+ * @secure
6565
+ * @response `204` `void` No Content
6566
+ * @response `401` `ProblemDetails` Unauthorized
6567
+ * @response `403` `ProblemDetails` Forbidden
6568
+ * @response `429` `ProblemDetails` Too Many Requests
6569
+ * @response `503` `void` Service Unavailable
6570
+ */
6571
+ resendMyMfaEnrollmentCode: (enrollmentId, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa/enrollments/${enrollmentId}/resend`, method: "POST", secure: true }, params)),
6428
6572
  /**
6429
6573
  * No description
6430
6574
  *