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
|
@@ -12,7 +12,7 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
12
12
|
/** The events to send to this endpoint (1–100). */
|
|
13
13
|
event_types: Blujay.WebhookSubscribableEventType[];
|
|
14
14
|
phone_number_filter?: Blujay.WebhookPhoneNumberFilter;
|
|
15
|
-
/** The payload version for this subscription's events. When omitted, new subscriptions use `2026-
|
|
15
|
+
/** The payload version for this subscription's events. When omitted, new subscriptions use `2026-12-01`, the only version. */
|
|
16
16
|
webhook_version?: Blujay.WebhookPayloadVersion;
|
|
17
17
|
/** Defaults to `active`. A `disabled` subscription doesn't receive new events. */
|
|
18
18
|
status?: Blujay.WebhookSubscriptionStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookSubscriptionCreateParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.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 * url: \"https://example.com/webhooks/blujay\",\n * event_types: [\"message.accepted\", \"message.sent\", \"message.delivered\", \"message.read\", \"message.failed\"]\n * }\n */\nexport interface WebhookSubscriptionCreateParams {\n /** Your HTTPS endpoint, up to 2,048 characters. It must resolve to a public address; localhost and private, link-local and cloud metadata addresses are rejected. */\n url: string;\n /** The events to send to this endpoint (1–100). */\n event_types: Blujay.WebhookSubscribableEventType[];\n phone_number_filter?: Blujay.WebhookPhoneNumberFilter;\n /** The payload version for this subscription's events. When omitted, new subscriptions use `2026-
|
|
1
|
+
{"version":3,"file":"WebhookSubscriptionCreateParams.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.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 * url: \"https://example.com/webhooks/blujay\",\n * event_types: [\"message.accepted\", \"message.sent\", \"message.delivered\", \"message.read\", \"message.failed\"]\n * }\n */\nexport interface WebhookSubscriptionCreateParams {\n /** Your HTTPS endpoint, up to 2,048 characters. It must resolve to a public address; localhost and private, link-local and cloud metadata addresses are rejected. */\n url: string;\n /** The events to send to this endpoint (1–100). */\n event_types: Blujay.WebhookSubscribableEventType[];\n phone_number_filter?: Blujay.WebhookPhoneNumberFilter;\n /** The payload version for this subscription's events. When omitted, new subscriptions use `2026-12-01`, the only version. */\n webhook_version?: Blujay.WebhookPayloadVersion;\n /** Defaults to `active`. A `disabled` subscription doesn't receive new events. */\n status?: Blujay.WebhookSubscriptionStatus;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* A voice memo. Blujay sends the audio as a native iMessage audio message, so the recipient sees the waveform player instead of an attached file. Set exactly one of `attachment_id` (an uploaded audio attachment that is ready) or `url` (a public HTTPS URL of an audio file, up to 10 MiB). It must be the only part in the message. Voice memos go out over iMessage or RCS: an audio part with `preferred_service: SMS`, or sent to a group chat carried by SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a direct message that can only reach the recipient by SMS fails with that `failure_code`. It needs a chat whose service Blujay already knows: a direct chat with no messages yet, or one whose service is SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a voice memo can't start a new group chat (`400 VALIDATION_ERROR`). An attachment that is not audio returns `415 UNSUPPORTED_ATTACHMENT_TYPE`. Blujay stores and sends every voice memo as M4A (AAC) so it plays in the iPhone app and in every browser: an attachment that is not M4A is converted into a copy the message owns, while the part keeps your `attachment_id` and your attachment stays as you uploaded it. Message reads and webhooks then describe the message's copy: `filename`, `content_type`, `size_bytes` and `download_url` are the M4A's, and `download_url` names the copy's own attachment ID. A file that can't be decoded returns `400 VOICE_MEMO_UNREADABLE`; if the conversion can't run right now the request returns `503 VOICE_MEMO_PROCESSING_UNAVAILABLE` and is safe to retry with the same `Idempotency-Key`. Message reads and webhooks
|
|
3
|
+
* A voice memo. Blujay sends the audio as a native iMessage audio message, so the recipient sees the waveform player instead of an attached file. Set exactly one of `attachment_id` (an uploaded audio attachment that is ready) or `url` (a public HTTPS URL of an audio file, up to 10 MiB). It must be the only part in the message. Voice memos go out over iMessage or RCS: an audio part with `preferred_service: SMS`, or sent to a group chat carried by SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a direct message that can only reach the recipient by SMS fails with that `failure_code`. It needs a chat whose service Blujay already knows: a direct chat with no messages yet, or one whose service is SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a voice memo can't start a new group chat (`400 VALIDATION_ERROR`). An attachment that is not audio returns `415 UNSUPPORTED_ATTACHMENT_TYPE`. Blujay stores and sends every voice memo as M4A (AAC) so it plays in the iPhone app and in every browser: an attachment that is not M4A is converted into a copy the message owns, while the part keeps your `attachment_id` and your attachment stays as you uploaded it. Message reads and webhooks then describe the message's copy: `filename`, `content_type`, `size_bytes` and `download_url` are the M4A's, and `download_url` names the copy's own attachment ID. A file that can't be decoded returns `400 VOICE_MEMO_UNREADABLE`; if the conversion can't run right now the request returns `503 VOICE_MEMO_PROCESSING_UNAVAILABLE` and is safe to retry with the same `Idempotency-Key`. Message reads and webhooks return the part as `audio` with the same fields a media part has.
|
|
4
4
|
*/
|
|
5
5
|
export interface AudioPart {
|
|
6
6
|
type: AudioPart.Type;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioPart.js","sourceRoot":"","sources":["../../../../src/api/types/AudioPart.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAchE,IAAiB,SAAS,CAKzB;AALD,WAAiB,SAAS;IACT,cAAI,GAAG;QAChB,KAAK,EAAE,OAAO;KACR,CAAC;AAEf,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A voice memo. Blujay sends the audio as a native iMessage audio message, so the recipient sees the waveform player instead of an attached file. Set exactly one of `attachment_id` (an uploaded audio attachment that is ready) or `url` (a public HTTPS URL of an audio file, up to 10 MiB). It must be the only part in the message. Voice memos go out over iMessage or RCS: an audio part with `preferred_service: SMS`, or sent to a group chat carried by SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a direct message that can only reach the recipient by SMS fails with that `failure_code`. It needs a chat whose service Blujay already knows: a direct chat with no messages yet, or one whose service is SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a voice memo can't start a new group chat (`400 VALIDATION_ERROR`). An attachment that is not audio returns `415 UNSUPPORTED_ATTACHMENT_TYPE`. Blujay stores and sends every voice memo as M4A (AAC) so it plays in the iPhone app and in every browser: an attachment that is not M4A is converted into a copy the message owns, while the part keeps your `attachment_id` and your attachment stays as you uploaded it. Message reads and webhooks then describe the message's copy: `filename`, `content_type`, `size_bytes` and `download_url` are the M4A's, and `download_url` names the copy's own attachment ID. A file that can't be decoded returns `400 VOICE_MEMO_UNREADABLE`; if the conversion can't run right now the request returns `503 VOICE_MEMO_PROCESSING_UNAVAILABLE` and is safe to retry with the same `Idempotency-Key`. Message reads and webhooks
|
|
1
|
+
{"version":3,"file":"AudioPart.js","sourceRoot":"","sources":["../../../../src/api/types/AudioPart.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAchE,IAAiB,SAAS,CAKzB;AALD,WAAiB,SAAS;IACT,cAAI,GAAG;QAChB,KAAK,EAAE,OAAO;KACR,CAAC;AAEf,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A voice memo. Blujay sends the audio as a native iMessage audio message, so the recipient sees the waveform player instead of an attached file. Set exactly one of `attachment_id` (an uploaded audio attachment that is ready) or `url` (a public HTTPS URL of an audio file, up to 10 MiB). It must be the only part in the message. Voice memos go out over iMessage or RCS: an audio part with `preferred_service: SMS`, or sent to a group chat carried by SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a direct message that can only reach the recipient by SMS fails with that `failure_code`. It needs a chat whose service Blujay already knows: a direct chat with no messages yet, or one whose service is SMS, returns `415 UNSUPPORTED_ATTACHMENT_TYPE`, and a voice memo can't start a new group chat (`400 VALIDATION_ERROR`). An attachment that is not audio returns `415 UNSUPPORTED_ATTACHMENT_TYPE`. Blujay stores and sends every voice memo as M4A (AAC) so it plays in the iPhone app and in every browser: an attachment that is not M4A is converted into a copy the message owns, while the part keeps your `attachment_id` and your attachment stays as you uploaded it. Message reads and webhooks then describe the message's copy: `filename`, `content_type`, `size_bytes` and `download_url` are the M4A's, and `download_url` names the copy's own attachment ID. A file that can't be decoded returns `400 VOICE_MEMO_UNREADABLE`; if the conversion can't run right now the request returns `503 VOICE_MEMO_PROCESSING_UNAVAILABLE` and is safe to retry with the same `Idempotency-Key`. Message reads and webhooks return the part as `audio` with the same fields a media part has.\n */\nexport interface AudioPart {\n type: AudioPart.Type;\n attachment_id?: Blujay.AttachmentId | undefined;\n /** Public HTTPS URL of an audio file (M4A/AAC, MP3, WAV, CAF, FLAC, Ogg or WebM audio), up to 10 MiB. The same safety rules as a media `url` apply. The file is stored as M4A; a file that is not audio, or audio that can't be decoded, fails the message with `UNSUPPORTED_ATTACHMENT_TYPE`. */\n url?: string | undefined;\n}\n\nexport namespace AudioPart {\n export const Type = {\n Audio: \"audio\",\n } as const;\n export type Type = (typeof Type)[keyof typeof Type];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CallEndedWebhookEvent {
|
|
6
6
|
api_version: CallEndedWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallEndedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallEndedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,qCAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallEndedWebhookData.\n */\nexport interface CallEndedWebhookEvent {\n api_version: CallEndedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"CallEndedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallEndedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,qCAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallEndedWebhookData.\n */\nexport interface CallEndedWebhookEvent {\n api_version: CallEndedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.CallEndedWebhookData;\n}\n\nexport namespace CallEndedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CallRecordingReadyWebhookEvent {
|
|
6
6
|
api_version: CallRecordingReadyWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallRecordingReadyWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallRecordingReadyWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC9B,yCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,8BAA8B,8CAA9B,8BAA8B,QAK9C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallRecordingReadyWebhookData.\n */\nexport interface CallRecordingReadyWebhookEvent {\n api_version: CallRecordingReadyWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"CallRecordingReadyWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallRecordingReadyWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC9B,yCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,8BAA8B,8CAA9B,8BAA8B,QAK9C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallRecordingReadyWebhookData.\n */\nexport interface CallRecordingReadyWebhookEvent {\n api_version: CallRecordingReadyWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.CallRecordingReadyWebhookData;\n}\n\nexport namespace CallRecordingReadyWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -6,6 +6,8 @@ export interface Contact {
|
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
first_name?: string | undefined;
|
|
8
8
|
last_name?: string | undefined;
|
|
9
|
+
/** The contact's company. Left out when the contact has none. */
|
|
10
|
+
company?: string | undefined;
|
|
9
11
|
tags: string[];
|
|
10
12
|
stage: string;
|
|
11
13
|
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contact.js","sourceRoot":"","sources":["../../../../src/api/types/Contact.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\nexport interface Contact {\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added?: boolean | undefined;\n /** Stage responses only. True when the stage changed. */\n stage_changed?: boolean | undefined;\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed?: boolean | undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Contact.js","sourceRoot":"","sources":["../../../../src/api/types/Contact.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\nexport interface Contact {\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n /** The contact's company. Left out when the contact has none. */\n company?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added?: boolean | undefined;\n /** Stage responses only. True when the stage changed. */\n stage_changed?: boolean | undefined;\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed?: boolean | undefined;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A contact's assignee changed.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactAssignedWebhookData {
|
|
6
|
+
contact: Blujay.ContactWebhookContact;
|
|
7
|
+
assignment_changed: boolean;
|
|
8
|
+
/** The new assignee, or null when the contact was unassigned. */
|
|
9
|
+
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactAssignedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/ContactAssignedWebhookData.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 * A contact's assignee changed.\n */\nexport interface ContactAssignedWebhookData {\n contact: Blujay.ContactWebhookContact;\n assignment_changed: boolean;\n /** The new assignee, or null when the contact was unassigned. */\n assigned_team_member: Blujay.AssignedTeamMember | null;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A webhook event whose `data` is ContactAssignedWebhookData.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactAssignedWebhookEvent {
|
|
6
|
+
api_version: ContactAssignedWebhookEvent.ApiVersion;
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
|
+
event_id: Blujay.EventId;
|
|
9
|
+
created_at: string;
|
|
10
|
+
trace_id: Blujay.TraceId;
|
|
11
|
+
/** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */
|
|
12
|
+
workspace_id: Blujay.WorkspaceId;
|
|
13
|
+
/** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */
|
|
14
|
+
subscription_id: Blujay.WebhookSubscriptionId;
|
|
15
|
+
data: Blujay.ContactAssignedWebhookData;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ContactAssignedWebhookEvent {
|
|
18
|
+
const ApiVersion: {
|
|
19
|
+
readonly V1: "v1";
|
|
20
|
+
};
|
|
21
|
+
type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ContactAssignedWebhookEvent = void 0;
|
|
5
|
+
var ContactAssignedWebhookEvent;
|
|
6
|
+
(function (ContactAssignedWebhookEvent) {
|
|
7
|
+
ContactAssignedWebhookEvent.ApiVersion = {
|
|
8
|
+
V1: "v1",
|
|
9
|
+
};
|
|
10
|
+
})(ContactAssignedWebhookEvent || (exports.ContactAssignedWebhookEvent = ContactAssignedWebhookEvent = {}));
|
|
11
|
+
//# sourceMappingURL=ContactAssignedWebhookEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactAssignedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ContactAssignedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,2BAA2B,CAK3C;AALD,WAAiB,2BAA2B;IAC3B,sCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,2BAA2B,2CAA3B,2BAA2B,QAK3C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is ContactAssignedWebhookData.\n */\nexport interface ContactAssignedWebhookEvent {\n api_version: ContactAssignedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.ContactAssignedWebhookData;\n}\n\nexport namespace ContactAssignedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -8,6 +8,8 @@ export interface ContactAssignmentActionResult {
|
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
first_name?: string | undefined;
|
|
10
10
|
last_name?: string | undefined;
|
|
11
|
+
/** The contact's company. Left out when the contact has none. */
|
|
12
|
+
company?: string | undefined;
|
|
11
13
|
tags: string[];
|
|
12
14
|
stage: string;
|
|
13
15
|
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactAssignmentActionResult.js","sourceRoot":"","sources":["../../../../src/api/types/ContactAssignmentActionResult.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\nexport interface ContactAssignmentActionResult {\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed: boolean;\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added?: boolean | undefined;\n /** Stage responses only. True when the stage changed. */\n stage_changed?: boolean | undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactAssignmentActionResult.js","sourceRoot":"","sources":["../../../../src/api/types/ContactAssignmentActionResult.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\nexport interface ContactAssignmentActionResult {\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed: boolean;\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n /** The contact's company. Left out when the contact has none. */\n company?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added?: boolean | undefined;\n /** Stage responses only. True when the stage changed. */\n stage_changed?: boolean | undefined;\n}\n"]}
|
|
@@ -8,6 +8,8 @@ export interface ContactStageActionResult {
|
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
first_name?: string | undefined;
|
|
10
10
|
last_name?: string | undefined;
|
|
11
|
+
/** The contact's company. Left out when the contact has none. */
|
|
12
|
+
company?: string | undefined;
|
|
11
13
|
tags: string[];
|
|
12
14
|
stage: string;
|
|
13
15
|
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactStageActionResult.js","sourceRoot":"","sources":["../../../../src/api/types/ContactStageActionResult.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\nexport interface ContactStageActionResult {\n /** Stage responses only. True when the stage changed. */\n stage_changed: boolean;\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added?: boolean | undefined;\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed?: boolean | undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactStageActionResult.js","sourceRoot":"","sources":["../../../../src/api/types/ContactStageActionResult.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\nexport interface ContactStageActionResult {\n /** Stage responses only. True when the stage changed. */\n stage_changed: boolean;\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n /** The contact's company. Left out when the contact has none. */\n company?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added?: boolean | undefined;\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed?: boolean | undefined;\n}\n"]}
|
|
@@ -8,6 +8,8 @@ export interface ContactTagActionResult {
|
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
first_name?: string | undefined;
|
|
10
10
|
last_name?: string | undefined;
|
|
11
|
+
/** The contact's company. Left out when the contact has none. */
|
|
12
|
+
company?: string | undefined;
|
|
11
13
|
tags: string[];
|
|
12
14
|
stage: string;
|
|
13
15
|
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactTagActionResult.js","sourceRoot":"","sources":["../../../../src/api/types/ContactTagActionResult.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\nexport interface ContactTagActionResult {\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added: boolean;\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Stage responses only. True when the stage changed. */\n stage_changed?: boolean | undefined;\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed?: boolean | undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContactTagActionResult.js","sourceRoot":"","sources":["../../../../src/api/types/ContactTagActionResult.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\nexport interface ContactTagActionResult {\n /** Add-tag responses only. True when the tag was new to this contact. */\n tag_added: boolean;\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n /** The contact's company. Left out when the contact has none. */\n company?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact: created or edited it in Blujay or through the API, imported it, or Blujay linked it to a record in a connected CRM. `false` for a contact Blujay created on its own when you texted or called a number, or it texted or called you. Creating, importing or updating it through the API saves it; tags, stage, assignee and opt-outs don't. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n /** Import responses only. True when the import created a new contact. */\n created?: boolean | undefined;\n /** Import responses only. True when the import updated an existing contact. */\n updated?: boolean | undefined;\n /** Stage responses only. True when the stage changed. */\n stage_changed?: boolean | undefined;\n /** Assignee responses only. True when the assignee changed. */\n assignment_changed?: boolean | undefined;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactTagAddedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/ContactTagAddedWebhookData.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 * A tag was added to a contact.\n */\nexport interface ContactTagAddedWebhookData {\n contact: Blujay.ContactWebhookContact;\n /** The tag that was added. */\n tag: string;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A webhook event whose `data` is ContactTagAddedWebhookData.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactTagAddedWebhookEvent {
|
|
6
|
+
api_version: ContactTagAddedWebhookEvent.ApiVersion;
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
|
+
event_id: Blujay.EventId;
|
|
9
|
+
created_at: string;
|
|
10
|
+
trace_id: Blujay.TraceId;
|
|
11
|
+
/** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */
|
|
12
|
+
workspace_id: Blujay.WorkspaceId;
|
|
13
|
+
/** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */
|
|
14
|
+
subscription_id: Blujay.WebhookSubscriptionId;
|
|
15
|
+
data: Blujay.ContactTagAddedWebhookData;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ContactTagAddedWebhookEvent {
|
|
18
|
+
const ApiVersion: {
|
|
19
|
+
readonly V1: "v1";
|
|
20
|
+
};
|
|
21
|
+
type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ContactTagAddedWebhookEvent = void 0;
|
|
5
|
+
var ContactTagAddedWebhookEvent;
|
|
6
|
+
(function (ContactTagAddedWebhookEvent) {
|
|
7
|
+
ContactTagAddedWebhookEvent.ApiVersion = {
|
|
8
|
+
V1: "v1",
|
|
9
|
+
};
|
|
10
|
+
})(ContactTagAddedWebhookEvent || (exports.ContactTagAddedWebhookEvent = ContactTagAddedWebhookEvent = {}));
|
|
11
|
+
//# sourceMappingURL=ContactTagAddedWebhookEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactTagAddedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ContactTagAddedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,2BAA2B,CAK3C;AALD,WAAiB,2BAA2B;IAC3B,sCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,2BAA2B,2CAA3B,2BAA2B,QAK3C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is ContactTagAddedWebhookData.\n */\nexport interface ContactTagAddedWebhookEvent {\n api_version: ContactTagAddedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.ContactTagAddedWebhookData;\n}\n\nexport namespace ContactTagAddedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The contact as `GET /v1/contacts/{contact_id}` returns it.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactWebhookContact {
|
|
6
|
+
contact_id: Blujay.ContactId;
|
|
7
|
+
phone_number?: string | undefined;
|
|
8
|
+
email?: string | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
first_name?: string | undefined;
|
|
11
|
+
last_name?: string | undefined;
|
|
12
|
+
/** The contact's company. Left out when the contact has none. */
|
|
13
|
+
company?: string | undefined;
|
|
14
|
+
tags: string[];
|
|
15
|
+
stage: string;
|
|
16
|
+
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
17
|
+
opted_out: boolean;
|
|
18
|
+
opted_out_at?: string | undefined;
|
|
19
|
+
opted_out_source?: string | undefined;
|
|
20
|
+
messaging_allowed: boolean;
|
|
21
|
+
/** `true` when someone saved this contact, as on `GET /v1/contacts/{contact_id}`. */
|
|
22
|
+
saved: boolean;
|
|
23
|
+
created_at: string;
|
|
24
|
+
updated_at: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactWebhookContact.js","sourceRoot":"","sources":["../../../../src/api/types/ContactWebhookContact.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 * The contact as `GET /v1/contacts/{contact_id}` returns it.\n */\nexport interface ContactWebhookContact {\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n /** The contact's company. Left out when the contact has none. */\n company?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact, as on `GET /v1/contacts/{contact_id}`. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface GenericWebhookEvent {
|
|
6
6
|
api_version: GenericWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GenericWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IACnB,8BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,mBAAmB,mCAAnB,mBAAmB,QAKnC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` the API reference doesn't describe yet. Read `data` as a plain object.\n */\nexport interface GenericWebhookEvent {\n api_version: GenericWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"GenericWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GenericWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IACnB,8BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,mBAAmB,mCAAnB,mBAAmB,QAKnC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` the API reference doesn't describe yet. Read `data` as a plain object.\n */\nexport interface GenericWebhookEvent {\n api_version: GenericWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Record<string, unknown>;\n}\n\nexport namespace GenericWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface GroupNameWebhookEvent {
|
|
6
6
|
api_version: GroupNameWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupNameWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupNameWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,qCAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is GroupNameWebhookData.\n */\nexport interface GroupNameWebhookEvent {\n api_version: GroupNameWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"GroupNameWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupNameWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,qCAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is GroupNameWebhookData.\n */\nexport interface GroupNameWebhookEvent {\n api_version: GroupNameWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.GroupNameWebhookData;\n}\n\nexport namespace GroupNameWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface GroupParticipantWebhookEvent {
|
|
6
6
|
api_version: GroupParticipantWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupParticipantWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupParticipantWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC5B,uCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,4BAA4B,4CAA5B,4BAA4B,QAK5C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is GroupParticipantWebhookData.\n */\nexport interface GroupParticipantWebhookEvent {\n api_version: GroupParticipantWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"GroupParticipantWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupParticipantWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC5B,uCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,4BAA4B,4CAA5B,4BAA4B,QAK5C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is GroupParticipantWebhookData.\n */\nexport interface GroupParticipantWebhookEvent {\n api_version: GroupParticipantWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.GroupParticipantWebhookData;\n}\n\nexport namespace GroupParticipantWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the message fields
|
|
3
|
+
* An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the same message fields as the other message events. Earlier versions of the text are never included; read them with `GET /v1/messages/{message_id}?include=edit_history`. A message someone sent you includes `contact_id` (a contact in a direct chat) and `sender` (group chats, direct senders who aren't contacts, and a contact's direct messages too), as in `message.received`.
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageEditedWebhookData {
|
|
6
6
|
message_id: Blujay.MessageId;
|
|
7
7
|
chat_id: Blujay.ChatId;
|
|
8
|
-
/**
|
|
8
|
+
/** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
|
|
9
9
|
chat_type?: Blujay.ChatType | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
|
|
11
11
|
group_display_name?: (string | null) | undefined;
|
|
12
|
-
/**
|
|
12
|
+
/** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */
|
|
13
13
|
recipient?: Blujay.MessageWebhookRecipient | undefined;
|
|
14
14
|
phone_number_id: Blujay.PhoneNumberId;
|
|
15
|
-
/** The contact in a direct chat. For a message you received, its contact;
|
|
15
|
+
/** The contact in a direct chat. For a message you received, its contact; for a message you sent, the same as `recipient.contact_id`. */
|
|
16
16
|
contact_id?: Blujay.ContactId | undefined;
|
|
17
17
|
sender?: Blujay.MessageSender | undefined;
|
|
18
|
-
/**
|
|
18
|
+
/** The teammate who sent the message; null for a contact's message. */
|
|
19
19
|
team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;
|
|
20
20
|
text?: string | undefined;
|
|
21
21
|
edited_at: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEditedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookData.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 * An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the message fields
|
|
1
|
+
{"version":3,"file":"MessageEditedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookData.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 * An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the same message fields as the other message events. Earlier versions of the text are never included; read them with `GET /v1/messages/{message_id}?include=edit_history`. A message someone sent you includes `contact_id` (a contact in a direct chat) and `sender` (group chats, direct senders who aren't contacts, and a contact's direct messages too), as in `message.received`.\n */\nexport interface MessageEditedWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */\n chat_type?: Blujay.ChatType | undefined;\n /** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */\n group_display_name?: (string | null) | undefined;\n /** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */\n recipient?: Blujay.MessageWebhookRecipient | undefined;\n phone_number_id: Blujay.PhoneNumberId;\n /** The contact in a direct chat. For a message you received, its contact; for a message you sent, the same as `recipient.contact_id`. */\n contact_id?: Blujay.ContactId | undefined;\n sender?: Blujay.MessageSender | undefined;\n /** The teammate who sent the message; null for a contact's message. */\n team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;\n text?: string | undefined;\n edited_at: string;\n edit_count: number;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageEditedWebhookEvent {
|
|
6
6
|
api_version: MessageEditedWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEditedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,yBAAyB,CAKzC;AALD,WAAiB,yBAAyB;IACzB,oCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,yBAAyB,yCAAzB,yBAAyB,QAKzC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is MessageEditedWebhookData.\n */\nexport interface MessageEditedWebhookEvent {\n api_version: MessageEditedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"MessageEditedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,yBAAyB,CAKzC;AALD,WAAiB,yBAAyB;IACzB,oCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,yBAAyB,yCAAzB,yBAAyB,QAKzC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is MessageEditedWebhookData.\n */\nexport interface MessageEditedWebhookEvent {\n api_version: MessageEditedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.MessageEditedWebhookData;\n}\n\nexport namespace MessageEditedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`.
|
|
3
|
+
* `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`. A message you sent in a direct chat also says who it went to in `recipient` and `contact_id`.
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageLifecycleWebhookData {
|
|
6
6
|
message_id: Blujay.MessageId;
|
|
7
7
|
chat_id: Blujay.ChatId;
|
|
8
|
-
/**
|
|
8
|
+
/** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
|
|
9
9
|
chat_type?: Blujay.ChatType | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
|
|
11
11
|
group_display_name?: (string | null) | undefined;
|
|
12
|
-
/**
|
|
12
|
+
/** On a message you sent in a direct chat with a contact your workspace still has. The same as `recipient.contact_id`. */
|
|
13
13
|
contact_id?: Blujay.ContactId | undefined;
|
|
14
|
-
/**
|
|
14
|
+
/** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */
|
|
15
15
|
recipient?: Blujay.MessageWebhookRecipient | undefined;
|
|
16
16
|
phone_number_id: Blujay.PhoneNumberId;
|
|
17
17
|
status: MessageLifecycleWebhookData.Status;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageLifecycleWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookData.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAsChE,IAAiB,2BAA2B,CA2B3C;AA3BD,WAAiB,2BAA2B;IAC3B,kCAAM,GAAG;QAClB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;KACV,CAAC;IAEE,qCAAS,GAAG;QACrB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEX,mDAAmD;IACtC,4CAAgB,GAAG;QAC5B,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;IAEX,4DAA4D;IAC/C,mCAAO,GAAG;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EA3BgB,2BAA2B,2CAA3B,2BAA2B,QA2B3C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`.
|
|
1
|
+
{"version":3,"file":"MessageLifecycleWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookData.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAsChE,IAAiB,2BAA2B,CA2B3C;AA3BD,WAAiB,2BAA2B;IAC3B,kCAAM,GAAG;QAClB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;KACV,CAAC;IAEE,qCAAS,GAAG;QACrB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEX,mDAAmD;IACtC,4CAAgB,GAAG;QAC5B,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;IAEX,4DAA4D;IAC/C,mCAAO,GAAG;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EA3BgB,2BAA2B,2CAA3B,2BAA2B,QA2B3C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`. A message you sent in a direct chat also says who it went to in `recipient` and `contact_id`.\n */\nexport interface MessageLifecycleWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */\n chat_type?: Blujay.ChatType | undefined;\n /** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */\n group_display_name?: (string | null) | undefined;\n /** On a message you sent in a direct chat with a contact your workspace still has. The same as `recipient.contact_id`. */\n contact_id?: Blujay.ContactId | undefined;\n /** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */\n recipient?: Blujay.MessageWebhookRecipient | undefined;\n phone_number_id: Blujay.PhoneNumberId;\n status: MessageLifecycleWebhookData.Status;\n direction?: MessageLifecycleWebhookData.Direction | undefined;\n /** The service you asked for, or null for Auto. */\n requested_service?: (MessageLifecycleWebhookData.RequestedService | null) | undefined;\n /** The service that carried the message, once confirmed. */\n service?: (MessageLifecycleWebhookData.Service | null) | undefined;\n sent_at?: (string | null) | undefined;\n delivered_at?: (string | null) | undefined;\n read_at?: (string | null) | undefined;\n failed_at?: (string | null) | undefined;\n failure?: (Blujay.MessageFailure | null) | undefined;\n /** Present on `message.failed` for failures you can act on; the same values as the message object's `failure_code`. */\n failure_code?: string | undefined;\n degradations?: Blujay.MessageDegradation[] | undefined;\n parts?: Blujay.MessageOutputPart[] | undefined;\n reply_to?: (Blujay.MessageReplyToInfo | null) | undefined;\n team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;\n}\n\nexport namespace MessageLifecycleWebhookData {\n export const Status = {\n Accepted: \"accepted\",\n Sent: \"sent\",\n Delivered: \"delivered\",\n Read: \"read\",\n Failed: \"failed\",\n } as const;\n export type Status = (typeof Status)[keyof typeof Status];\n export const Direction = {\n Outbound: \"outbound\",\n } as const;\n export type Direction = (typeof Direction)[keyof typeof Direction];\n /** The service you asked for, or null for Auto. */\n export const RequestedService = {\n Imessage: \"imessage\",\n Rcs: \"rcs\",\n Sms: \"sms\",\n } as const;\n export type RequestedService = (typeof RequestedService)[keyof typeof RequestedService];\n /** The service that carried the message, once confirmed. */\n export const Service = {\n Imessage: \"imessage\",\n Rcs: \"rcs\",\n Sms: \"sms\",\n } as const;\n export type Service = (typeof Service)[keyof typeof Service];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageLifecycleWebhookEvent {
|
|
6
6
|
api_version: MessageLifecycleWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageLifecycleWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC5B,uCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,4BAA4B,4CAA5B,4BAA4B,QAK5C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is MessageLifecycleWebhookData.\n */\nexport interface MessageLifecycleWebhookEvent {\n api_version: MessageLifecycleWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"MessageLifecycleWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC5B,uCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,4BAA4B,4CAA5B,4BAA4B,QAK5C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is MessageLifecycleWebhookData.\n */\nexport interface MessageLifecycleWebhookEvent {\n api_version: MessageLifecycleWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.MessageLifecycleWebhookData;\n}\n\nexport namespace MessageLifecycleWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|