blujay 1.2.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 +7 -0
- 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/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/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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageReceivedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookEvent.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 ReceivedMessageWebhookData.\n */\nexport interface MessageReceivedWebhookEvent {\n api_version: MessageReceivedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"MessageReceivedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookEvent.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 ReceivedMessageWebhookData.\n */\nexport interface MessageReceivedWebhookEvent {\n api_version: MessageReceivedWebhookEvent.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.MessageReceivedWebhookData;\n}\n\nexport namespace MessageReceivedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -5,17 +5,17 @@ import type * as Blujay from "../index.js";
|
|
|
5
5
|
export interface MessageUnsentWebhookData {
|
|
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
|
unsent_at: string;
|
|
21
21
|
unsent_scope: MessageUnsentWebhookData.UnsentScope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageUnsentWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookData.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AA0BhE,IAAiB,wBAAwB,CAMxC;AAND,WAAiB,wBAAwB;IACxB,oCAAW,GAAG;QACvB,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,MAAM;KACN,CAAC;AAEf,CAAC,EANgB,wBAAwB,wCAAxB,wBAAwB,QAMxC","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 unsent. It can be a message your workspace sent or a contact's message. The text is never included; when `unsent_scope` is `all`, `parts` is empty. A message someone sent you names its sender as in `message.received`.\n */\nexport interface MessageUnsentWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /**
|
|
1
|
+
{"version":3,"file":"MessageUnsentWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookData.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AA0BhE,IAAiB,wBAAwB,CAMxC;AAND,WAAiB,wBAAwB;IACxB,oCAAW,GAAG;QACvB,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,MAAM;KACN,CAAC;AAEf,CAAC,EANgB,wBAAwB,wCAAxB,wBAAwB,QAMxC","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 unsent. It can be a message your workspace sent or a contact's message. The text is never included; when `unsent_scope` is `all`, `parts` is empty. A message someone sent you names its sender as in `message.received`.\n */\nexport interface MessageUnsentWebhookData {\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 unsent_at: string;\n unsent_scope: MessageUnsentWebhookData.UnsentScope;\n}\n\nexport namespace MessageUnsentWebhookData {\n export const UnsentScope = {\n All: \"all\",\n Text: \"text\",\n } as const;\n export type UnsentScope = (typeof UnsentScope)[keyof typeof UnsentScope];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageUnsentWebhookEvent {
|
|
6
6
|
api_version: MessageUnsentWebhookEvent.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":"MessageUnsentWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookEvent.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 MessageUnsentWebhookData.\n */\nexport interface MessageUnsentWebhookEvent {\n api_version: MessageUnsentWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"MessageUnsentWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookEvent.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 MessageUnsentWebhookData.\n */\nexport interface MessageUnsentWebhookEvent {\n api_version: MessageUnsentWebhookEvent.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.MessageUnsentWebhookData;\n}\n\nexport namespace MessageUnsentWebhookEvent {\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 PhoneNumberAssignedWebhookEvent {
|
|
6
6
|
api_version: PhoneNumberAssignedWebhookEvent.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":"PhoneNumberAssignedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberAssignedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,+CAA/B,+BAA+B,QAK/C","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 PhoneNumberAssignedWebhookData.\n */\nexport interface PhoneNumberAssignedWebhookEvent {\n api_version: PhoneNumberAssignedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"PhoneNumberAssignedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberAssignedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,+CAA/B,+BAA+B,QAK/C","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 PhoneNumberAssignedWebhookData.\n */\nexport interface PhoneNumberAssignedWebhookEvent {\n api_version: PhoneNumberAssignedWebhookEvent.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.PhoneNumberAssignedWebhookData;\n}\n\nexport namespace PhoneNumberAssignedWebhookEvent {\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 PhoneNumberReleasedWebhookEvent {
|
|
6
6
|
api_version: PhoneNumberReleasedWebhookEvent.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":"PhoneNumberReleasedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberReleasedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,+CAA/B,+BAA+B,QAK/C","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 PhoneNumberReleasedWebhookData.\n */\nexport interface PhoneNumberReleasedWebhookEvent {\n api_version: PhoneNumberReleasedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"PhoneNumberReleasedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberReleasedWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,+CAA/B,+BAA+B,QAK/C","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 PhoneNumberReleasedWebhookData.\n */\nexport interface PhoneNumberReleasedWebhookEvent {\n api_version: PhoneNumberReleasedWebhookEvent.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.PhoneNumberReleasedWebhookData;\n}\n\nexport namespace PhoneNumberReleasedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -3,7 +3,7 @@ export interface ReactionWebhookData {
|
|
|
3
3
|
message_id: Blujay.MessageId;
|
|
4
4
|
chat_id: Blujay.ChatId;
|
|
5
5
|
phone_number_id: Blujay.PhoneNumberId;
|
|
6
|
-
/** The reaction.
|
|
6
|
+
/** The reaction. Contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`. */
|
|
7
7
|
reaction: ReactionWebhookData.Reaction;
|
|
8
8
|
reactor: Blujay.ReactionReactor;
|
|
9
9
|
occurred_at: string;
|
|
@@ -11,7 +11,7 @@ export interface ReactionWebhookData {
|
|
|
11
11
|
}
|
|
12
12
|
export declare namespace ReactionWebhookData {
|
|
13
13
|
/**
|
|
14
|
-
* The reaction.
|
|
14
|
+
* The reaction. Contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`.
|
|
15
15
|
*/
|
|
16
16
|
interface Reaction {
|
|
17
17
|
type: Blujay.ReactionKind;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/ReactionWebhookData.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 ReactionWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n phone_number_id: Blujay.PhoneNumberId;\n /** The reaction.
|
|
1
|
+
{"version":3,"file":"ReactionWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/ReactionWebhookData.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 ReactionWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n phone_number_id: Blujay.PhoneNumberId;\n /** The reaction. Contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`. */\n reaction: ReactionWebhookData.Reaction;\n reactor: Blujay.ReactionReactor;\n occurred_at: string;\n observed_at: string;\n}\n\nexport namespace ReactionWebhookData {\n /**\n * The reaction. Contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`.\n */\n export interface Reaction {\n type: Blujay.ReactionKind;\n part_index: number;\n /** The emoji, present when `type` is `custom`. */\n emoji?: Blujay.ReactionEmoji | undefined;\n /** The sticker, present when `type` is `sticker`. A sticker peeled onto the bubble is never removed; a sticker used as a tapback can be, and its `reaction.removed` carries the same sticker when Blujay has it. */\n sticker?: Blujay.ReactionSticker | undefined;\n }\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ReactionWebhookEvent {
|
|
6
6
|
api_version: ReactionWebhookEvent.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":"ReactionWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ReactionWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACpB,+BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,oBAAoB,oCAApB,oBAAoB,QAKpC","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 ReactionWebhookData.\n */\nexport interface ReactionWebhookEvent {\n api_version: ReactionWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"ReactionWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ReactionWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACpB,+BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,oBAAoB,oCAApB,oBAAoB,QAKpC","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 ReactionWebhookData.\n */\nexport interface ReactionWebhookEvent {\n api_version: ReactionWebhookEvent.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.ReactionWebhookData;\n}\n\nexport namespace ReactionWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Someone started or stopped typing in a direct iMessage chat
|
|
3
|
+
* Someone started or stopped typing in a direct iMessage chat or an iMessage group.
|
|
4
4
|
*
|
|
5
5
|
* `occurred_at` is when Blujay saw the indicator, not when the person pressed a key. Both start and stop events expire 60 seconds after `occurred_at`. While someone keeps typing you may get more start events, and a stop isn't guaranteed. Events can also arrive out of order. For each `chat_id` and `phone_number_id`, ignore expired or older events, and let a stop win a tie. Redelivering an event never extends its expiry.
|
|
6
6
|
*
|
|
7
|
-
* Direct-chat events
|
|
7
|
+
* Direct-chat events never include `participants`.
|
|
8
8
|
*/
|
|
9
9
|
export interface TypingWebhookData {
|
|
10
10
|
chat_id: Blujay.ChatId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/TypingWebhookData.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 * Someone started or stopped typing in a direct iMessage chat
|
|
1
|
+
{"version":3,"file":"TypingWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/TypingWebhookData.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 * Someone started or stopped typing in a direct iMessage chat or an iMessage group.\n *\n * `occurred_at` is when Blujay saw the indicator, not when the person pressed a key. Both start and stop events expire 60 seconds after `occurred_at`. While someone keeps typing you may get more start events, and a stop isn't guaranteed. Events can also arrive out of order. For each `chat_id` and `phone_number_id`, ignore expired or older events, and let a stop win a tie. Redelivering an event never extends its expiry.\n *\n * Direct-chat events never include `participants`.\n */\nexport interface TypingWebhookData {\n chat_id: Blujay.ChatId;\n phone_number_id: Blujay.PhoneNumberId;\n occurred_at: string;\n expires_at: string;\n /** Group chats only. Everyone typing in the group at `occurred_at`. Started events list at least one person; stopped events have an empty list. Replace your whole list of typers for the chat with each newer snapshot. Only current group members appear; your own numbers and former or unknown members never do. */\n participants?: Blujay.TypingWebhookParticipant[] | undefined;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface TypingWebhookEvent {
|
|
6
6
|
api_version: TypingWebhookEvent.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":"TypingWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/TypingWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IAClB,6BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC","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 TypingWebhookData.\n */\nexport interface TypingWebhookEvent {\n api_version: TypingWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"TypingWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/TypingWebhookEvent.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAoBhE,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IAClB,6BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC","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 TypingWebhookData.\n */\nexport interface TypingWebhookEvent {\n api_version: TypingWebhookEvent.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.TypingWebhookData;\n}\n\nexport namespace TypingWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
export interface WebhookEnvelope {
|
|
3
3
|
api_version: WebhookEnvelope.ApiVersion;
|
|
4
|
-
webhook_version: Blujay.
|
|
4
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
5
5
|
event_type: Blujay.WebhookEventType;
|
|
6
6
|
event_id: Blujay.EventId;
|
|
7
7
|
created_at: string;
|
|
@@ -11,11 +11,12 @@ export interface WebhookEnvelope {
|
|
|
11
11
|
/** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */
|
|
12
12
|
subscription_id: Blujay.WebhookSubscriptionId;
|
|
13
13
|
/**
|
|
14
|
-
* The event's details. The shape depends on `event_type
|
|
15
|
-
* - Message events
|
|
16
|
-
* - `message.received` events for group messages, and for direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), include `sender
|
|
17
|
-
* -
|
|
18
|
-
* - `message.failed` events may include a `failure_code` you can act on.
|
|
14
|
+
* The event's details. The shape depends on `event_type`.
|
|
15
|
+
* - Message events include `parts`. A media part gives the `attachment_id`, file details and a `download_url`.
|
|
16
|
+
* - `message.received` events for group messages, and for direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), include `sender`. A contact's direct messages include `sender` too, with the same `contact_id`. Check `sender.type` to skip `short_code` alerts.
|
|
17
|
+
* - Every message event includes `reply_to` (the same object as in message reads, or null).
|
|
18
|
+
* - `message.failed` events may include a `failure_code` you can act on. They also include `failure` with a `code` and a readable `reason`. `failure.code` is one of `network_rejected` (the messaging network rejected the message), `service_mismatch`, `sender_unavailable`, `sender_retired`, `recipient_unavailable`, `reply_requires_imessage`, `dispatch_unavailable`, `unsupported_content` (content the selected service can't send, such as a file type or size it doesn't carry) or `delivery_failed`.
|
|
19
|
+
* - `contact.tag_added` and `contact.assigned` include the `contact` as `GET /v1/contacts/{contact_id}` returns it, with `first_name`, `last_name` and `company` when it has them.
|
|
19
20
|
*/
|
|
20
21
|
data: Record<string, unknown>;
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookEnvelope.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookEnvelope.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;
|
|
1
|
+
{"version":3,"file":"WebhookEnvelope.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookEnvelope.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AA0BhE,IAAiB,eAAe,CAK/B;AALD,WAAiB,eAAe;IACf,0BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,eAAe,+BAAf,eAAe,QAK/B","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\nexport interface WebhookEnvelope {\n api_version: WebhookEnvelope.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_type: Blujay.WebhookEventType;\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 /**\n * The event's details. The shape depends on `event_type`.\n * - Message events include `parts`. A media part gives the `attachment_id`, file details and a `download_url`.\n * - `message.received` events for group messages, and for direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), include `sender`. A contact's direct messages include `sender` too, with the same `contact_id`. Check `sender.type` to skip `short_code` alerts.\n * - Every message event includes `reply_to` (the same object as in message reads, or null).\n * - `message.failed` events may include a `failure_code` you can act on. They also include `failure` with a `code` and a readable `reason`. `failure.code` is one of `network_rejected` (the messaging network rejected the message), `service_mismatch`, `sender_unavailable`, `sender_retired`, `recipient_unavailable`, `reply_requires_imessage`, `dispatch_unavailable`, `unsupported_content` (content the selected service can't send, such as a file type or size it doesn't carry) or `delivery_failed`.\n * - `contact.tag_added` and `contact.assigned` include the `contact` as `GET /v1/contacts/{contact_id}` returns it, with `first_name`, `last_name` and `company` when it has them.\n */\n data: Record<string, unknown>;\n}\n\nexport namespace WebhookEnvelope {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -2,7 +2,7 @@ import type * as Blujay from "../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* A webhook event. Check `event_type` to know the shape of `data`.
|
|
4
4
|
*/
|
|
5
|
-
export type WebhookEvent = Blujay.WebhookEvent.CallEnded | Blujay.WebhookEvent.CallRecordingReady | Blujay.WebhookEvent.MessageAccepted | Blujay.WebhookEvent.MessageSent | Blujay.WebhookEvent.MessageDelivered | Blujay.WebhookEvent.MessageRead | Blujay.WebhookEvent.MessageFailed | Blujay.WebhookEvent.ReactionAdded | Blujay.WebhookEvent.ReactionRemoved | Blujay.WebhookEvent.MessageReceived | Blujay.WebhookEvent.ChatTypingIndicatorStarted | Blujay.WebhookEvent.ChatTypingIndicatorStopped | Blujay.WebhookEvent.ParticipantAdded | Blujay.WebhookEvent.ParticipantRemoved | Blujay.WebhookEvent.ChatGroupNameUpdated | Blujay.WebhookEvent.MessageEdited | Blujay.WebhookEvent.MessageUnsent | Blujay.WebhookEvent.PhoneNumberAssigned | Blujay.WebhookEvent.PhoneNumberReleased | Blujay.WebhookEvent.
|
|
5
|
+
export type WebhookEvent = Blujay.WebhookEvent.CallEnded | Blujay.WebhookEvent.CallRecordingReady | Blujay.WebhookEvent.MessageAccepted | Blujay.WebhookEvent.MessageSent | Blujay.WebhookEvent.MessageDelivered | Blujay.WebhookEvent.MessageRead | Blujay.WebhookEvent.MessageFailed | Blujay.WebhookEvent.ReactionAdded | Blujay.WebhookEvent.ReactionRemoved | Blujay.WebhookEvent.MessageReceived | Blujay.WebhookEvent.ChatTypingIndicatorStarted | Blujay.WebhookEvent.ChatTypingIndicatorStopped | Blujay.WebhookEvent.ParticipantAdded | Blujay.WebhookEvent.ParticipantRemoved | Blujay.WebhookEvent.ChatGroupNameUpdated | Blujay.WebhookEvent.MessageEdited | Blujay.WebhookEvent.MessageUnsent | Blujay.WebhookEvent.PhoneNumberAssigned | Blujay.WebhookEvent.PhoneNumberReleased | Blujay.WebhookEvent.ContactTagAdded | Blujay.WebhookEvent.ContactAssigned | Blujay.WebhookEvent.PhoneNumberStatusUpdated;
|
|
6
6
|
export declare namespace WebhookEvent {
|
|
7
7
|
interface CallEnded extends Blujay.CallEndedWebhookEvent {
|
|
8
8
|
event_type: "call.ended";
|
|
@@ -61,13 +61,13 @@ export declare namespace WebhookEvent {
|
|
|
61
61
|
interface PhoneNumberReleased extends Blujay.PhoneNumberReleasedWebhookEvent {
|
|
62
62
|
event_type: "phone_number.released";
|
|
63
63
|
}
|
|
64
|
-
interface
|
|
65
|
-
event_type: "phone_number.status_updated";
|
|
66
|
-
}
|
|
67
|
-
interface ContactTagAdded extends Blujay.GenericWebhookEvent {
|
|
64
|
+
interface ContactTagAdded extends Blujay.ContactTagAddedWebhookEvent {
|
|
68
65
|
event_type: "contact.tag_added";
|
|
69
66
|
}
|
|
70
|
-
interface ContactAssigned extends Blujay.
|
|
67
|
+
interface ContactAssigned extends Blujay.ContactAssignedWebhookEvent {
|
|
71
68
|
event_type: "contact.assigned";
|
|
72
69
|
}
|
|
70
|
+
interface PhoneNumberStatusUpdated extends Blujay.GenericWebhookEvent {
|
|
71
|
+
event_type: "phone_number.status_updated";
|
|
72
|
+
}
|
|
73
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookEvent.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 webhook event. Check `event_type` to know the shape of `data`.\n */\nexport type WebhookEvent =\n | Blujay.WebhookEvent.CallEnded\n | Blujay.WebhookEvent.CallRecordingReady\n | Blujay.WebhookEvent.MessageAccepted\n | Blujay.WebhookEvent.MessageSent\n | Blujay.WebhookEvent.MessageDelivered\n | Blujay.WebhookEvent.MessageRead\n | Blujay.WebhookEvent.MessageFailed\n | Blujay.WebhookEvent.ReactionAdded\n | Blujay.WebhookEvent.ReactionRemoved\n | Blujay.WebhookEvent.MessageReceived\n | Blujay.WebhookEvent.ChatTypingIndicatorStarted\n | Blujay.WebhookEvent.ChatTypingIndicatorStopped\n | Blujay.WebhookEvent.ParticipantAdded\n | Blujay.WebhookEvent.ParticipantRemoved\n | Blujay.WebhookEvent.ChatGroupNameUpdated\n | Blujay.WebhookEvent.MessageEdited\n | Blujay.WebhookEvent.MessageUnsent\n | Blujay.WebhookEvent.PhoneNumberAssigned\n | Blujay.WebhookEvent.PhoneNumberReleased\n | Blujay.WebhookEvent.
|
|
1
|
+
{"version":3,"file":"WebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookEvent.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 webhook event. Check `event_type` to know the shape of `data`.\n */\nexport type WebhookEvent =\n | Blujay.WebhookEvent.CallEnded\n | Blujay.WebhookEvent.CallRecordingReady\n | Blujay.WebhookEvent.MessageAccepted\n | Blujay.WebhookEvent.MessageSent\n | Blujay.WebhookEvent.MessageDelivered\n | Blujay.WebhookEvent.MessageRead\n | Blujay.WebhookEvent.MessageFailed\n | Blujay.WebhookEvent.ReactionAdded\n | Blujay.WebhookEvent.ReactionRemoved\n | Blujay.WebhookEvent.MessageReceived\n | Blujay.WebhookEvent.ChatTypingIndicatorStarted\n | Blujay.WebhookEvent.ChatTypingIndicatorStopped\n | Blujay.WebhookEvent.ParticipantAdded\n | Blujay.WebhookEvent.ParticipantRemoved\n | Blujay.WebhookEvent.ChatGroupNameUpdated\n | Blujay.WebhookEvent.MessageEdited\n | Blujay.WebhookEvent.MessageUnsent\n | Blujay.WebhookEvent.PhoneNumberAssigned\n | Blujay.WebhookEvent.PhoneNumberReleased\n | Blujay.WebhookEvent.ContactTagAdded\n | Blujay.WebhookEvent.ContactAssigned\n | Blujay.WebhookEvent.PhoneNumberStatusUpdated;\n\nexport namespace WebhookEvent {\n export interface CallEnded extends Blujay.CallEndedWebhookEvent {\n event_type: \"call.ended\";\n }\n\n export interface CallRecordingReady extends Blujay.CallRecordingReadyWebhookEvent {\n event_type: \"call.recording_ready\";\n }\n\n export interface MessageAccepted extends Blujay.MessageLifecycleWebhookEvent {\n event_type: \"message.accepted\";\n }\n\n export interface MessageSent extends Blujay.MessageLifecycleWebhookEvent {\n event_type: \"message.sent\";\n }\n\n export interface MessageDelivered extends Blujay.MessageLifecycleWebhookEvent {\n event_type: \"message.delivered\";\n }\n\n export interface MessageRead extends Blujay.MessageLifecycleWebhookEvent {\n event_type: \"message.read\";\n }\n\n export interface MessageFailed extends Blujay.MessageLifecycleWebhookEvent {\n event_type: \"message.failed\";\n }\n\n export interface ReactionAdded extends Blujay.ReactionWebhookEvent {\n event_type: \"reaction.added\";\n }\n\n export interface ReactionRemoved extends Blujay.ReactionWebhookEvent {\n event_type: \"reaction.removed\";\n }\n\n export interface MessageReceived extends Blujay.MessageReceivedWebhookEvent {\n event_type: \"message.received\";\n }\n\n export interface ChatTypingIndicatorStarted extends Blujay.TypingWebhookEvent {\n event_type: \"chat.typing_indicator.started\";\n }\n\n export interface ChatTypingIndicatorStopped extends Blujay.TypingWebhookEvent {\n event_type: \"chat.typing_indicator.stopped\";\n }\n\n export interface ParticipantAdded extends Blujay.GroupParticipantWebhookEvent {\n event_type: \"participant.added\";\n }\n\n export interface ParticipantRemoved extends Blujay.GroupParticipantWebhookEvent {\n event_type: \"participant.removed\";\n }\n\n export interface ChatGroupNameUpdated extends Blujay.GroupNameWebhookEvent {\n event_type: \"chat.group_name_updated\";\n }\n\n export interface MessageEdited extends Blujay.MessageEditedWebhookEvent {\n event_type: \"message.edited\";\n }\n\n export interface MessageUnsent extends Blujay.MessageUnsentWebhookEvent {\n event_type: \"message.unsent\";\n }\n\n export interface PhoneNumberAssigned extends Blujay.PhoneNumberAssignedWebhookEvent {\n event_type: \"phone_number.assigned\";\n }\n\n export interface PhoneNumberReleased extends Blujay.PhoneNumberReleasedWebhookEvent {\n event_type: \"phone_number.released\";\n }\n\n export interface ContactTagAdded extends Blujay.ContactTagAddedWebhookEvent {\n event_type: \"contact.tag_added\";\n }\n\n export interface ContactAssigned extends Blujay.ContactAssignedWebhookEvent {\n event_type: \"contact.assigned\";\n }\n\n export interface PhoneNumberStatusUpdated extends Blujay.GenericWebhookEvent {\n event_type: \"phone_number.status_updated\";\n }\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The payload version the event was created with. New events carry `2026-12-01`. An event created before 2026-12-01 keeps its original version and payload when it is delivered again, so don't reject an event only because of this value.
|
|
3
|
+
*/
|
|
4
|
+
export type WebhookEventPayloadVersion = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebhookEventPayloadVersion.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookEventPayloadVersion.ts"],"names":[],"mappings":";AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * The payload version the event was created with. New events carry `2026-12-01`. An event created before 2026-12-01 keeps its original version and payload when it is delivered again, so don't reject an event only because of this value.\n */\nexport type WebhookEventPayloadVersion = string;\n"]}
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The payload version for a subscription's events.
|
|
3
|
-
* - `2026-08-20` reports the service you asked for as `requested_service` and the service actually used as `service`.
|
|
4
|
-
* - `2026-09-02` adds message `parts`.
|
|
5
|
-
* - `2026-10-03` adds iMessage group typing with a `participants` snapshot, `reply_to` on message events, voice memos as `audio` parts (`2026-09-02` reports them as `media` parts), and `saved` on the `contact` in `contact.tag_added` and `contact.assigned`.
|
|
6
|
-
* - `2026-10-30` reports contacts' emoji reactions as `reaction.added` / `reaction.removed` with type `custom` and `emoji`, and stickers with type `sticker` and `sticker`. Earlier versions receive them as `message.received`, as before.
|
|
7
|
-
*
|
|
8
|
-
* Earlier versions keep their original payload shapes and never receive group typing. Each event uses the subscription's version at the time the event was created, so changing the version affects only later events.
|
|
9
|
-
*/
|
|
1
|
+
/** The payload version for a subscription's events. `2026-12-01` is the only version today. Every event names its version in `webhook_version`. A later version would be added beside this one, and a subscription would keep its version until you change it. */
|
|
10
2
|
export declare const WebhookPayloadVersion: {
|
|
11
|
-
readonly
|
|
12
|
-
readonly TwoThousandTwentySix0801: "2026-08-01";
|
|
13
|
-
readonly TwoThousandTwentySix0820: "2026-08-20";
|
|
14
|
-
readonly TwoThousandTwentySix0902: "2026-09-02";
|
|
15
|
-
readonly TwoThousandTwentySix1003: "2026-10-03";
|
|
16
|
-
readonly TwoThousandTwentySix1030: "2026-10-30";
|
|
3
|
+
readonly TwoThousandTwentySix1201: "2026-12-01";
|
|
17
4
|
};
|
|
18
5
|
export type WebhookPayloadVersion = (typeof WebhookPayloadVersion)[keyof typeof WebhookPayloadVersion];
|
|
@@ -2,21 +2,8 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.WebhookPayloadVersion = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* The payload version for a subscription's events.
|
|
7
|
-
* - `2026-08-20` reports the service you asked for as `requested_service` and the service actually used as `service`.
|
|
8
|
-
* - `2026-09-02` adds message `parts`.
|
|
9
|
-
* - `2026-10-03` adds iMessage group typing with a `participants` snapshot, `reply_to` on message events, voice memos as `audio` parts (`2026-09-02` reports them as `media` parts), and `saved` on the `contact` in `contact.tag_added` and `contact.assigned`.
|
|
10
|
-
* - `2026-10-30` reports contacts' emoji reactions as `reaction.added` / `reaction.removed` with type `custom` and `emoji`, and stickers with type `sticker` and `sticker`. Earlier versions receive them as `message.received`, as before.
|
|
11
|
-
*
|
|
12
|
-
* Earlier versions keep their original payload shapes and never receive group typing. Each event uses the subscription's version at the time the event was created, so changing the version affects only later events.
|
|
13
|
-
*/
|
|
5
|
+
/** The payload version for a subscription's events. `2026-12-01` is the only version today. Every event names its version in `webhook_version`. A later version would be added beside this one, and a subscription would keep its version until you change it. */
|
|
14
6
|
exports.WebhookPayloadVersion = {
|
|
15
|
-
|
|
16
|
-
TwoThousandTwentySix0801: "2026-08-01",
|
|
17
|
-
TwoThousandTwentySix0820: "2026-08-20",
|
|
18
|
-
TwoThousandTwentySix0902: "2026-09-02",
|
|
19
|
-
TwoThousandTwentySix1003: "2026-10-03",
|
|
20
|
-
TwoThousandTwentySix1030: "2026-10-30",
|
|
7
|
+
TwoThousandTwentySix1201: "2026-12-01",
|
|
21
8
|
};
|
|
22
9
|
//# sourceMappingURL=WebhookPayloadVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookPayloadVersion.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookPayloadVersion.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAEhE
|
|
1
|
+
{"version":3,"file":"WebhookPayloadVersion.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookPayloadVersion.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAEhE,kQAAkQ;AACrP,QAAA,qBAAqB,GAAG;IACjC,wBAAwB,EAAE,YAAY;CAChC,CAAC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/** The payload version for a subscription's events. `2026-12-01` is the only version today. Every event names its version in `webhook_version`. A later version would be added beside this one, and a subscription would keep its version until you change it. */\nexport const WebhookPayloadVersion = {\n TwoThousandTwentySix1201: \"2026-12-01\",\n} as const;\nexport type WebhookPayloadVersion = (typeof WebhookPayloadVersion)[keyof typeof WebhookPayloadVersion];\n"]}
|
|
@@ -26,6 +26,8 @@ export * from "./ChatList.js";
|
|
|
26
26
|
export * from "./ChatParticipant.js";
|
|
27
27
|
export * from "./ChatType.js";
|
|
28
28
|
export * from "./Contact.js";
|
|
29
|
+
export * from "./ContactAssignedWebhookData.js";
|
|
30
|
+
export * from "./ContactAssignedWebhookEvent.js";
|
|
29
31
|
export * from "./ContactAssignmentActionResult.js";
|
|
30
32
|
export * from "./ContactCardProfile.js";
|
|
31
33
|
export * from "./ContactId.js";
|
|
@@ -36,6 +38,9 @@ export * from "./ContactSearchResult.js";
|
|
|
36
38
|
export * from "./ContactStageActionResult.js";
|
|
37
39
|
export * from "./ContactSuppression.js";
|
|
38
40
|
export * from "./ContactTagActionResult.js";
|
|
41
|
+
export * from "./ContactTagAddedWebhookData.js";
|
|
42
|
+
export * from "./ContactTagAddedWebhookEvent.js";
|
|
43
|
+
export * from "./ContactWebhookContact.js";
|
|
39
44
|
export * from "./DirectChatParticipant.js";
|
|
40
45
|
export * from "./ErrorEnvelope.js";
|
|
41
46
|
export * from "./ErrorObject.js";
|
|
@@ -110,6 +115,7 @@ export * from "./WebhookDeliveryAttempt.js";
|
|
|
110
115
|
export * from "./WebhookDeliveryAttemptList.js";
|
|
111
116
|
export * from "./WebhookEnvelope.js";
|
|
112
117
|
export * from "./WebhookEvent.js";
|
|
118
|
+
export * from "./WebhookEventPayloadVersion.js";
|
|
113
119
|
export * from "./WebhookEventType.js";
|
|
114
120
|
export * from "./WebhookPayloadVersion.js";
|
|
115
121
|
export * from "./WebhookPhoneNumberFilter.js";
|
|
@@ -42,6 +42,8 @@ __exportStar(require("./ChatList.js"), exports);
|
|
|
42
42
|
__exportStar(require("./ChatParticipant.js"), exports);
|
|
43
43
|
__exportStar(require("./ChatType.js"), exports);
|
|
44
44
|
__exportStar(require("./Contact.js"), exports);
|
|
45
|
+
__exportStar(require("./ContactAssignedWebhookData.js"), exports);
|
|
46
|
+
__exportStar(require("./ContactAssignedWebhookEvent.js"), exports);
|
|
45
47
|
__exportStar(require("./ContactAssignmentActionResult.js"), exports);
|
|
46
48
|
__exportStar(require("./ContactCardProfile.js"), exports);
|
|
47
49
|
__exportStar(require("./ContactId.js"), exports);
|
|
@@ -52,6 +54,9 @@ __exportStar(require("./ContactSearchResult.js"), exports);
|
|
|
52
54
|
__exportStar(require("./ContactStageActionResult.js"), exports);
|
|
53
55
|
__exportStar(require("./ContactSuppression.js"), exports);
|
|
54
56
|
__exportStar(require("./ContactTagActionResult.js"), exports);
|
|
57
|
+
__exportStar(require("./ContactTagAddedWebhookData.js"), exports);
|
|
58
|
+
__exportStar(require("./ContactTagAddedWebhookEvent.js"), exports);
|
|
59
|
+
__exportStar(require("./ContactWebhookContact.js"), exports);
|
|
55
60
|
__exportStar(require("./DirectChatParticipant.js"), exports);
|
|
56
61
|
__exportStar(require("./ErrorEnvelope.js"), exports);
|
|
57
62
|
__exportStar(require("./ErrorObject.js"), exports);
|
|
@@ -126,6 +131,7 @@ __exportStar(require("./WebhookDeliveryAttempt.js"), exports);
|
|
|
126
131
|
__exportStar(require("./WebhookDeliveryAttemptList.js"), exports);
|
|
127
132
|
__exportStar(require("./WebhookEnvelope.js"), exports);
|
|
128
133
|
__exportStar(require("./WebhookEvent.js"), exports);
|
|
134
|
+
__exportStar(require("./WebhookEventPayloadVersion.js"), exports);
|
|
129
135
|
__exportStar(require("./WebhookEventType.js"), exports);
|
|
130
136
|
__exportStar(require("./WebhookPayloadVersion.js"), exports);
|
|
131
137
|
__exportStar(require("./WebhookPhoneNumberFilter.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oEAAkD;AAClD,wEAAsD;AACtD,uDAAqC;AACrC,+DAA6C;AAC7C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,kDAAgC;AAChC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,iDAA+B;AAC/B,4DAA0C;AAC1C,6DAA2C;AAC3C,8CAA4B;AAC5B,qEAAmD;AACnD,sEAAoD;AACpD,+DAA6C;AAC7C,4CAA0B;AAC1B,gDAA8B;AAC9B,qDAAmC;AACnC,8CAA4B;AAC5B,gDAA8B;AAC9B,uDAAqC;AACrC,gDAA8B;AAC9B,+CAA6B;AAC7B,qEAAmD;AACnD,0DAAwC;AACxC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,uDAAqC;AACrC,2DAAyC;AACzC,gEAA8C;AAC9C,0DAAwC;AACxC,8DAA4C;AAC5C,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,mEAAiD;AACjD,oEAAkD;AAClD,wDAAsC;AACtC,+DAA6C;AAC7C,gDAA8B;AAC9B,0CAAwB;AACxB,uDAAqC;AACrC,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,0DAAwC;AACxC,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,qDAAmC;AACnC,sDAAoC;AACpC,iDAA+B;AAC/B,oDAAkC;AAClC,mEAAiD;AACjD,oEAAkD;AAClD,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,0DAAwC;AACxC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,mDAAiC;AACjC,sEAAoD;AACpD,uEAAqD;AACrD,qDAAmC;AACnC,uDAAqC;AACrC,sEAAoD;AACpD,uEAAqD;AACrD,qDAAmC;AACnC,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAC1C,uDAAqC;AACrC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,0DAAwC;AACxC,gEAA8C;AAC9C,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,8DAA4C;AAC5C,kEAAgD;AAChD,uDAAqC;AACrC,oDAAkC;AAClC,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,oEAAkD;AAClD,2DAAyC;AACzC,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAC/C,qEAAmD;AACnD,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC;AAClC,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,mDAAiC","sourcesContent":["export * from \"./AcceptedChatLeave.js\";\nexport * from \"./AcceptedChatMetadataMutation.js\";\nexport * from \"./AcceptedGroupParticipantMutation.js\";\nexport * from \"./AcceptedMessage.js\";\nexport * from \"./AcceptedMessageReaction.js\";\nexport * from \"./ApiKeyCredential.js\";\nexport * from \"./ApiKeySummary.js\";\nexport * from \"./AssignableTeamMemberList.js\";\nexport * from \"./AssignedTeamMember.js\";\nexport * from \"./Attachment.js\";\nexport * from \"./AttachmentId.js\";\nexport * from \"./AttachmentUpload.js\";\nexport * from \"./AudioOutputPart.js\";\nexport * from \"./AudioPart.js\";\nexport * from \"./CallEndedWebhookData.js\";\nexport * from \"./CallEndedWebhookEvent.js\";\nexport * from \"./CallId.js\";\nexport * from \"./CallRecordingReadyWebhookData.js\";\nexport * from \"./CallRecordingReadyWebhookEvent.js\";\nexport * from \"./CapabilityServiceResult.js\";\nexport * from \"./Chat.js\";\nexport * from \"./ChatIcon.js\";\nexport * from \"./ChatIconInput.js\";\nexport * from \"./ChatId.js\";\nexport * from \"./ChatList.js\";\nexport * from \"./ChatParticipant.js\";\nexport * from \"./ChatType.js\";\nexport * from \"./Contact.js\";\nexport * from \"./ContactAssignmentActionResult.js\";\nexport * from \"./ContactCardProfile.js\";\nexport * from \"./ContactId.js\";\nexport * from \"./ContactList.js\";\nexport * from \"./ContactNote.js\";\nexport * from \"./ContactNoteList.js\";\nexport * from \"./ContactSearchResult.js\";\nexport * from \"./ContactStageActionResult.js\";\nexport * from \"./ContactSuppression.js\";\nexport * from \"./ContactTagActionResult.js\";\nexport * from \"./DirectChatParticipant.js\";\nexport * from \"./ErrorEnvelope.js\";\nexport * from \"./ErrorObject.js\";\nexport * from \"./EventId.js\";\nexport * from \"./GenericWebhookEvent.js\";\nexport * from \"./GroupNameWebhookData.js\";\nexport * from \"./GroupNameWebhookEvent.js\";\nexport * from \"./GroupParticipant.js\";\nexport * from \"./GroupParticipantList.js\";\nexport * from \"./GroupParticipantWebhookData.js\";\nexport * from \"./GroupParticipantWebhookEvent.js\";\nexport * from \"./GroupPhoneNumber.js\";\nexport * from \"./GroupWebhookParticipant.js\";\nexport * from \"./LinkPart.js\";\nexport * from \"./Me.js\";\nexport * from \"./MediaOutputPart.js\";\nexport * from \"./MediaPart.js\";\nexport * from \"./MemberId.js\";\nexport * from \"./Message.js\";\nexport * from \"./MessageDegradation.js\";\nexport * from \"./MessageEditedWebhookData.js\";\nexport * from \"./MessageEditedWebhookEvent.js\";\nexport * from \"./MessageEditHistoryEntry.js\";\nexport * from \"./MessageEffect.js\";\nexport * from \"./MessageFailure.js\";\nexport * from \"./MessageId.js\";\nexport * from \"./MessageInput.js\";\nexport * from \"./MessageLifecycleWebhookData.js\";\nexport * from \"./MessageLifecycleWebhookEvent.js\";\nexport * from \"./MessageList.js\";\nexport * from \"./MessageOutputPart.js\";\nexport * from \"./MessagePart.js\";\nexport * from \"./MessageReaction.js\";\nexport * from \"./MessageReceivedWebhookData.js\";\nexport * from \"./MessageReceivedWebhookEvent.js\";\nexport * from \"./MessageReplyTo.js\";\nexport * from \"./MessageReplyToInfo.js\";\nexport * from \"./MessageSender.js\";\nexport * from \"./MessageStatus.js\";\nexport * from \"./MessageTeamMemberId.js\";\nexport * from \"./MessageUnsentWebhookData.js\";\nexport * from \"./MessageUnsentWebhookEvent.js\";\nexport * from \"./MessageWebhookRecipient.js\";\nexport * from \"./PhoneNumber.js\";\nexport * from \"./PhoneNumberAssignedWebhookData.js\";\nexport * from \"./PhoneNumberAssignedWebhookEvent.js\";\nexport * from \"./PhoneNumberId.js\";\nexport * from \"./PhoneNumberList.js\";\nexport * from \"./PhoneNumberReleasedWebhookData.js\";\nexport * from \"./PhoneNumberReleasedWebhookEvent.js\";\nexport * from \"./ReactionEmoji.js\";\nexport * from \"./ReactionKind.js\";\nexport * from \"./ReactionReactor.js\";\nexport * from \"./ReactionSticker.js\";\nexport * from \"./ReactionType.js\";\nexport * from \"./ReactionWebhookData.js\";\nexport * from \"./ReactionWebhookEvent.js\";\nexport * from \"./SuccessEnvelope.js\";\nexport * from \"./TeamMember.js\";\nexport * from \"./TextDecoration.js\";\nexport * from \"./TextPart.js\";\nexport * from \"./TraceId.js\";\nexport * from \"./TypingWebhookData.js\";\nexport * from \"./TypingWebhookEvent.js\";\nexport * from \"./TypingWebhookParticipant.js\";\nexport * from \"./Vcard.js\";\nexport * from \"./VcardFields.js\";\nexport * from \"./VcardId.js\";\nexport * from \"./VcardList.js\";\nexport * from \"./VcardPart.js\";\nexport * from \"./WebhookDeliveryAttempt.js\";\nexport * from \"./WebhookDeliveryAttemptList.js\";\nexport * from \"./WebhookEnvelope.js\";\nexport * from \"./WebhookEvent.js\";\nexport * from \"./WebhookEventType.js\";\nexport * from \"./WebhookPayloadVersion.js\";\nexport * from \"./WebhookPhoneNumberFilter.js\";\nexport * from \"./WebhookReplayAccepted.js\";\nexport * from \"./WebhookSubscribableEventType.js\";\nexport * from \"./WebhookSubscription.js\";\nexport * from \"./WebhookSubscriptionId.js\";\nexport * from \"./WebhookSubscriptionList.js\";\nexport * from \"./WebhookSubscriptionStatus.js\";\nexport * from \"./WebhookSubscriptionWithSecret.js\";\nexport * from \"./Workflow.js\";\nexport * from \"./WorkflowId.js\";\nexport * from \"./WorkflowList.js\";\nexport * from \"./WorkflowMetadata.js\";\nexport * from \"./WorkflowRunSummary.js\";\nexport * from \"./WorkflowTrigger.js\";\nexport * from \"./WorkspaceId.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oEAAkD;AAClD,wEAAsD;AACtD,uDAAqC;AACrC,+DAA6C;AAC7C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,kDAAgC;AAChC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,iDAA+B;AAC/B,4DAA0C;AAC1C,6DAA2C;AAC3C,8CAA4B;AAC5B,qEAAmD;AACnD,sEAAoD;AACpD,+DAA6C;AAC7C,4CAA0B;AAC1B,gDAA8B;AAC9B,qDAAmC;AACnC,8CAA4B;AAC5B,gDAA8B;AAC9B,uDAAqC;AACrC,gDAA8B;AAC9B,+CAA6B;AAC7B,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,0DAAwC;AACxC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,uDAAqC;AACrC,2DAAyC;AACzC,gEAA8C;AAC9C,0DAAwC;AACxC,8DAA4C;AAC5C,kEAAgD;AAChD,mEAAiD;AACjD,6DAA2C;AAC3C,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,mEAAiD;AACjD,oEAAkD;AAClD,wDAAsC;AACtC,+DAA6C;AAC7C,gDAA8B;AAC9B,0CAAwB;AACxB,uDAAqC;AACrC,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,0DAAwC;AACxC,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,qDAAmC;AACnC,sDAAoC;AACpC,iDAA+B;AAC/B,oDAAkC;AAClC,mEAAiD;AACjD,oEAAkD;AAClD,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,0DAAwC;AACxC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,mDAAiC;AACjC,sEAAoD;AACpD,uEAAqD;AACrD,qDAAmC;AACnC,uDAAqC;AACrC,sEAAoD;AACpD,uEAAqD;AACrD,qDAAmC;AACnC,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,oDAAkC;AAClC,2DAAyC;AACzC,4DAA0C;AAC1C,uDAAqC;AACrC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,0DAAwC;AACxC,gEAA8C;AAC9C,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,8DAA4C;AAC5C,kEAAgD;AAChD,uDAAqC;AACrC,oDAAkC;AAClC,kEAAgD;AAChD,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,oEAAkD;AAClD,2DAAyC;AACzC,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAC/C,qEAAmD;AACnD,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC;AAClC,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,mDAAiC","sourcesContent":["export * from \"./AcceptedChatLeave.js\";\nexport * from \"./AcceptedChatMetadataMutation.js\";\nexport * from \"./AcceptedGroupParticipantMutation.js\";\nexport * from \"./AcceptedMessage.js\";\nexport * from \"./AcceptedMessageReaction.js\";\nexport * from \"./ApiKeyCredential.js\";\nexport * from \"./ApiKeySummary.js\";\nexport * from \"./AssignableTeamMemberList.js\";\nexport * from \"./AssignedTeamMember.js\";\nexport * from \"./Attachment.js\";\nexport * from \"./AttachmentId.js\";\nexport * from \"./AttachmentUpload.js\";\nexport * from \"./AudioOutputPart.js\";\nexport * from \"./AudioPart.js\";\nexport * from \"./CallEndedWebhookData.js\";\nexport * from \"./CallEndedWebhookEvent.js\";\nexport * from \"./CallId.js\";\nexport * from \"./CallRecordingReadyWebhookData.js\";\nexport * from \"./CallRecordingReadyWebhookEvent.js\";\nexport * from \"./CapabilityServiceResult.js\";\nexport * from \"./Chat.js\";\nexport * from \"./ChatIcon.js\";\nexport * from \"./ChatIconInput.js\";\nexport * from \"./ChatId.js\";\nexport * from \"./ChatList.js\";\nexport * from \"./ChatParticipant.js\";\nexport * from \"./ChatType.js\";\nexport * from \"./Contact.js\";\nexport * from \"./ContactAssignedWebhookData.js\";\nexport * from \"./ContactAssignedWebhookEvent.js\";\nexport * from \"./ContactAssignmentActionResult.js\";\nexport * from \"./ContactCardProfile.js\";\nexport * from \"./ContactId.js\";\nexport * from \"./ContactList.js\";\nexport * from \"./ContactNote.js\";\nexport * from \"./ContactNoteList.js\";\nexport * from \"./ContactSearchResult.js\";\nexport * from \"./ContactStageActionResult.js\";\nexport * from \"./ContactSuppression.js\";\nexport * from \"./ContactTagActionResult.js\";\nexport * from \"./ContactTagAddedWebhookData.js\";\nexport * from \"./ContactTagAddedWebhookEvent.js\";\nexport * from \"./ContactWebhookContact.js\";\nexport * from \"./DirectChatParticipant.js\";\nexport * from \"./ErrorEnvelope.js\";\nexport * from \"./ErrorObject.js\";\nexport * from \"./EventId.js\";\nexport * from \"./GenericWebhookEvent.js\";\nexport * from \"./GroupNameWebhookData.js\";\nexport * from \"./GroupNameWebhookEvent.js\";\nexport * from \"./GroupParticipant.js\";\nexport * from \"./GroupParticipantList.js\";\nexport * from \"./GroupParticipantWebhookData.js\";\nexport * from \"./GroupParticipantWebhookEvent.js\";\nexport * from \"./GroupPhoneNumber.js\";\nexport * from \"./GroupWebhookParticipant.js\";\nexport * from \"./LinkPart.js\";\nexport * from \"./Me.js\";\nexport * from \"./MediaOutputPart.js\";\nexport * from \"./MediaPart.js\";\nexport * from \"./MemberId.js\";\nexport * from \"./Message.js\";\nexport * from \"./MessageDegradation.js\";\nexport * from \"./MessageEditedWebhookData.js\";\nexport * from \"./MessageEditedWebhookEvent.js\";\nexport * from \"./MessageEditHistoryEntry.js\";\nexport * from \"./MessageEffect.js\";\nexport * from \"./MessageFailure.js\";\nexport * from \"./MessageId.js\";\nexport * from \"./MessageInput.js\";\nexport * from \"./MessageLifecycleWebhookData.js\";\nexport * from \"./MessageLifecycleWebhookEvent.js\";\nexport * from \"./MessageList.js\";\nexport * from \"./MessageOutputPart.js\";\nexport * from \"./MessagePart.js\";\nexport * from \"./MessageReaction.js\";\nexport * from \"./MessageReceivedWebhookData.js\";\nexport * from \"./MessageReceivedWebhookEvent.js\";\nexport * from \"./MessageReplyTo.js\";\nexport * from \"./MessageReplyToInfo.js\";\nexport * from \"./MessageSender.js\";\nexport * from \"./MessageStatus.js\";\nexport * from \"./MessageTeamMemberId.js\";\nexport * from \"./MessageUnsentWebhookData.js\";\nexport * from \"./MessageUnsentWebhookEvent.js\";\nexport * from \"./MessageWebhookRecipient.js\";\nexport * from \"./PhoneNumber.js\";\nexport * from \"./PhoneNumberAssignedWebhookData.js\";\nexport * from \"./PhoneNumberAssignedWebhookEvent.js\";\nexport * from \"./PhoneNumberId.js\";\nexport * from \"./PhoneNumberList.js\";\nexport * from \"./PhoneNumberReleasedWebhookData.js\";\nexport * from \"./PhoneNumberReleasedWebhookEvent.js\";\nexport * from \"./ReactionEmoji.js\";\nexport * from \"./ReactionKind.js\";\nexport * from \"./ReactionReactor.js\";\nexport * from \"./ReactionSticker.js\";\nexport * from \"./ReactionType.js\";\nexport * from \"./ReactionWebhookData.js\";\nexport * from \"./ReactionWebhookEvent.js\";\nexport * from \"./SuccessEnvelope.js\";\nexport * from \"./TeamMember.js\";\nexport * from \"./TextDecoration.js\";\nexport * from \"./TextPart.js\";\nexport * from \"./TraceId.js\";\nexport * from \"./TypingWebhookData.js\";\nexport * from \"./TypingWebhookEvent.js\";\nexport * from \"./TypingWebhookParticipant.js\";\nexport * from \"./Vcard.js\";\nexport * from \"./VcardFields.js\";\nexport * from \"./VcardId.js\";\nexport * from \"./VcardList.js\";\nexport * from \"./VcardPart.js\";\nexport * from \"./WebhookDeliveryAttempt.js\";\nexport * from \"./WebhookDeliveryAttemptList.js\";\nexport * from \"./WebhookEnvelope.js\";\nexport * from \"./WebhookEvent.js\";\nexport * from \"./WebhookEventPayloadVersion.js\";\nexport * from \"./WebhookEventType.js\";\nexport * from \"./WebhookPayloadVersion.js\";\nexport * from \"./WebhookPhoneNumberFilter.js\";\nexport * from \"./WebhookReplayAccepted.js\";\nexport * from \"./WebhookSubscribableEventType.js\";\nexport * from \"./WebhookSubscription.js\";\nexport * from \"./WebhookSubscriptionId.js\";\nexport * from \"./WebhookSubscriptionList.js\";\nexport * from \"./WebhookSubscriptionStatus.js\";\nexport * from \"./WebhookSubscriptionWithSecret.js\";\nexport * from \"./Workflow.js\";\nexport * from \"./WorkflowId.js\";\nexport * from \"./WorkflowList.js\";\nexport * from \"./WorkflowMetadata.js\";\nexport * from \"./WorkflowRunSummary.js\";\nexport * from \"./WorkflowTrigger.js\";\nexport * from \"./WorkspaceId.js\";\n"]}
|
|
@@ -5,7 +5,7 @@ exports.userAgent = userAgent;
|
|
|
5
5
|
// Hand-written (not generated): the library version sent in User-Agent.
|
|
6
6
|
// Keep it equal to package.json's version; `npm test` checks.
|
|
7
7
|
const index_js_1 = require("../core/runtime/index.js");
|
|
8
|
-
exports.SDK_VERSION = "
|
|
8
|
+
exports.SDK_VERSION = "2.0.0";
|
|
9
9
|
/** For example `blujay-node/1.0.0 (darwin; arm64) Node/22.11.0`: this library, the platform, the runtime. */
|
|
10
10
|
function userAgent() {
|
|
11
11
|
return (0, index_js_1.getUserAgent)("blujay-node", exports.SDK_VERSION);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/custom/version.ts"],"names":[],"mappings":";;;AAOA,8BAEC;AATD,wEAAwE;AACxE,8DAA8D;AAC9D,uDAAwD;AAE3C,QAAA,WAAW,GAAG,OAAO,CAAC;AAEnC,6GAA6G;AAC7G,SAAgB,SAAS;IACrB,OAAO,IAAA,uBAAY,EAAC,aAAa,EAAE,mBAAW,CAAC,CAAC;AACpD,CAAC","sourcesContent":["// Hand-written (not generated): the library version sent in User-Agent.\n// Keep it equal to package.json's version; `npm test` checks.\nimport { getUserAgent } from \"../core/runtime/index.js\";\n\nexport const SDK_VERSION = \"
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/custom/version.ts"],"names":[],"mappings":";;;AAOA,8BAEC;AATD,wEAAwE;AACxE,8DAA8D;AAC9D,uDAAwD;AAE3C,QAAA,WAAW,GAAG,OAAO,CAAC;AAEnC,6GAA6G;AAC7G,SAAgB,SAAS;IACrB,OAAO,IAAA,uBAAY,EAAC,aAAa,EAAE,mBAAW,CAAC,CAAC;AACpD,CAAC","sourcesContent":["// Hand-written (not generated): the library version sent in User-Agent.\n// Keep it equal to package.json's version; `npm test` checks.\nimport { getUserAgent } from \"../core/runtime/index.js\";\n\nexport const SDK_VERSION = \"2.0.0\";\n\n/** For example `blujay-node/1.0.0 (darwin; arm64) Node/22.11.0`: this library, the platform, the runtime. */\nexport function userAgent(): string {\n return getUserAgent(\"blujay-node\", SDK_VERSION);\n}\n"]}
|
|
@@ -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,MAAM,KAAW,SAAS,CAKzB;AALD,WAAiB,SAAS;IACT,cAAI,GAAG;QAChB,KAAK,EAAE,OAAO;KACR,CAAC;AAEf,CAAC,EALgB,SAAS,KAAT,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,MAAM,KAAW,SAAS,CAKzB;AALD,WAAiB,SAAS;IACT,cAAI,GAAG;QAChB,KAAK,EAAE,OAAO;KACR,CAAC;AAEf,CAAC,EALgB,SAAS,KAAT,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;
|