blujay 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/api/resources/contacts/client/Client.d.ts +4 -4
  3. package/dist/cjs/api/resources/contacts/client/Client.js +4 -4
  4. package/dist/cjs/api/resources/contacts/client/Client.js.map +1 -1
  5. package/dist/cjs/api/resources/contacts/client/requests/ContactCreateParams.d.ts +2 -0
  6. package/dist/cjs/api/resources/contacts/client/requests/ContactCreateParams.js.map +1 -1
  7. package/dist/cjs/api/resources/contacts/client/requests/ContactSearchParams.d.ts +1 -1
  8. package/dist/cjs/api/resources/contacts/client/requests/ContactSearchParams.js.map +1 -1
  9. package/dist/cjs/api/resources/contacts/client/requests/ContactUpdateParams.d.ts +2 -0
  10. package/dist/cjs/api/resources/contacts/client/requests/ContactUpdateParams.js.map +1 -1
  11. package/dist/cjs/api/resources/contacts/client/requests/ContactUpsertParams.d.ts +2 -0
  12. package/dist/cjs/api/resources/contacts/client/requests/ContactUpsertParams.js.map +1 -1
  13. package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
  14. package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
  15. package/dist/cjs/api/types/AudioPart.d.ts +1 -1
  16. package/dist/cjs/api/types/AudioPart.js.map +1 -1
  17. package/dist/cjs/api/types/CallEndedWebhookEvent.d.ts +1 -1
  18. package/dist/cjs/api/types/CallEndedWebhookEvent.js.map +1 -1
  19. package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
  20. package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
  21. package/dist/cjs/api/types/Contact.d.ts +2 -0
  22. package/dist/cjs/api/types/Contact.js.map +1 -1
  23. package/dist/cjs/api/types/ContactAssignedWebhookData.d.ts +10 -0
  24. package/dist/cjs/api/types/ContactAssignedWebhookData.js +4 -0
  25. package/dist/cjs/api/types/ContactAssignedWebhookData.js.map +1 -0
  26. package/dist/cjs/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
  27. package/dist/cjs/api/types/ContactAssignedWebhookEvent.js +11 -0
  28. package/dist/cjs/api/types/ContactAssignedWebhookEvent.js.map +1 -0
  29. package/dist/cjs/api/types/ContactAssignmentActionResult.d.ts +2 -0
  30. package/dist/cjs/api/types/ContactAssignmentActionResult.js.map +1 -1
  31. package/dist/cjs/api/types/ContactStageActionResult.d.ts +2 -0
  32. package/dist/cjs/api/types/ContactStageActionResult.js.map +1 -1
  33. package/dist/cjs/api/types/ContactTagActionResult.d.ts +2 -0
  34. package/dist/cjs/api/types/ContactTagActionResult.js.map +1 -1
  35. package/dist/cjs/api/types/ContactTagAddedWebhookData.d.ts +9 -0
  36. package/dist/cjs/api/types/ContactTagAddedWebhookData.js +4 -0
  37. package/dist/cjs/api/types/ContactTagAddedWebhookData.js.map +1 -0
  38. package/dist/cjs/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
  39. package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js +11 -0
  40. package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
  41. package/dist/cjs/api/types/ContactWebhookContact.d.ts +25 -0
  42. package/dist/cjs/api/types/ContactWebhookContact.js +4 -0
  43. package/dist/cjs/api/types/ContactWebhookContact.js.map +1 -0
  44. package/dist/cjs/api/types/GenericWebhookEvent.d.ts +1 -1
  45. package/dist/cjs/api/types/GenericWebhookEvent.js.map +1 -1
  46. package/dist/cjs/api/types/GroupNameWebhookEvent.d.ts +1 -1
  47. package/dist/cjs/api/types/GroupNameWebhookEvent.js.map +1 -1
  48. package/dist/cjs/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
  49. package/dist/cjs/api/types/GroupParticipantWebhookEvent.js.map +1 -1
  50. package/dist/cjs/api/types/MessageEditedWebhookData.d.ts +6 -6
  51. package/dist/cjs/api/types/MessageEditedWebhookData.js.map +1 -1
  52. package/dist/cjs/api/types/MessageEditedWebhookEvent.d.ts +1 -1
  53. package/dist/cjs/api/types/MessageEditedWebhookEvent.js.map +1 -1
  54. package/dist/cjs/api/types/MessageLifecycleWebhookData.d.ts +5 -5
  55. package/dist/cjs/api/types/MessageLifecycleWebhookData.js.map +1 -1
  56. package/dist/cjs/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
  57. package/dist/cjs/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
  58. package/dist/cjs/api/types/MessageReceivedWebhookData.d.ts +7 -10
  59. package/dist/cjs/api/types/MessageReceivedWebhookData.js +1 -2
  60. package/dist/cjs/api/types/MessageReceivedWebhookData.js.map +1 -1
  61. package/dist/cjs/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
  62. package/dist/cjs/api/types/MessageReceivedWebhookEvent.js.map +1 -1
  63. package/dist/cjs/api/types/MessageUnsentWebhookData.d.ts +5 -5
  64. package/dist/cjs/api/types/MessageUnsentWebhookData.js.map +1 -1
  65. package/dist/cjs/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
  66. package/dist/cjs/api/types/MessageUnsentWebhookEvent.js.map +1 -1
  67. package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
  68. package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
  69. package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
  70. package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
  71. package/dist/cjs/api/types/ReactionWebhookData.d.ts +2 -2
  72. package/dist/cjs/api/types/ReactionWebhookData.js.map +1 -1
  73. package/dist/cjs/api/types/ReactionWebhookEvent.d.ts +1 -1
  74. package/dist/cjs/api/types/ReactionWebhookEvent.js.map +1 -1
  75. package/dist/cjs/api/types/TypingWebhookData.d.ts +2 -2
  76. package/dist/cjs/api/types/TypingWebhookData.js.map +1 -1
  77. package/dist/cjs/api/types/TypingWebhookEvent.d.ts +1 -1
  78. package/dist/cjs/api/types/TypingWebhookEvent.js.map +1 -1
  79. package/dist/cjs/api/types/WebhookEnvelope.d.ts +7 -6
  80. package/dist/cjs/api/types/WebhookEnvelope.js.map +1 -1
  81. package/dist/cjs/api/types/WebhookEvent.d.ts +6 -6
  82. package/dist/cjs/api/types/WebhookEvent.js.map +1 -1
  83. package/dist/cjs/api/types/WebhookEventPayloadVersion.d.ts +4 -0
  84. package/dist/cjs/api/types/WebhookEventPayloadVersion.js +4 -0
  85. package/dist/cjs/api/types/WebhookEventPayloadVersion.js.map +1 -0
  86. package/dist/cjs/api/types/WebhookPayloadVersion.d.ts +2 -15
  87. package/dist/cjs/api/types/WebhookPayloadVersion.js +2 -15
  88. package/dist/cjs/api/types/WebhookPayloadVersion.js.map +1 -1
  89. package/dist/cjs/api/types/index.d.ts +6 -0
  90. package/dist/cjs/api/types/index.js +6 -0
  91. package/dist/cjs/api/types/index.js.map +1 -1
  92. package/dist/cjs/custom/version.d.ts +1 -1
  93. package/dist/cjs/custom/version.js +1 -1
  94. package/dist/cjs/custom/version.js.map +1 -1
  95. package/dist/esm/api/resources/contacts/client/Client.d.ts +4 -4
  96. package/dist/esm/api/resources/contacts/client/Client.js +4 -4
  97. package/dist/esm/api/resources/contacts/client/Client.js.map +1 -1
  98. package/dist/esm/api/resources/contacts/client/requests/ContactCreateParams.d.ts +2 -0
  99. package/dist/esm/api/resources/contacts/client/requests/ContactCreateParams.js.map +1 -1
  100. package/dist/esm/api/resources/contacts/client/requests/ContactSearchParams.d.ts +1 -1
  101. package/dist/esm/api/resources/contacts/client/requests/ContactSearchParams.js.map +1 -1
  102. package/dist/esm/api/resources/contacts/client/requests/ContactUpdateParams.d.ts +2 -0
  103. package/dist/esm/api/resources/contacts/client/requests/ContactUpdateParams.js.map +1 -1
  104. package/dist/esm/api/resources/contacts/client/requests/ContactUpsertParams.d.ts +2 -0
  105. package/dist/esm/api/resources/contacts/client/requests/ContactUpsertParams.js.map +1 -1
  106. package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
  107. package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
  108. package/dist/esm/api/types/AudioPart.d.ts +1 -1
  109. package/dist/esm/api/types/AudioPart.js.map +1 -1
  110. package/dist/esm/api/types/CallEndedWebhookEvent.d.ts +1 -1
  111. package/dist/esm/api/types/CallEndedWebhookEvent.js.map +1 -1
  112. package/dist/esm/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
  113. package/dist/esm/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
  114. package/dist/esm/api/types/Contact.d.ts +2 -0
  115. package/dist/esm/api/types/Contact.js.map +1 -1
  116. package/dist/esm/api/types/ContactAssignedWebhookData.d.ts +10 -0
  117. package/dist/esm/api/types/ContactAssignedWebhookData.js +3 -0
  118. package/dist/esm/api/types/ContactAssignedWebhookData.js.map +1 -0
  119. package/dist/esm/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
  120. package/dist/esm/api/types/ContactAssignedWebhookEvent.js +8 -0
  121. package/dist/esm/api/types/ContactAssignedWebhookEvent.js.map +1 -0
  122. package/dist/esm/api/types/ContactAssignmentActionResult.d.ts +2 -0
  123. package/dist/esm/api/types/ContactAssignmentActionResult.js.map +1 -1
  124. package/dist/esm/api/types/ContactStageActionResult.d.ts +2 -0
  125. package/dist/esm/api/types/ContactStageActionResult.js.map +1 -1
  126. package/dist/esm/api/types/ContactTagActionResult.d.ts +2 -0
  127. package/dist/esm/api/types/ContactTagActionResult.js.map +1 -1
  128. package/dist/esm/api/types/ContactTagAddedWebhookData.d.ts +9 -0
  129. package/dist/esm/api/types/ContactTagAddedWebhookData.js +3 -0
  130. package/dist/esm/api/types/ContactTagAddedWebhookData.js.map +1 -0
  131. package/dist/esm/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
  132. package/dist/esm/api/types/ContactTagAddedWebhookEvent.js +8 -0
  133. package/dist/esm/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
  134. package/dist/esm/api/types/ContactWebhookContact.d.ts +25 -0
  135. package/dist/esm/api/types/ContactWebhookContact.js +3 -0
  136. package/dist/esm/api/types/ContactWebhookContact.js.map +1 -0
  137. package/dist/esm/api/types/GenericWebhookEvent.d.ts +1 -1
  138. package/dist/esm/api/types/GenericWebhookEvent.js.map +1 -1
  139. package/dist/esm/api/types/GroupNameWebhookEvent.d.ts +1 -1
  140. package/dist/esm/api/types/GroupNameWebhookEvent.js.map +1 -1
  141. package/dist/esm/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
  142. package/dist/esm/api/types/GroupParticipantWebhookEvent.js.map +1 -1
  143. package/dist/esm/api/types/MessageEditedWebhookData.d.ts +6 -6
  144. package/dist/esm/api/types/MessageEditedWebhookData.js.map +1 -1
  145. package/dist/esm/api/types/MessageEditedWebhookEvent.d.ts +1 -1
  146. package/dist/esm/api/types/MessageEditedWebhookEvent.js.map +1 -1
  147. package/dist/esm/api/types/MessageLifecycleWebhookData.d.ts +5 -5
  148. package/dist/esm/api/types/MessageLifecycleWebhookData.js.map +1 -1
  149. package/dist/esm/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
  150. package/dist/esm/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
  151. package/dist/esm/api/types/MessageReceivedWebhookData.d.ts +7 -10
  152. package/dist/esm/api/types/MessageReceivedWebhookData.js +1 -2
  153. package/dist/esm/api/types/MessageReceivedWebhookData.js.map +1 -1
  154. package/dist/esm/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
  155. package/dist/esm/api/types/MessageReceivedWebhookEvent.js.map +1 -1
  156. package/dist/esm/api/types/MessageUnsentWebhookData.d.ts +5 -5
  157. package/dist/esm/api/types/MessageUnsentWebhookData.js.map +1 -1
  158. package/dist/esm/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
  159. package/dist/esm/api/types/MessageUnsentWebhookEvent.js.map +1 -1
  160. package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
  161. package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
  162. package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
  163. package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
  164. package/dist/esm/api/types/ReactionWebhookData.d.ts +2 -2
  165. package/dist/esm/api/types/ReactionWebhookData.js.map +1 -1
  166. package/dist/esm/api/types/ReactionWebhookEvent.d.ts +1 -1
  167. package/dist/esm/api/types/ReactionWebhookEvent.js.map +1 -1
  168. package/dist/esm/api/types/TypingWebhookData.d.ts +2 -2
  169. package/dist/esm/api/types/TypingWebhookData.js.map +1 -1
  170. package/dist/esm/api/types/TypingWebhookEvent.d.ts +1 -1
  171. package/dist/esm/api/types/TypingWebhookEvent.js.map +1 -1
  172. package/dist/esm/api/types/WebhookEnvelope.d.ts +7 -6
  173. package/dist/esm/api/types/WebhookEnvelope.js.map +1 -1
  174. package/dist/esm/api/types/WebhookEvent.d.ts +6 -6
  175. package/dist/esm/api/types/WebhookEvent.js.map +1 -1
  176. package/dist/esm/api/types/WebhookEventPayloadVersion.d.ts +4 -0
  177. package/dist/esm/api/types/WebhookEventPayloadVersion.js +3 -0
  178. package/dist/esm/api/types/WebhookEventPayloadVersion.js.map +1 -0
  179. package/dist/esm/api/types/WebhookPayloadVersion.d.ts +2 -15
  180. package/dist/esm/api/types/WebhookPayloadVersion.js +2 -15
  181. package/dist/esm/api/types/WebhookPayloadVersion.js.map +1 -1
  182. package/dist/esm/api/types/index.d.ts +6 -0
  183. package/dist/esm/api/types/index.js +6 -0
  184. package/dist/esm/api/types/index.js.map +1 -1
  185. package/dist/esm/custom/version.d.ts +1 -1
  186. package/dist/esm/custom/version.js +1 -1
  187. package/dist/esm/custom/version.js.map +1 -1
  188. package/package.json +1 -1
  189. package/reference.md +4 -4
