Skip to content

Commit 8196697

Browse files
SDK regeneration (#511)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 8cb93a5 commit 8196697

File tree

10 files changed

+38
-38
lines changed

10 files changed

+38
-38
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intercom-client",
3-
"version": "7.0.2",
3+
"version": "7.0.3",
44
"private": false,
55
"repository": "github:intercom/intercom-node",
66
"type": "commonjs",

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export function normalizeClientOptions<T extends BaseClientOptions>(options: T):
9696
{
9797
"X-Fern-Language": "JavaScript",
9898
"X-Fern-SDK-Name": "intercom-client",
99-
"X-Fern-SDK-Version": "7.0.2",
100-
"User-Agent": "intercom-client/7.0.2",
99+
"X-Fern-SDK-Version": "7.0.3",
100+
"User-Agent": "intercom-client/7.0.3",
101101
"X-Fern-Runtime": core.RUNTIME.type,
102102
"X-Fern-Runtime-Version": core.RUNTIME.version,
103103
"Intercom-Version": options?.version ?? "2.14",

src/api/resources/contacts/types/Contact.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import type * as Intercom from "../../../index.js";
77
*/
88
export interface Contact {
99
/** The type of object. */
10-
type?: "contact";
10+
type: "contact";
1111
/** The unique identifier for the contact which is given by Intercom. */
12-
id?: string;
12+
id: string;
1313
/** The unique identifier for the contact which is provided by the Client. */
1414
external_id?: string;
1515
/** The id of the workspace which the contact belongs to. */
16-
workspace_id?: string;
16+
workspace_id: string;
1717
/** The role of the contact. */
18-
role?: string;
18+
role: string;
1919
/** The contact's email. */
2020
email?: string;
2121
/** The contact's email domain. */
@@ -27,15 +27,15 @@ export interface Contact {
2727
/** The id of an admin that has been assigned account ownership of the contact. */
2828
owner_id?: number;
2929
/** Whether the contact has had an email sent to them hard bounce. */
30-
has_hard_bounced?: boolean;
30+
has_hard_bounced: boolean;
3131
/** Whether the contact has marked an email sent to them as spam. */
32-
marked_email_as_spam?: boolean;
32+
marked_email_as_spam: boolean;
3333
/** Whether the contact is unsubscribed from emails. */
34-
unsubscribed_from_emails?: boolean;
34+
unsubscribed_from_emails: boolean;
3535
/** (UNIX timestamp) The time when the contact was created. */
36-
created_at?: number;
36+
created_at: number;
3737
/** (UNIX timestamp) The time when the contact was last updated. */
38-
updated_at?: number;
38+
updated_at: number;
3939
/** (UNIX timestamp) The time specified for when a contact signed up. */
4040
signed_up_at?: number;
4141
/** (UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually). */

src/api/resources/conversations/types/Conversation.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ import type * as Intercom from "../../../index.js";
77
*/
88
export interface Conversation {
99
/** Always conversation. */
10-
type?: string;
10+
type: string;
1111
/** The id representing the conversation. */
12-
id?: string;
12+
id: string;
1313
/** The title given to the conversation. */
1414
title?: string;
1515
/** The time the conversation was created. */
16-
created_at?: number;
16+
created_at: number;
1717
/** The last time the conversation was updated. */
18-
updated_at?: number;
18+
updated_at: number;
1919
/** 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. */
2020
waiting_since?: number;
2121
/** 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. */
2222
snoozed_until?: number;
2323
/** Indicates whether a conversation is open (true) or closed (false). */
24-
open?: boolean;
24+
open: boolean;
2525
/** Can be set to "open", "closed" or "snoozed". */
26-
state?: Conversation.State;
26+
state: Conversation.State;
2727
/** Indicates whether a conversation has been read. */
28-
read?: boolean;
28+
read: boolean;
2929
/** If marked as priority, it will return priority or else not_priority. */
3030
priority?: Conversation.Priority;
3131
/** 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 {
3636
company_id?: string;
3737
tags?: Intercom.Tags;
3838
conversation_rating?: Intercom.ConversationRating;
39-
source?: Intercom.ConversationSource;
40-
contacts?: Intercom.ConversationContacts;
39+
source: Intercom.ConversationSource;
40+
contacts: Intercom.ConversationContacts;
4141
teammates?: Intercom.ConversationTeammates;
42-
custom_attributes?: Intercom.CustomAttributes;
42+
custom_attributes: Intercom.CustomAttributes;
4343
first_contact_reply?: Intercom.ConversationFirstContactReply;
4444
sla_applied?: Intercom.SlaApplied;
4545
statistics?: Intercom.ConversationStatistics;

src/api/resources/dataEvents/types/DataEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
export interface DataEvent {
77
/** The type of the object */
8-
type?: "event";
8+
type: "event";
99
/** 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`. */
1010
event_name: string;
1111
/** The time the event occurred as a UTC Unix timestamp */

src/api/resources/messages/types/Message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface Message {
1717
/** The type of message that was sent. Can be email, inapp, facebook or twitter. */
1818
message_type: Message.MessageType;
1919
/** The associated conversation_id */
20-
conversation_id?: string;
20+
conversation_id: string;
2121
}
2222

2323
export namespace Message {

src/api/resources/notes/types/Note.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import type * as Intercom from "../../../index.js";
77
*/
88
export interface Note {
99
/** String representing the object's type. Always has the value `note`. */
10-
type?: string;
10+
type: string;
1111
/** The id of the note. */
12-
id?: string;
12+
id: string;
1313
/** The time the note was created. */
14-
created_at?: number;
14+
created_at: number;
1515
/** Represents the contact that the note was created about. */
1616
contact?: Note.Contact;
1717
/** Optional. Represents the Admin that created the note. */
1818
author?: Intercom.Admin;
1919
/** The body text of the note. */
20-
body?: string;
20+
body: string;
2121
}
2222

2323
export namespace Note {

src/api/resources/tickets/types/Ticket.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import type * as Intercom from "../../../index.js";
77
*/
88
export interface Ticket {
99
/** Always ticket */
10-
type?: "ticket";
10+
type: "ticket";
1111
/** The unique identifier for the ticket which is given by Intercom. */
12-
id?: string;
12+
id: string;
1313
/** The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries. */
14-
ticket_id?: string;
14+
ticket_id: string;
1515
/** Category of the Ticket. */
16-
category?: Ticket.Category;
17-
ticket_attributes?: Intercom.TicketCustomAttributes;
16+
category: Ticket.Category;
17+
ticket_attributes: Intercom.TicketCustomAttributes;
1818
ticket_state?: Intercom.TicketState;
1919
ticket_type?: Intercom.TicketType;
20-
contacts?: Intercom.TicketContacts;
20+
contacts: Intercom.TicketContacts;
2121
/** The id representing the admin assigned to the ticket. */
2222
admin_assignee_id?: string;
2323
/** The id representing the team assigned to the ticket. */

src/api/types/Visitor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import type * as Intercom from "../index.js";
77
*/
88
export interface Visitor {
99
/** Value is 'visitor' */
10-
type?: "visitor";
10+
type: "visitor";
1111
/** The Intercom defined id representing the Visitor. */
12-
id?: string;
12+
id: string;
1313
/** Automatically generated identifier for the Visitor. */
14-
user_id?: string;
14+
user_id: string;
1515
/** Identifies if this visitor is anonymous. */
1616
anonymous?: boolean;
1717
/** The email of the visitor. */

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "7.0.2";
1+
export const SDK_VERSION = "7.0.3";

0 commit comments

Comments
 (0)