sinfactura-types 1.6.80 → 1.6.82
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/auth.d.ts +5 -1
- package/dist/support.d.ts +15 -9
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ declare global {
|
|
|
8
8
|
/** reCAPTCHA v3 token — required by the BE only after a
|
|
9
9
|
* `CAPTCHA_REQUIRED` login rejection (api#1505); otherwise omit. */
|
|
10
10
|
captchaToken?: string;
|
|
11
|
+
/** Firebase App Check token — the mobile (body-transport) step-up,
|
|
12
|
+
* required by the BE only after an `ATTESTATION_REQUIRED` login
|
|
13
|
+
* rejection (api#1855); the native equivalent of `captchaToken`. */
|
|
14
|
+
appCheckToken?: string;
|
|
11
15
|
}
|
|
12
16
|
interface Social {
|
|
13
17
|
/** REQUIRED on the wire (the BE rejects an empty/missing token) —
|
|
@@ -27,7 +31,7 @@ declare global {
|
|
|
27
31
|
interface Recover {
|
|
28
32
|
email: string;
|
|
29
33
|
}
|
|
30
|
-
type LoginErrorCode = 'WRONG_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'ACCOUNT_DISABLED' | 'CAPTCHA_REQUIRED' | 'CAPTCHA_INVALID';
|
|
34
|
+
type LoginErrorCode = 'WRONG_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'ACCOUNT_DISABLED' | 'CAPTCHA_REQUIRED' | 'CAPTCHA_INVALID' | 'ATTESTATION_REQUIRED' | 'ATTESTATION_INVALID';
|
|
31
35
|
interface AccountLockedResponse {
|
|
32
36
|
error: 'ACCOUNT_LOCKED';
|
|
33
37
|
retryAfterSeconds: number;
|
package/dist/support.d.ts
CHANGED
|
@@ -16,6 +16,21 @@ declare global {
|
|
|
16
16
|
size: number;
|
|
17
17
|
downloadUrl?: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Inbound file attachment on support create/reply bodies — tenant
|
|
21
|
+
* `POST /support` and agent `PATCH /platform/support/{storeId}/{supportId}`.
|
|
22
|
+
* The file travels as base64 in the request body; the server uploads it to
|
|
23
|
+
* storage and persists the resolved `SupportFileAttachment` (api#1853).
|
|
24
|
+
*/
|
|
25
|
+
interface SupportFileAttachmentUpload {
|
|
26
|
+
kind: Extract<SupportAttachmentKind, 'image' | 'document'>;
|
|
27
|
+
/** Display name only — never part of the storage key. */
|
|
28
|
+
filename: string;
|
|
29
|
+
/** Declared MIME type; must match the server allowlist AND the actual bytes. */
|
|
30
|
+
contentType: string;
|
|
31
|
+
/** Bare base64 (no `data:` URI prefix). Decoded max 4 MiB per file and 4 MiB aggregate per request. */
|
|
32
|
+
data: string;
|
|
33
|
+
}
|
|
19
34
|
interface SupportLinkAttachment extends SupportAttachmentBase {
|
|
20
35
|
kind: 'link';
|
|
21
36
|
url: string;
|
|
@@ -29,15 +44,6 @@ declare global {
|
|
|
29
44
|
label?: string;
|
|
30
45
|
}
|
|
31
46
|
type SupportAttachment = SupportFileAttachment | SupportLinkAttachment | SupportEntityRefAttachment;
|
|
32
|
-
interface SupportAttachmentUploadTicket {
|
|
33
|
-
attachmentId: string;
|
|
34
|
-
key: string;
|
|
35
|
-
kind: 'image' | 'document';
|
|
36
|
-
upload: {
|
|
37
|
-
url: string;
|
|
38
|
-
fields: Record<string, string>;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
47
|
type SupportSlaStatus = 'ok' | 'at_risk' | 'breached';
|
|
42
48
|
interface SupportSlaTargets {
|
|
43
49
|
firstResponseHours: number;
|