@lessly/sdk-app 52.3.0 → 53.0.0
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/_types/gen/types.gen.d.ts +14 -6
- package/package.json +2 -2
- package/src/gen/types.gen.ts +14 -6
|
@@ -80710,9 +80710,9 @@ export interface SupportAttachmentCreateInput {
|
|
|
80710
80710
|
*/
|
|
80711
80711
|
sizeBytes: number;
|
|
80712
80712
|
/**
|
|
80713
|
-
* MIME type of the file. The upload URL is signed for exactly this type, so the PUT must send the same Content-Type header
|
|
80713
|
+
* MIME type of the file, which must be one of: image/jpeg, image/png, image/gif, image/webp, image/heic, video/mp4, video/webm, video/quicktime, application/pdf, text/plain, application/zip. Exact strings only — a parameter such as "; charset=utf-8" is refused. The upload URL is signed for exactly this type, so the PUT must send the same Content-Type header, and finalize refuses the file unless its first bytes really are this type
|
|
80714
80714
|
*/
|
|
80715
|
-
contentType:
|
|
80715
|
+
contentType: ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/heic" | "video/mp4" | "video/webm" | "video/quicktime" | "application/pdf" | "text/plain" | "application/zip");
|
|
80716
80716
|
}
|
|
80717
80717
|
export interface SupportAttachmentCreateOutput {
|
|
80718
80718
|
/**
|
|
@@ -80720,9 +80720,9 @@ export interface SupportAttachmentCreateOutput {
|
|
|
80720
80720
|
*/
|
|
80721
80721
|
id: string;
|
|
80722
80722
|
/**
|
|
80723
|
-
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage. Only uploaded attachments can be attached to a message or downloaded
|
|
80723
|
+
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage and its first bytes matched the declared type. rejected: they did not, the object was deleted, and this attachment is finished — the state is terminal. Only uploaded attachments can be attached to a message or downloaded
|
|
80724
80724
|
*/
|
|
80725
|
-
status: ("pending" | "uploaded");
|
|
80725
|
+
status: ("pending" | "uploaded" | "rejected");
|
|
80726
80726
|
/**
|
|
80727
80727
|
* Display name of the file
|
|
80728
80728
|
*/
|
|
@@ -80755,6 +80755,10 @@ export interface SupportAttachmentCreateOutput {
|
|
|
80755
80755
|
* MIME type declared when the attachment was created
|
|
80756
80756
|
*/
|
|
80757
80757
|
contentType: string;
|
|
80758
|
+
/**
|
|
80759
|
+
* Why finalize refused the file — signature_mismatch, not_utf8, nul_byte or markup_in_text — or null in any state but rejected
|
|
80760
|
+
*/
|
|
80761
|
+
rejectedReason: (string | null);
|
|
80758
80762
|
/**
|
|
80759
80763
|
* ISO-8601 moment the upload URL stops working
|
|
80760
80764
|
*/
|
|
@@ -80772,9 +80776,9 @@ export interface SupportAttachmentFinalizeOutput {
|
|
|
80772
80776
|
*/
|
|
80773
80777
|
id: string;
|
|
80774
80778
|
/**
|
|
80775
|
-
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage. Only uploaded attachments can be attached to a message or downloaded
|
|
80779
|
+
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage and its first bytes matched the declared type. rejected: they did not, the object was deleted, and this attachment is finished — the state is terminal. Only uploaded attachments can be attached to a message or downloaded
|
|
80776
80780
|
*/
|
|
80777
|
-
status: ("pending" | "uploaded");
|
|
80781
|
+
status: ("pending" | "uploaded" | "rejected");
|
|
80778
80782
|
/**
|
|
80779
80783
|
* Display name of the file
|
|
80780
80784
|
*/
|
|
@@ -80807,6 +80811,10 @@ export interface SupportAttachmentFinalizeOutput {
|
|
|
80807
80811
|
* Short-lived signed URL to read the uploaded file
|
|
80808
80812
|
*/
|
|
80809
80813
|
downloadUrl: string;
|
|
80814
|
+
/**
|
|
80815
|
+
* Why finalize refused the file — signature_mismatch, not_utf8, nul_byte or markup_in_text — or null in any state but rejected
|
|
80816
|
+
*/
|
|
80817
|
+
rejectedReason: (string | null);
|
|
80810
80818
|
}
|
|
80811
80819
|
export interface SupportLabelCreateInput {
|
|
80812
80820
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "53.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -186,5 +186,5 @@
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
|
-
"sdkContentHash": "sha256:
|
|
189
|
+
"sdkContentHash": "sha256:dc82e027e676af1afc4afec2d9abca12e49b5cee38e32998d91df0e8df3d81fb"
|
|
190
190
|
}
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -75357,9 +75357,9 @@ threadId: string
|
|
|
75357
75357
|
*/
|
|
75358
75358
|
sizeBytes: number
|
|
75359
75359
|
/**
|
|
75360
|
-
* MIME type of the file. The upload URL is signed for exactly this type, so the PUT must send the same Content-Type header
|
|
75360
|
+
* MIME type of the file, which must be one of: image/jpeg, image/png, image/gif, image/webp, image/heic, video/mp4, video/webm, video/quicktime, application/pdf, text/plain, application/zip. Exact strings only — a parameter such as "; charset=utf-8" is refused. The upload URL is signed for exactly this type, so the PUT must send the same Content-Type header, and finalize refuses the file unless its first bytes really are this type
|
|
75361
75361
|
*/
|
|
75362
|
-
contentType:
|
|
75362
|
+
contentType: ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/heic" | "video/mp4" | "video/webm" | "video/quicktime" | "application/pdf" | "text/plain" | "application/zip")
|
|
75363
75363
|
}
|
|
75364
75364
|
|
|
75365
75365
|
export interface SupportAttachmentCreateOutput {
|
|
@@ -75368,9 +75368,9 @@ export interface SupportAttachmentCreateOutput {
|
|
|
75368
75368
|
*/
|
|
75369
75369
|
id: string
|
|
75370
75370
|
/**
|
|
75371
|
-
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage. Only uploaded attachments can be attached to a message or downloaded
|
|
75371
|
+
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage and its first bytes matched the declared type. rejected: they did not, the object was deleted, and this attachment is finished — the state is terminal. Only uploaded attachments can be attached to a message or downloaded
|
|
75372
75372
|
*/
|
|
75373
|
-
status: ("pending" | "uploaded")
|
|
75373
|
+
status: ("pending" | "uploaded" | "rejected")
|
|
75374
75374
|
/**
|
|
75375
75375
|
* Display name of the file
|
|
75376
75376
|
*/
|
|
@@ -75403,6 +75403,10 @@ uploadedAt: (string | null)
|
|
|
75403
75403
|
* MIME type declared when the attachment was created
|
|
75404
75404
|
*/
|
|
75405
75405
|
contentType: string
|
|
75406
|
+
/**
|
|
75407
|
+
* Why finalize refused the file — signature_mismatch, not_utf8, nul_byte or markup_in_text — or null in any state but rejected
|
|
75408
|
+
*/
|
|
75409
|
+
rejectedReason: (string | null)
|
|
75406
75410
|
/**
|
|
75407
75411
|
* ISO-8601 moment the upload URL stops working
|
|
75408
75412
|
*/
|
|
@@ -75422,9 +75426,9 @@ export interface SupportAttachmentFinalizeOutput {
|
|
|
75422
75426
|
*/
|
|
75423
75427
|
id: string
|
|
75424
75428
|
/**
|
|
75425
|
-
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage. Only uploaded attachments can be attached to a message or downloaded
|
|
75429
|
+
* pending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage and its first bytes matched the declared type. rejected: they did not, the object was deleted, and this attachment is finished — the state is terminal. Only uploaded attachments can be attached to a message or downloaded
|
|
75426
75430
|
*/
|
|
75427
|
-
status: ("pending" | "uploaded")
|
|
75431
|
+
status: ("pending" | "uploaded" | "rejected")
|
|
75428
75432
|
/**
|
|
75429
75433
|
* Display name of the file
|
|
75430
75434
|
*/
|
|
@@ -75457,6 +75461,10 @@ contentType: string
|
|
|
75457
75461
|
* Short-lived signed URL to read the uploaded file
|
|
75458
75462
|
*/
|
|
75459
75463
|
downloadUrl: string
|
|
75464
|
+
/**
|
|
75465
|
+
* Why finalize refused the file — signature_mismatch, not_utf8, nul_byte or markup_in_text — or null in any state but rejected
|
|
75466
|
+
*/
|
|
75467
|
+
rejectedReason: (string | null)
|
|
75460
75468
|
}
|
|
75461
75469
|
|
|
75462
75470
|
export interface SupportLabelCreateInput {
|