blujay 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
- package/dist/cjs/api/types/AudioPart.d.ts +1 -1
- package/dist/cjs/api/types/AudioPart.js.map +1 -1
- package/dist/cjs/api/types/CallEndedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/CallEndedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/ContactAssignedWebhookData.d.ts +10 -0
- package/dist/cjs/api/types/ContactAssignedWebhookData.js +4 -0
- package/dist/cjs/api/types/ContactAssignedWebhookData.js.map +1 -0
- package/dist/cjs/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
- package/dist/cjs/api/types/ContactAssignedWebhookEvent.js +11 -0
- package/dist/cjs/api/types/ContactAssignedWebhookEvent.js.map +1 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookData.d.ts +9 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookData.js +4 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookData.js.map +1 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js +11 -0
- package/dist/cjs/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
- package/dist/cjs/api/types/ContactWebhookContact.d.ts +25 -0
- package/dist/cjs/api/types/ContactWebhookContact.js +4 -0
- package/dist/cjs/api/types/ContactWebhookContact.js.map +1 -0
- package/dist/cjs/api/types/GenericWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/GenericWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/GroupNameWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/GroupNameWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/GroupParticipantWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageEditedWebhookData.d.ts +6 -6
- package/dist/cjs/api/types/MessageEditedWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageEditedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageEditedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageLifecycleWebhookData.d.ts +5 -5
- package/dist/cjs/api/types/MessageLifecycleWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageReceivedWebhookData.d.ts +7 -10
- package/dist/cjs/api/types/MessageReceivedWebhookData.js +1 -2
- package/dist/cjs/api/types/MessageReceivedWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageReceivedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/MessageUnsentWebhookData.d.ts +5 -5
- package/dist/cjs/api/types/MessageUnsentWebhookData.js.map +1 -1
- package/dist/cjs/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/MessageUnsentWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/ReactionWebhookData.d.ts +2 -2
- package/dist/cjs/api/types/ReactionWebhookData.js.map +1 -1
- package/dist/cjs/api/types/ReactionWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/ReactionWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/TypingWebhookData.d.ts +2 -2
- package/dist/cjs/api/types/TypingWebhookData.js.map +1 -1
- package/dist/cjs/api/types/TypingWebhookEvent.d.ts +1 -1
- package/dist/cjs/api/types/TypingWebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/WebhookEnvelope.d.ts +7 -6
- package/dist/cjs/api/types/WebhookEnvelope.js.map +1 -1
- package/dist/cjs/api/types/WebhookEvent.d.ts +6 -6
- package/dist/cjs/api/types/WebhookEvent.js.map +1 -1
- package/dist/cjs/api/types/WebhookEventPayloadVersion.d.ts +4 -0
- package/dist/cjs/api/types/WebhookEventPayloadVersion.js +4 -0
- package/dist/cjs/api/types/WebhookEventPayloadVersion.js.map +1 -0
- package/dist/cjs/api/types/WebhookPayloadVersion.d.ts +2 -15
- package/dist/cjs/api/types/WebhookPayloadVersion.js +2 -15
- package/dist/cjs/api/types/WebhookPayloadVersion.js.map +1 -1
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/api/types/index.js.map +1 -1
- package/dist/cjs/custom/version.d.ts +1 -1
- package/dist/cjs/custom/version.js +1 -1
- package/dist/cjs/custom/version.js.map +1 -1
- package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.d.ts +1 -1
- package/dist/esm/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionCreateParams.js.map +1 -1
- package/dist/esm/api/types/AudioPart.d.ts +1 -1
- package/dist/esm/api/types/AudioPart.js.map +1 -1
- package/dist/esm/api/types/CallEndedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/CallEndedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/CallRecordingReadyWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/CallRecordingReadyWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/ContactAssignedWebhookData.d.ts +10 -0
- package/dist/esm/api/types/ContactAssignedWebhookData.js +3 -0
- package/dist/esm/api/types/ContactAssignedWebhookData.js.map +1 -0
- package/dist/esm/api/types/ContactAssignedWebhookEvent.d.ts +22 -0
- package/dist/esm/api/types/ContactAssignedWebhookEvent.js +8 -0
- package/dist/esm/api/types/ContactAssignedWebhookEvent.js.map +1 -0
- package/dist/esm/api/types/ContactTagAddedWebhookData.d.ts +9 -0
- package/dist/esm/api/types/ContactTagAddedWebhookData.js +3 -0
- package/dist/esm/api/types/ContactTagAddedWebhookData.js.map +1 -0
- package/dist/esm/api/types/ContactTagAddedWebhookEvent.d.ts +22 -0
- package/dist/esm/api/types/ContactTagAddedWebhookEvent.js +8 -0
- package/dist/esm/api/types/ContactTagAddedWebhookEvent.js.map +1 -0
- package/dist/esm/api/types/ContactWebhookContact.d.ts +25 -0
- package/dist/esm/api/types/ContactWebhookContact.js +3 -0
- package/dist/esm/api/types/ContactWebhookContact.js.map +1 -0
- package/dist/esm/api/types/GenericWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/GenericWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/GroupNameWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/GroupNameWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/GroupParticipantWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/GroupParticipantWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageEditedWebhookData.d.ts +6 -6
- package/dist/esm/api/types/MessageEditedWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageEditedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageEditedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageLifecycleWebhookData.d.ts +5 -5
- package/dist/esm/api/types/MessageLifecycleWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageLifecycleWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageLifecycleWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageReceivedWebhookData.d.ts +7 -10
- package/dist/esm/api/types/MessageReceivedWebhookData.js +1 -2
- package/dist/esm/api/types/MessageReceivedWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageReceivedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageReceivedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/MessageUnsentWebhookData.d.ts +5 -5
- package/dist/esm/api/types/MessageUnsentWebhookData.js.map +1 -1
- package/dist/esm/api/types/MessageUnsentWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/MessageUnsentWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/PhoneNumberAssignedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/PhoneNumberReleasedWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/ReactionWebhookData.d.ts +2 -2
- package/dist/esm/api/types/ReactionWebhookData.js.map +1 -1
- package/dist/esm/api/types/ReactionWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/ReactionWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/TypingWebhookData.d.ts +2 -2
- package/dist/esm/api/types/TypingWebhookData.js.map +1 -1
- package/dist/esm/api/types/TypingWebhookEvent.d.ts +1 -1
- package/dist/esm/api/types/TypingWebhookEvent.js.map +1 -1
- package/dist/esm/api/types/WebhookEnvelope.d.ts +7 -6
- package/dist/esm/api/types/WebhookEnvelope.js.map +1 -1
- package/dist/esm/api/types/WebhookEvent.d.ts +6 -6
- package/dist/esm/api/types/WebhookEvent.js.map +1 -1
- package/dist/esm/api/types/WebhookEventPayloadVersion.d.ts +4 -0
- package/dist/esm/api/types/WebhookEventPayloadVersion.js +3 -0
- package/dist/esm/api/types/WebhookEventPayloadVersion.js.map +1 -0
- package/dist/esm/api/types/WebhookPayloadVersion.d.ts +2 -15
- package/dist/esm/api/types/WebhookPayloadVersion.js +2 -15
- package/dist/esm/api/types/WebhookPayloadVersion.js.map +1 -1
- package/dist/esm/api/types/index.d.ts +6 -0
- package/dist/esm/api/types/index.js +6 -0
- package/dist/esm/api/types/index.js.map +1 -1
- package/dist/esm/custom/version.d.ts +1 -1
- package/dist/esm/custom/version.js +1 -1
- package/dist/esm/custom/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallEndedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallEndedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,KAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallEndedWebhookData.\n */\nexport interface CallEndedWebhookEvent {\n api_version: CallEndedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"CallEndedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallEndedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,KAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallEndedWebhookData.\n */\nexport interface CallEndedWebhookEvent {\n api_version: CallEndedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.CallEndedWebhookData;\n}\n\nexport namespace CallEndedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CallRecordingReadyWebhookEvent {
|
|
6
6
|
api_version: CallRecordingReadyWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallRecordingReadyWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallRecordingReadyWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC9B,yCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,8BAA8B,KAA9B,8BAA8B,QAK9C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallRecordingReadyWebhookData.\n */\nexport interface CallRecordingReadyWebhookEvent {\n api_version: CallRecordingReadyWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"CallRecordingReadyWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/CallRecordingReadyWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC9B,yCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,8BAA8B,KAA9B,8BAA8B,QAK9C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is CallRecordingReadyWebhookData.\n */\nexport interface CallRecordingReadyWebhookEvent {\n api_version: CallRecordingReadyWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.CallRecordingReadyWebhookData;\n}\n\nexport namespace CallRecordingReadyWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A contact's assignee changed.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactAssignedWebhookData {
|
|
6
|
+
contact: Blujay.ContactWebhookContact;
|
|
7
|
+
assignment_changed: boolean;
|
|
8
|
+
/** The new assignee, or null when the contact was unassigned. */
|
|
9
|
+
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactAssignedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/ContactAssignedWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A contact's assignee changed.\n */\nexport interface ContactAssignedWebhookData {\n contact: Blujay.ContactWebhookContact;\n assignment_changed: boolean;\n /** The new assignee, or null when the contact was unassigned. */\n assigned_team_member: Blujay.AssignedTeamMember | null;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A webhook event whose `data` is ContactAssignedWebhookData.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactAssignedWebhookEvent {
|
|
6
|
+
api_version: ContactAssignedWebhookEvent.ApiVersion;
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
|
+
event_id: Blujay.EventId;
|
|
9
|
+
created_at: string;
|
|
10
|
+
trace_id: Blujay.TraceId;
|
|
11
|
+
/** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */
|
|
12
|
+
workspace_id: Blujay.WorkspaceId;
|
|
13
|
+
/** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */
|
|
14
|
+
subscription_id: Blujay.WebhookSubscriptionId;
|
|
15
|
+
data: Blujay.ContactAssignedWebhookData;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ContactAssignedWebhookEvent {
|
|
18
|
+
const ApiVersion: {
|
|
19
|
+
readonly V1: "v1";
|
|
20
|
+
};
|
|
21
|
+
type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ContactAssignedWebhookEvent;
|
|
3
|
+
(function (ContactAssignedWebhookEvent) {
|
|
4
|
+
ContactAssignedWebhookEvent.ApiVersion = {
|
|
5
|
+
V1: "v1",
|
|
6
|
+
};
|
|
7
|
+
})(ContactAssignedWebhookEvent || (ContactAssignedWebhookEvent = {}));
|
|
8
|
+
//# sourceMappingURL=ContactAssignedWebhookEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactAssignedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ContactAssignedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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 ContactAssignedWebhookData.\n */\nexport interface ContactAssignedWebhookEvent {\n api_version: ContactAssignedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.ContactAssignedWebhookData;\n}\n\nexport namespace ContactAssignedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactTagAddedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/ContactTagAddedWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A tag was added to a contact.\n */\nexport interface ContactTagAddedWebhookData {\n contact: Blujay.ContactWebhookContact;\n /** The tag that was added. */\n tag: string;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A webhook event whose `data` is ContactTagAddedWebhookData.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactTagAddedWebhookEvent {
|
|
6
|
+
api_version: ContactTagAddedWebhookEvent.ApiVersion;
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
|
+
event_id: Blujay.EventId;
|
|
9
|
+
created_at: string;
|
|
10
|
+
trace_id: Blujay.TraceId;
|
|
11
|
+
/** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */
|
|
12
|
+
workspace_id: Blujay.WorkspaceId;
|
|
13
|
+
/** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */
|
|
14
|
+
subscription_id: Blujay.WebhookSubscriptionId;
|
|
15
|
+
data: Blujay.ContactTagAddedWebhookData;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ContactTagAddedWebhookEvent {
|
|
18
|
+
const ApiVersion: {
|
|
19
|
+
readonly V1: "v1";
|
|
20
|
+
};
|
|
21
|
+
type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ContactTagAddedWebhookEvent;
|
|
3
|
+
(function (ContactTagAddedWebhookEvent) {
|
|
4
|
+
ContactTagAddedWebhookEvent.ApiVersion = {
|
|
5
|
+
V1: "v1",
|
|
6
|
+
};
|
|
7
|
+
})(ContactTagAddedWebhookEvent || (ContactTagAddedWebhookEvent = {}));
|
|
8
|
+
//# sourceMappingURL=ContactTagAddedWebhookEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactTagAddedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/ContactTagAddedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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 ContactTagAddedWebhookData.\n */\nexport interface ContactTagAddedWebhookEvent {\n api_version: ContactTagAddedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.ContactTagAddedWebhookData;\n}\n\nexport namespace ContactTagAddedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Blujay from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The contact as `GET /v1/contacts/{contact_id}` returns it.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContactWebhookContact {
|
|
6
|
+
contact_id: Blujay.ContactId;
|
|
7
|
+
phone_number?: string | undefined;
|
|
8
|
+
email?: string | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
first_name?: string | undefined;
|
|
11
|
+
last_name?: string | undefined;
|
|
12
|
+
/** The contact's company. Left out when the contact has none. */
|
|
13
|
+
company?: string | undefined;
|
|
14
|
+
tags: string[];
|
|
15
|
+
stage: string;
|
|
16
|
+
assigned_team_member: Blujay.AssignedTeamMember | null;
|
|
17
|
+
opted_out: boolean;
|
|
18
|
+
opted_out_at?: string | undefined;
|
|
19
|
+
opted_out_source?: string | undefined;
|
|
20
|
+
messaging_allowed: boolean;
|
|
21
|
+
/** `true` when someone saved this contact, as on `GET /v1/contacts/{contact_id}`. */
|
|
22
|
+
saved: boolean;
|
|
23
|
+
created_at: string;
|
|
24
|
+
updated_at: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactWebhookContact.js","sourceRoot":"","sources":["../../../../src/api/types/ContactWebhookContact.ts"],"names":[],"mappings":"AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * The contact as `GET /v1/contacts/{contact_id}` returns it.\n */\nexport interface ContactWebhookContact {\n contact_id: Blujay.ContactId;\n phone_number?: string | undefined;\n email?: string | undefined;\n name?: string | undefined;\n first_name?: string | undefined;\n last_name?: string | undefined;\n /** The contact's company. Left out when the contact has none. */\n company?: string | undefined;\n tags: string[];\n stage: string;\n assigned_team_member: Blujay.AssignedTeamMember | null;\n opted_out: boolean;\n opted_out_at?: string | undefined;\n opted_out_source?: string | undefined;\n messaging_allowed: boolean;\n /** `true` when someone saved this contact, as on `GET /v1/contacts/{contact_id}`. */\n saved: boolean;\n created_at: string;\n updated_at: string;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface GenericWebhookEvent {
|
|
6
6
|
api_version: GenericWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GenericWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IACnB,8BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,mBAAmB,KAAnB,mBAAmB,QAKnC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` the API reference doesn't describe yet. Read `data` as a plain object.\n */\nexport interface GenericWebhookEvent {\n api_version: GenericWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"GenericWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GenericWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IACnB,8BAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,mBAAmB,KAAnB,mBAAmB,QAKnC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` the API reference doesn't describe yet. Read `data` as a plain object.\n */\nexport interface GenericWebhookEvent {\n api_version: GenericWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Record<string, unknown>;\n}\n\nexport namespace GenericWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface GroupNameWebhookEvent {
|
|
6
6
|
api_version: GroupNameWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupNameWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupNameWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,KAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is GroupNameWebhookData.\n */\nexport interface GroupNameWebhookEvent {\n api_version: GroupNameWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"GroupNameWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupNameWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,MAAM,KAAW,qBAAqB,CAKrC;AALD,WAAiB,qBAAqB;IACrB,gCAAU,GAAG;QACtB,EAAE,EAAE,IAAI;KACF,CAAC;AAEf,CAAC,EALgB,qBAAqB,KAArB,qBAAqB,QAKrC","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * A webhook event whose `data` is GroupNameWebhookData.\n */\nexport interface GroupNameWebhookEvent {\n api_version: GroupNameWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.GroupNameWebhookData;\n}\n\nexport namespace GroupNameWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface GroupParticipantWebhookEvent {
|
|
6
6
|
api_version: GroupParticipantWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupParticipantWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupParticipantWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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 GroupParticipantWebhookData.\n */\nexport interface GroupParticipantWebhookEvent {\n api_version: GroupParticipantWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"GroupParticipantWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/GroupParticipantWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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 GroupParticipantWebhookData.\n */\nexport interface GroupParticipantWebhookEvent {\n api_version: GroupParticipantWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.GroupParticipantWebhookData;\n}\n\nexport namespace GroupParticipantWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the message fields
|
|
3
|
+
* An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the same message fields as the other message events. Earlier versions of the text are never included; read them with `GET /v1/messages/{message_id}?include=edit_history`. A message someone sent you includes `contact_id` (a contact in a direct chat) and `sender` (group chats, direct senders who aren't contacts, and a contact's direct messages too), as in `message.received`.
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageEditedWebhookData {
|
|
6
6
|
message_id: Blujay.MessageId;
|
|
7
7
|
chat_id: Blujay.ChatId;
|
|
8
|
-
/**
|
|
8
|
+
/** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
|
|
9
9
|
chat_type?: Blujay.ChatType | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
|
|
11
11
|
group_display_name?: (string | null) | undefined;
|
|
12
|
-
/**
|
|
12
|
+
/** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */
|
|
13
13
|
recipient?: Blujay.MessageWebhookRecipient | undefined;
|
|
14
14
|
phone_number_id: Blujay.PhoneNumberId;
|
|
15
|
-
/** The contact in a direct chat. For a message you received, its contact;
|
|
15
|
+
/** The contact in a direct chat. For a message you received, its contact; for a message you sent, the same as `recipient.contact_id`. */
|
|
16
16
|
contact_id?: Blujay.ContactId | undefined;
|
|
17
17
|
sender?: Blujay.MessageSender | undefined;
|
|
18
|
-
/**
|
|
18
|
+
/** The teammate who sent the message; null for a contact's message. */
|
|
19
19
|
team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;
|
|
20
20
|
text?: string | undefined;
|
|
21
21
|
edited_at: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEditedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the message fields
|
|
1
|
+
{"version":3,"file":"MessageEditedWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * An iMessage was edited. It can be a message your workspace sent (from the API, the app or anywhere else in Blujay) or a contact's message. Includes the current text and the same message fields as the other message events. Earlier versions of the text are never included; read them with `GET /v1/messages/{message_id}?include=edit_history`. A message someone sent you includes `contact_id` (a contact in a direct chat) and `sender` (group chats, direct senders who aren't contacts, and a contact's direct messages too), as in `message.received`.\n */\nexport interface MessageEditedWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */\n chat_type?: Blujay.ChatType | undefined;\n /** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */\n group_display_name?: (string | null) | undefined;\n /** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */\n recipient?: Blujay.MessageWebhookRecipient | undefined;\n phone_number_id: Blujay.PhoneNumberId;\n /** The contact in a direct chat. For a message you received, its contact; for a message you sent, the same as `recipient.contact_id`. */\n contact_id?: Blujay.ContactId | undefined;\n sender?: Blujay.MessageSender | undefined;\n /** The teammate who sent the message; null for a contact's message. */\n team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;\n text?: string | undefined;\n edited_at: string;\n edit_count: number;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageEditedWebhookEvent {
|
|
6
6
|
api_version: MessageEditedWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEditedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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 MessageEditedWebhookData.\n */\nexport interface MessageEditedWebhookEvent {\n api_version: MessageEditedWebhookEvent.ApiVersion;\n webhook_version: Blujay.
|
|
1
|
+
{"version":3,"file":"MessageEditedWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageEditedWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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 MessageEditedWebhookData.\n */\nexport interface MessageEditedWebhookEvent {\n api_version: MessageEditedWebhookEvent.ApiVersion;\n webhook_version: Blujay.WebhookEventPayloadVersion;\n event_id: Blujay.EventId;\n created_at: string;\n trace_id: Blujay.TraceId;\n /** The workspace the event happened in. For a reseller partner subscription, the customer's workspace ID (the value you send in `Blujay-Workspace`); for customer events, your own partner workspace. */\n workspace_id: Blujay.WorkspaceId;\n /** The subscription that matched. Events for a reseller partner subscription always carry the partner subscription's ID, for every customer. */\n subscription_id: Blujay.WebhookSubscriptionId;\n data: Blujay.MessageEditedWebhookData;\n}\n\nexport namespace MessageEditedWebhookEvent {\n export const ApiVersion = {\n V1: \"v1\",\n } as const;\n export type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];\n}\n"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type * as Blujay from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`.
|
|
3
|
+
* `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`. A message you sent in a direct chat also says who it went to in `recipient` and `contact_id`.
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageLifecycleWebhookData {
|
|
6
6
|
message_id: Blujay.MessageId;
|
|
7
7
|
chat_id: Blujay.ChatId;
|
|
8
|
-
/**
|
|
8
|
+
/** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
|
|
9
9
|
chat_type?: Blujay.ChatType | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
|
|
11
11
|
group_display_name?: (string | null) | undefined;
|
|
12
|
-
/**
|
|
12
|
+
/** On a message you sent in a direct chat with a contact your workspace still has. The same as `recipient.contact_id`. */
|
|
13
13
|
contact_id?: Blujay.ContactId | undefined;
|
|
14
|
-
/**
|
|
14
|
+
/** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */
|
|
15
15
|
recipient?: Blujay.MessageWebhookRecipient | undefined;
|
|
16
16
|
phone_number_id: Blujay.PhoneNumberId;
|
|
17
17
|
status: MessageLifecycleWebhookData.Status;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageLifecycleWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAsChE,MAAM,KAAW,2BAA2B,CA2B3C;AA3BD,WAAiB,2BAA2B;IAC3B,kCAAM,GAAG;QAClB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;KACV,CAAC;IAEE,qCAAS,GAAG;QACrB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEX,mDAAmD;IACtC,4CAAgB,GAAG;QAC5B,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;IAEX,4DAA4D;IAC/C,mCAAO,GAAG;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EA3BgB,2BAA2B,KAA3B,2BAA2B,QA2B3C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`.
|
|
1
|
+
{"version":3,"file":"MessageLifecycleWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAsChE,MAAM,KAAW,2BAA2B,CA2B3C;AA3BD,WAAiB,2BAA2B;IAC3B,kCAAM,GAAG;QAClB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;KACV,CAAC;IAEE,qCAAS,GAAG;QACrB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEX,mDAAmD;IACtC,4CAAgB,GAAG;QAC5B,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;IAEX,4DAA4D;IAC/C,mCAAO,GAAG;QACnB,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EA3BgB,2BAA2B,KAA3B,2BAA2B,QA2B3C","sourcesContent":["// This file was auto-generated by Fern from our API Definition.\n\nimport type * as Blujay from \"../index.js\";\n\n/**\n * `data` for `message.accepted`, `message.sent`, `message.delivered`, `message.read` and `message.failed`. A message you sent in a direct chat also says who it went to in `recipient` and `contact_id`.\n */\nexport interface MessageLifecycleWebhookData {\n message_id: Blujay.MessageId;\n chat_id: Blujay.ChatId;\n /** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */\n chat_type?: Blujay.ChatType | undefined;\n /** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */\n group_display_name?: (string | null) | undefined;\n /** On a message you sent in a direct chat with a contact your workspace still has. The same as `recipient.contact_id`. */\n contact_id?: Blujay.ContactId | undefined;\n /** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */\n recipient?: Blujay.MessageWebhookRecipient | undefined;\n phone_number_id: Blujay.PhoneNumberId;\n status: MessageLifecycleWebhookData.Status;\n direction?: MessageLifecycleWebhookData.Direction | undefined;\n /** The service you asked for, or null for Auto. */\n requested_service?: (MessageLifecycleWebhookData.RequestedService | null) | undefined;\n /** The service that carried the message, once confirmed. */\n service?: (MessageLifecycleWebhookData.Service | null) | undefined;\n sent_at?: (string | null) | undefined;\n delivered_at?: (string | null) | undefined;\n read_at?: (string | null) | undefined;\n failed_at?: (string | null) | undefined;\n failure?: (Blujay.MessageFailure | null) | undefined;\n /** Present on `message.failed` for failures you can act on; the same values as the message object's `failure_code`. */\n failure_code?: string | undefined;\n degradations?: Blujay.MessageDegradation[] | undefined;\n parts?: Blujay.MessageOutputPart[] | undefined;\n reply_to?: (Blujay.MessageReplyToInfo | null) | undefined;\n team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;\n}\n\nexport namespace MessageLifecycleWebhookData {\n export const Status = {\n Accepted: \"accepted\",\n Sent: \"sent\",\n Delivered: \"delivered\",\n Read: \"read\",\n Failed: \"failed\",\n } as const;\n export type Status = (typeof Status)[keyof typeof Status];\n export const Direction = {\n Outbound: \"outbound\",\n } as const;\n export type Direction = (typeof Direction)[keyof typeof Direction];\n /** The service you asked for, or null for Auto. */\n export const RequestedService = {\n Imessage: \"imessage\",\n Rcs: \"rcs\",\n Sms: \"sms\",\n } as const;\n export type RequestedService = (typeof RequestedService)[keyof typeof RequestedService];\n /** The service that carried the message, once confirmed. */\n export const Service = {\n Imessage: \"imessage\",\n Rcs: \"rcs\",\n Sms: \"sms\",\n } as const;\n export type Service = (typeof Service)[keyof typeof Service];\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import type * as Blujay from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface MessageLifecycleWebhookEvent {
|
|
6
6
|
api_version: MessageLifecycleWebhookEvent.ApiVersion;
|
|
7
|
-
webhook_version: Blujay.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageLifecycleWebhookEvent.js","sourceRoot":"","sources":["../../../../src/api/types/MessageLifecycleWebhookEvent.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoBhE,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.
|
|
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
|
|
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
|
-
/**
|
|
8
|
+
/** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
|
|
9
9
|
chat_type?: Blujay.ChatType | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
|
|
11
11
|
group_display_name?: (string | null) | undefined;
|
|
12
12
|
phone_number_id: Blujay.PhoneNumberId;
|
|
13
13
|
contact_id?: Blujay.ContactId | undefined;
|
|
14
14
|
sender?: Blujay.MessageSender | undefined;
|
|
15
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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;
|
|
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.
|
|
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.
|
|
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
|
-
/**
|
|
8
|
+
/** Whether the message is in a one-to-one chat or a group chat, the same as the chat's `type`. */
|
|
9
9
|
chat_type?: Blujay.ChatType | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** The group's name, the same as the chat's `display_name`; null for a direct chat or a group with no name. */
|
|
11
11
|
group_display_name?: (string | null) | undefined;
|
|
12
|
-
/**
|
|
12
|
+
/** Who a message you sent in a direct chat went to. Omitted for a group chat, and when the address can't be read. */
|
|
13
13
|
recipient?: Blujay.MessageWebhookRecipient | undefined;
|
|
14
14
|
phone_number_id: Blujay.PhoneNumberId;
|
|
15
|
-
/** The contact in a direct chat. For a message you received, its contact;
|
|
15
|
+
/** The contact in a direct chat. For a message you received, its contact; for a message you sent, the same as `recipient.contact_id`. */
|
|
16
16
|
contact_id?: Blujay.ContactId | undefined;
|
|
17
17
|
sender?: Blujay.MessageSender | undefined;
|
|
18
|
-
/**
|
|
18
|
+
/** The teammate who sent the message; null for a contact's message. */
|
|
19
19
|
team_member_id?: (Blujay.MessageTeamMemberId | null) | undefined;
|
|
20
20
|
unsent_at: string;
|
|
21
21
|
unsent_scope: MessageUnsentWebhookData.UnsentScope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageUnsentWebhookData.js","sourceRoot":"","sources":["../../../../src/api/types/MessageUnsentWebhookData.ts"],"names":[],"mappings":"AAAA,gEAAgE;AA0BhE,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 /**
|
|
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.
|
|
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.
|
|
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.
|
|
7
|
+
webhook_version: Blujay.WebhookEventPayloadVersion;
|
|
8
8
|
event_id: Blujay.EventId;
|
|
9
9
|
created_at: string;
|
|
10
10
|
trace_id: Blujay.TraceId;
|