@linqapp/sdk 0.16.2 → 0.16.4
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 +16 -0
- package/package.json +1 -1
- package/resources/chats/typing.d.mts +19 -6
- package/resources/chats/typing.d.mts.map +1 -1
- package/resources/chats/typing.d.ts +19 -6
- package/resources/chats/typing.d.ts.map +1 -1
- package/resources/chats/typing.js +19 -6
- package/resources/chats/typing.js.map +1 -1
- package/resources/chats/typing.mjs +19 -6
- package/resources/chats/typing.mjs.map +1 -1
- package/resources/messages.d.mts +3 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +3 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +3 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -1
- package/src/resources/chats/typing.ts +19 -6
- package/src/resources/messages.ts +3 -0
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.4 (2026-04-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.16.3...v0.16.4](https://github.com/linq-team/linq-node/compare/v0.16.3...v0.16.4)
|
|
6
|
+
|
|
7
|
+
### Documentation
|
|
8
|
+
|
|
9
|
+
* **api:** document edit message limits (BUG-7607) ([2e6f897](https://github.com/linq-team/linq-node/commit/2e6f89795cf0930b4ffb9ce48da82e2114a0fba2))
|
|
10
|
+
|
|
11
|
+
## 0.16.3 (2026-04-14)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.16.2...v0.16.3](https://github.com/linq-team/linq-node/compare/v0.16.2...v0.16.3)
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
|
|
17
|
+
* **openapi:** document typing indicator behavior and limitations ([efa2883](https://github.com/linq-team/linq-node/commit/efa28835343cb143c48a259518ea085bb1d79af2))
|
|
18
|
+
|
|
3
19
|
## 0.16.2 (2026-04-09)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.16.1...v0.16.2](https://github.com/linq-team/linq-node/compare/v0.16.1...v0.16.2)
|
package/package.json
CHANGED
|
@@ -23,8 +23,20 @@ export declare class Typing extends APIResource {
|
|
|
23
23
|
/**
|
|
24
24
|
* Send a typing indicator to show that someone is typing in the chat.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
26
|
+
* ## Behavior & Limitations
|
|
27
|
+
*
|
|
28
|
+
* Typing indicators are best-effort signals with the following limitations:
|
|
29
|
+
*
|
|
30
|
+
* - **Active conversations only:** The recipient must have sent or received a
|
|
31
|
+
* message in this chat within the **last 5 minutes**. If the chat is inactive,
|
|
32
|
+
* the request is still accepted (`204`) but the indicator will not reach the
|
|
33
|
+
* recipient's device.
|
|
34
|
+
*
|
|
35
|
+
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
36
|
+
* indicates the request was accepted for processing.
|
|
37
|
+
*
|
|
38
|
+
* - **Group chats not supported:** Attempting to start a typing indicator in a
|
|
39
|
+
* group chat will return a `403` error.
|
|
28
40
|
*
|
|
29
41
|
* @example
|
|
30
42
|
* ```ts
|
|
@@ -37,11 +49,12 @@ export declare class Typing extends APIResource {
|
|
|
37
49
|
/**
|
|
38
50
|
* Stop the typing indicator for the chat.
|
|
39
51
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
52
|
+
* Typing indicators are automatically stopped when a message is sent, so calling
|
|
53
|
+
* this endpoint after sending a message is unnecessary.
|
|
54
|
+
*
|
|
55
|
+
* See the `POST` endpoint above for behavior details and limitations.
|
|
42
56
|
*
|
|
43
|
-
* **Note:** Group
|
|
44
|
-
* to stop a typing indicator in a group chat will return a `403` error.
|
|
57
|
+
* **Note:** Group chats are not supported and will return a `403` error.
|
|
45
58
|
*
|
|
46
59
|
* @example
|
|
47
60
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.d.mts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"typing.d.mts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOjE;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjE"}
|
|
@@ -23,8 +23,20 @@ export declare class Typing extends APIResource {
|
|
|
23
23
|
/**
|
|
24
24
|
* Send a typing indicator to show that someone is typing in the chat.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
26
|
+
* ## Behavior & Limitations
|
|
27
|
+
*
|
|
28
|
+
* Typing indicators are best-effort signals with the following limitations:
|
|
29
|
+
*
|
|
30
|
+
* - **Active conversations only:** The recipient must have sent or received a
|
|
31
|
+
* message in this chat within the **last 5 minutes**. If the chat is inactive,
|
|
32
|
+
* the request is still accepted (`204`) but the indicator will not reach the
|
|
33
|
+
* recipient's device.
|
|
34
|
+
*
|
|
35
|
+
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
36
|
+
* indicates the request was accepted for processing.
|
|
37
|
+
*
|
|
38
|
+
* - **Group chats not supported:** Attempting to start a typing indicator in a
|
|
39
|
+
* group chat will return a `403` error.
|
|
28
40
|
*
|
|
29
41
|
* @example
|
|
30
42
|
* ```ts
|
|
@@ -37,11 +49,12 @@ export declare class Typing extends APIResource {
|
|
|
37
49
|
/**
|
|
38
50
|
* Stop the typing indicator for the chat.
|
|
39
51
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
52
|
+
* Typing indicators are automatically stopped when a message is sent, so calling
|
|
53
|
+
* this endpoint after sending a message is unnecessary.
|
|
54
|
+
*
|
|
55
|
+
* See the `POST` endpoint above for behavior details and limitations.
|
|
42
56
|
*
|
|
43
|
-
* **Note:** Group
|
|
44
|
-
* to stop a typing indicator in a group chat will return a `403` error.
|
|
57
|
+
* **Note:** Group chats are not supported and will return a `403` error.
|
|
45
58
|
*
|
|
46
59
|
* @example
|
|
47
60
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOjE;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjE"}
|
|
@@ -27,8 +27,20 @@ class Typing extends resource_1.APIResource {
|
|
|
27
27
|
/**
|
|
28
28
|
* Send a typing indicator to show that someone is typing in the chat.
|
|
29
29
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* ## Behavior & Limitations
|
|
31
|
+
*
|
|
32
|
+
* Typing indicators are best-effort signals with the following limitations:
|
|
33
|
+
*
|
|
34
|
+
* - **Active conversations only:** The recipient must have sent or received a
|
|
35
|
+
* message in this chat within the **last 5 minutes**. If the chat is inactive,
|
|
36
|
+
* the request is still accepted (`204`) but the indicator will not reach the
|
|
37
|
+
* recipient's device.
|
|
38
|
+
*
|
|
39
|
+
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
40
|
+
* indicates the request was accepted for processing.
|
|
41
|
+
*
|
|
42
|
+
* - **Group chats not supported:** Attempting to start a typing indicator in a
|
|
43
|
+
* group chat will return a `403` error.
|
|
32
44
|
*
|
|
33
45
|
* @example
|
|
34
46
|
* ```ts
|
|
@@ -46,11 +58,12 @@ class Typing extends resource_1.APIResource {
|
|
|
46
58
|
/**
|
|
47
59
|
* Stop the typing indicator for the chat.
|
|
48
60
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
61
|
+
* Typing indicators are automatically stopped when a message is sent, so calling
|
|
62
|
+
* this endpoint after sending a message is unnecessary.
|
|
63
|
+
*
|
|
64
|
+
* See the `POST` endpoint above for behavior details and limitations.
|
|
51
65
|
*
|
|
52
|
-
* **Note:** Group
|
|
53
|
-
* to stop a typing indicator in a group chat will return a `403` error.
|
|
66
|
+
* **Note:** Group chats are not supported and will return a `403` error.
|
|
54
67
|
*
|
|
55
68
|
* @example
|
|
56
69
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.js","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"typing.js","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,MAAc,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,SAAS,EAAE;YACzD,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;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,SAAS,EAAE;YAC3D,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;AAxDD,wBAwDC"}
|
|
@@ -24,8 +24,20 @@ export class Typing extends APIResource {
|
|
|
24
24
|
/**
|
|
25
25
|
* Send a typing indicator to show that someone is typing in the chat.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* ## Behavior & Limitations
|
|
28
|
+
*
|
|
29
|
+
* Typing indicators are best-effort signals with the following limitations:
|
|
30
|
+
*
|
|
31
|
+
* - **Active conversations only:** The recipient must have sent or received a
|
|
32
|
+
* message in this chat within the **last 5 minutes**. If the chat is inactive,
|
|
33
|
+
* the request is still accepted (`204`) but the indicator will not reach the
|
|
34
|
+
* recipient's device.
|
|
35
|
+
*
|
|
36
|
+
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
37
|
+
* indicates the request was accepted for processing.
|
|
38
|
+
*
|
|
39
|
+
* - **Group chats not supported:** Attempting to start a typing indicator in a
|
|
40
|
+
* group chat will return a `403` error.
|
|
29
41
|
*
|
|
30
42
|
* @example
|
|
31
43
|
* ```ts
|
|
@@ -43,11 +55,12 @@ export class Typing extends APIResource {
|
|
|
43
55
|
/**
|
|
44
56
|
* Stop the typing indicator for the chat.
|
|
45
57
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
58
|
+
* Typing indicators are automatically stopped when a message is sent, so calling
|
|
59
|
+
* this endpoint after sending a message is unnecessary.
|
|
60
|
+
*
|
|
61
|
+
* See the `POST` endpoint above for behavior details and limitations.
|
|
48
62
|
*
|
|
49
|
-
* **Note:** Group
|
|
50
|
-
* to stop a typing indicator in a group chat will return a `403` error.
|
|
63
|
+
* **Note:** Group chats are not supported and will return a `403` error.
|
|
51
64
|
*
|
|
52
65
|
* @example
|
|
53
66
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.mjs","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"typing.mjs","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,MAAc,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,SAAS,EAAE;YACzD,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;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,SAAS,EAAE;YAC3D,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"}
|
package/resources/messages.d.mts
CHANGED
|
@@ -39,6 +39,9 @@ export declare class Messages extends APIResource {
|
|
|
39
39
|
/**
|
|
40
40
|
* Edit the text content of a specific part of a previously sent message.
|
|
41
41
|
*
|
|
42
|
+
* **Note:** A message can be edited up to 5 times, and only within 15 minutes of
|
|
43
|
+
* when it was originally sent.
|
|
44
|
+
*
|
|
42
45
|
* @example
|
|
43
46
|
* ```ts
|
|
44
47
|
* const message = await client.messages.update(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,E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@ export declare class Messages extends APIResource {
|
|
|
39
39
|
/**
|
|
40
40
|
* Edit the text content of a specific part of a previously sent message.
|
|
41
41
|
*
|
|
42
|
+
* **Note:** A message can be edited up to 5 times, and only within 15 minutes of
|
|
43
|
+
* when it was originally sent.
|
|
44
|
+
*
|
|
42
45
|
* @example
|
|
43
46
|
* ```ts
|
|
44
47
|
* const message = await client.messages.update(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,EAAE;OAE1E,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,EAAE;OAE1E,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OA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BAA4B;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -44,6 +44,9 @@ class Messages extends resource_1.APIResource {
|
|
|
44
44
|
/**
|
|
45
45
|
* Edit the text content of a specific part of a previously sent message.
|
|
46
46
|
*
|
|
47
|
+
* **Note:** A message can be edited up to 5 times, and only within 15 minutes of
|
|
48
|
+
* when it was originally sent.
|
|
49
|
+
*
|
|
47
50
|
* @example
|
|
48
51
|
* ```ts
|
|
49
52
|
* const message = await client.messages.update(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAA4G;AAC5G,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA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,EAAA,gBAAgB,SAAS,SAAS,EAAE,CAAA,mCAA+B,CAAA,EAAE;YACtG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9GD,4BA8GC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -41,6 +41,9 @@ export class Messages extends APIResource {
|
|
|
41
41
|
/**
|
|
42
42
|
* Edit the text content of a specific part of a previously sent message.
|
|
43
43
|
*
|
|
44
|
+
* **Note:** A message can be edited up to 5 times, and only within 15 minutes of
|
|
45
|
+
* when it was originally sent.
|
|
46
|
+
*
|
|
44
47
|
* @example
|
|
45
48
|
* ```ts
|
|
46
49
|
* const message = await client.messages.update(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,sBAAsB,EAAkD;OAC1E,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,sBAAsB,EAAkD;OAC1E,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE;YAC1D,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;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,WAAW,CACT,SAAiB,EACjB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,SAAS,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,kBAAkB,CAChB,SAAiB,EACjB,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,gBAAgB,SAAS,SAAS,EAAE,CAAA,sBAA+B,CAAA,EAAE;YACtG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -28,8 +28,20 @@ export class Typing extends APIResource {
|
|
|
28
28
|
/**
|
|
29
29
|
* Send a typing indicator to show that someone is typing in the chat.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* ## Behavior & Limitations
|
|
32
|
+
*
|
|
33
|
+
* Typing indicators are best-effort signals with the following limitations:
|
|
34
|
+
*
|
|
35
|
+
* - **Active conversations only:** The recipient must have sent or received a
|
|
36
|
+
* message in this chat within the **last 5 minutes**. If the chat is inactive,
|
|
37
|
+
* the request is still accepted (`204`) but the indicator will not reach the
|
|
38
|
+
* recipient's device.
|
|
39
|
+
*
|
|
40
|
+
* - **No delivery guarantee:** Even for active chats, a `204` response only
|
|
41
|
+
* indicates the request was accepted for processing.
|
|
42
|
+
*
|
|
43
|
+
* - **Group chats not supported:** Attempting to start a typing indicator in a
|
|
44
|
+
* group chat will return a `403` error.
|
|
33
45
|
*
|
|
34
46
|
* @example
|
|
35
47
|
* ```ts
|
|
@@ -48,11 +60,12 @@ export class Typing extends APIResource {
|
|
|
48
60
|
/**
|
|
49
61
|
* Stop the typing indicator for the chat.
|
|
50
62
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
63
|
+
* Typing indicators are automatically stopped when a message is sent, so calling
|
|
64
|
+
* this endpoint after sending a message is unnecessary.
|
|
65
|
+
*
|
|
66
|
+
* See the `POST` endpoint above for behavior details and limitations.
|
|
53
67
|
*
|
|
54
|
-
* **Note:** Group
|
|
55
|
-
* to stop a typing indicator in a group chat will return a `403` error.
|
|
68
|
+
* **Note:** Group chats are not supported and will return a `403` error.
|
|
56
69
|
*
|
|
57
70
|
* @example
|
|
58
71
|
* ```ts
|
|
@@ -47,6 +47,9 @@ export class Messages extends APIResource {
|
|
|
47
47
|
/**
|
|
48
48
|
* Edit the text content of a specific part of a previously sent message.
|
|
49
49
|
*
|
|
50
|
+
* **Note:** A message can be edited up to 5 times, and only within 15 minutes of
|
|
51
|
+
* when it was originally sent.
|
|
52
|
+
*
|
|
50
53
|
* @example
|
|
51
54
|
* ```ts
|
|
52
55
|
* const message = await client.messages.update(
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.16.
|
|
1
|
+
export const VERSION = '0.16.4'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.16.
|
|
1
|
+
export declare const VERSION = "0.16.4";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.16.
|
|
1
|
+
export declare const VERSION = "0.16.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.16.
|
|
1
|
+
export const VERSION = '0.16.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|