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.
Files changed (150) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
  3. package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
  4. package/dist/cjs/api/types/AudioPart.d.ts +1 -1
  5. package/dist/cjs/api/types/AudioPart.js.map +1 -1
  6. package/dist/cjs/api/types/CallEndedWebhookEvent.d.ts +1 -1
  7. package/dist/cjs/api/types/CallEndedWebhookEvent.js.map +1 -1
  8. package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
  9. package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
  10. package/dist/cjs/api/types/ContactAssignedWebhookData.d.ts +10 -0
  11. package/dist/cjs/api/types/ContactAssignedWebhookData.js +4 -0
  12. package/dist/cjs/api/types/ContactAssignedWebhookData.js.map +1 -0
  13. package/dist/cjs/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
  14. package/dist/cjs/api/types/ContactAssignedWebhookEvent.js +11 -0
  15. package/dist/cjs/api/types/ContactAssignedWebhookEvent.js.map +1 -0
  16. package/dist/cjs/api/types/ContactTagAddedWebhookData.d.ts +9 -0
  17. package/dist/cjs/api/types/ContactTagAddedWebhookData.js +4 -0
  18. package/dist/cjs/api/types/ContactTagAddedWebhookData.js.map +1 -0
  19. package/dist/cjs/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
  20. package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js +11 -0
  21. package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
  22. package/dist/cjs/api/types/ContactWebhookContact.d.ts +25 -0
  23. package/dist/cjs/api/types/ContactWebhookContact.js +4 -0
  24. package/dist/cjs/api/types/ContactWebhookContact.js.map +1 -0
  25. package/dist/cjs/api/types/GenericWebhookEvent.d.ts +1 -1
  26. package/dist/cjs/api/types/GenericWebhookEvent.js.map +1 -1
  27. package/dist/cjs/api/types/GroupNameWebhookEvent.d.ts +1 -1
  28. package/dist/cjs/api/types/GroupNameWebhookEvent.js.map +1 -1
  29. package/dist/cjs/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
  30. package/dist/cjs/api/types/GroupParticipantWebhookEvent.js.map +1 -1
  31. package/dist/cjs/api/types/MessageEditedWebhookData.d.ts +6 -6
  32. package/dist/cjs/api/types/MessageEditedWebhookData.js.map +1 -1
  33. package/dist/cjs/api/types/MessageEditedWebhookEvent.d.ts +1 -1
  34. package/dist/cjs/api/types/MessageEditedWebhookEvent.js.map +1 -1
  35. package/dist/cjs/api/types/MessageLifecycleWebhookData.d.ts +5 -5
  36. package/dist/cjs/api/types/MessageLifecycleWebhookData.js.map +1 -1
  37. package/dist/cjs/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
  38. package/dist/cjs/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
  39. package/dist/cjs/api/types/MessageReceivedWebhookData.d.ts +7 -10
  40. package/dist/cjs/api/types/MessageReceivedWebhookData.js +1 -2
  41. package/dist/cjs/api/types/MessageReceivedWebhookData.js.map +1 -1
  42. package/dist/cjs/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
  43. package/dist/cjs/api/types/MessageReceivedWebhookEvent.js.map +1 -1
  44. package/dist/cjs/api/types/MessageUnsentWebhookData.d.ts +5 -5
  45. package/dist/cjs/api/types/MessageUnsentWebhookData.js.map +1 -1
  46. package/dist/cjs/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
  47. package/dist/cjs/api/types/MessageUnsentWebhookEvent.js.map +1 -1
  48. package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
  49. package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
  50. package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
  51. package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
  52. package/dist/cjs/api/types/ReactionWebhookData.d.ts +2 -2
  53. package/dist/cjs/api/types/ReactionWebhookData.js.map +1 -1
  54. package/dist/cjs/api/types/ReactionWebhookEvent.d.ts +1 -1
  55. package/dist/cjs/api/types/ReactionWebhookEvent.js.map +1 -1
  56. package/dist/cjs/api/types/TypingWebhookData.d.ts +2 -2
  57. package/dist/cjs/api/types/TypingWebhookData.js.map +1 -1
  58. package/dist/cjs/api/types/TypingWebhookEvent.d.ts +1 -1
  59. package/dist/cjs/api/types/TypingWebhookEvent.js.map +1 -1
  60. package/dist/cjs/api/types/WebhookEnvelope.d.ts +7 -6
  61. package/dist/cjs/api/types/WebhookEnvelope.js.map +1 -1
  62. package/dist/cjs/api/types/WebhookEvent.d.ts +6 -6
  63. package/dist/cjs/api/types/WebhookEvent.js.map +1 -1
  64. package/dist/cjs/api/types/WebhookEventPayloadVersion.d.ts +4 -0
  65. package/dist/cjs/api/types/WebhookEventPayloadVersion.js +4 -0
  66. package/dist/cjs/api/types/WebhookEventPayloadVersion.js.map +1 -0
  67. package/dist/cjs/api/types/WebhookPayloadVersion.d.ts +2 -15
  68. package/dist/cjs/api/types/WebhookPayloadVersion.js +2 -15
  69. package/dist/cjs/api/types/WebhookPayloadVersion.js.map +1 -1
  70. package/dist/cjs/api/types/index.d.ts +6 -0
  71. package/dist/cjs/api/types/index.js +6 -0
  72. package/dist/cjs/api/types/index.js.map +1 -1
  73. package/dist/cjs/custom/version.d.ts +1 -1
  74. package/dist/cjs/custom/version.js +1 -1
  75. package/dist/cjs/custom/version.js.map +1 -1
  76. package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
  77. package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
  78. package/dist/esm/api/types/AudioPart.d.ts +1 -1
  79. package/dist/esm/api/types/AudioPart.js.map +1 -1
  80. package/dist/esm/api/types/CallEndedWebhookEvent.d.ts +1 -1
  81. package/dist/esm/api/types/CallEndedWebhookEvent.js.map +1 -1
  82. package/dist/esm/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
  83. package/dist/esm/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
  84. package/dist/esm/api/types/ContactAssignedWebhookData.d.ts +10 -0
  85. package/dist/esm/api/types/ContactAssignedWebhookData.js +3 -0
  86. package/dist/esm/api/types/ContactAssignedWebhookData.js.map +1 -0
  87. package/dist/esm/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
  88. package/dist/esm/api/types/ContactAssignedWebhookEvent.js +8 -0
  89. package/dist/esm/api/types/ContactAssignedWebhookEvent.js.map +1 -0
  90. package/dist/esm/api/types/ContactTagAddedWebhookData.d.ts +9 -0
  91. package/dist/esm/api/types/ContactTagAddedWebhookData.js +3 -0
  92. package/dist/esm/api/types/ContactTagAddedWebhookData.js.map +1 -0
  93. package/dist/esm/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
  94. package/dist/esm/api/types/ContactTagAddedWebhookEvent.js +8 -0
  95. package/dist/esm/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
  96. package/dist/esm/api/types/ContactWebhookContact.d.ts +25 -0
  97. package/dist/esm/api/types/ContactWebhookContact.js +3 -0
  98. package/dist/esm/api/types/ContactWebhookContact.js.map +1 -0
  99. package/dist/esm/api/types/GenericWebhookEvent.d.ts +1 -1
  100. package/dist/esm/api/types/GenericWebhookEvent.js.map +1 -1
  101. package/dist/esm/api/types/GroupNameWebhookEvent.d.ts +1 -1
  102. package/dist/esm/api/types/GroupNameWebhookEvent.js.map +1 -1
  103. package/dist/esm/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
  104. package/dist/esm/api/types/GroupParticipantWebhookEvent.js.map +1 -1
  105. package/dist/esm/api/types/MessageEditedWebhookData.d.ts +6 -6
  106. package/dist/esm/api/types/MessageEditedWebhookData.js.map +1 -1
  107. package/dist/esm/api/types/MessageEditedWebhookEvent.d.ts +1 -1
  108. package/dist/esm/api/types/MessageEditedWebhookEvent.js.map +1 -1
  109. package/dist/esm/api/types/MessageLifecycleWebhookData.d.ts +5 -5
  110. package/dist/esm/api/types/MessageLifecycleWebhookData.js.map +1 -1
  111. package/dist/esm/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
  112. package/dist/esm/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
  113. package/dist/esm/api/types/MessageReceivedWebhookData.d.ts +7 -10
  114. package/dist/esm/api/types/MessageReceivedWebhookData.js +1 -2
  115. package/dist/esm/api/types/MessageReceivedWebhookData.js.map +1 -1
  116. package/dist/esm/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
  117. package/dist/esm/api/types/MessageReceivedWebhookEvent.js.map +1 -1
  118. package/dist/esm/api/types/MessageUnsentWebhookData.d.ts +5 -5
  119. package/dist/esm/api/types/MessageUnsentWebhookData.js.map +1 -1
  120. package/dist/esm/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
  121. package/dist/esm/api/types/MessageUnsentWebhookEvent.js.map +1 -1
  122. package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
  123. package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
  124. package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
  125. package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
  126. package/dist/esm/api/types/ReactionWebhookData.d.ts +2 -2
  127. package/dist/esm/api/types/ReactionWebhookData.js.map +1 -1
  128. package/dist/esm/api/types/ReactionWebhookEvent.d.ts +1 -1
  129. package/dist/esm/api/types/ReactionWebhookEvent.js.map +1 -1
  130. package/dist/esm/api/types/TypingWebhookData.d.ts +2 -2
  131. package/dist/esm/api/types/TypingWebhookData.js.map +1 -1
  132. package/dist/esm/api/types/TypingWebhookEvent.d.ts +1 -1
  133. package/dist/esm/api/types/TypingWebhookEvent.js.map +1 -1
  134. package/dist/esm/api/types/WebhookEnvelope.d.ts +7 -6
  135. package/dist/esm/api/types/WebhookEnvelope.js.map +1 -1
  136. package/dist/esm/api/types/WebhookEvent.d.ts +6 -6
  137. package/dist/esm/api/types/WebhookEvent.js.map +1 -1
  138. package/dist/esm/api/types/WebhookEventPayloadVersion.d.ts +4 -0
  139. package/dist/esm/api/types/WebhookEventPayloadVersion.js +3 -0
  140. package/dist/esm/api/types/WebhookEventPayloadVersion.js.map +1 -0
  141. package/dist/esm/api/types/WebhookPayloadVersion.d.ts +2 -15
  142. package/dist/esm/api/types/WebhookPayloadVersion.js +2 -15
  143. package/dist/esm/api/types/WebhookPayloadVersion.js.map +1 -1
  144. package/dist/esm/api/types/index.d.ts +6 -0
  145. package/dist/esm/api/types/index.js +6 -0
  146. package/dist/esm/api/types/index.js.map +1 -1
  147. package/dist/esm/custom/version.d.ts +1 -1
  148. package/dist/esm/custom/version.js +1 -1
  149. package/dist/esm/custom/version.js.map +1 -1
  150. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this library are listed here. It follows [semantic versioning](https://semver.org).
4
4
 
5
+ ## 2.0.0 (2026-11-30)
6
+
7
+ A breaking release: older webhook payload versions are gone, and contact event data is typed.
8
+
9
+ - Webhooks have one payload version, `2026-12-01`. `WebhookPayloadVersion` lists only it; the API no longer accepts the older versions. An event's `webhook_version` is now a string (`WebhookEventPayloadVersion`), because an older event delivered again keeps its original version.
10
+ - `contact.tag_added` and `contact.assigned` events are typed (`ContactTagAddedWebhookData`, `ContactAssignedWebhookData`), and their `contact` includes `first_name`, `last_name` and `company`.
11
+
5
12
  ## 1.2.0 (2026-11-27)
6
13
 
7
14
  - Contacts have a `company`. Set it when you create, update or import a contact, and search matches it.
@@ -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-10-30`, which reports contacts' emoji reactions and stickers as reaction events and otherwise matches `2026-10-03`. Existing subscriptions keep their version until you change it. */
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-10-30`, which reports contacts' emoji reactions and stickers as reaction events and otherwise matches `2026-10-03`. Existing subscriptions keep their version until you change it. */\n webhook_version?: Blujay.WebhookPayloadVersion;\n /** Defaults to `active`. A `disabled` subscription doesn't receive new events. */\n status?: Blujay.WebhookSubscriptionStatus;\n}\n"]}
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 from version `2026-10-03` return the part as `audio` with the same fields a media part has; `2026-09-02` reports it as a `media` part.
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 from version `2026-10-03` return the part as `audio` with the same fields a media part has; `2026-09-02` reports it as a `media` part.\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"]}
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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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"]}
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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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"]}
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"]}
@@ -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,4 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=ContactAssignedWebhookData.js.map
@@ -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"]}
@@ -0,0 +1,9 @@
1
+ import type * as Blujay from "../index.js";
2
+ /**
3
+ * A tag was added to a contact.
4
+ */
5
+ export interface ContactTagAddedWebhookData {
6
+ contact: Blujay.ContactWebhookContact;
7
+ /** The tag that was added. */
8
+ tag: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=ContactTagAddedWebhookData.js.map
@@ -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,4 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=ContactWebhookContact.js.map
@@ -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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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"]}
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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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"]}
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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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
+ {"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 for the subscription's payload version. Earlier versions 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 from `2026-10-03` a contact's direct messages too), as in `message.received`.
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
- /** From payload version `2026-10-03`. Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
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
- /** From payload version `2026-10-03`. The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
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
- /** From payload version `2026-10-03`, on a message you sent in a direct chat. Who it went to. Omitted for a group chat, and when the address can't be read. */
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; from payload version `2026-10-03` also for a message you sent, the same as `recipient.contact_id`. */
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
- /** From payload version `2026-10-03`. The teammate who sent the message; null for a contact's message. */
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 for the subscription's payload version. Earlier versions 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 from `2026-10-03` 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 /** From payload version `2026-10-03`. 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 /** From payload version `2026-10-03`. 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 /** From payload version `2026-10-03`, on a message you sent in a direct chat. Who it 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; from payload version `2026-10-03` also for a message you sent, the same as `recipient.contact_id`. */\n contact_id?: Blujay.ContactId | undefined;\n sender?: Blujay.MessageSender | undefined;\n /** From payload version `2026-10-03`. 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"]}
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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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
+ {"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`. Every version carries `message_id`, `chat_id`, `phone_number_id` and `status`. `2026-08-01` adds `direction`, the services, the timestamps, `failure` and `degradations`; `2026-08-20` makes `requested_service` the service you asked for; `2026-09-02` adds `parts` and the media `failure_code` values; `2026-10-03` adds `reply_to`, `team_member_id`, `chat_type`, `group_display_name`, and for a direct chat `recipient` and `contact_id`. `2026-06-14` carries only the four base fields (plus `failure_code` when the number was retired).
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
- /** From payload version `2026-10-03`. Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
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
- /** From payload version `2026-10-03`. The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
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
- /** From payload version `2026-10-03`, on a message you sent in a direct chat with a contact your workspace still has. The same as `recipient.contact_id`. */
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
- /** From payload version `2026-10-03`, on a message you sent in a direct chat. Who it went to. Omitted for a group chat, and when the address can't be read. */
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`. Every version carries `message_id`, `chat_id`, `phone_number_id` and `status`. `2026-08-01` adds `direction`, the services, the timestamps, `failure` and `degradations`; `2026-08-20` makes `requested_service` the service you asked for; `2026-09-02` adds `parts` and the media `failure_code` values; `2026-10-03` adds `reply_to`, `team_member_id`, `chat_type`, `group_display_name`, and for a direct chat `recipient` and `contact_id`. `2026-06-14` carries only the four base fields (plus `failure_code` when the number was retired).\n */\nexport interface MessageLifecycleWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /** From payload version `2026-10-03`. 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 /** From payload version `2026-10-03`. 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 /** From payload version `2026-10-03`, 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 /** From payload version `2026-10-03`, on a message you sent in a direct chat. Who it 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"]}
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.WebhookPayloadVersion;
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.WebhookPayloadVersion;\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"]}
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"]}
@@ -1,27 +1,26 @@
1
1
  import type * as Blujay from "../index.js";
2
2
  /**
3
- * Direct messages from a contact include `contact_id`, and from payload version `2026-10-03` also `sender` with the chat's phone number or email address and the same `contact_id`. Only a top-level `contact_id` marks a contact's direct message; don't treat `sender` as meaning a group. Group messages, and direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), identify who sent them in `sender` and don't include a top-level `contact_id`. Other fields follow the subscription's payload version. `message.received` is sent once per new message; older messages Blujay imports later don't trigger it.
3
+ * Direct messages from a contact include `contact_id`, and also `sender` with the chat's phone number or email address and the same `contact_id` (just `contact_id` when Blujay can't read the address). Only a top-level `contact_id` marks a contact's direct message; don't treat `sender` as meaning a group. Group messages, and direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), identify who sent them in `sender` and don't include a top-level `contact_id`. `message.received` is sent once per new message; older messages Blujay imports later don't trigger it.
4
4
  */
5
5
  export interface MessageReceivedWebhookData {
6
6
  message_id: Blujay.MessageId;
7
7
  chat_id: Blujay.ChatId;
8
- /** From payload version `2026-10-03`. Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
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
- /** From payload version `2026-10-03`. The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
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
  phone_number_id: Blujay.PhoneNumberId;
13
13
  contact_id?: Blujay.ContactId | undefined;
14
14
  sender?: Blujay.MessageSender | undefined;
15
- /** From payload version `2026-10-03`. Always null on `message.received`. */
15
+ /** Always null on `message.received`. */
16
16
  team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;
17
17
  status?: MessageReceivedWebhookData.Status | undefined;
18
18
  /** The text of the message's first text part. Omitted when the message has no text. */
19
19
  text?: string | undefined;
20
- /** The message's content, on every payload version. A media part gives the `attachment_id`, file details and a `download_url` from version `2026-09-02`. */
20
+ /** The message's content. A media part gives the `attachment_id`, file details and a `download_url`. */
21
21
  parts?: Blujay.MessageOutputPart[] | undefined;
22
- /** From payload version `2026-08-01`, as are the services, timestamps, `failure` and `degradations`. */
23
22
  direction?: MessageReceivedWebhookData.Direction | undefined;
24
- /** On payload version `2026-08-01`, the service the message arrived on. From `2026-08-20`, the service you asked for, so null for a message you received. */
23
+ /** The service you asked for, so null for a message you received. */
25
24
  requested_service?: (MessageReceivedWebhookData.RequestedService | null) | undefined;
26
25
  /** The service that carried the message. */
27
26
  service?: (MessageReceivedWebhookData.Service | null) | undefined;
@@ -31,7 +30,6 @@ export interface MessageReceivedWebhookData {
31
30
  failed_at?: (string | null) | undefined;
32
31
  failure?: (Blujay.MessageFailure | null) | undefined;
33
32
  degradations?: Blujay.MessageDegradation[] | undefined;
34
- /** From payload version `2026-10-03`. */
35
33
  reply_to?: (Blujay.MessageReplyToInfo | null) | undefined;
36
34
  }
37
35
  export declare namespace MessageReceivedWebhookData {
@@ -39,12 +37,11 @@ export declare namespace MessageReceivedWebhookData {
39
37
  readonly Received: "received";
40
38
  };
41
39
  type Status = (typeof Status)[keyof typeof Status];
42
- /** From payload version `2026-08-01`, as are the services, timestamps, `failure` and `degradations`. */
43
40
  const Direction: {
44
41
  readonly Inbound: "inbound";
45
42
  };
46
43
  type Direction = (typeof Direction)[keyof typeof Direction];
47
- /** On payload version `2026-08-01`, the service the message arrived on. From `2026-08-20`, the service you asked for, so null for a message you received. */
44
+ /** The service you asked for, so null for a message you received. */
48
45
  const RequestedService: {
49
46
  readonly Imessage: "imessage";
50
47
  readonly Rcs: "rcs";
@@ -7,11 +7,10 @@ var MessageReceivedWebhookData;
7
7
  MessageReceivedWebhookData.Status = {
8
8
  Received: "received",
9
9
  };
10
- /** From payload version `2026-08-01`, as are the services, timestamps, `failure` and `degradations`. */
11
10
  MessageReceivedWebhookData.Direction = {
12
11
  Inbound: "inbound",
13
12
  };
14
- /** On payload version `2026-08-01`, the service the message arrived on. From `2026-08-20`, the service you asked for, so null for a message you received. */
13
+ /** The service you asked for, so null for a message you received. */
15
14
  MessageReceivedWebhookData.RequestedService = {
16
15
  Imessage: "imessage",
17
16
  Rcs: "rcs",
@@ -1 +1 @@
1
- {"version":3,"file":"MessageReceivedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookData.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAwChE,IAAiB,0BAA0B,CAwB1C;AAxBD,WAAiB,0BAA0B;IAC1B,iCAAM,GAAG;QAClB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEX,wGAAwG;IAC3F,oCAAS,GAAG;QACrB,OAAO,EAAE,SAAS;KACZ,CAAC;IAEX,6JAA6J;IAChJ,2CAAgB,GAAG;QAC5B,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;IAEX,4CAA4C;IAC/B,kCAAO,GAAG;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EAxBgB,0BAA0B,0CAA1B,0BAA0B,QAwB1C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * Direct messages from a contact include `contact_id`, and from payload version `2026-10-03` also `sender` with the chat's phone number or email address and the same `contact_id`. Only a top-level `contact_id` marks a contact's direct message; don't treat `sender` as meaning a group. Group messages, and direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), identify who sent them in `sender` and don't include a top-level `contact_id`. Other fields follow the subscription's payload version. `message.received` is sent once per new message; older messages Blujay imports later don't trigger it.\n */\nexport interface MessageReceivedWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /** From payload version `2026-10-03`. 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 /** From payload version `2026-10-03`. 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 phone_number_id: Blujay.PhoneNumberId;\n contact_id?: Blujay.ContactId | undefined;\n sender?: Blujay.MessageSender | undefined;\n /** From payload version `2026-10-03`. Always null on `message.received`. */\n team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;\n status?: MessageReceivedWebhookData.Status | undefined;\n /** The text of the message's first text part. Omitted when the message has no text. */\n text?: string | undefined;\n /** The message's content, on every payload version. A media part gives the `attachment_id`, file details and a `download_url` from version `2026-09-02`. */\n parts?: Blujay.MessageOutputPart[] | undefined;\n /** From payload version `2026-08-01`, as are the services, timestamps, `failure` and `degradations`. */\n direction?: MessageReceivedWebhookData.Direction | undefined;\n /** On payload version `2026-08-01`, the service the message arrived on. From `2026-08-20`, the service you asked for, so null for a message you received. */\n requested_service?: (MessageReceivedWebhookData.RequestedService | null) | undefined;\n /** The service that carried the message. */\n service?: (MessageReceivedWebhookData.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 degradations?: Blujay.MessageDegradation[] | undefined;\n /** From payload version `2026-10-03`. */\n reply_to?: (Blujay.MessageReplyToInfo | null) | undefined;\n}\n\nexport namespace MessageReceivedWebhookData {\n export const Status = {\n Received: \"received\",\n } as const;\n export type Status = (typeof Status)[keyof typeof Status];\n /** From payload version `2026-08-01`, as are the services, timestamps, `failure` and `degradations`. */\n export const Direction = {\n Inbound: \"inbound\",\n } as const;\n export type Direction = (typeof Direction)[keyof typeof Direction];\n /** On payload version `2026-08-01`, the service the message arrived on. From `2026-08-20`, the service you asked for, so null for a message you received. */\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. */\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"]}
1
+ {"version":3,"file":"MessageReceivedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookData.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;AAsChE,IAAiB,0BAA0B,CAuB1C;AAvBD,WAAiB,0BAA0B;IAC1B,iCAAM,GAAG;QAClB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEE,oCAAS,GAAG;QACrB,OAAO,EAAE,SAAS;KACZ,CAAC;IAEX,qEAAqE;IACxD,2CAAgB,GAAG;QAC5B,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;IAEX,4CAA4C;IAC/B,kCAAO,GAAG;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EAvBgB,0BAA0B,0CAA1B,0BAA0B,QAuB1C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * Direct messages from a contact include `contact_id`, and also `sender` with the chat's phone number or email address and the same `contact_id` (just `contact_id` when Blujay can't read the address). Only a top-level `contact_id` marks a contact's direct message; don't treat `sender` as meaning a group. Group messages, and direct messages from someone who isn't a contact (an email address, a short code or a number outside the US), identify who sent them in `sender` and don't include a top-level `contact_id`. `message.received` is sent once per new message; older messages Blujay imports later don't trigger it.\n */\nexport interface MessageReceivedWebhookData {\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 phone_number_id: Blujay.PhoneNumberId;\n contact_id?: Blujay.ContactId | undefined;\n sender?: Blujay.MessageSender | undefined;\n /** Always null on `message.received`. */\n team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;\n status?: MessageReceivedWebhookData.Status | undefined;\n /** The text of the message's first text part. Omitted when the message has no text. */\n text?: string | undefined;\n /** The message's content. A media part gives the `attachment_id`, file details and a `download_url`. */\n parts?: Blujay.MessageOutputPart[] | undefined;\n direction?: MessageReceivedWebhookData.Direction | undefined;\n /** The service you asked for, so null for a message you received. */\n requested_service?: (MessageReceivedWebhookData.RequestedService | null) | undefined;\n /** The service that carried the message. */\n service?: (MessageReceivedWebhookData.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 degradations?: Blujay.MessageDegradation[] | undefined;\n reply_to?: (Blujay.MessageReplyToInfo | null) | undefined;\n}\n\nexport namespace MessageReceivedWebhookData {\n export const Status = {\n Received: \"received\",\n } as const;\n export type Status = (typeof Status)[keyof typeof Status];\n export const Direction = {\n Inbound: \"inbound\",\n } as const;\n export type Direction = (typeof Direction)[keyof typeof Direction];\n /** The service you asked for, so null for a message you received. */\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. */\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 MessageReceivedWebhookEvent {
6
6
  api_version: MessageReceivedWebhookEvent.ApiVersion;
7
- webhook_version: Blujay.WebhookPayloadVersion;
7
+ webhook_version: Blujay.WebhookEventPayloadVersion;
8
8
  event_id: Blujay.EventId;
9
9
  created_at: string;
10
10
  trace_id: Blujay.TraceId;