Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intercom-client",
"version": "7.0.2",
"version": "7.0.3",
"private": false,
"repository": "github:intercom/intercom-node",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export function normalizeClientOptions<T extends BaseClientOptions>(options: T):
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "intercom-client",
"X-Fern-SDK-Version": "7.0.2",
"User-Agent": "intercom-client/7.0.2",
"X-Fern-SDK-Version": "7.0.3",
"User-Agent": "intercom-client/7.0.3",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Intercom-Version": options?.version ?? "2.14",
Expand Down
18 changes: 9 additions & 9 deletions src/api/resources/contacts/types/Contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import type * as Intercom from "../../../index.js";
*/
export interface Contact {
/** The type of object. */
type?: "contact";
type: "contact";
/** The unique identifier for the contact which is given by Intercom. */
id?: string;
id: string;
/** The unique identifier for the contact which is provided by the Client. */
external_id?: string;
/** The id of the workspace which the contact belongs to. */
workspace_id?: string;
workspace_id: string;
/** The role of the contact. */
role?: string;
role: string;
/** The contact's email. */
email?: string;
/** The contact's email domain. */
Expand All @@ -27,15 +27,15 @@ export interface Contact {
/** The id of an admin that has been assigned account ownership of the contact. */
owner_id?: number;
/** Whether the contact has had an email sent to them hard bounce. */
has_hard_bounced?: boolean;
has_hard_bounced: boolean;
/** Whether the contact has marked an email sent to them as spam. */
marked_email_as_spam?: boolean;
marked_email_as_spam: boolean;
/** Whether the contact is unsubscribed from emails. */
unsubscribed_from_emails?: boolean;
unsubscribed_from_emails: boolean;
/** (UNIX timestamp) The time when the contact was created. */
created_at?: number;
created_at: number;
/** (UNIX timestamp) The time when the contact was last updated. */
updated_at?: number;
updated_at: number;
/** (UNIX timestamp) The time specified for when a contact signed up. */
signed_up_at?: number;
/** (UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually). */
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/conversations/types/Conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import type * as Intercom from "../../../index.js";
*/
export interface Conversation {
/** Always conversation. */
type?: string;
type: string;
/** The id representing the conversation. */
id?: string;
id: string;
/** The title given to the conversation. */
title?: string;
/** The time the conversation was created. */
created_at?: number;
created_at: number;
/** The last time the conversation was updated. */
updated_at?: number;
updated_at: number;
/** The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin. */
waiting_since?: number;
/** If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time. */
snoozed_until?: number;
/** Indicates whether a conversation is open (true) or closed (false). */
open?: boolean;
open: boolean;
/** Can be set to "open", "closed" or "snoozed". */
state?: Conversation.State;
state: Conversation.State;
/** Indicates whether a conversation has been read. */
read?: boolean;
read: boolean;
/** If marked as priority, it will return priority or else not_priority. */
priority?: Conversation.Priority;
/** The id of the admin assigned to the conversation. If it's not assigned to an admin it will return null. */
Expand All @@ -36,10 +36,10 @@ export interface Conversation {
company_id?: string;
tags?: Intercom.Tags;
conversation_rating?: Intercom.ConversationRating;
source?: Intercom.ConversationSource;
contacts?: Intercom.ConversationContacts;
source: Intercom.ConversationSource;
contacts: Intercom.ConversationContacts;
teammates?: Intercom.ConversationTeammates;
custom_attributes?: Intercom.CustomAttributes;
custom_attributes: Intercom.CustomAttributes;
first_contact_reply?: Intercom.ConversationFirstContactReply;
sla_applied?: Intercom.SlaApplied;
statistics?: Intercom.ConversationStatistics;
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/dataEvents/types/DataEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
export interface DataEvent {
/** The type of the object */
type?: "event";
type: "event";
/** The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`. */
event_name: string;
/** The time the event occurred as a UTC Unix timestamp */
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/messages/types/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface Message {
/** The type of message that was sent. Can be email, inapp, facebook or twitter. */
message_type: Message.MessageType;
/** The associated conversation_id */
conversation_id?: string;
conversation_id: string;
}

export namespace Message {
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/notes/types/Note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import type * as Intercom from "../../../index.js";
*/
export interface Note {
/** String representing the object's type. Always has the value `note`. */
type?: string;
type: string;
/** The id of the note. */
id?: string;
id: string;
/** The time the note was created. */
created_at?: number;
created_at: number;
/** Represents the contact that the note was created about. */
contact?: Note.Contact;
/** Optional. Represents the Admin that created the note. */
author?: Intercom.Admin;
/** The body text of the note. */
body?: string;
body: string;
}

export namespace Note {
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/tickets/types/Ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import type * as Intercom from "../../../index.js";
*/
export interface Ticket {
/** Always ticket */
type?: "ticket";
type: "ticket";
/** The unique identifier for the ticket which is given by Intercom. */
id?: string;
id: string;
/** The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries. */
ticket_id?: string;
ticket_id: string;
/** Category of the Ticket. */
category?: Ticket.Category;
ticket_attributes?: Intercom.TicketCustomAttributes;
category: Ticket.Category;
ticket_attributes: Intercom.TicketCustomAttributes;
ticket_state?: Intercom.TicketState;
ticket_type?: Intercom.TicketType;
contacts?: Intercom.TicketContacts;
contacts: Intercom.TicketContacts;
/** The id representing the admin assigned to the ticket. */
admin_assignee_id?: string;
/** The id representing the team assigned to the ticket. */
Expand Down
6 changes: 3 additions & 3 deletions src/api/types/Visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import type * as Intercom from "../index.js";
*/
export interface Visitor {
/** Value is 'visitor' */
type?: "visitor";
type: "visitor";
/** The Intercom defined id representing the Visitor. */
id?: string;
id: string;
/** Automatically generated identifier for the Visitor. */
user_id?: string;
user_id: string;
/** Identifies if this visitor is anonymous. */
anonymous?: boolean;
/** The email of the visitor. */
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "7.0.2";
export const SDK_VERSION = "7.0.3";