@linqapp/sdk 0.64.0 → 0.65.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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/resources/chats/chats.d.mts +2 -2
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +2 -2
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +1 -1
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +1 -1
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +1 -1
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/index.js.map +1 -1
- package/resources/chats/index.mjs +1 -1
- package/resources/chats/index.mjs.map +1 -1
- package/resources/chats/location.d.mts +49 -1
- package/resources/chats/location.d.mts.map +1 -1
- package/resources/chats/location.d.ts +49 -1
- package/resources/chats/location.d.ts.map +1 -1
- package/resources/chats/location.js +40 -0
- package/resources/chats/location.js.map +1 -1
- package/resources/chats/location.mjs +40 -0
- package/resources/chats/location.mjs.map +1 -1
- package/resources/contact-card.d.mts +8 -0
- package/resources/contact-card.d.mts.map +1 -1
- package/resources/contact-card.d.ts +8 -0
- package/resources/contact-card.d.ts.map +1 -1
- package/resources/contact-card.js +8 -0
- package/resources/contact-card.js.map +1 -1
- package/resources/contact-card.mjs +8 -0
- package/resources/contact-card.mjs.map +1 -1
- package/src/resources/chats/chats.ts +9 -1
- package/src/resources/chats/index.ts +7 -1
- package/src/resources/chats/location.ts +60 -0
- package/src/resources/contact-card.ts +8 -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,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.65.1](https://github.com/linq-team/linq-node/compare/v0.65.0...v0.65.1) (2026-09-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add 503 rate limit error responses to contact card endpoints ([4b518a2](https://github.com/linq-team/linq-node/commit/4b518a223aed717d9b55e9930c503c85a858b90a))
|
|
9
|
+
|
|
10
|
+
## [0.65.0](https://github.com/linq-team/linq-node/compare/v0.64.0...v0.65.0) (2026-09-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add stop location sharing endpoint for chats ([2d9965a](https://github.com/linq-team/linq-node/commit/2d9965a7d3741b104b824eb21c424bd30ff581e2))
|
|
16
|
+
|
|
3
17
|
## [0.64.0](https://github.com/linq-team/linq-node/compare/v0.63.0...v0.64.0) (2026-09-09)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import * as Shared from "../shared.mjs";
|
|
|
3
3
|
import * as BackgroundAPI from "./background.mjs";
|
|
4
4
|
import { Background, BackgroundSetParams } from "./background.mjs";
|
|
5
5
|
import * as LocationAPI from "./location.mjs";
|
|
6
|
-
import { GetChatLocationResponse, Location, LocationRequestResponse } from "./location.mjs";
|
|
6
|
+
import { GetChatLocationResponse, Location, LocationRequestResponse, LocationStopParams, StopChatLocationSharingResponse } from "./location.mjs";
|
|
7
7
|
import * as MessagesAPI from "./messages.mjs";
|
|
8
8
|
import { MessageListParams, MessageSendParams, MessageSendResponse, Messages, SentMessage } from "./messages.mjs";
|
|
9
9
|
import * as ParticipantsAPI from "./participants.mjs";
|
|
@@ -1062,7 +1062,7 @@ export declare namespace Chats {
|
|
|
1062
1062
|
export { Participants as Participants, type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
|
|
1063
1063
|
export { Typing as Typing };
|
|
1064
1064
|
export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
1065
|
-
export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
|
|
1065
|
+
export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, type StopChatLocationSharingResponse as StopChatLocationSharingResponse, type LocationStopParams as LocationStopParams, };
|
|
1066
1066
|
export { Polls as Polls, type Poll as Poll, type PollEnvelope as PollEnvelope, type PollCreateParams as PollCreateParams, };
|
|
1067
1067
|
export { Background as Background, type BackgroundSetParams as BackgroundSetParams };
|
|
1068
1068
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,yBAAqB;AAC/D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../../src/resources/chats/chats.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,yBAAqB;AAC/D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,EAChC,uBAAmB;AACpB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAA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AAI,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"}
|
|
@@ -3,7 +3,7 @@ import * as Shared from "../shared.js";
|
|
|
3
3
|
import * as BackgroundAPI from "./background.js";
|
|
4
4
|
import { Background, BackgroundSetParams } from "./background.js";
|
|
5
5
|
import * as LocationAPI from "./location.js";
|
|
6
|
-
import { GetChatLocationResponse, Location, LocationRequestResponse } from "./location.js";
|
|
6
|
+
import { GetChatLocationResponse, Location, LocationRequestResponse, LocationStopParams, StopChatLocationSharingResponse } from "./location.js";
|
|
7
7
|
import * as MessagesAPI from "./messages.js";
|
|
8
8
|
import { MessageListParams, MessageSendParams, MessageSendResponse, Messages, SentMessage } from "./messages.js";
|
|
9
9
|
import * as ParticipantsAPI from "./participants.js";
|
|
@@ -1062,7 +1062,7 @@ export declare namespace Chats {
|
|
|
1062
1062
|
export { Participants as Participants, type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
|
|
1063
1063
|
export { Typing as Typing };
|
|
1064
1064
|
export { Messages as Messages, type SentMessage as SentMessage, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
|
|
1065
|
-
export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
|
|
1065
|
+
export { Location as Location, type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, type StopChatLocationSharingResponse as StopChatLocationSharingResponse, type LocationStopParams as LocationStopParams, };
|
|
1066
1066
|
export { Polls as Polls, type Poll as Poll, type PollEnvelope as PollEnvelope, type PollCreateParams as PollCreateParams, };
|
|
1067
1067
|
export { Background as Background, type BackgroundSetParams as BackgroundSetParams };
|
|
1068
1068
|
}
|
|
@@ -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,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,wBAAqB;AAC/D,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,
|
|
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,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,wBAAqB;AAC/D,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,EAChC,sBAAmB;AACpB,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,kC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EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CAAC,MAAc,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,qBAAqB,EAAE;YACrE,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;AA/QD,sBA+QC;AA64BD,KAAK,CAAC,YAAY,GAAG,2BAAY,CAAC;AAClC,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC;AACtB,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC1B,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC1B,KAAK,CAAC,KAAK,GAAG,aAAK,CAAC;AACpB,KAAK,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import * as BackgroundAPI from "./background.mjs";
|
|
4
4
|
import { Background } from "./background.mjs";
|
|
5
5
|
import * as LocationAPI from "./location.mjs";
|
|
6
|
-
import { Location } from "./location.mjs";
|
|
6
|
+
import { Location, } from "./location.mjs";
|
|
7
7
|
import * as MessagesAPI from "./messages.mjs";
|
|
8
8
|
import { Messages } from "./messages.mjs";
|
|
9
9
|
import * as ParticipantsAPI from "./participants.mjs";
|
|
@@ -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,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAuB,yBAAqB;AAC/D,OAAO,KAAK,WAAW,u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AC,IAAI,CAAA,aAAa,MAAM,OAAO,EAAE;YACvD,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;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,aAAa,CACX,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CAAC,MAAc,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,qBAAqB,EAAE;YACrE,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;AA64BD,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,6 +1,6 @@
|
|
|
1
1
|
export { Background, type BackgroundSetParams } from "./background.mjs";
|
|
2
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";
|
|
3
|
-
export { Location, type GetChatLocationResponse, type LocationRequestResponse } from "./location.mjs";
|
|
3
|
+
export { Location, type GetChatLocationResponse, type LocationRequestResponse, type StopChatLocationSharingResponse, type LocationStopParams, } from "./location.mjs";
|
|
4
4
|
export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.mjs";
|
|
5
5
|
export { Participants, type ParticipantAddResponse, type ParticipantRemoveResponse, type ParticipantAddParams, type ParticipantRemoveParams, } from "./participants.mjs";
|
|
6
6
|
export { Polls, type Poll, type PollEnvelope, type PollCreateParams } from "./polls.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,yBAAqB;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,oBAAgB;AACjB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/chats/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,yBAAqB;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,oBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,GACxB,uBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,uBAAmB;AACpB,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Background, type BackgroundSetParams } from "./background.js";
|
|
2
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";
|
|
3
|
-
export { Location, type GetChatLocationResponse, type LocationRequestResponse } from "./location.js";
|
|
3
|
+
export { Location, type GetChatLocationResponse, type LocationRequestResponse, type StopChatLocationSharingResponse, type LocationStopParams, } from "./location.js";
|
|
4
4
|
export { Messages, type SentMessage, type MessageSendResponse, type MessageListParams, type MessageSendParams, } from "./messages.js";
|
|
5
5
|
export { Participants, type ParticipantAddResponse, type ParticipantRemoveResponse, type ParticipantAddParams, type ParticipantRemoveParams, } from "./participants.js";
|
|
6
6
|
export { Polls, type Poll, type PollEnvelope, type PollCreateParams } from "./polls.js";
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,GACxB,sBAAmB;AACpB,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 +1 @@
|
|
|
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,
|
|
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,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,oCAAqF;AAA5E,8FAAA,KAAK,OAAA;AACd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Background } from "./background.mjs";
|
|
3
3
|
export { Chats, } from "./chats.mjs";
|
|
4
|
-
export { Location } from "./location.mjs";
|
|
4
|
+
export { Location, } from "./location.mjs";
|
|
5
5
|
export { Messages, } from "./messages.mjs";
|
|
6
6
|
export { Participants, } from "./participants.mjs";
|
|
7
7
|
export { Polls } from "./polls.mjs";
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAKb,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAuD,oBAAgB;AACrF,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -103,6 +103,44 @@ export declare class Location extends APIResource {
|
|
|
103
103
|
* ```
|
|
104
104
|
*/
|
|
105
105
|
request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* End the location share a contact started with you, as though they had stopped it
|
|
108
|
+
* themselves. Their device stops listing you as someone they share with, so they
|
|
109
|
+
* can start a fresh share cleanly.
|
|
110
|
+
*
|
|
111
|
+
* Use this to recover when a share has gone stale — coordinates that stop
|
|
112
|
+
* advancing, or a share you believe has ended but is still reported as active.
|
|
113
|
+
* Without it the only remedy is asking the contact to stop and re-share, which is
|
|
114
|
+
* confusing for them because their phone still shows everything as working.
|
|
115
|
+
*
|
|
116
|
+
* This is not reversible from the API. Sharing can only resume when the contact
|
|
117
|
+
* starts a new share, so prompt them to re-share afterwards. Request a new one
|
|
118
|
+
* with `POST /v3/chats/{chatId}/location/request`.
|
|
119
|
+
*
|
|
120
|
+
* Apple keeps one location-sharing relationship per person rather than per chat,
|
|
121
|
+
* so this ends that contact's share everywhere, not only in this chat.
|
|
122
|
+
*
|
|
123
|
+
* `handle` names whose share to end, and is always required — a group chat can
|
|
124
|
+
* have several people sharing, and this is not an operation to infer a target for.
|
|
125
|
+
*
|
|
126
|
+
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
127
|
+
* the sharing relationship, so a success here means the request was accepted, not
|
|
128
|
+
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
129
|
+
* confirm it — that webhook is what tells you the contact's device has actually
|
|
130
|
+
* let go.
|
|
131
|
+
*
|
|
132
|
+
* Returns `404` if the contact is not currently sharing.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const stopChatLocationSharingResponse =
|
|
137
|
+
* await client.chats.location.stop(
|
|
138
|
+
* '975d0776-bd17-4273-8337-f346b4c661b0',
|
|
139
|
+
* { handle: '+15551234567' },
|
|
140
|
+
* );
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
stop(chatID: string, body: LocationStopParams, options?: RequestOptions): APIPromise<StopChatLocationSharingResponse>;
|
|
106
144
|
}
|
|
107
145
|
export interface GetChatLocationResponse {
|
|
108
146
|
data: GetChatLocationResponse.Data;
|
|
@@ -152,7 +190,17 @@ export interface LocationRequestResponse {
|
|
|
152
190
|
message: string;
|
|
153
191
|
success: boolean;
|
|
154
192
|
}
|
|
193
|
+
export interface StopChatLocationSharingResponse {
|
|
194
|
+
message: string;
|
|
195
|
+
success: boolean;
|
|
196
|
+
}
|
|
197
|
+
export interface LocationStopParams {
|
|
198
|
+
/**
|
|
199
|
+
* Phone number (E.164 format) or email address of the contact whose share to end
|
|
200
|
+
*/
|
|
201
|
+
handle: string;
|
|
202
|
+
}
|
|
155
203
|
export declare namespace Location {
|
|
156
|
-
export { type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
|
|
204
|
+
export { type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, type StopChatLocationSharingResponse as StopChatLocationSharingResponse, type LocationStopParams as LocationStopParams, };
|
|
157
205
|
}
|
|
158
206
|
//# sourceMappingURL=location.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.mts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAOvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"location.d.mts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAOvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,IAAI,CACF,MAAM,EAAE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,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -103,6 +103,44 @@ export declare class Location extends APIResource {
|
|
|
103
103
|
* ```
|
|
104
104
|
*/
|
|
105
105
|
request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* End the location share a contact started with you, as though they had stopped it
|
|
108
|
+
* themselves. Their device stops listing you as someone they share with, so they
|
|
109
|
+
* can start a fresh share cleanly.
|
|
110
|
+
*
|
|
111
|
+
* Use this to recover when a share has gone stale — coordinates that stop
|
|
112
|
+
* advancing, or a share you believe has ended but is still reported as active.
|
|
113
|
+
* Without it the only remedy is asking the contact to stop and re-share, which is
|
|
114
|
+
* confusing for them because their phone still shows everything as working.
|
|
115
|
+
*
|
|
116
|
+
* This is not reversible from the API. Sharing can only resume when the contact
|
|
117
|
+
* starts a new share, so prompt them to re-share afterwards. Request a new one
|
|
118
|
+
* with `POST /v3/chats/{chatId}/location/request`.
|
|
119
|
+
*
|
|
120
|
+
* Apple keeps one location-sharing relationship per person rather than per chat,
|
|
121
|
+
* so this ends that contact's share everywhere, not only in this chat.
|
|
122
|
+
*
|
|
123
|
+
* `handle` names whose share to end, and is always required — a group chat can
|
|
124
|
+
* have several people sharing, and this is not an operation to infer a target for.
|
|
125
|
+
*
|
|
126
|
+
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
127
|
+
* the sharing relationship, so a success here means the request was accepted, not
|
|
128
|
+
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
129
|
+
* confirm it — that webhook is what tells you the contact's device has actually
|
|
130
|
+
* let go.
|
|
131
|
+
*
|
|
132
|
+
* Returns `404` if the contact is not currently sharing.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const stopChatLocationSharingResponse =
|
|
137
|
+
* await client.chats.location.stop(
|
|
138
|
+
* '975d0776-bd17-4273-8337-f346b4c661b0',
|
|
139
|
+
* { handle: '+15551234567' },
|
|
140
|
+
* );
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
stop(chatID: string, body: LocationStopParams, options?: RequestOptions): APIPromise<StopChatLocationSharingResponse>;
|
|
106
144
|
}
|
|
107
145
|
export interface GetChatLocationResponse {
|
|
108
146
|
data: GetChatLocationResponse.Data;
|
|
@@ -152,7 +190,17 @@ export interface LocationRequestResponse {
|
|
|
152
190
|
message: string;
|
|
153
191
|
success: boolean;
|
|
154
192
|
}
|
|
193
|
+
export interface StopChatLocationSharingResponse {
|
|
194
|
+
message: string;
|
|
195
|
+
success: boolean;
|
|
196
|
+
}
|
|
197
|
+
export interface LocationStopParams {
|
|
198
|
+
/**
|
|
199
|
+
* Phone number (E.164 format) or email address of the contact whose share to end
|
|
200
|
+
*/
|
|
201
|
+
handle: string;
|
|
202
|
+
}
|
|
155
203
|
export declare namespace Location {
|
|
156
|
-
export { type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, };
|
|
204
|
+
export { type GetChatLocationResponse as GetChatLocationResponse, type LocationRequestResponse as LocationRequestResponse, type StopChatLocationSharingResponse as StopChatLocationSharingResponse, type LocationStopParams as LocationStopParams, };
|
|
157
205
|
}
|
|
158
206
|
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;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AC,OAAO,CAAC,CAAC;QAE9B,IAAI,EAAE,mBAAmB,CAAC;KAC3B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;YAE3B,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC;YAE/B,IAAI,EAAE,SAAS,CAAC;SACjB;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,QAAQ;gBACvB;;mBAEG;gBACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE3B,IAAI,EAAE,OAAO,CAAC;aACf;YAED,UAAiB,UAAU;gBACzB;;mBAEG;gBACH,MAAM,EAAE,MAAM,CAAC;gBAEf;;mBAEG;gBACH,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEjB;;mBAEG;gBACH,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,UAAU,CAAC,EAAE,MAAM,CAAC;aACrB;SACF;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -114,6 +114,46 @@ class Location extends resource_1.APIResource {
|
|
|
114
114
|
request(chatID, options) {
|
|
115
115
|
return this._client.post((0, path_1.path) `/v3/chats/${chatID}/location/request`, options);
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* End the location share a contact started with you, as though they had stopped it
|
|
119
|
+
* themselves. Their device stops listing you as someone they share with, so they
|
|
120
|
+
* can start a fresh share cleanly.
|
|
121
|
+
*
|
|
122
|
+
* Use this to recover when a share has gone stale — coordinates that stop
|
|
123
|
+
* advancing, or a share you believe has ended but is still reported as active.
|
|
124
|
+
* Without it the only remedy is asking the contact to stop and re-share, which is
|
|
125
|
+
* confusing for them because their phone still shows everything as working.
|
|
126
|
+
*
|
|
127
|
+
* This is not reversible from the API. Sharing can only resume when the contact
|
|
128
|
+
* starts a new share, so prompt them to re-share afterwards. Request a new one
|
|
129
|
+
* with `POST /v3/chats/{chatId}/location/request`.
|
|
130
|
+
*
|
|
131
|
+
* Apple keeps one location-sharing relationship per person rather than per chat,
|
|
132
|
+
* so this ends that contact's share everywhere, not only in this chat.
|
|
133
|
+
*
|
|
134
|
+
* `handle` names whose share to end, and is always required — a group chat can
|
|
135
|
+
* have several people sharing, and this is not an operation to infer a target for.
|
|
136
|
+
*
|
|
137
|
+
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
138
|
+
* the sharing relationship, so a success here means the request was accepted, not
|
|
139
|
+
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
140
|
+
* confirm it — that webhook is what tells you the contact's device has actually
|
|
141
|
+
* let go.
|
|
142
|
+
*
|
|
143
|
+
* Returns `404` if the contact is not currently sharing.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* const stopChatLocationSharingResponse =
|
|
148
|
+
* await client.chats.location.stop(
|
|
149
|
+
* '975d0776-bd17-4273-8337-f346b4c661b0',
|
|
150
|
+
* { handle: '+15551234567' },
|
|
151
|
+
* );
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
stop(chatID, body, options) {
|
|
155
|
+
return this._client.delete((0, path_1.path) `/v3/chats/${chatID}/location`, { body, ...options });
|
|
156
|
+
}
|
|
117
157
|
}
|
|
118
158
|
exports.Location = Location;
|
|
119
159
|
//# sourceMappingURL=location.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,IAAI,CACF,MAAc,EACd,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AArHD,4BAqHC"}
|
|
@@ -111,5 +111,45 @@ export class Location extends APIResource {
|
|
|
111
111
|
request(chatID, options) {
|
|
112
112
|
return this._client.post(path `/v3/chats/${chatID}/location/request`, options);
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* End the location share a contact started with you, as though they had stopped it
|
|
116
|
+
* themselves. Their device stops listing you as someone they share with, so they
|
|
117
|
+
* can start a fresh share cleanly.
|
|
118
|
+
*
|
|
119
|
+
* Use this to recover when a share has gone stale — coordinates that stop
|
|
120
|
+
* advancing, or a share you believe has ended but is still reported as active.
|
|
121
|
+
* Without it the only remedy is asking the contact to stop and re-share, which is
|
|
122
|
+
* confusing for them because their phone still shows everything as working.
|
|
123
|
+
*
|
|
124
|
+
* This is not reversible from the API. Sharing can only resume when the contact
|
|
125
|
+
* starts a new share, so prompt them to re-share afterwards. Request a new one
|
|
126
|
+
* with `POST /v3/chats/{chatId}/location/request`.
|
|
127
|
+
*
|
|
128
|
+
* Apple keeps one location-sharing relationship per person rather than per chat,
|
|
129
|
+
* so this ends that contact's share everywhere, not only in this chat.
|
|
130
|
+
*
|
|
131
|
+
* `handle` names whose share to end, and is always required — a group chat can
|
|
132
|
+
* have several people sharing, and this is not an operation to infer a target for.
|
|
133
|
+
*
|
|
134
|
+
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
135
|
+
* the sharing relationship, so a success here means the request was accepted, not
|
|
136
|
+
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
137
|
+
* confirm it — that webhook is what tells you the contact's device has actually
|
|
138
|
+
* let go.
|
|
139
|
+
*
|
|
140
|
+
* Returns `404` if the contact is not currently sharing.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```ts
|
|
144
|
+
* const stopChatLocationSharingResponse =
|
|
145
|
+
* await client.chats.location.stop(
|
|
146
|
+
* '975d0776-bd17-4273-8337-f346b4c661b0',
|
|
147
|
+
* { handle: '+15551234567' },
|
|
148
|
+
* );
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
stop(chatID, body, options) {
|
|
152
|
+
return this._client.delete(path `/v3/chats/${chatID}/location`, { body, ...options });
|
|
153
|
+
}
|
|
114
154
|
}
|
|
115
155
|
//# sourceMappingURL=location.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/chats/location.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAc,EAAE,OA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M,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,IAAI,CACF,MAAc,EACd,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
|
@@ -18,6 +18,10 @@ export declare class ContactCard extends APIResource {
|
|
|
18
18
|
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
19
19
|
* again.
|
|
20
20
|
*
|
|
21
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
22
|
+
* Setup did not complete and the card is not active — wait before retrying,
|
|
23
|
+
* because repeated attempts extend the rate limit.
|
|
24
|
+
*
|
|
21
25
|
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
22
26
|
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
23
27
|
* change it.
|
|
@@ -54,6 +58,10 @@ export declare class ContactCard extends APIResource {
|
|
|
54
58
|
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
55
59
|
* endpoint again.
|
|
56
60
|
*
|
|
61
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
62
|
+
* The update did not reach the line, so the card is left not active — wait before
|
|
63
|
+
* retrying, because repeated attempts extend the rate limit.
|
|
64
|
+
*
|
|
57
65
|
* @example
|
|
58
66
|
* ```ts
|
|
59
67
|
* const setContactCard = await client.contactCard.update({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.d.mts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC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AM,CAAC;QAErB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -18,6 +18,10 @@ export declare class ContactCard extends APIResource {
|
|
|
18
18
|
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
19
19
|
* again.
|
|
20
20
|
*
|
|
21
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
22
|
+
* Setup did not complete and the card is not active — wait before retrying,
|
|
23
|
+
* because repeated attempts extend the rate limit.
|
|
24
|
+
*
|
|
21
25
|
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
22
26
|
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
23
27
|
* change it.
|
|
@@ -54,6 +58,10 @@ export declare class ContactCard extends APIResource {
|
|
|
54
58
|
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
55
59
|
* endpoint again.
|
|
56
60
|
*
|
|
61
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
62
|
+
* The update did not reach the line, so the card is left not active — wait before
|
|
63
|
+
* retrying, because repeated attempts extend the rate limit.
|
|
64
|
+
*
|
|
57
65
|
* @example
|
|
58
66
|
* ```ts
|
|
59
67
|
* const setContactCard = await client.contactCard.update({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI3F;;;;;;;;OAQG;IACH,QAAQ,CACN,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,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AAI,cAAc,EACrC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -20,6 +20,10 @@ class ContactCard extends resource_1.APIResource {
|
|
|
20
20
|
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
21
21
|
* again.
|
|
22
22
|
*
|
|
23
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
24
|
+
* Setup did not complete and the card is not active — wait before retrying,
|
|
25
|
+
* because repeated attempts extend the rate limit.
|
|
26
|
+
*
|
|
23
27
|
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
24
28
|
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
25
29
|
* change it.
|
|
@@ -60,6 +64,10 @@ class ContactCard extends resource_1.APIResource {
|
|
|
60
64
|
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
61
65
|
* endpoint again.
|
|
62
66
|
*
|
|
67
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
68
|
+
* The update did not reach the line, so the card is left not active — wait before
|
|
69
|
+
* retrying, because repeated attempts extend the rate limit.
|
|
70
|
+
*
|
|
63
71
|
* @example
|
|
64
72
|
* ```ts
|
|
65
73
|
* const setContactCard = await client.contactCard.update({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.js","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;;;;;;;GAQG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.js","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;;;;;;;GAQG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CACN,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AA5ED,kCA4EC"}
|
|
@@ -17,6 +17,10 @@ export class ContactCard extends APIResource {
|
|
|
17
17
|
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
18
18
|
* again.
|
|
19
19
|
*
|
|
20
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
21
|
+
* Setup did not complete and the card is not active — wait before retrying,
|
|
22
|
+
* because repeated attempts extend the rate limit.
|
|
23
|
+
*
|
|
20
24
|
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
21
25
|
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
22
26
|
* change it.
|
|
@@ -57,6 +61,10 @@ export class ContactCard extends APIResource {
|
|
|
57
61
|
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
58
62
|
* endpoint again.
|
|
59
63
|
*
|
|
64
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
65
|
+
* The update did not reach the line, so the card is left not active — wait before
|
|
66
|
+
* retrying, because repeated attempts extend the rate limit.
|
|
67
|
+
*
|
|
60
68
|
* @example
|
|
61
69
|
* ```ts
|
|
62
70
|
* const setContactCard = await client.contactCard.update({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.mjs","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"contact-card.mjs","sourceRoot":"","sources":["../src/resources/contact-card.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CACN,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -5,7 +5,13 @@ import * as Shared from '../shared';
|
|
|
5
5
|
import * as BackgroundAPI from './background';
|
|
6
6
|
import { Background, BackgroundSetParams } from './background';
|
|
7
7
|
import * as LocationAPI from './location';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
GetChatLocationResponse,
|
|
10
|
+
Location,
|
|
11
|
+
LocationRequestResponse,
|
|
12
|
+
LocationStopParams,
|
|
13
|
+
StopChatLocationSharingResponse,
|
|
14
|
+
} from './location';
|
|
9
15
|
import * as MessagesAPI from './messages';
|
|
10
16
|
import { MessageListParams, MessageSendParams, MessageSendResponse, Messages, SentMessage } from './messages';
|
|
11
17
|
import * as ParticipantsAPI from './participants';
|
|
@@ -1254,6 +1260,8 @@ export declare namespace Chats {
|
|
|
1254
1260
|
Location as Location,
|
|
1255
1261
|
type GetChatLocationResponse as GetChatLocationResponse,
|
|
1256
1262
|
type LocationRequestResponse as LocationRequestResponse,
|
|
1263
|
+
type StopChatLocationSharingResponse as StopChatLocationSharingResponse,
|
|
1264
|
+
type LocationStopParams as LocationStopParams,
|
|
1257
1265
|
};
|
|
1258
1266
|
|
|
1259
1267
|
export {
|
|
@@ -18,7 +18,13 @@ export {
|
|
|
18
18
|
type ChatSendVoicememoParams,
|
|
19
19
|
type ChatsListChatsPagination,
|
|
20
20
|
} from './chats';
|
|
21
|
-
export {
|
|
21
|
+
export {
|
|
22
|
+
Location,
|
|
23
|
+
type GetChatLocationResponse,
|
|
24
|
+
type LocationRequestResponse,
|
|
25
|
+
type StopChatLocationSharingResponse,
|
|
26
|
+
type LocationStopParams,
|
|
27
|
+
} from './location';
|
|
22
28
|
export {
|
|
23
29
|
Messages,
|
|
24
30
|
type SentMessage,
|
|
@@ -116,6 +116,51 @@ export class Location extends APIResource {
|
|
|
116
116
|
request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse> {
|
|
117
117
|
return this._client.post(path`/v3/chats/${chatID}/location/request`, options);
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* End the location share a contact started with you, as though they had stopped it
|
|
122
|
+
* themselves. Their device stops listing you as someone they share with, so they
|
|
123
|
+
* can start a fresh share cleanly.
|
|
124
|
+
*
|
|
125
|
+
* Use this to recover when a share has gone stale — coordinates that stop
|
|
126
|
+
* advancing, or a share you believe has ended but is still reported as active.
|
|
127
|
+
* Without it the only remedy is asking the contact to stop and re-share, which is
|
|
128
|
+
* confusing for them because their phone still shows everything as working.
|
|
129
|
+
*
|
|
130
|
+
* This is not reversible from the API. Sharing can only resume when the contact
|
|
131
|
+
* starts a new share, so prompt them to re-share afterwards. Request a new one
|
|
132
|
+
* with `POST /v3/chats/{chatId}/location/request`.
|
|
133
|
+
*
|
|
134
|
+
* Apple keeps one location-sharing relationship per person rather than per chat,
|
|
135
|
+
* so this ends that contact's share everywhere, not only in this chat.
|
|
136
|
+
*
|
|
137
|
+
* `handle` names whose share to end, and is always required — a group chat can
|
|
138
|
+
* have several people sharing, and this is not an operation to infer a target for.
|
|
139
|
+
*
|
|
140
|
+
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
141
|
+
* the sharing relationship, so a success here means the request was accepted, not
|
|
142
|
+
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
143
|
+
* confirm it — that webhook is what tells you the contact's device has actually
|
|
144
|
+
* let go.
|
|
145
|
+
*
|
|
146
|
+
* Returns `404` if the contact is not currently sharing.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* const stopChatLocationSharingResponse =
|
|
151
|
+
* await client.chats.location.stop(
|
|
152
|
+
* '975d0776-bd17-4273-8337-f346b4c661b0',
|
|
153
|
+
* { handle: '+15551234567' },
|
|
154
|
+
* );
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
stop(
|
|
158
|
+
chatID: string,
|
|
159
|
+
body: LocationStopParams,
|
|
160
|
+
options?: RequestOptions,
|
|
161
|
+
): APIPromise<StopChatLocationSharingResponse> {
|
|
162
|
+
return this._client.delete(path`/v3/chats/${chatID}/location`, { body, ...options });
|
|
163
|
+
}
|
|
119
164
|
}
|
|
120
165
|
|
|
121
166
|
export interface GetChatLocationResponse {
|
|
@@ -181,9 +226,24 @@ export interface LocationRequestResponse {
|
|
|
181
226
|
success: boolean;
|
|
182
227
|
}
|
|
183
228
|
|
|
229
|
+
export interface StopChatLocationSharingResponse {
|
|
230
|
+
message: string;
|
|
231
|
+
|
|
232
|
+
success: boolean;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface LocationStopParams {
|
|
236
|
+
/**
|
|
237
|
+
* Phone number (E.164 format) or email address of the contact whose share to end
|
|
238
|
+
*/
|
|
239
|
+
handle: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
184
242
|
export declare namespace Location {
|
|
185
243
|
export {
|
|
186
244
|
type GetChatLocationResponse as GetChatLocationResponse,
|
|
187
245
|
type LocationRequestResponse as LocationRequestResponse,
|
|
246
|
+
type StopChatLocationSharingResponse as StopChatLocationSharingResponse,
|
|
247
|
+
type LocationStopParams as LocationStopParams,
|
|
188
248
|
};
|
|
189
249
|
}
|
|
@@ -21,6 +21,10 @@ export class ContactCard extends APIResource {
|
|
|
21
21
|
* If setup does not complete, the response is `500` (`2022`) — call this endpoint
|
|
22
22
|
* again.
|
|
23
23
|
*
|
|
24
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
25
|
+
* Setup did not complete and the card is not active — wait before retrying,
|
|
26
|
+
* because repeated attempts extend the rate limit.
|
|
27
|
+
*
|
|
24
28
|
* **Note:** once a card is active, this endpoint returns `409` (`2014`) so an
|
|
25
29
|
* existing card is never overwritten by accident. Use `PATCH /v3/contact_card` to
|
|
26
30
|
* change it.
|
|
@@ -66,6 +70,10 @@ export class ContactCard extends APIResource {
|
|
|
66
70
|
* If the update does not complete, the response is `500` (`2022`) — call this
|
|
67
71
|
* endpoint again.
|
|
68
72
|
*
|
|
73
|
+
* If the upstream write is rate-limited, the response is `503` (`4004`) instead.
|
|
74
|
+
* The update did not reach the line, so the card is left not active — wait before
|
|
75
|
+
* retrying, because repeated attempts extend the rate limit.
|
|
76
|
+
*
|
|
69
77
|
* @example
|
|
70
78
|
* ```ts
|
|
71
79
|
* const setContactCard = await client.contactCard.update({
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.65.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.65.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.65.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.65.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|