@@ -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,MAAM,KAAW,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC5B,uCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,4BAA4B,KAA5B,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,MAAM,KAAW,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC5B,uCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,4BAA4B,KAA5B,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";
@@ -4,11 +4,10 @@ export var MessageReceivedWebhookData;
4
4
  MessageReceivedWebhookData.Status = {
5
5
  Received: "received",
6
6
  };
7
- /** From payload version `2026-08-01`, as are the services, timestamps, `failure` and `degradations`. */
8
7
  MessageReceivedWebhookData.Direction = {
9
8
  Inbound: "inbound",
10
9
  };
11
- /** 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. */
10
+ /** The service you asked for, so null for a message you received. */
12
11
  MessageReceivedWebhookData.RequestedService = {
13
12
  Imessage: "imessage",
14
13
  Rcs: "rcs",
@@ -1 +1 @@
1
- {"version":3,"file":"MessageReceivedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAwChE,MAAM,KAAW,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,KAA1B,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,MAAM,KAAW,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,KAA1B,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;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageReceivedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,2BAA2B,CAK3C;AALD,WAAiB,2BAA2B;IAC3B,sCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,2BAA2B,KAA3B,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.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.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"]}
1
+ {"version":3,"file":"MessageReceivedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageReceivedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,2BAA2B,CAK3C;AALD,WAAiB,2BAA2B;IAC3B,sCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,2BAA2B,KAA3B,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
- /** 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
  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,MAAM,KAAW,wBAAwB,CAMxC;AAND,WAAiB,wBAAwB;IACxB,oCAAW,GAAG;QACvB,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,MAAM;KACN,CAAC;AAEf,CAAC,EANgB,wBAAwB,KAAxB,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 /** 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 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"]}
1
+ {"version":3,"file":"MessageUnsentWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE;AA0BhE,MAAM,KAAW,wBAAwB,CAMxC;AAND,WAAiB,wBAAwB;IACxB,oCAAW,GAAG;QACvB,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,MAAM;KACN,CAAC;AAEf,CAAC,EANgB,wBAAwB,KAAxB,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.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":"MessageUnsentWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,yBAAyB,CAKzC;AALD,WAAiB,yBAAyB;IACzB,oCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,yBAAyB,KAAzB,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.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.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"]}
1
+ {"version":3,"file":"MessageUnsentWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,yBAAyB,CAKzC;AALD,WAAiB,yBAAyB;IACzB,oCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,yBAAyB,KAAzB,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.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":"PhoneNumberAssignedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberAssignedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,KAA/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.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.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"]}
1
+ {"version":3,"file":"PhoneNumberAssignedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberAssignedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,KAA/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.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":"PhoneNumberReleasedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberReleasedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,KAA/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.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.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"]}
1
+ {"version":3,"file":"PhoneNumberReleasedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/PhoneNumberReleasedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC/B,0CAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,+BAA+B,KAA/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. From webhook version `2026-10-30`, contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`; subscriptions pinned to earlier versions receive only the six standard tapbacks here, and the others as `message.received`. */
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. From webhook version `2026-10-30`, contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`; subscriptions pinned to earlier versions receive only the six standard tapbacks here, and the others as `message.received`.
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. From webhook version `2026-10-30`, contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`; subscriptions pinned to earlier versions receive only the six standard tapbacks here, and the others as `message.received`. */\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. From webhook version `2026-10-30`, contacts' emoji reactions arrive as `custom` with `emoji`, and stickers as `sticker` with `sticker`; subscriptions pinned to earlier versions receive only the six standard tapbacks here, and the others as `message.received`.\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"]}
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.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":"ReactionWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ReactionWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACpB,+BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,oBAAoB,KAApB,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.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.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
+ {"version":3,"file":"ReactionWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ReactionWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACpB,+BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,oBAAoB,KAApB,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, or, from payload version `2026-10-03`, in an iMessage group.
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 have the same shape on every payload version and never include `participants`.
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, or, from payload version `2026-10-03`, in 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 have the same shape on every payload version and 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"]}
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.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":"TypingWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/TypingWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IAClB,6BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,kBAAkB,KAAlB,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.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.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
+ {"version":3,"file":"TypingWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/TypingWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IAClB,6BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,kBAAkB,KAAlB,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.WebhookPayloadVersion;
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` and the subscription's payload version.
15
- * - Message events on version `2026-09-02` and later 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` on every version. From version `2026-10-03`, a contact's direct messages include `sender` too, with the same `contact_id`. Check `sender.type` to skip `short_code` alerts.
17
- * - Version `2026-10-03` adds `reply_to` to every message event (the same object as in message reads, or null). Earlier versions never include it.
18
- * - `message.failed` events may include a `failure_code` you can act on. On version `2026-08-01` and later 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`.
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;AAyBhE,MAAM,KAAW,eAAe,CAK/B;AALD,WAAiB,eAAe;IACf,0BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,eAAe,KAAf,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.WebhookPayloadVersion;\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` and the subscription's payload version.\n * - Message events on version `2026-09-02` and later 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` on every version. From version `2026-10-03`, a contact's direct messages include `sender` too, with the same `contact_id`. Check `sender.type` to skip `short_code` alerts.\n * - Version `2026-10-03` adds `reply_to` to every message event (the same object as in message reads, or null). Earlier versions never include it.\n * - `message.failed` events may include a `failure_code` you can act on. On version `2026-08-01` and later 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 */\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"]}
1
+ {"version":3,"file":"WebhookEnvelope.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookEnvelope.ts"],"names":[],"mappings":"AAAA,gEAAgE;AA0BhE,MAAM,KAAW,eAAe,CAK/B;AALD,WAAiB,eAAe;IACf,0BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,eAAe,KAAf,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.PhoneNumberStatusUpdated | Blujay.WebhookEvent.ContactTagAdded | Blujay.WebhookEvent.ContactAssigned;
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 PhoneNumberStatusUpdated extends Blujay.GenericWebhookEvent {
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.GenericWebhookEvent {
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.PhoneNumberStatusUpdated\n | Blujay.WebhookEvent.ContactTagAdded\n | Blujay.WebhookEvent.ContactAssigned;\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 PhoneNumberStatusUpdated extends Blujay.GenericWebhookEvent {\n event_type: \"phone_number.status_updated\";\n }\n\n export interface ContactTagAdded extends Blujay.GenericWebhookEvent {\n event_type: \"contact.tag_added\";\n }\n\n export interface ContactAssigned extends Blujay.GenericWebhookEvent {\n event_type: \"contact.assigned\";\n }\n}\n"]}
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
3
+ //# sourceMappingURL=WebhookEventPayloadVersion.js.map
@@ -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 TwoThousandTwentySix0614: "2026-06-14";
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];
@@ -1,19 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /**
3
- * The payload version for a subscription's events.
4
- * - `2026-08-20` reports the service you asked for as `requested_service` and the service actually used as `service`.
5
- * - `2026-09-02` adds message `parts`.
6
- * - `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`.
7
- * - `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.
8
- *
9
- * 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.
10
- */
2
+ /** 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. */
11
3
  export const WebhookPayloadVersion = {
12
- TwoThousandTwentySix0614: "2026-06-14",
13
- TwoThousandTwentySix0801: "2026-08-01",
14
- TwoThousandTwentySix0820: "2026-08-20",
15
- TwoThousandTwentySix0902: "2026-09-02",
16
- TwoThousandTwentySix1003: "2026-10-03",
17
- TwoThousandTwentySix1030: "2026-10-30",
4
+ TwoThousandTwentySix1201: "2026-12-01",
18
5
  };
19
6
  //# sourceMappingURL=WebhookPayloadVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebhookPayloadVersion.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookPayloadVersion.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,wBAAwB,EAAE,YAAY;IACtC,wBAAwB,EAAE,YAAY;IACtC,wBAAwB,EAAE,YAAY;IACtC,wBAAwB,EAAE,YAAY;IACtC,wBAAwB,EAAE,YAAY;IACtC,wBAAwB,EAAE,YAAY;CAChC,CAAC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\n/**\n * The payload version for a subscription's events.\n * - `2026-08-20` reports the service you asked for as `requested_service` and the service actually used as `service`.\n * - `2026-09-02` adds message `parts`.\n * - `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`.\n * - `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.\n *\n * 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.\n */\nexport const WebhookPayloadVersion = {\n TwoThousandTwentySix0614: \"2026-06-14\",\n TwoThousandTwentySix0801: \"2026-08-01\",\n TwoThousandTwentySix0820: \"2026-08-20\",\n TwoThousandTwentySix0902: \"2026-09-02\",\n TwoThousandTwentySix1003: \"2026-10-03\",\n TwoThousandTwentySix1030: \"2026-10-30\",\n} as const;\nexport type WebhookPayloadVersion = (typeof WebhookPayloadVersion)[keyof typeof WebhookPayloadVersion];\n"]}
1
+ {"version":3,"file":"WebhookPayloadVersion.js","sourceRoot":"","sources":["../../../../src/api/types/WebhookPayloadVersion.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,kQAAkQ;AAClQ,MAAM,CAAC,MAAM,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";
@@ -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";