blujay 1.1.0 → 2.0.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 +11 -0
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/contacts/client/Client.js +4 -4
- package/dist/cjs/api/resources/contacts/client/Client.js.map +1 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactCreateParams.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactCreateParams.js.map +1 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactSearchParams.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactSearchParams.js.map +1 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactUpdateParams.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactUpdateParams.js.map +1 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactUpsertParams.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactUpsertParams.js.map +1 -1
- package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
- package/dist/cjs/api/types/AudioPart.d.ts +1 -1
- package/dist/cjs/api/types/AudioPart.js.map +1 -1
- package/dist/cjs/api/types/CallEndedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/CallEndedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/Contact.d.ts +2 -0
- package/dist/cjs/api/types/Contact.js.map +1 -1
- package/dist/cjs/api/types/ContactAssignedWebhookData.d.ts +10 -0
- package/dist/cjs/api/types/ContactAssignedWebhookData.js +4 -0
- package/dist/cjs/api/types/ContactAssignedWebhookData.js.map +1 -0
- package/dist/cjs/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
- package/dist/cjs/api/types/ContactAssignedWebhookEvent.js +11 -0
- package/dist/cjs/api/types/ContactAssignedWebhookEvent.js.map +1 -0
- package/dist/cjs/api/types/ContactAssignmentActionResult.d.ts +2 -0
- package/dist/cjs/api/types/ContactAssignmentActionResult.js.map +1 -1
- package/dist/cjs/api/types/ContactStageActionResult.d.ts +2 -0
- package/dist/cjs/api/types/ContactStageActionResult.js.map +1 -1
- package/dist/cjs/api/types/ContactTagActionResult.d.ts +2 -0
- package/dist/cjs/api/types/ContactTagActionResult.js.map +1 -1
- package/dist/cjs/api/types/ContactTagAddedWebhookData.d.ts +9 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookData.js +4 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookData.js.map +1 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js +11 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
- package/dist/cjs/api/types/ContactWebhookContact.d.ts +25 -0
- package/dist/cjs/api/types/ContactWebhookContact.js +4 -0
- package/dist/cjs/api/types/ContactWebhookContact.js.map +1 -0
- package/dist/cjs/api/types/GenericWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/GenericWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/GroupNameWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/GroupNameWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/GroupParticipantWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageEditedWebhookData.d.ts +6 -6
- package/dist/cjs/api/types/MessageEditedWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageEditedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageEditedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageLifecycleWebhookData.d.ts +5 -5
- package/dist/cjs/api/types/MessageLifecycleWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageReceivedWebhookData.d.ts +7 -10
- package/dist/cjs/api/types/MessageReceivedWebhookData.js +1 -2
- package/dist/cjs/api/types/MessageReceivedWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageReceivedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageUnsentWebhookData.d.ts +5 -5
- package/dist/cjs/api/types/MessageUnsentWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageUnsentWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/ReactionWebhookData.d.ts +2 -2
- package/dist/cjs/api/types/ReactionWebhookData.js.map +1 -1
- package/dist/cjs/api/types/ReactionWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/ReactionWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/TypingWebhookData.d.ts +2 -2
- package/dist/cjs/api/types/TypingWebhookData.js.map +1 -1
- package/dist/cjs/api/types/TypingWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/TypingWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/WebhookEnvelope.d.ts +7 -6
- package/dist/cjs/api/types/WebhookEnvelope.js.map +1 -1
- package/dist/cjs/api/types/WebhookEvent.d.ts +6 -6
- package/dist/cjs/api/types/WebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/WebhookEventPayloadVersion.d.ts +4 -0
- package/dist/cjs/api/types/WebhookEventPayloadVersion.js +4 -0
- package/dist/cjs/api/types/WebhookEventPayloadVersion.js.map +1 -0
- package/dist/cjs/api/types/WebhookPayloadVersion.d.ts +2 -15
- package/dist/cjs/api/types/WebhookPayloadVersion.js +2 -15
- package/dist/cjs/api/types/WebhookPayloadVersion.js.map +1 -1
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/api/types/index.js.map +1 -1
- package/dist/cjs/custom/version.d.ts +1 -1
- package/dist/cjs/custom/version.js +1 -1
- package/dist/cjs/custom/version.js.map +1 -1
- package/dist/esm/api/resources/contacts/client/Client.d.ts +4 -4
- package/dist/esm/api/resources/contacts/client/Client.js +4 -4
- package/dist/esm/api/resources/contacts/client/Client.js.map +1 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactCreateParams.d.ts +2 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactCreateParams.js.map +1 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactSearchParams.d.ts +1 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactSearchParams.js.map +1 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactUpdateParams.d.ts +2 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactUpdateParams.js.map +1 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactUpsertParams.d.ts +2 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactUpsertParams.js.map +1 -1
- package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
- package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
- package/dist/esm/api/types/AudioPart.d.ts +1 -1
- package/dist/esm/api/types/AudioPart.js.map +1 -1
- package/dist/esm/api/types/CallEndedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/CallEndedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/Contact.d.ts +2 -0
- package/dist/esm/api/types/Contact.js.map +1 -1
- package/dist/esm/api/types/ContactAssignedWebhookData.d.ts +10 -0
- package/dist/esm/api/types/ContactAssignedWebhookData.js +3 -0
- package/dist/esm/api/types/ContactAssignedWebhookData.js.map +1 -0
- package/dist/esm/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
- package/dist/esm/api/types/ContactAssignedWebhookEvent.js +8 -0
- package/dist/esm/api/types/ContactAssignedWebhookEvent.js.map +1 -0
- package/dist/esm/api/types/ContactAssignmentActionResult.d.ts +2 -0
- package/dist/esm/api/types/ContactAssignmentActionResult.js.map +1 -1
- package/dist/esm/api/types/ContactStageActionResult.d.ts +2 -0
- package/dist/esm/api/types/ContactStageActionResult.js.map +1 -1
- package/dist/esm/api/types/ContactTagActionResult.d.ts +2 -0
- package/dist/esm/api/types/ContactTagActionResult.js.map +1 -1
- package/dist/esm/api/types/ContactTagAddedWebhookData.d.ts +9 -0
- package/dist/esm/api/types/ContactTagAddedWebhookData.js +3 -0
- package/dist/esm/api/types/ContactTagAddedWebhookData.js.map +1 -0
- package/dist/esm/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
- package/dist/esm/api/types/ContactTagAddedWebhookEvent.js +8 -0
- package/dist/esm/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
- package/dist/esm/api/types/ContactWebhookContact.d.ts +25 -0
- package/dist/esm/api/types/ContactWebhookContact.js +3 -0
- package/dist/esm/api/types/ContactWebhookContact.js.map +1 -0
- package/dist/esm/api/types/GenericWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/GenericWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/GroupNameWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/GroupNameWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/GroupParticipantWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageEditedWebhookData.d.ts +6 -6
- package/dist/esm/api/types/MessageEditedWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageEditedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageEditedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageLifecycleWebhookData.d.ts +5 -5
- package/dist/esm/api/types/MessageLifecycleWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageReceivedWebhookData.d.ts +7 -10
- package/dist/esm/api/types/MessageReceivedWebhookData.js +1 -2
- package/dist/esm/api/types/MessageReceivedWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageReceivedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageUnsentWebhookData.d.ts +5 -5
- package/dist/esm/api/types/MessageUnsentWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageUnsentWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/ReactionWebhookData.d.ts +2 -2
- package/dist/esm/api/types/ReactionWebhookData.js.map +1 -1
- package/dist/esm/api/types/ReactionWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/ReactionWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/TypingWebhookData.d.ts +2 -2
- package/dist/esm/api/types/TypingWebhookData.js.map +1 -1
- package/dist/esm/api/types/TypingWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/TypingWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/WebhookEnvelope.d.ts +7 -6
- package/dist/esm/api/types/WebhookEnvelope.js.map +1 -1
- package/dist/esm/api/types/WebhookEvent.d.ts +6 -6
- package/dist/esm/api/types/WebhookEvent.js.map +1 -1
- package/dist/esm/api/types/WebhookEventPayloadVersion.d.ts +4 -0
- package/dist/esm/api/types/WebhookEventPayloadVersion.js +3 -0
- package/dist/esm/api/types/WebhookEventPayloadVersion.js.map +1 -0
- package/dist/esm/api/types/WebhookPayloadVersion.d.ts +2 -15
- package/dist/esm/api/types/WebhookPayloadVersion.js +2 -15
- package/dist/esm/api/types/WebhookPayloadVersion.js.map +1 -1
- package/dist/esm/api/types/index.d.ts +6 -0
- package/dist/esm/api/types/index.js +6 -0
- package/dist/esm/api/types/index.js.map +1 -1
- package/dist/esm/custom/version.d.ts +1 -1
- package/dist/esm/custom/version.js +1 -1
- package/dist/esm/custom/version.js.map +1 -1
- package/package.json +1 -1
- package/reference.md +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this library are listed here. It follows [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## 2.0.0 (2026-11-30)
|
|
6
|
+
|
|
7
|
+
A breaking release: older webhook payload versions are gone, and contact event data is typed.
|
|
8
|
+
|
|
9
|
+
- Webhooks have one payload version, `2026-12-01`. `WebhookPayloadVersion` lists only it; the API no longer accepts the older versions. An event's `webhook_version` is now a string (`WebhookEventPayloadVersion`), because an older event delivered again keeps its original version.
|
|
10
|
+
- `contact.tag_added` and `contact.assigned` events are typed (`ContactTagAddedWebhookData`, `ContactAssignedWebhookData`), and their `contact` includes `first_name`, `last_name` and `company`.
|
|
11
|
+
|
|
12
|
+
## 1.2.0 (2026-11-27)
|
|
13
|
+
|
|
14
|
+
- Contacts have a `company`. Set it when you create, update or import a contact, and search matches it.
|
|
15
|
+
|
|
5
16
|
## 1.1.0 (2026-11-23)
|
|
6
17
|
|
|
7
18
|
Phone number health now matches what the API returns:
|
|
@@ -36,9 +36,9 @@ export declare class ContactsClient {
|
|
|
36
36
|
*/
|
|
37
37
|
list(request?: Blujay.ContactListParams, requestOptions?: ContactsClient.RequestOptions): Promise<core.Page<Blujay.Contact, Blujay.ContactListResponse>>;
|
|
38
38
|
/**
|
|
39
|
-
* Creates a contact. `phone_number` is required; `email`, `name`, `first_name` and `
|
|
39
|
+
* Creates a contact. `phone_number` is required; `email`, `name`, `first_name`, `last_name` and `company` are optional. Returns `409 CONTACT_ALREADY_EXISTS` if the phone number belongs to a saved contact, or the email to any other contact, in your workspace.
|
|
40
40
|
*
|
|
41
|
-
* If Blujay already created a contact for this phone number (`saved: false`), this saves that contact instead: it keeps its `contact_id` and `created_at`, takes the `email
|
|
41
|
+
* If Blujay already created a contact for this phone number (`saved: false`), this saves that contact instead: it keeps its `contact_id` and `created_at`, takes the `email`, names and `company` you send, and returns `201` with `saved: true`.
|
|
42
42
|
*
|
|
43
43
|
* Creating a contact through the API doesn't send a webhook or start workflows that run on new contacts. To create or update in one call, use `POST /v1/contacts/import`.
|
|
44
44
|
*
|
|
@@ -69,9 +69,9 @@ export declare class ContactsClient {
|
|
|
69
69
|
create(request: Blujay.ContactCreateParams, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Blujay.ContactCreateResponse>;
|
|
70
70
|
private __create;
|
|
71
71
|
/**
|
|
72
|
-
* Creates or updates a contact by phone number. `phone_number` is required; `email`, `name`, `first_name` and `
|
|
72
|
+
* Creates or updates a contact by phone number. `phone_number` is required; `email`, `name`, `first_name`, `last_name` and `company` are optional.
|
|
73
73
|
*
|
|
74
|
-
* - If a contact has this phone number, Blujay updates it (`200`), including its email and
|
|
74
|
+
* - If a contact has this phone number, Blujay updates it (`200`), including its email, names and company when you send them. A contact Blujay created (`saved: false`) becomes saved.
|
|
75
75
|
* - If no contact has this phone number, Blujay creates one (`201`).
|
|
76
76
|
* - If you send an email that already belongs to a different contact, Blujay returns `409 CONTACT_MATCH_CONFLICT` and changes nothing. This happens even when no contact has the phone number.
|
|
77
77
|
*
|
|
@@ -135,9 +135,9 @@ class ContactsClient {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* Creates a contact. `phone_number` is required; `email`, `name`, `first_name` and `
|
|
138
|
+
* Creates a contact. `phone_number` is required; `email`, `name`, `first_name`, `last_name` and `company` are optional. Returns `409 CONTACT_ALREADY_EXISTS` if the phone number belongs to a saved contact, or the email to any other contact, in your workspace.
|
|
139
139
|
*
|
|
140
|
-
* If Blujay already created a contact for this phone number (`saved: false`), this saves that contact instead: it keeps its `contact_id` and `created_at`, takes the `email
|
|
140
|
+
* If Blujay already created a contact for this phone number (`saved: false`), this saves that contact instead: it keeps its `contact_id` and `created_at`, takes the `email`, names and `company` you send, and returns `201` with `saved: true`.
|
|
141
141
|
*
|
|
142
142
|
* Creating a contact through the API doesn't send a webhook or start workflows that run on new contacts. To create or update in one call, use `POST /v1/contacts/import`.
|
|
143
143
|
*
|
|
@@ -213,9 +213,9 @@ class ContactsClient {
|
|
|
213
213
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/contacts");
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
|
-
* Creates or updates a contact by phone number. `phone_number` is required; `email`, `name`, `first_name` and `
|
|
216
|
+
* Creates or updates a contact by phone number. `phone_number` is required; `email`, `name`, `first_name`, `last_name` and `company` are optional.
|
|
217
217
|
*
|
|
218
|
-
* - If a contact has this phone number, Blujay updates it (`200`), including its email and
|
|
218
|
+
* - If a contact has this phone number, Blujay updates it (`200`), including its email, names and company when you send them. A contact Blujay created (`saved: false`) becomes saved.
|
|
219
219
|
* - If no contact has this phone number, Blujay creates one (`201`).
|
|
220
220
|
* - If you send an email that already belongs to a different contact, Blujay returns `409 CONTACT_MATCH_CONFLICT` and changes nothing. This happens even when no contact has the phone number.
|
|
221
221
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../../src/api/resources/contacts/client/Client.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhE,6DAAiH;AACjH,4DAA2D;AAC3D,gEAAkD;AAClD,oEAAgF;AAChF,0EAA4D;AAC5D,gGAA0F;AAC1F,oEAAsD;AACtD,0DAA4C;AAC5C,mEAAkE;AAQlE;;GAEG;AACH,MAAa,cAAc;IAIvB,YAAY,UAAkC,EAAE;QAC5C,IAAI,CAAC,QAAQ,GAAG,IAAA,8CAA8B,EAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,IAAW,KAAK;QACZ,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,uBAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACI,KAAK,CAAC,IAAI,CACb,UAAoC,EAAE,EACtC,cAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CACnD,KAAK,EAAE,OAAiC,EAA6D,EAAE;YACnG,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;YACzC,MAAM,YAAY,GAA4B;gBAC1C,KAAK;gBACL,KAAK;gBACL,MAAM;aACT,CAAC;YACF,MAAM,YAAY,GAAqB,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC;YACzF,MAAM,QAAQ,GAAiC,IAAA,yBAAY,EACvD,YAAY,CAAC,OAAO,EACpB,IAAI,CAAC,QAAQ,EAAE,OAAO,EACtB,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C;gBACN;oBACI,MAAM,IAAI,MAAM,CAAC,WAAW,CAAC;wBACzB,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;wBAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;QAED,OAAO,IAAA,sDAAwB,EAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACjH,CAAC;CACJ;AAlyCD,wCAkyCC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type { BaseClientOptions, BaseRequestOptions } from \"../../../../BaseClient.js\";\nimport { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from \"../../../../BaseClient.js\";\nimport { mergeHeaders } from \"../../../../core/headers.js\";\nimport * as core from \"../../../../core/index.js\";\nimport { mergeAdditionalBodyParameters } from \"../../../../core/requestBody.js\";\nimport * as environments from \"../../../../environments.js\";\nimport { handleNonStatusCodeError } from \"../../../../errors/handleNonStatusCodeError.js\";\nimport * as errors from \"../../../../errors/index.js\";\nimport * as Blujay from \"../../../index.js\";\nimport { NotesClient } from \"../resources/notes/client/Client.js\";\n\nexport declare namespace ContactsClient {\n export type Options = BaseClientOptions;\n\n export interface RequestOptions extends BaseRequestOptions {}\n}\n\n/**\n * Create, find, update, tag, assign and opt out contacts.\n */\nexport class ContactsClient {\n protected readonly _options: NormalizedClientOptionsWithAuth<ContactsClient.Options>;\n protected _notes: NotesClient | undefined;\n\n constructor(options: ContactsClient.Options = {}) {\n this._options = normalizeClientOptionsWithAuth(options);\n }\n\n public get notes(): NotesClient {\n return (this._notes ??= new NotesClient(this._options));\n }\n\n /**\n * Returns the contacts someone saved in your workspace, newest changes first. Blujay also creates a contact on its own for people you text or call, and for US numbers that text or call you; those have `saved: false` and are listed only with `saved=false`. Saving one keeps its `contact_id`.\n *\n * To read any contact you get from a message, chat or webhook, saved or not, use `GET /v1/contacts/{contact_id}`. Search finds both kinds too.\n *\n * @param {Blujay.ContactListParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.list()\n */\n public async list(\n request: Blujay.ContactListParams = {},\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.Page<Blujay.Contact, Blujay.ContactListResponse>> {\n const list = core.HttpResponsePromise.interceptFunction(\n async (request: Blujay.ContactListParams): Promise<core.WithRawResponse<Blujay.ContactListResponse>> => {\n const { saved, limit, cursor } = request;\n const _queryParams: Record<string, unknown> = {\n saved,\n limit,\n cursor,\n };\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts\",\n ),\n method: \"GET\",\n headers: _headers,\n queryString: core.url\n .queryBuilder()\n .addMany(_queryParams)\n .mergeAdditional(requestOptions?.queryParams)\n .build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactListResponse, rawResponse: _response.rawResponse };\n }\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"GET\", \"/v1/contacts\");\n },\n );\n const dataWithRawResponse = await list(request).withRawResponse();\n return new core.Page<Blujay.Contact, Blujay.ContactListResponse>({\n response: dataWithRawResponse.data,\n rawResponse: dataWithRawResponse.rawResponse,\n hasNextPage: (response) =>\n response?.data.next_cursor != null &&\n !(typeof response?.data.next_cursor === \"string\" && response?.data.next_cursor === \"\"),\n getItems: (response) => response?.data.data ?? [],\n loadPage: (response) => {\n return list(core.setObjectProperty(request, \"cursor\", response?.data.next_cursor));\n },\n });\n }\n\n /**\n * Creates a contact. `phone_number` is required; `email`, `name`, `first_name` and `last_name` are optional. Returns `409 CONTACT_ALREADY_EXISTS` if the phone number belongs to a saved contact, or the email to any other contact, in your workspace.\n *\n * If Blujay already created a contact for this phone number (`saved: false`), this saves that contact instead: it keeps its `contact_id` and `created_at`, takes the `email` and names you send, and returns `201` with `saved: true`.\n *\n * Creating a contact through the API doesn't send a webhook or start workflows that run on new contacts. To create or update in one call, use `POST /v1/contacts/import`.\n *\n * @param {Blujay.ContactCreateParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.ConflictError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.create({\n * phone_number: \"+15555550123\",\n * name: \"Ava Chen\"\n * })\n *\n * @example\n * await client.contacts.create({\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * })\n */\n public create(\n request: Blujay.ContactCreateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactCreateResponse> {\n return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));\n }\n\n private async __create(\n request: Blujay.ContactCreateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactCreateResponse>> {\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts\",\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactCreateResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 409:\n throw new Blujay.ConflictError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"POST\", \"/v1/contacts\");\n }\n\n /**\n * Creates or updates a contact by phone number. `phone_number` is required; `email`, `name`, `first_name` and `last_name` are optional.\n *\n * - If a contact has this phone number, Blujay updates it (`200`), including its email and names when you send them. A contact Blujay created (`saved: false`) becomes saved.\n * - If no contact has this phone number, Blujay creates one (`201`).\n * - If you send an email that already belongs to a different contact, Blujay returns `409 CONTACT_MATCH_CONFLICT` and changes nothing. This happens even when no contact has the phone number.\n *\n * The response's `created` and `updated` flags tell you which happened. Like create, import doesn't send a webhook or start workflows that run on new contacts.\n *\n * @param {Blujay.ContactUpsertParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.ConflictError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.upsert({\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * })\n */\n public upsert(\n request: Blujay.ContactUpsertParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactUpsertResponse> {\n return core.HttpResponsePromise.fromPromise(this.__upsert(request, requestOptions));\n }\n\n private async __upsert(\n request: Blujay.ContactUpsertParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactUpsertResponse>> {\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts/import\",\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactUpsertResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 409:\n throw new Blujay.ConflictError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"POST\", \"/v1/contacts/import\");\n }\n\n /**\n * Finds contacts by phone number, email address, or free text (`q`), whether or not someone saved them; each result's `saved` says which. Returns up to `limit` best matches. Results aren't paginated.\n *\n * @param {Blujay.ContactSearchParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.search({\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * q: \"Ava\"\n * })\n */\n public search(\n request: Blujay.ContactSearchParams = {},\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactSearchResponse> {\n return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));\n }\n\n private async __search(\n request: Blujay.ContactSearchParams = {},\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactSearchResponse>> {\n const { phone_number: phoneNumber, email, q, limit } = request;\n const _queryParams: Record<string, unknown> = {\n phone_number: phoneNumber,\n email,\n q,\n limit,\n };\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts/search\",\n ),\n method: \"GET\",\n headers: _headers,\n queryString: core.url\n .queryBuilder()\n .addMany(_queryParams)\n .mergeAdditional(requestOptions?.queryParams)\n .build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactSearchResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"GET\", \"/v1/contacts/search\");\n }\n\n /**\n * Returns one contact, saved or not, including its tags, stage, assignee and opt-out state.\n *\n * @param {Blujay.ContactGetParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.get({\n * contact_id: \"contact_abc123\"\n * })\n */\n public get(\n request: Blujay.ContactGetParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactGetResponse> {\n return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));\n }\n\n private async __get(\n request: Blujay.ContactGetParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactGetResponse>> {\n const { contact_id: contactId } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}`,\n ),\n method: \"GET\",\n headers: _headers,\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactGetResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"GET\", \"/v1/contacts/{contact_id}\");\n }\n\n /**\n * Deletes the contact. If the contact had opted out, the opt-out stays in place, so you still can't message that phone number or email.\n *\n * @param {Blujay.ContactDeleteParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.delete({\n * contact_id: \"contact_abc123\"\n * })\n */\n public delete(\n request: Blujay.ContactDeleteParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<void> {\n return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));\n }\n\n private async __delete(\n request: Blujay.ContactDeleteParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<void>> {\n const { contact_id: contactId } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}`,\n ),\n method: \"DELETE\",\n headers: _headers,\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: undefined, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"DELETE\", \"/v1/contacts/{contact_id}\");\n }\n\n /**\n * Changes a contact's phone number, email or name. Fields you leave out keep their values. A phone number or email that already belongs to another contact returns `409 CONTACT_ALREADY_EXISTS`. A phone number can change only while nothing has happened with the contact (no texts, chats or calls other than outbound calls that never connected, no opt-out, no Free Plan verification, no Follow Up Boss or HubSpot link, no group chat, no scheduled text waiting); otherwise the request returns `409 CONTACT_PHONE_LOCKED` with the reason in `error.details[0].reason`, and nothing is changed. Sending the contact's current phone number, or giving a number to a contact that has none, is not a change. A successful update saves a contact Blujay created (`saved` becomes `true`). To change tags, stage or assignee, use their own endpoints.\n *\n * @param {Blujay.ContactUpdateParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.ConflictError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.update({\n * contact_id: \"contact_abc123\",\n * name: \"Ava R.\"\n * })\n */\n public update(\n request: Blujay.ContactUpdateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactUpdateResponse> {\n return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));\n }\n\n private async __update(\n request: Blujay.ContactUpdateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactUpdateResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}`,\n ),\n method: \"PATCH\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactUpdateResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 409:\n throw new Blujay.ConflictError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"PATCH\", \"/v1/contacts/{contact_id}\");\n }\n\n /**\n * Adds a tag to the contact and returns the contact. `tag_added` tells you whether the tag was new.\n *\n * @param {Blujay.ContactAddTagParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.addTag({\n * contact_id: \"contact_abc123\",\n * tag: \"VIP\"\n * })\n */\n public addTag(\n request: Blujay.ContactAddTagParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactAddTagResponse> {\n return core.HttpResponsePromise.fromPromise(this.__addTag(request, requestOptions));\n }\n\n private async __addTag(\n request: Blujay.ContactAddTagParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactAddTagResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/tags`,\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactAddTagResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"POST\",\n \"/v1/contacts/{contact_id}/tags\",\n );\n }\n\n /**\n * Sets the contact's stage to `Completed` and returns the contact. `Completed` is the only stage you can set through the API. `stage_changed` tells you whether the stage changed.\n *\n * @param {Blujay.ContactMarkCompletedParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.markCompleted({\n * contact_id: \"contact_abc123\",\n * stage: \"Completed\"\n * })\n */\n public markCompleted(\n request: Blujay.ContactMarkCompletedParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactMarkCompletedResponse> {\n return core.HttpResponsePromise.fromPromise(this.__markCompleted(request, requestOptions));\n }\n\n private async __markCompleted(\n request: Blujay.ContactMarkCompletedParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactMarkCompletedResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/stage`,\n ),\n method: \"PATCH\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactMarkCompletedResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"PATCH\",\n \"/v1/contacts/{contact_id}/stage\",\n );\n }\n\n /**\n * Assigns the contact to a team member and returns the contact. Get member IDs from `GET /v1/team-members/assignable`. `assignment_changed` tells you whether the assignee changed.\n *\n * @param {Blujay.ContactAssignParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.assign({\n * contact_id: \"contact_abc123\",\n * team_member_id: \"member_abc123\"\n * })\n */\n public assign(\n request: Blujay.ContactAssignParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactAssignResponse> {\n return core.HttpResponsePromise.fromPromise(this.__assign(request, requestOptions));\n }\n\n private async __assign(\n request: Blujay.ContactAssignParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactAssignResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/assignee`,\n ),\n method: \"PATCH\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactAssignResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"PATCH\",\n \"/v1/contacts/{contact_id}/assignee\",\n );\n }\n\n /**\n * Opts the contact out of messages. Sends to an opted-out contact are rejected with `403 RECIPIENT_SUPPRESSED`.\n *\n * @param {Blujay.ContactOptOutParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.optOut({\n * contact_id: \"contact_abc123\",\n * reason: \"Asked not to be contacted\"\n * })\n */\n public optOut(\n request: Blujay.ContactOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactOptOutResponse> {\n return core.HttpResponsePromise.fromPromise(this.__optOut(request, requestOptions));\n }\n\n private async __optOut(\n request: Blujay.ContactOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactOptOutResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/suppress`,\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactOptOutResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"POST\",\n \"/v1/contacts/{contact_id}/suppress\",\n );\n }\n\n /**\n * Removes an explicit opt-out from the contact.\n *\n * @param {Blujay.ContactRemoveOptOutParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.removeOptOut({\n * contact_id: \"contact_abc123\"\n * })\n */\n public removeOptOut(\n request: Blujay.ContactRemoveOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactRemoveOptOutResponse> {\n return core.HttpResponsePromise.fromPromise(this.__removeOptOut(request, requestOptions));\n }\n\n private async __removeOptOut(\n request: Blujay.ContactRemoveOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactRemoveOptOutResponse>> {\n const { contact_id: contactId } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/unsuppress`,\n ),\n method: \"POST\",\n headers: _headers,\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactRemoveOptOutResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"POST\",\n \"/v1/contacts/{contact_id}/unsuppress\",\n );\n }\n\n /**\n * Opts out a phone number or email address, even if it doesn't belong to a contact yet. Sends to that address are rejected with `403 RECIPIENT_SUPPRESSED`.\n *\n * @param {Blujay.ContactOptOutAddressParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.optOutAddress({\n * address: \"+15555550123\",\n * reason: \"requested_stop\"\n * })\n */\n public optOutAddress(\n request: Blujay.ContactOptOutAddressParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactOptOutAddressResponse> {\n return core.HttpResponsePromise.fromPromise(this.__optOutAddress(request, requestOptions));\n }\n\n private async __optOutAddress(\n request: Blujay.ContactOptOutAddressParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactOptOutAddressResponse>> {\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts/suppressions\",\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactOptOutAddressResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"POST\", \"/v1/contacts/suppressions\");\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../../src/api/resources/contacts/client/Client.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhE,6DAAiH;AACjH,4DAA2D;AAC3D,gEAAkD;AAClD,oEAAgF;AAChF,0EAA4D;AAC5D,gGAA0F;AAC1F,oEAAsD;AACtD,0DAA4C;AAC5C,mEAAkE;AAQlE;;GAEG;AACH,MAAa,cAAc;IAIvB,YAAY,UAAkC,EAAE;QAC5C,IAAI,CAAC,QAAQ,GAAG,IAAA,8CAA8B,EAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,IAAW,KAAK;QACZ,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,uBAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACI,KAAK,CAAC,IAAI,CACb,UAAoC,EAAE,EACtC,cAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CACnD,KAAK,EAAE,OAAiC,EAA6D,EAAE;YACnG,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;YACzC,MAAM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KAAK,GAAG;oBACJ,MAAM,IAAI,MAAM,CAAC,oBAAoB,CACjC,SAAS,CAAC,KAAK,CAAC,IAA4B,EAC5C,SAAS,CAAC,WAAW,CACxB,CAAC;gBACN,KAAK,GAAG;oBACJ,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAChC,SAAS,CAAC,KAAK,CAAC,IAA4B,EAC5C,SAAS,CAAC,WAAW,CACxB,CAAC;gBACN;oBACI,MAAM,IAAI,MAAM,CAAC,WAAW,CAAC;wBACzB,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;wBAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;QAED,OAAO,IAAA,sDAAwB,EAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACjH,CAAC;CACJ;AAlyCD,wCAkyCC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type { BaseClientOptions, BaseRequestOptions } from \"../../../../BaseClient.js\";\nimport { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from \"../../../../BaseClient.js\";\nimport { mergeHeaders } from \"../../../../core/headers.js\";\nimport * as core from \"../../../../core/index.js\";\nimport { mergeAdditionalBodyParameters } from \"../../../../core/requestBody.js\";\nimport * as environments from \"../../../../environments.js\";\nimport { handleNonStatusCodeError } from \"../../../../errors/handleNonStatusCodeError.js\";\nimport * as errors from \"../../../../errors/index.js\";\nimport * as Blujay from \"../../../index.js\";\nimport { NotesClient } from \"../resources/notes/client/Client.js\";\n\nexport declare namespace ContactsClient {\n export type Options = BaseClientOptions;\n\n export interface RequestOptions extends BaseRequestOptions {}\n}\n\n/**\n * Create, find, update, tag, assign and opt out contacts.\n */\nexport class ContactsClient {\n protected readonly _options: NormalizedClientOptionsWithAuth<ContactsClient.Options>;\n protected _notes: NotesClient | undefined;\n\n constructor(options: ContactsClient.Options = {}) {\n this._options = normalizeClientOptionsWithAuth(options);\n }\n\n public get notes(): NotesClient {\n return (this._notes ??= new NotesClient(this._options));\n }\n\n /**\n * Returns the contacts someone saved in your workspace, newest changes first. Blujay also creates a contact on its own for people you text or call, and for US numbers that text or call you; those have `saved: false` and are listed only with `saved=false`. Saving one keeps its `contact_id`.\n *\n * To read any contact you get from a message, chat or webhook, saved or not, use `GET /v1/contacts/{contact_id}`. Search finds both kinds too.\n *\n * @param {Blujay.ContactListParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.list()\n */\n public async list(\n request: Blujay.ContactListParams = {},\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.Page<Blujay.Contact, Blujay.ContactListResponse>> {\n const list = core.HttpResponsePromise.interceptFunction(\n async (request: Blujay.ContactListParams): Promise<core.WithRawResponse<Blujay.ContactListResponse>> => {\n const { saved, limit, cursor } = request;\n const _queryParams: Record<string, unknown> = {\n saved,\n limit,\n cursor,\n };\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts\",\n ),\n method: \"GET\",\n headers: _headers,\n queryString: core.url\n .queryBuilder()\n .addMany(_queryParams)\n .mergeAdditional(requestOptions?.queryParams)\n .build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactListResponse, rawResponse: _response.rawResponse };\n }\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"GET\", \"/v1/contacts\");\n },\n );\n const dataWithRawResponse = await list(request).withRawResponse();\n return new core.Page<Blujay.Contact, Blujay.ContactListResponse>({\n response: dataWithRawResponse.data,\n rawResponse: dataWithRawResponse.rawResponse,\n hasNextPage: (response) =>\n response?.data.next_cursor != null &&\n !(typeof response?.data.next_cursor === \"string\" && response?.data.next_cursor === \"\"),\n getItems: (response) => response?.data.data ?? [],\n loadPage: (response) => {\n return list(core.setObjectProperty(request, \"cursor\", response?.data.next_cursor));\n },\n });\n }\n\n /**\n * Creates a contact. `phone_number` is required; `email`, `name`, `first_name`, `last_name` and `company` are optional. Returns `409 CONTACT_ALREADY_EXISTS` if the phone number belongs to a saved contact, or the email to any other contact, in your workspace.\n *\n * If Blujay already created a contact for this phone number (`saved: false`), this saves that contact instead: it keeps its `contact_id` and `created_at`, takes the `email`, names and `company` you send, and returns `201` with `saved: true`.\n *\n * Creating a contact through the API doesn't send a webhook or start workflows that run on new contacts. To create or update in one call, use `POST /v1/contacts/import`.\n *\n * @param {Blujay.ContactCreateParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.ConflictError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.create({\n * phone_number: \"+15555550123\",\n * name: \"Ava Chen\"\n * })\n *\n * @example\n * await client.contacts.create({\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * })\n */\n public create(\n request: Blujay.ContactCreateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactCreateResponse> {\n return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));\n }\n\n private async __create(\n request: Blujay.ContactCreateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactCreateResponse>> {\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts\",\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactCreateResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 409:\n throw new Blujay.ConflictError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"POST\", \"/v1/contacts\");\n }\n\n /**\n * Creates or updates a contact by phone number. `phone_number` is required; `email`, `name`, `first_name`, `last_name` and `company` are optional.\n *\n * - If a contact has this phone number, Blujay updates it (`200`), including its email, names and company when you send them. A contact Blujay created (`saved: false`) becomes saved.\n * - If no contact has this phone number, Blujay creates one (`201`).\n * - If you send an email that already belongs to a different contact, Blujay returns `409 CONTACT_MATCH_CONFLICT` and changes nothing. This happens even when no contact has the phone number.\n *\n * The response's `created` and `updated` flags tell you which happened. Like create, import doesn't send a webhook or start workflows that run on new contacts.\n *\n * @param {Blujay.ContactUpsertParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.ConflictError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.upsert({\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * })\n */\n public upsert(\n request: Blujay.ContactUpsertParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactUpsertResponse> {\n return core.HttpResponsePromise.fromPromise(this.__upsert(request, requestOptions));\n }\n\n private async __upsert(\n request: Blujay.ContactUpsertParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactUpsertResponse>> {\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts/import\",\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactUpsertResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 409:\n throw new Blujay.ConflictError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"POST\", \"/v1/contacts/import\");\n }\n\n /**\n * Finds contacts by phone number, email address, or free text (`q`), whether or not someone saved them; each result's `saved` says which. Returns up to `limit` best matches. Results aren't paginated.\n *\n * @param {Blujay.ContactSearchParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.search({\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * q: \"Ava\"\n * })\n */\n public search(\n request: Blujay.ContactSearchParams = {},\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactSearchResponse> {\n return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));\n }\n\n private async __search(\n request: Blujay.ContactSearchParams = {},\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactSearchResponse>> {\n const { phone_number: phoneNumber, email, q, limit } = request;\n const _queryParams: Record<string, unknown> = {\n phone_number: phoneNumber,\n email,\n q,\n limit,\n };\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts/search\",\n ),\n method: \"GET\",\n headers: _headers,\n queryString: core.url\n .queryBuilder()\n .addMany(_queryParams)\n .mergeAdditional(requestOptions?.queryParams)\n .build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactSearchResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"GET\", \"/v1/contacts/search\");\n }\n\n /**\n * Returns one contact, saved or not, including its tags, stage, assignee and opt-out state.\n *\n * @param {Blujay.ContactGetParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.get({\n * contact_id: \"contact_abc123\"\n * })\n */\n public get(\n request: Blujay.ContactGetParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactGetResponse> {\n return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));\n }\n\n private async __get(\n request: Blujay.ContactGetParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactGetResponse>> {\n const { contact_id: contactId } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}`,\n ),\n method: \"GET\",\n headers: _headers,\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactGetResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"GET\", \"/v1/contacts/{contact_id}\");\n }\n\n /**\n * Deletes the contact. If the contact had opted out, the opt-out stays in place, so you still can't message that phone number or email.\n *\n * @param {Blujay.ContactDeleteParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.delete({\n * contact_id: \"contact_abc123\"\n * })\n */\n public delete(\n request: Blujay.ContactDeleteParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<void> {\n return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));\n }\n\n private async __delete(\n request: Blujay.ContactDeleteParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<void>> {\n const { contact_id: contactId } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}`,\n ),\n method: \"DELETE\",\n headers: _headers,\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: undefined, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"DELETE\", \"/v1/contacts/{contact_id}\");\n }\n\n /**\n * Changes a contact's phone number, email or name. Fields you leave out keep their values. A phone number or email that already belongs to another contact returns `409 CONTACT_ALREADY_EXISTS`. A phone number can change only while nothing has happened with the contact (no texts, chats or calls other than outbound calls that never connected, no opt-out, no Free Plan verification, no Follow Up Boss or HubSpot link, no group chat, no scheduled text waiting); otherwise the request returns `409 CONTACT_PHONE_LOCKED` with the reason in `error.details[0].reason`, and nothing is changed. Sending the contact's current phone number, or giving a number to a contact that has none, is not a change. A successful update saves a contact Blujay created (`saved` becomes `true`). To change tags, stage or assignee, use their own endpoints.\n *\n * @param {Blujay.ContactUpdateParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.ConflictError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.update({\n * contact_id: \"contact_abc123\",\n * name: \"Ava R.\"\n * })\n */\n public update(\n request: Blujay.ContactUpdateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactUpdateResponse> {\n return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));\n }\n\n private async __update(\n request: Blujay.ContactUpdateParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactUpdateResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}`,\n ),\n method: \"PATCH\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactUpdateResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 409:\n throw new Blujay.ConflictError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"PATCH\", \"/v1/contacts/{contact_id}\");\n }\n\n /**\n * Adds a tag to the contact and returns the contact. `tag_added` tells you whether the tag was new.\n *\n * @param {Blujay.ContactAddTagParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.addTag({\n * contact_id: \"contact_abc123\",\n * tag: \"VIP\"\n * })\n */\n public addTag(\n request: Blujay.ContactAddTagParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactAddTagResponse> {\n return core.HttpResponsePromise.fromPromise(this.__addTag(request, requestOptions));\n }\n\n private async __addTag(\n request: Blujay.ContactAddTagParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactAddTagResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/tags`,\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactAddTagResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"POST\",\n \"/v1/contacts/{contact_id}/tags\",\n );\n }\n\n /**\n * Sets the contact's stage to `Completed` and returns the contact. `Completed` is the only stage you can set through the API. `stage_changed` tells you whether the stage changed.\n *\n * @param {Blujay.ContactMarkCompletedParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.markCompleted({\n * contact_id: \"contact_abc123\",\n * stage: \"Completed\"\n * })\n */\n public markCompleted(\n request: Blujay.ContactMarkCompletedParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactMarkCompletedResponse> {\n return core.HttpResponsePromise.fromPromise(this.__markCompleted(request, requestOptions));\n }\n\n private async __markCompleted(\n request: Blujay.ContactMarkCompletedParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactMarkCompletedResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/stage`,\n ),\n method: \"PATCH\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactMarkCompletedResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"PATCH\",\n \"/v1/contacts/{contact_id}/stage\",\n );\n }\n\n /**\n * Assigns the contact to a team member and returns the contact. Get member IDs from `GET /v1/team-members/assignable`. `assignment_changed` tells you whether the assignee changed.\n *\n * @param {Blujay.ContactAssignParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.assign({\n * contact_id: \"contact_abc123\",\n * team_member_id: \"member_abc123\"\n * })\n */\n public assign(\n request: Blujay.ContactAssignParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactAssignResponse> {\n return core.HttpResponsePromise.fromPromise(this.__assign(request, requestOptions));\n }\n\n private async __assign(\n request: Blujay.ContactAssignParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactAssignResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/assignee`,\n ),\n method: \"PATCH\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactAssignResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"PATCH\",\n \"/v1/contacts/{contact_id}/assignee\",\n );\n }\n\n /**\n * Opts the contact out of messages. Sends to an opted-out contact are rejected with `403 RECIPIENT_SUPPRESSED`.\n *\n * @param {Blujay.ContactOptOutParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.optOut({\n * contact_id: \"contact_abc123\",\n * reason: \"Asked not to be contacted\"\n * })\n */\n public optOut(\n request: Blujay.ContactOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactOptOutResponse> {\n return core.HttpResponsePromise.fromPromise(this.__optOut(request, requestOptions));\n }\n\n private async __optOut(\n request: Blujay.ContactOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactOptOutResponse>> {\n const { contact_id: contactId, ..._body } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/suppress`,\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactOptOutResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"POST\",\n \"/v1/contacts/{contact_id}/suppress\",\n );\n }\n\n /**\n * Removes an explicit opt-out from the contact.\n *\n * @param {Blujay.ContactRemoveOptOutParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.NotFoundError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.removeOptOut({\n * contact_id: \"contact_abc123\"\n * })\n */\n public removeOptOut(\n request: Blujay.ContactRemoveOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactRemoveOptOutResponse> {\n return core.HttpResponsePromise.fromPromise(this.__removeOptOut(request, requestOptions));\n }\n\n private async __removeOptOut(\n request: Blujay.ContactRemoveOptOutParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactRemoveOptOutResponse>> {\n const { contact_id: contactId } = request;\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n `v1/contacts/${core.url.encodePathParam(contactId, errors.BlujayError)}/unsuppress`,\n ),\n method: \"POST\",\n headers: _headers,\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactRemoveOptOutResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 404:\n throw new Blujay.NotFoundError(_response.error.body as Blujay.ErrorEnvelope, _response.rawResponse);\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(\n _response.error,\n _response.rawResponse,\n \"POST\",\n \"/v1/contacts/{contact_id}/unsuppress\",\n );\n }\n\n /**\n * Opts out a phone number or email address, even if it doesn't belong to a contact yet. Sends to that address are rejected with `403 RECIPIENT_SUPPRESSED`.\n *\n * @param {Blujay.ContactOptOutAddressParams} request\n * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Blujay.BadRequestError}\n * @throws {@link Blujay.UnauthorizedError}\n * @throws {@link Blujay.TooManyRequestsError}\n * @throws {@link Blujay.InternalServerError}\n * @throws {@link errors.BlujayError}\n * @throws {@link errors.BlujayTimeoutError}\n *\n * @example\n * await client.contacts.optOutAddress({\n * address: \"+15555550123\",\n * reason: \"requested_stop\"\n * })\n */\n public optOutAddress(\n request: Blujay.ContactOptOutAddressParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): core.HttpResponsePromise<Blujay.ContactOptOutAddressResponse> {\n return core.HttpResponsePromise.fromPromise(this.__optOutAddress(request, requestOptions));\n }\n\n private async __optOutAddress(\n request: Blujay.ContactOptOutAddressParams,\n requestOptions?: ContactsClient.RequestOptions,\n ): Promise<core.WithRawResponse<Blujay.ContactOptOutAddressResponse>> {\n const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();\n const _headers: core.Fetcher.Args[\"headers\"] = mergeHeaders(\n _authRequest.headers,\n this._options?.headers,\n requestOptions?.headers,\n );\n const _response = await core.fetcher({\n url: core.url.join(\n (await core.Supplier.get(this._options.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.BlujayEnvironment.Production,\n \"v1/contacts/suppressions\",\n ),\n method: \"POST\",\n headers: _headers,\n contentType: \"application/json\",\n queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),\n requestType: \"json\",\n body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),\n timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,\n maxRetries: 0,\n abortSignal: requestOptions?.abortSignal,\n fetchFn: this._options?.fetch,\n logging: this._options.logging,\n });\n if (_response.ok) {\n return { data: _response.body as Blujay.ContactOptOutAddressResponse, rawResponse: _response.rawResponse };\n }\n\n if (_response.error.reason === \"status-code\") {\n switch (_response.error.statusCode) {\n case 400:\n throw new Blujay.BadRequestError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 401:\n throw new Blujay.UnauthorizedError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 429:\n throw new Blujay.TooManyRequestsError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n case 500:\n throw new Blujay.InternalServerError(\n _response.error.body as Blujay.ErrorEnvelope,\n _response.rawResponse,\n );\n default:\n throw new errors.BlujayError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\n });\n }\n }\n\n return handleNonStatusCodeError(_response.error, _response.rawResponse, \"POST\", \"/v1/contacts/suppressions\");\n }\n}\n"]}
|
|
@@ -22,4 +22,6 @@ export interface ContactCreateParams {
|
|
|
22
22
|
first_name?: string;
|
|
23
23
|
/** The contact's last name. Sent without `name`, the name becomes the first and last name together. */
|
|
24
24
|
last_name?: string;
|
|
25
|
+
/** The contact's company. Workflows use it for `{{contact_company}}`. */
|
|
26
|
+
company?: string;
|
|
25
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactCreateParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactCreateParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * @example\n * {\n * phone_number: \"+15555550123\",\n * name: \"Ava Chen\"\n * }\n *\n * @example\n * {\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * }\n */\nexport interface ContactCreateParams {\n /** A US phone number. */\n phone_number: string;\n email?: string;\n /** The contact's full name. Blujay also saves the first word as the first name and the rest as the last name, which workflows use for `{{contact_first_name}}` and `{{contact_last_name}}`. A `first_name` or `last_name` you send replaces that part. */\n name?: string;\n /** The contact's first name. Sent without `name`, the name becomes the first and last name together. Send both `first_name` and `last_name` with a `name` of more than two words. */\n first_name?: string;\n /** The contact's last name. Sent without `name`, the name becomes the first and last name together. */\n last_name?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactCreateParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactCreateParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * @example\n * {\n * phone_number: \"+15555550123\",\n * name: \"Ava Chen\"\n * }\n *\n * @example\n * {\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * }\n */\nexport interface ContactCreateParams {\n /** A US phone number. */\n phone_number: string;\n email?: string;\n /** The contact's full name. Blujay also saves the first word as the first name and the rest as the last name, which workflows use for `{{contact_first_name}}` and `{{contact_last_name}}`. A `first_name` or `last_name` you send replaces that part. */\n name?: string;\n /** The contact's first name. Sent without `name`, the name becomes the first and last name together. Send both `first_name` and `last_name` with a `name` of more than two words. */\n first_name?: string;\n /** The contact's last name. Sent without `name`, the name becomes the first and last name together. */\n last_name?: string;\n /** The contact's company. Workflows use it for `{{contact_company}}`. */\n company?: string;\n}\n"]}
|
|
@@ -11,7 +11,7 @@ export interface ContactSearchParams {
|
|
|
11
11
|
phone_number?: string;
|
|
12
12
|
/** Email address to match. */
|
|
13
13
|
email?: string;
|
|
14
|
-
/** Free-text search. */
|
|
14
|
+
/** Free-text search of the contact's name, phone number, email and company. */
|
|
15
15
|
q?: string;
|
|
16
16
|
/** Maximum number of matches to return. */
|
|
17
17
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactSearchParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactSearchParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * @example\n * {\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * q: \"Ava\"\n * }\n */\nexport interface ContactSearchParams {\n /** Phone number to match. */\n phone_number?: string;\n /** Email address to match. */\n email?: string;\n /** Free-text search. */\n q?: string;\n /** Maximum number of matches to return. */\n limit?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactSearchParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactSearchParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * @example\n * {\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * q: \"Ava\"\n * }\n */\nexport interface ContactSearchParams {\n /** Phone number to match. */\n phone_number?: string;\n /** Email address to match. */\n email?: string;\n /** Free-text search of the contact's name, phone number, email and company. */\n q?: string;\n /** Maximum number of matches to return. */\n limit?: number;\n}\n"]}
|
|
@@ -16,4 +16,6 @@ export interface ContactUpdateParams {
|
|
|
16
16
|
first_name?: string;
|
|
17
17
|
/** Replaces the contact's last name. Sent without `name`, the name becomes the current first name and the new last name together. */
|
|
18
18
|
last_name?: string;
|
|
19
|
+
/** Replaces the contact's company. Leave it out to keep the current one. */
|
|
20
|
+
company?: string;
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactUpdateParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactUpdateParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../../../../index.js\";\n\n/**\n * @example\n * {\n * contact_id: \"contact_abc123\",\n * name: \"Ava R.\"\n * }\n */\nexport interface ContactUpdateParams {\n contact_id: Blujay.ContactId;\n phone_number?: string;\n email?: string;\n /** Replaces the contact's full name, and its first and last name with it (the first word is the first name). A `first_name` or `last_name` you send replaces that part. */\n name?: string;\n /** Replaces the contact's first name. Sent without `name`, the name becomes the new first name and the current last name together. */\n first_name?: string;\n /** Replaces the contact's last name. Sent without `name`, the name becomes the current first name and the new last name together. */\n last_name?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactUpdateParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactUpdateParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../../../../index.js\";\n\n/**\n * @example\n * {\n * contact_id: \"contact_abc123\",\n * name: \"Ava R.\"\n * }\n */\nexport interface ContactUpdateParams {\n contact_id: Blujay.ContactId;\n phone_number?: string;\n email?: string;\n /** Replaces the contact's full name, and its first and last name with it (the first word is the first name). A `first_name` or `last_name` you send replaces that part. */\n name?: string;\n /** Replaces the contact's first name. Sent without `name`, the name becomes the new first name and the current last name together. */\n first_name?: string;\n /** Replaces the contact's last name. Sent without `name`, the name becomes the current first name and the new last name together. */\n last_name?: string;\n /** Replaces the contact's company. Leave it out to keep the current one. */\n company?: string;\n}\n"]}
|
|
@@ -16,4 +16,6 @@ export interface ContactUpsertParams {
|
|
|
16
16
|
first_name?: string;
|
|
17
17
|
/** The contact's last name. Sent without `name`, the name becomes the first and last name together. */
|
|
18
18
|
last_name?: string;
|
|
19
|
+
/** The contact's company. Workflows use it for `{{contact_company}}`. */
|
|
20
|
+
company?: string;
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactUpsertParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactUpsertParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * @example\n * {\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * }\n */\nexport interface ContactUpsertParams {\n /** A US phone number. */\n phone_number: string;\n email?: string;\n /** The contact's full name. Blujay also saves the first word as the first name and the rest as the last name, which workflows use for `{{contact_first_name}}` and `{{contact_last_name}}`. A `first_name` or `last_name` you send replaces that part. */\n name?: string;\n /** The contact's first name. Sent without `name`, the name becomes the first and last name together. Send both `first_name` and `last_name` with a `name` of more than two words. */\n first_name?: string;\n /** The contact's last name. Sent without `name`, the name becomes the first and last name together. */\n last_name?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactUpsertParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/contacts/client/requests/ContactUpsertParams.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * @example\n * {\n * phone_number: \"+15555550123\",\n * email: \"ava@example.com\",\n * name: \"Ava Chen\"\n * }\n */\nexport interface ContactUpsertParams {\n /** A US phone number. */\n phone_number: string;\n email?: string;\n /** The contact's full name. Blujay also saves the first word as the first name and the rest as the last name, which workflows use for `{{contact_first_name}}` and `{{contact_last_name}}`. A `first_name` or `last_name` you send replaces that part. */\n name?: string;\n /** The contact's first name. Sent without `name`, the name becomes the first and last name together. Send both `first_name` and `last_name` with a `name` of more than two words. */\n first_name?: string;\n /** The contact's last name. Sent without `name`, the name becomes the first and last name together. */\n last_name?: string;\n /** The contact's company. Workflows use it for `{{contact_company}}`. */\n company?: string;\n}\n"]}
|