From c3dcfed2b8e999466614fe7ae16182a602d8f64b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 18:16:09 +0000 Subject: [PATCH] SDK regeneration --- package.json | 2 +- src/BaseClient.ts | 4 ++-- src/api/resources/contacts/types/Contact.ts | 18 ++++++++--------- .../conversations/types/Conversation.ts | 20 +++++++++---------- .../resources/dataEvents/types/DataEvent.ts | 2 +- src/api/resources/messages/types/Message.ts | 2 +- src/api/resources/notes/types/Note.ts | 8 ++++---- src/api/resources/tickets/types/Ticket.ts | 12 +++++------ src/api/types/Visitor.ts | 6 +++--- src/version.ts | 2 +- 10 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package.json b/package.json index 6d3287ef..8bcf8e0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "intercom-client", - "version": "7.0.2", + "version": "7.0.3", "private": false, "repository": "github:intercom/intercom-node", "type": "commonjs", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 84ecd466..1c4b0442 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -96,8 +96,8 @@ export function normalizeClientOptions(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", diff --git a/src/api/resources/contacts/types/Contact.ts b/src/api/resources/contacts/types/Contact.ts index 7c6e6305..1df7ed44 100644 --- a/src/api/resources/contacts/types/Contact.ts +++ b/src/api/resources/contacts/types/Contact.ts @@ -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. */ @@ -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). */ diff --git a/src/api/resources/conversations/types/Conversation.ts b/src/api/resources/conversations/types/Conversation.ts index 95606d03..bf5334b2 100644 --- a/src/api/resources/conversations/types/Conversation.ts +++ b/src/api/resources/conversations/types/Conversation.ts @@ -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. */ @@ -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; diff --git a/src/api/resources/dataEvents/types/DataEvent.ts b/src/api/resources/dataEvents/types/DataEvent.ts index a88a24e6..6efc5389 100644 --- a/src/api/resources/dataEvents/types/DataEvent.ts +++ b/src/api/resources/dataEvents/types/DataEvent.ts @@ -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 */ diff --git a/src/api/resources/messages/types/Message.ts b/src/api/resources/messages/types/Message.ts index a2f8aa46..2341594c 100644 --- a/src/api/resources/messages/types/Message.ts +++ b/src/api/resources/messages/types/Message.ts @@ -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 { diff --git a/src/api/resources/notes/types/Note.ts b/src/api/resources/notes/types/Note.ts index e22e0eb3..3ce14629 100644 --- a/src/api/resources/notes/types/Note.ts +++ b/src/api/resources/notes/types/Note.ts @@ -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 { diff --git a/src/api/resources/tickets/types/Ticket.ts b/src/api/resources/tickets/types/Ticket.ts index 8582aca5..5e686d50 100644 --- a/src/api/resources/tickets/types/Ticket.ts +++ b/src/api/resources/tickets/types/Ticket.ts @@ -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. */ diff --git a/src/api/types/Visitor.ts b/src/api/types/Visitor.ts index 195792a3..5aa58457 100644 --- a/src/api/types/Visitor.ts +++ b/src/api/types/Visitor.ts @@ -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. */ diff --git a/src/version.ts b/src/version.ts index b37f04e1..948f7433 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "7.0.2"; +export const SDK_VERSION = "7.0.3";