@trii/types 3.0.0-preview.2 → 3.0.0-preview.3
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/Contacts/contacts.d.ts +4 -0
- package/dist/Media/MediaApi.d.ts +6 -4
- package/dist/Media/MediaAsset.d.ts +6 -0
- package/dist/Spaces/WorkspaceSecurityPolicy.d.ts +10 -0
- package/dist/Spaces/WorkspaceSecurityPolicy.js +2 -0
- package/dist/Spaces/index.d.ts +1 -0
- package/dist/Spaces/index.js +1 -0
- package/package.json +4 -2
|
@@ -17,6 +17,8 @@ export interface IContactInfo {
|
|
|
17
17
|
export interface IBusiness {
|
|
18
18
|
id: string;
|
|
19
19
|
spaceId: string;
|
|
20
|
+
/** A unique identifier for the contact outside of the system.*/
|
|
21
|
+
externalId?: string;
|
|
20
22
|
counters?: ICounters;
|
|
21
23
|
name: string;
|
|
22
24
|
imageUrl: string;
|
|
@@ -48,6 +50,8 @@ export interface ICounters {
|
|
|
48
50
|
export interface IContact {
|
|
49
51
|
id: string;
|
|
50
52
|
spaceId: string;
|
|
53
|
+
/** A unique identifier for the contact outside of the system.*/
|
|
54
|
+
externalId?: string;
|
|
51
55
|
counters?: ICounters;
|
|
52
56
|
name: string;
|
|
53
57
|
firstName: string;
|
package/dist/Media/MediaApi.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { MediaKind, MediaVariantKind, MediaVisibility } from './MediaAsset';
|
|
2
|
-
/** POST /api/
|
|
2
|
+
/** POST /api/v2/media/{spaceId}/uploads (MD4). */
|
|
3
3
|
export interface CreateMediaUploadRequest {
|
|
4
4
|
kind: MediaKind;
|
|
5
5
|
filename: string;
|
|
6
6
|
mimeType: string;
|
|
7
7
|
/** Bytes declarados; al completar deben coincidir. */
|
|
8
8
|
size: number;
|
|
9
|
-
/** public solo para
|
|
9
|
+
/** public solo para usos permitidos (MD9/Q02): webchat, signature, calls, forms y avatares. */
|
|
10
10
|
visibility: MediaVisibility;
|
|
11
|
-
/** messages, chat, contacts, marketing, forms, signature
|
|
11
|
+
/** messages, chat, contacts, users, marketing, forms, signature, webchat, calls. */
|
|
12
12
|
module: string;
|
|
13
|
+
/** Carpeta dentro del módulo; `avatars` en users/contacts/chat habilita public (Q02). */
|
|
14
|
+
folder?: string | null;
|
|
13
15
|
}
|
|
14
16
|
export interface CreateMediaUploadResponse {
|
|
15
17
|
mediaAssetId: string;
|
|
@@ -18,7 +20,7 @@ export interface CreateMediaUploadResponse {
|
|
|
18
20
|
uploadExpiresAt: Date;
|
|
19
21
|
requiredHeaders: Record<string, string>;
|
|
20
22
|
}
|
|
21
|
-
/** POST /api/
|
|
23
|
+
/** POST /api/v2/media/{spaceId}/access (MD2): URLs firmadas por archivo, en lote. No acepta URLs (§15.31 S4). */
|
|
22
24
|
export interface MediaAccessRequest {
|
|
23
25
|
mediaAssetIds: string[];
|
|
24
26
|
/** Imágenes remotas de emails por id (R02b); nunca por URL. */
|
|
@@ -103,6 +103,12 @@ export interface MediaAsset {
|
|
|
103
103
|
deletedBy?: string | null;
|
|
104
104
|
/** deletedAt + retención (MD10). */
|
|
105
105
|
purgeAfter?: Date | null;
|
|
106
|
+
/** Q01, interno: blob temporal de la sesión de subida (`uploads/{id}`); null tras completar. */
|
|
107
|
+
uploadBlobName?: string | null;
|
|
108
|
+
/** Q01, interno: ETag de la copia final enviada a escanear; un resultado con otro ETag se ignora. */
|
|
109
|
+
scannedEtag?: string | null;
|
|
110
|
+
/** Q02/Q03b, interno: copia en el contenedor público (solo public y ready); null tras retirarla y confirmar la purga. */
|
|
111
|
+
publicBlobName?: string | null;
|
|
106
112
|
}
|
|
107
113
|
/** Proyección pública (respuesta de completar la subida y GET del asset). */
|
|
108
114
|
export interface MediaAssetDetail {
|
package/dist/Spaces/index.d.ts
CHANGED
package/dist/Spaces/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./spaces"), exports);
|
|
18
18
|
__exportStar(require("./Dashboard"), exports);
|
|
19
|
+
__exportStar(require("./WorkspaceSecurityPolicy"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trii/types",
|
|
3
|
-
"version": "3.0.0-preview.
|
|
3
|
+
"version": "3.0.0-preview.3",
|
|
4
4
|
"description": "Types definitions for Trii projects - ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,5 +8,7 @@
|
|
|
8
8
|
"/dist"
|
|
9
9
|
],
|
|
10
10
|
"author": "Trii LLC",
|
|
11
|
-
"license": "ISC"
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"scripts": { "build": "tsc -p .", "prepublishOnly": "npm run build" },
|
|
13
|
+
"devDependencies": { "typescript": "^5.7.2" }
|
|
12
14
|
}
|