@linqapp/sdk 0.38.0 → 0.39.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/CHANGELOG.md +14 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/chats/background.d.mts +88 -0
- package/resources/chats/background.d.mts.map +1 -0
- package/resources/chats/background.d.ts +88 -0
- package/resources/chats/background.d.ts.map +1 -0
- package/resources/chats/background.js +72 -0
- package/resources/chats/background.js.map +1 -0
- package/resources/chats/background.mjs +68 -0
- package/resources/chats/background.mjs.map +1 -0
- package/resources/chats/chats.d.mts +30 -12
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +30 -12
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +4 -0
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +4 -0
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +1 -0
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +1 -0
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/index.js +3 -1
- package/resources/chats/index.js.map +1 -1
- package/resources/chats/index.mjs +1 -0
- package/resources/chats/index.mjs.map +1 -1
- package/resources/chats/typing.d.mts +3 -3
- package/resources/chats/typing.d.ts +3 -3
- package/resources/chats/typing.js +3 -3
- package/resources/chats/typing.mjs +3 -3
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/webhooks.d.mts +1149 -207
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1149 -207
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +20 -0
- package/src/resources/chats/background.ts +110 -0
- package/src/resources/chats/chats.ts +32 -12
- package/src/resources/chats/index.ts +1 -0
- package/src/resources/chats/typing.ts +3 -3
- package/src/resources/index.ts +10 -0
- package/src/resources/webhooks.ts +1374 -175
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Background = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* A Chat is a conversation thread with one or more participants.
|
|
10
|
+
*
|
|
11
|
+
* To begin a chat, you must create a Chat with at least one recipient handle.
|
|
12
|
+
* Including multiple handles creates a group chat.
|
|
13
|
+
*
|
|
14
|
+
* When creating a chat, the `from` field specifies which of your
|
|
15
|
+
* authorized phone numbers the message originates from. Your authentication token grants
|
|
16
|
+
* access to one or more phone numbers, but the `from` field determines the actual sender.
|
|
17
|
+
*
|
|
18
|
+
* **Handle Format:**
|
|
19
|
+
* - Handles can be phone numbers or email addresses
|
|
20
|
+
* - Phone numbers MUST be in E.164 format (starting with +)
|
|
21
|
+
* - Phone format: `+[country code][subscriber number]`
|
|
22
|
+
* - Example phone: `+12223334444` (US), `+442071234567` (UK), `+81312345678` (Japan)
|
|
23
|
+
* - Example email: `user@example.com`
|
|
24
|
+
* - No spaces, dashes, or parentheses in phone numbers
|
|
25
|
+
*/
|
|
26
|
+
class Background extends resource_1.APIResource {
|
|
27
|
+
/**
|
|
28
|
+
* Remove the transcript background from a chat, resetting it to the default.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* await client.chats.background.remove(
|
|
33
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
remove(chatID, options) {
|
|
38
|
+
return this._client.delete((0, path_1.path) `/v3/chats/${chatID}/background`, {
|
|
39
|
+
...options,
|
|
40
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Set the transcript background for a chat.
|
|
45
|
+
*
|
|
46
|
+
* Provide one of: a **color** (a named preset or a custom 2-stop gradient), a
|
|
47
|
+
* **dynamic** animated style, or a **photo** (by URL). The request is accepted
|
|
48
|
+
* asynchronously; the terminal result arrives via the `chat.background_updated`
|
|
49
|
+
* webhook.
|
|
50
|
+
*
|
|
51
|
+
* **Group chats are supported.** Requests for RCS or SMS chats are accepted
|
|
52
|
+
* (`202`) but no background is applied and no `chat.background_updated` webhook
|
|
53
|
+
* fires.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await client.chats.background.set(
|
|
58
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
59
|
+
* { type: 'color', variant: 'mango' },
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
set(chatID, body, options) {
|
|
64
|
+
return this._client.post((0, path_1.path) `/v3/chats/${chatID}/background`, {
|
|
65
|
+
body,
|
|
66
|
+
...options,
|
|
67
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.Background = Background;
|
|
72
|
+
//# sourceMappingURL=background.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background.js","sourceRoot":"","sources":["../../src/resources/chats/background.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,aAAa,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CAAC,MAAc,EAAE,IAAyB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,aAAa,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA7CD,gCA6CC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* A Chat is a conversation thread with one or more participants.
|
|
7
|
+
*
|
|
8
|
+
* To begin a chat, you must create a Chat with at least one recipient handle.
|
|
9
|
+
* Including multiple handles creates a group chat.
|
|
10
|
+
*
|
|
11
|
+
* When creating a chat, the `from` field specifies which of your
|
|
12
|
+
* authorized phone numbers the message originates from. Your authentication token grants
|
|
13
|
+
* access to one or more phone numbers, but the `from` field determines the actual sender.
|
|
14
|
+
*
|
|
15
|
+
* **Handle Format:**
|
|
16
|
+
* - Handles can be phone numbers or email addresses
|
|
17
|
+
* - Phone numbers MUST be in E.164 format (starting with +)
|
|
18
|
+
* - Phone format: `+[country code][subscriber number]`
|
|
19
|
+
* - Example phone: `+12223334444` (US), `+442071234567` (UK), `+81312345678` (Japan)
|
|
20
|
+
* - Example email: `user@example.com`
|
|
21
|
+
* - No spaces, dashes, or parentheses in phone numbers
|
|
22
|
+
*/
|
|
23
|
+
export class Background extends APIResource {
|
|
24
|
+
/**
|
|
25
|
+
* Remove the transcript background from a chat, resetting it to the default.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* await client.chats.background.remove(
|
|
30
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
remove(chatID, options) {
|
|
35
|
+
return this._client.delete(path `/v3/chats/${chatID}/background`, {
|
|
36
|
+
...options,
|
|
37
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Set the transcript background for a chat.
|
|
42
|
+
*
|
|
43
|
+
* Provide one of: a **color** (a named preset or a custom 2-stop gradient), a
|
|
44
|
+
* **dynamic** animated style, or a **photo** (by URL). The request is accepted
|
|
45
|
+
* asynchronously; the terminal result arrives via the `chat.background_updated`
|
|
46
|
+
* webhook.
|
|
47
|
+
*
|
|
48
|
+
* **Group chats are supported.** Requests for RCS or SMS chats are accepted
|
|
49
|
+
* (`202`) but no background is applied and no `chat.background_updated` webhook
|
|
50
|
+
* fires.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* await client.chats.background.set(
|
|
55
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
56
|
+
* { type: 'color', variant: 'mango' },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
set(chatID, body, options) {
|
|
61
|
+
return this._client.post(path `/v3/chats/${chatID}/background`, {
|
|
62
|
+
body,
|
|
63
|
+
...options,
|
|
64
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=background.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background.mjs","sourceRoot":"","sources":["../../src/resources/chats/background.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,aAAa,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CAAC,MAAc,EAAE,IAAyB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,aAAa,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
|
+
import * as BackgroundAPI from "./background.mjs";
|
|
4
|
+
import { Background, BackgroundSetParams } from "./background.mjs";
|
|
3
5
|
import * as LocationAPI from "./location.mjs";
|
|
4
6
|
import { GetChatLocationResponse, Location, LocationRequestResponse } from "./location.mjs";
|
|
5
7
|
import * as MessagesAPI from "./messages.mjs";
|
|
@@ -20,6 +22,7 @@ export declare class Chats extends APIResource {
|
|
|
20
22
|
messages: MessagesAPI.Messages;
|
|
21
23
|
location: LocationAPI.Location;
|
|
22
24
|
polls: PollsAPI.Polls;
|
|
25
|
+
background: BackgroundAPI.Background;
|
|
23
26
|
/**
|
|
24
27
|
* Create a new chat with specified participants and send an initial message. The
|
|
25
28
|
* initial message is required when creating a chat.
|
|
@@ -272,9 +275,10 @@ export interface Chat {
|
|
|
272
275
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
273
276
|
* flagging.
|
|
274
277
|
*
|
|
275
|
-
* Switch on `status` to
|
|
276
|
-
*
|
|
277
|
-
* relevant section of the Chat Health guide.
|
|
278
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
279
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
280
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
281
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
278
282
|
*
|
|
279
283
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
280
284
|
* means and how to react.
|
|
@@ -309,9 +313,10 @@ export declare namespace Chat {
|
|
|
309
313
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
310
314
|
* flagging.
|
|
311
315
|
*
|
|
312
|
-
* Switch on `status` to
|
|
313
|
-
*
|
|
314
|
-
* relevant section of the Chat Health guide.
|
|
316
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
317
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
318
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
319
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
315
320
|
*
|
|
316
321
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
317
322
|
* means and how to react.
|
|
@@ -335,6 +340,11 @@ export declare namespace Chat {
|
|
|
335
340
|
* is not itself an opt-out keyword opts them back in immediately — a reply in any
|
|
336
341
|
* conversation with you counts, the same way the block does.
|
|
337
342
|
*
|
|
343
|
+
* `OPTED_OUT` marks only the conversation the keyword arrived in. The block below
|
|
344
|
+
* is wider than the mark, so a conversation still reading `HEALTHY` can be blocked
|
|
345
|
+
* as well — gate on the `403`, not on the status. Group threads are never marked
|
|
346
|
+
* and are never blocked.
|
|
347
|
+
*
|
|
338
348
|
* Linq enforces this: while a recipient is opted out, every send to them is
|
|
339
349
|
* rejected with `403` (error code `2024`) before the message is queued, across
|
|
340
350
|
* every chat and every line on your account. Nothing is delivered, including a
|
|
@@ -729,9 +739,10 @@ export declare namespace ChatCreateResponse {
|
|
|
729
739
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
730
740
|
* flagging.
|
|
731
741
|
*
|
|
732
|
-
* Switch on `status` to
|
|
733
|
-
*
|
|
734
|
-
* relevant section of the Chat Health guide.
|
|
742
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
743
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
744
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
745
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
735
746
|
*
|
|
736
747
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
737
748
|
* means and how to react.
|
|
@@ -757,9 +768,10 @@ export declare namespace ChatCreateResponse {
|
|
|
757
768
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
758
769
|
* flagging.
|
|
759
770
|
*
|
|
760
|
-
* Switch on `status` to
|
|
761
|
-
*
|
|
762
|
-
* relevant section of the Chat Health guide.
|
|
771
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
772
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
773
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
774
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
763
775
|
*
|
|
764
776
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
765
777
|
* means and how to react.
|
|
@@ -783,6 +795,11 @@ export declare namespace ChatCreateResponse {
|
|
|
783
795
|
* is not itself an opt-out keyword opts them back in immediately — a reply in any
|
|
784
796
|
* conversation with you counts, the same way the block does.
|
|
785
797
|
*
|
|
798
|
+
* `OPTED_OUT` marks only the conversation the keyword arrived in. The block below
|
|
799
|
+
* is wider than the mark, so a conversation still reading `HEALTHY` can be blocked
|
|
800
|
+
* as well — gate on the `403`, not on the status. Group threads are never marked
|
|
801
|
+
* and are never blocked.
|
|
802
|
+
*
|
|
786
803
|
* Linq enforces this: while a recipient is opted out, every send to them is
|
|
787
804
|
* rejected with `403` (error code `2024`) before the message is queued, across
|
|
788
805
|
* every chat and every line on your account. Nothing is delivered, including a
|
|
@@ -978,5 +995,6 @@ export declare namespace Chats {
|
|
|
978
995
|
export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
979
996
|
export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
|
|
980
997
|
export { Polls as Polls, type Poll as Poll, type PollEnvelope as PollEnvelope, type PollCreateParams as PollCreateParams, };
|
|
998
|
+
export { Background as Background, type BackgroundSetParams as BackgroundSetParams };
|
|
981
999
|
}
|
|
982
1000
|
//# sourceMappingURL=chats.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names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GAC1C,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACtF"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
|
+
import * as BackgroundAPI from "./background.js";
|
|
4
|
+
import { Background, BackgroundSetParams } from "./background.js";
|
|
3
5
|
import * as LocationAPI from "./location.js";
|
|
4
6
|
import { GetChatLocationResponse, Location, LocationRequestResponse } from "./location.js";
|
|
5
7
|
import * as MessagesAPI from "./messages.js";
|
|
@@ -20,6 +22,7 @@ export declare class Chats extends APIResource {
|
|
|
20
22
|
messages: MessagesAPI.Messages;
|
|
21
23
|
location: LocationAPI.Location;
|
|
22
24
|
polls: PollsAPI.Polls;
|
|
25
|
+
background: BackgroundAPI.Background;
|
|
23
26
|
/**
|
|
24
27
|
* Create a new chat with specified participants and send an initial message. The
|
|
25
28
|
* initial message is required when creating a chat.
|
|
@@ -272,9 +275,10 @@ export interface Chat {
|
|
|
272
275
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
273
276
|
* flagging.
|
|
274
277
|
*
|
|
275
|
-
* Switch on `status` to
|
|
276
|
-
*
|
|
277
|
-
* relevant section of the Chat Health guide.
|
|
278
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
279
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
280
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
281
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
278
282
|
*
|
|
279
283
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
280
284
|
* means and how to react.
|
|
@@ -309,9 +313,10 @@ export declare namespace Chat {
|
|
|
309
313
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
310
314
|
* flagging.
|
|
311
315
|
*
|
|
312
|
-
* Switch on `status` to
|
|
313
|
-
*
|
|
314
|
-
* relevant section of the Chat Health guide.
|
|
316
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
317
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
318
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
319
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
315
320
|
*
|
|
316
321
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
317
322
|
* means and how to react.
|
|
@@ -335,6 +340,11 @@ export declare namespace Chat {
|
|
|
335
340
|
* is not itself an opt-out keyword opts them back in immediately — a reply in any
|
|
336
341
|
* conversation with you counts, the same way the block does.
|
|
337
342
|
*
|
|
343
|
+
* `OPTED_OUT` marks only the conversation the keyword arrived in. The block below
|
|
344
|
+
* is wider than the mark, so a conversation still reading `HEALTHY` can be blocked
|
|
345
|
+
* as well — gate on the `403`, not on the status. Group threads are never marked
|
|
346
|
+
* and are never blocked.
|
|
347
|
+
*
|
|
338
348
|
* Linq enforces this: while a recipient is opted out, every send to them is
|
|
339
349
|
* rejected with `403` (error code `2024`) before the message is queued, across
|
|
340
350
|
* every chat and every line on your account. Nothing is delivered, including a
|
|
@@ -729,9 +739,10 @@ export declare namespace ChatCreateResponse {
|
|
|
729
739
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
730
740
|
* flagging.
|
|
731
741
|
*
|
|
732
|
-
* Switch on `status` to
|
|
733
|
-
*
|
|
734
|
-
* relevant section of the Chat Health guide.
|
|
742
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
743
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
744
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
745
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
735
746
|
*
|
|
736
747
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
737
748
|
* means and how to react.
|
|
@@ -757,9 +768,10 @@ export declare namespace ChatCreateResponse {
|
|
|
757
768
|
* `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
|
|
758
769
|
* flagging.
|
|
759
770
|
*
|
|
760
|
-
* Switch on `status` to
|
|
761
|
-
*
|
|
762
|
-
* relevant section of the Chat Health guide.
|
|
771
|
+
* Switch on `status` to surface chat and line health in your UI — the enum is the
|
|
772
|
+
* long-term contract. Each status carries a `doc_url` that deep-links to the
|
|
773
|
+
* relevant section of the Chat Health guide. To gate a send, act on the response
|
|
774
|
+
* rather than the status: a `403` is the authoritative answer.
|
|
763
775
|
*
|
|
764
776
|
* See the [Chat Health guide](/guides/chats/chat-health) for what each status
|
|
765
777
|
* means and how to react.
|
|
@@ -783,6 +795,11 @@ export declare namespace ChatCreateResponse {
|
|
|
783
795
|
* is not itself an opt-out keyword opts them back in immediately — a reply in any
|
|
784
796
|
* conversation with you counts, the same way the block does.
|
|
785
797
|
*
|
|
798
|
+
* `OPTED_OUT` marks only the conversation the keyword arrived in. The block below
|
|
799
|
+
* is wider than the mark, so a conversation still reading `HEALTHY` can be blocked
|
|
800
|
+
* as well — gate on the `403`, not on the status. Group threads are never marked
|
|
801
|
+
* and are never blocked.
|
|
802
|
+
*
|
|
786
803
|
* Linq enforces this: while a recipient is opted out, every send to them is
|
|
787
804
|
* rejected with `403` (error code `2024`) before the message is queued, across
|
|
788
805
|
* every chat and every line on your account. Nothing is delivered, including a
|
|
@@ -978,5 +995,6 @@ export declare namespace Chats {
|
|
|
978
995
|
export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
979
996
|
export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
|
|
980
997
|
export { Polls as Polls, type Poll as Poll, type PollEnvelope as PollEnvelope, type PollCreateParams as PollCreateParams, };
|
|
998
|
+
export { Background as Background, type BackgroundSetParams as BackgroundSetParams };
|
|
981
999
|
}
|
|
982
1000
|
//# sourceMappingURL=chats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,uBAAuB,EAAE,sBAAmB;AACxF,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAmB;AAC9G,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACb,0BAAuB;AACxB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,KAAK,EAAE,mBAAgB;AACtE,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,MAAM,EAAE,oBAAiB;AAClC,OAAO,KAAK,oBAAoB,gCAA6B;AAC7D,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE,iCAA8B;AAEzG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;
|
|
1
|
+
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/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K,IAAI,KAAK,EACd,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACtF"}
|
package/resources/chats/chats.js
CHANGED
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Chats = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const BackgroundAPI = tslib_1.__importStar(require("./background.js"));
|
|
8
|
+
const background_1 = require("./background.js");
|
|
7
9
|
const LocationAPI = tslib_1.__importStar(require("./location.js"));
|
|
8
10
|
const location_1 = require("./location.js");
|
|
9
11
|
const MessagesAPI = tslib_1.__importStar(require("./messages.js"));
|
|
@@ -25,6 +27,7 @@ class Chats extends resource_1.APIResource {
|
|
|
25
27
|
this.messages = new MessagesAPI.Messages(this._client);
|
|
26
28
|
this.location = new LocationAPI.Location(this._client);
|
|
27
29
|
this.polls = new PollsAPI.Polls(this._client);
|
|
30
|
+
this.background = new BackgroundAPI.Background(this._client);
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
30
33
|
* Create a new chat with specified participants and send an initial message. The
|
|
@@ -280,4 +283,5 @@ Chats.Typing = typing_1.Typing;
|
|
|
280
283
|
Chats.Messages = messages_1.Messages;
|
|
281
284
|
Chats.Location = location_1.Location;
|
|
282
285
|
Chats.Polls = polls_1.Polls;
|
|
286
|
+
Chats.Background = background_1.Background;
|
|
283
287
|
//# sourceMappingURL=chats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.js","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CAAwF;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,CAAC;AACpB,KAAK,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as BackgroundAPI from "./background.mjs";
|
|
4
|
+
import { Background } from "./background.mjs";
|
|
3
5
|
import * as LocationAPI from "./location.mjs";
|
|
4
6
|
import { Location } from "./location.mjs";
|
|
5
7
|
import * as MessagesAPI from "./messages.mjs";
|
|
@@ -21,6 +23,7 @@ export class Chats extends APIResource {
|
|
|
21
23
|
this.messages = new MessagesAPI.Messages(this._client);
|
|
22
24
|
this.location = new LocationAPI.Location(this._client);
|
|
23
25
|
this.polls = new PollsAPI.Polls(this._client);
|
|
26
|
+
this.background = new BackgroundAPI.Background(this._client);
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
29
|
* Create a new chat with specified participants and send an initial message. The
|
|
@@ -275,4 +278,5 @@ Chats.Typing = Typing;
|
|
|
275
278
|
Chats.Messages = Messages;
|
|
276
279
|
Chats.Location = Location;
|
|
277
280
|
Chats.Polls = Polls;
|
|
281
|
+
Chats.Background = Background;
|
|
278
282
|
//# sourceMappingURL=chats.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.mjs","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAA2B,QAAQ,EAA2B,uBAAmB;AACxF,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAA6D,QAAQ,EAAe,uBAAmB;AAC9G,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAKL,YAAY,GACb,2BAAuB;AACxB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAwC,KAAK,EAAE,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AAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAo0BD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACtB,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC1B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC1B,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;AACpB,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Background, type BackgroundSetParams } from "./background.mjs";
|
|
1
2
|
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.mjs";
|
|
2
3
|
export { Location, type GetChatLocationResponse, type LocationRequestResponse } from "./location.mjs";
|
|
3
4
|
export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,oBAAgB;AACjB,OAAO,EAAE,QA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EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Background, type BackgroundSetParams } from "./background.js";
|
|
1
2
|
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListChatsParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats.js";
|
|
2
3
|
export { Location, type GetChatLocationResponse, type LocationRequestResponse } from "./location.js";
|
|
3
4
|
export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,mBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,sBAAmB;AAClG,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,sBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,mBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,wBAAqB;AACpE,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,mBAAgB;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,sBAAmB;AAClG,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,sBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,mBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
|
package/resources/chats/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Typing = exports.Polls = exports.Participants = exports.Messages = exports.Location = exports.Chats = void 0;
|
|
4
|
+
exports.Typing = exports.Polls = exports.Participants = exports.Messages = exports.Location = exports.Chats = exports.Background = void 0;
|
|
5
|
+
var background_1 = require("./background.js");
|
|
6
|
+
Object.defineProperty(exports, "Background", { enumerable: true, get: function () { return background_1.Background; } });
|
|
5
7
|
var chats_1 = require("./chats.js");
|
|
6
8
|
Object.defineProperty(exports, "Chats", { enumerable: true, get: function () { return chats_1.Chats; } });
|
|
7
9
|
var location_1 = require("./location.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAgBiB;AAff,8FAAA,KAAK,OAAA;AAgBP,0CAAkG;AAAzF,oGAAA,QAAQ,OAAA;AACjB,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,oCAAqF;AAA5E,8FAAA,KAAK,OAAA;AACd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAAoE;AAA3D,wGAAA,UAAU,OAAA;AACnB,oCAgBiB;AAff,8FAAA,KAAK,OAAA;AAgBP,0CAAkG;AAAzF,oGAAA,QAAQ,OAAA;AACjB,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,oCAAqF;AAA5E,8FAAA,KAAK,OAAA;AACd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAeN,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAA8D,uBAAmB;AAClG,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAKb,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAuD,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAA4B,yBAAqB;AACpE,OAAO,EACL,KAAK,GAeN,oBAAgB;AACjB,OAAO,EAAE,QAAQ,EAA8D,uBAAmB;AAClG,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAKb,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAuD,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -41,8 +41,8 @@ export declare class Typing extends APIResource {
|
|
|
41
41
|
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
42
42
|
* indicates the request was accepted for processing.
|
|
43
43
|
*
|
|
44
|
-
* - **
|
|
45
|
-
*
|
|
44
|
+
* - **Direct and group chats:** Typing indicators work in both direct and group
|
|
45
|
+
* chats.
|
|
46
46
|
*
|
|
47
47
|
* ## Duration & keeping it visible
|
|
48
48
|
*
|
|
@@ -90,7 +90,7 @@ export declare class Typing extends APIResource {
|
|
|
90
90
|
* See the start typing endpoint (`POST /v3/chats/{chatId}/typing`) above for
|
|
91
91
|
* behavior details.
|
|
92
92
|
*
|
|
93
|
-
* **Note:**
|
|
93
|
+
* **Note:** Works in both direct and group chats.
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
96
|
* ```ts
|
|
@@ -41,8 +41,8 @@ export declare class Typing extends APIResource {
|
|
|
41
41
|
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
42
42
|
* indicates the request was accepted for processing.
|
|
43
43
|
*
|
|
44
|
-
* - **
|
|
45
|
-
*
|
|
44
|
+
* - **Direct and group chats:** Typing indicators work in both direct and group
|
|
45
|
+
* chats.
|
|
46
46
|
*
|
|
47
47
|
* ## Duration & keeping it visible
|
|
48
48
|
*
|
|
@@ -90,7 +90,7 @@ export declare class Typing extends APIResource {
|
|
|
90
90
|
* See the start typing endpoint (`POST /v3/chats/{chatId}/typing`) above for
|
|
91
91
|
* behavior details.
|
|
92
92
|
*
|
|
93
|
-
* **Note:**
|
|
93
|
+
* **Note:** Works in both direct and group chats.
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
96
|
* ```ts
|