Skip to content

Commit

Permalink
feat(api): update via SDK Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jun 26, 2024
1 parent 12c2c09 commit 536cfac
Show file tree
Hide file tree
Showing 45 changed files with 56 additions and 56 deletions.
9 changes: 6 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from './core';
import * as Errors from './error';
import { type Agent } from './_shims/index';
import * as Uploads from './uploads';
import { type Agent } from './_shims/index';
import * as qs from 'qs';
import * as Core from './core';
import * as Pagination from './pagination';
import * as API from './resources/index';

Expand Down Expand Up @@ -88,7 +88,9 @@ export interface ClientOptions {
defaultQuery?: Core.DefaultQuery;
}

/** API Client for interfacing with the Intercom API. */
/**
* API Client for interfacing with the Intercom API.
*/
export class Intercom extends Core.APIClient {
accessToken: string;

Expand Down Expand Up @@ -138,6 +140,7 @@ export class Intercom extends Core.APIClient {
maxRetries: options.maxRetries,
fetch: options.fetch,
});

this._options = options;

this.accessToken = accessToken;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/admins/activity-logs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as ActivityLogsAPI from './activity-logs';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/admins/admins.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as AdminsAPI from './admins';
import * as Shared from '../shared';
import * as ActivityLogsAPI from './activity-logs';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/articles.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as ArticlesAPI from './articles';
import * as Shared from './shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/companies/companies.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as CompaniesAPI from './companies';
import * as Shared from '../shared';
import * as ContactsAPI from './contacts';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/companies/contacts.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as ContactsAPI from './contacts';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/companies/segments.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as CompaniesSegmentsAPI from './segments';
import * as SegmentsAPI from '../segments';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/contacts/companies.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as CompaniesAPI from './companies';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/contacts/contacts.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as ContactsAPI from './contacts';
import * as Shared from '../shared';
import * as CompaniesAPI from './companies';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/contacts/notes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as NotesAPI from './notes';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/contacts/segments.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as ContactsSegmentsAPI from './segments';
import * as SegmentsAPI from '../segments';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/contacts/subscriptions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as SubscriptionsAPI from './subscriptions';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/contacts/tags.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as TagsAPI from './tags';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/conversations/conversations.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as ConversationsAPI from './conversations';
import * as Shared from '../shared';
import * as CustomersAPI from './customers';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/conversations/customers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as CustomersAPI from './customers';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/conversations/parts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as PartsAPI from './parts';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/conversations/reply.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as ReplyAPI from './reply';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/conversations/run-assignment-rules.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as RunAssignmentRulesAPI from './run-assignment-rules';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/conversations/tags.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as TagsAPI from './tags';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/data-attributes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as DataAttributesAPI from './data-attributes';

export class DataAttributes extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/data-events.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as DataEventsAPI from './data-events';

export class DataEvents extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/data-exports.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as DataExportsAPI from './data-exports';

export class DataExports extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/download/content/data.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as DataAPI from './data';

export class Data extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/export/content/data.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as DataAPI from './data';
import * as DataExportsAPI from '../../data-exports';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/export/export.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as ExportAPI from './export';
import * as DataExportsAPI from '../data-exports';
import * as ContentAPI from './content/content';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/help-center/collections.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as CollectionsAPI from './collections';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/help-center/help-centers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as HelpCentersAPI from './help-centers';

export class HelpCenters extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/me.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as MeAPI from './me';

export class Me extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/messages.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as MessagesAPI from './messages';
import * as Shared from './shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/news/news-items.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as NewsItemsAPI from './news-items';
import * as Shared from '../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/news/newsfeeds/items.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as ItemsAPI from './items';
import * as Shared from '../../shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/news/newsfeeds/newsfeeds.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as NewsfeedsAPI from './newsfeeds';
import * as Shared from '../../shared';
import * as ItemsAPI from './items';
Expand Down
2 changes: 1 addition & 1 deletion src/resources/notes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as NotesAPI from './notes';
import * as Shared from './shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/phone-call-redirects.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as PhoneCallRedirectsAPI from './phone-call-redirects';

export class PhoneCallRedirects extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/segments.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as SegmentsAPI from './segments';

export class Segments extends APIResource {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/subscription-types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as SubscriptionTypesAPI from './subscription-types';
import * as Shared from './shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/tags.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as TagsAPI from './tags';
import * as Shared from './shared';

Expand Down
2 changes: 1 addition & 1 deletion src/resources/teams.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as TeamsAPI from './teams';

export class Teams extends APIResource {
Expand Down
Loading

0 comments on commit 536cfac

Please sign in to comment.