@ixblix/sdk-js 0.4.0 → 0.4.1
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.d.ts +19 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -19,8 +19,17 @@ export interface Contact {
|
|
|
19
19
|
externalId: string;
|
|
20
20
|
name?: string;
|
|
21
21
|
metadata?: Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* LGPD consent status. Consent is memorized per company: once `GRANTED`, it
|
|
24
|
+
* is reused by every conversation with the same company and the customer is
|
|
25
|
+
* not asked again.
|
|
26
|
+
*/
|
|
22
27
|
consentStatus: ConsentStatus;
|
|
23
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Timestamp of the first time the customer granted consent for this company.
|
|
30
|
+
* Absent/null when consent was never granted.
|
|
31
|
+
*/
|
|
32
|
+
consentedAt?: string | null;
|
|
24
33
|
}
|
|
25
34
|
/** Payload used to create a conversation for a contact. */
|
|
26
35
|
export interface ContactInput {
|
|
@@ -186,6 +195,15 @@ export interface Message {
|
|
|
186
195
|
/** Present when the message carries an attached media file. */
|
|
187
196
|
mediaId?: string;
|
|
188
197
|
media?: Media;
|
|
198
|
+
/**
|
|
199
|
+
* Client-generated idempotency key, echoed back for contact-sent messages.
|
|
200
|
+
*
|
|
201
|
+
* The customer app renders an optimistic balloon before the request is
|
|
202
|
+
* answered and uses this id to reconcile it with the server-assigned message.
|
|
203
|
+
* Sending the same id twice returns the message created by the first attempt
|
|
204
|
+
* instead of creating a duplicate, which makes retries safe.
|
|
205
|
+
*/
|
|
206
|
+
clientMessageId?: string | null;
|
|
189
207
|
/** Identifier of the operator that sent this message (COMPANY-sent only). */
|
|
190
208
|
operatorUuid?: string;
|
|
191
209
|
sentAt: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixblix/sdk-js",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Official ixblix SDK for desk/CRM integrations. Create overflow conversations, exchange end-to-end encrypted messages and media, and manage company onboarding.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|