Skip to content

Commit 2a37e9d

Browse files
committed
feat(api): update via SDK Studio
1 parent e3ac97a commit 2a37e9d

File tree

89 files changed

+1228
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1228
-769
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 109
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-d17455c223bf0fd303bc315e4af87966adb063bfb2d5c5ec53ac7336cae26448.yml
1+
configured_endpoints: 107
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-8db47de304da2cbdfa6db6fd50025e9d1d4ade3d8e75569120483556b1583be6.yml

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,5 +469,3 @@ Methods:
469469
- <code title="get /visitors">client.visitors.<a href="./src/resources/visitors.ts">retrieve</a>({ ...params }) -> Visitor | null</code>
470470
- <code title="put /visitors">client.visitors.<a href="./src/resources/visitors.ts">update</a>({ ...params }) -> Visitor | null</code>
471471
- <code title="post /visitors/convert">client.visitors.<a href="./src/resources/visitors.ts">convert</a>({ ...params }) -> Contact</code>
472-
- <code title="delete /visitors/{id}">client.visitors.<a href="./src/resources/visitors.ts">deleteById</a>(id, { ...params }) -> VisitorDeletedObject</code>
473-
- <code title="get /visitors/{id}">client.visitors.<a href="./src/resources/visitors.ts">retrieveById</a>(id, { ...params }) -> Visitor | null</code>

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,6 @@ export namespace Intercom {
365365
export import VisitorRetrieveParams = API.VisitorRetrieveParams;
366366
export import VisitorUpdateParams = API.VisitorUpdateParams;
367367
export import VisitorConvertParams = API.VisitorConvertParams;
368-
export import VisitorDeleteByIDParams = API.VisitorDeleteByIDParams;
369-
export import VisitorRetrieveByIDParams = API.VisitorRetrieveByIDParams;
370368

371369
export import Admin = API.Admin;
372370
export import ArticleContent = API.ArticleContent;

src/resources/admins/activity-logs.ts

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface ActivityLogList {
4848

4949
export namespace ActivityLogList {
5050
/**
51-
* Activities performed by admins.
51+
* Activities performed by Admins.
5252
*/
5353
export interface ActivityLog {
5454
/**
@@ -135,17 +135,70 @@ export namespace ActivityLogList {
135135
*/
136136
created_at?: number;
137137

138-
metadata?: Record<string, unknown>;
138+
/**
139+
* Additional data provided about Admin activity.
140+
*/
141+
metadata?: ActivityLog.Metadata | null;
139142

140143
/**
141-
* An object representing the admin who performed the activity.
144+
* Details about the Admin involved in the activity.
142145
*/
143146
performed_by?: ActivityLog.PerformedBy;
144147
}
145148

146149
export namespace ActivityLog {
147150
/**
148-
* An object representing the admin who performed the activity.
151+
* Additional data provided about Admin activity.
152+
*/
153+
export interface Metadata {
154+
/**
155+
* Indicates if the status was changed automatically or manually.
156+
*/
157+
auto_changed?: string | null;
158+
159+
/**
160+
* The away mode status which is set to true when away and false when returned.
161+
*/
162+
away_mode?: boolean | null;
163+
164+
/**
165+
* The reason the Admin is away.
166+
*/
167+
away_status_reason?: string | null;
168+
169+
/**
170+
* The unique identifier for the contact which is provided by the Client.
171+
*/
172+
external_id?: string | null;
173+
174+
/**
175+
* Indicates if conversations should be reassigned while an Admin is away.
176+
*/
177+
reassign_conversations?: boolean | null;
178+
179+
/**
180+
* The way the admin signed in.
181+
*/
182+
sign_in_method?: string | null;
183+
184+
/**
185+
* The action that initiated the status change.
186+
*/
187+
source?: string | null;
188+
189+
/**
190+
* The ID of the Admin who initiated the activity.
191+
*/
192+
update_by?: number | null;
193+
194+
/**
195+
* The name of the Admin who initiated the activity.
196+
*/
197+
update_by_name?: string | null;
198+
}
199+
200+
/**
201+
* Details about the Admin involved in the activity.
149202
*/
150203
export interface PerformedBy {
151204
/**
@@ -202,9 +255,15 @@ export namespace ActivityLogList {
202255

203256
export namespace Pages {
204257
export interface Next {
205-
page?: number;
258+
/**
259+
* The number of results to fetch per page.
260+
*/
261+
per_page?: number;
206262

207-
starting_after?: string;
263+
/**
264+
* The cursor to use in the next request to get the next page of results.
265+
*/
266+
starting_after?: string | null;
208267
}
209268
}
210269
}
@@ -243,6 +302,7 @@ export interface ActivityLogListParams {
243302
| '2.8'
244303
| '2.9'
245304
| '2.10'
305+
| '2.11'
246306
| 'Unstable';
247307
}
248308

src/resources/admins/admins.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export interface AdminRetrieveParams {
122122
| '2.8'
123123
| '2.9'
124124
| '2.10'
125+
| '2.11'
125126
| 'Unstable';
126127
}
127128

@@ -147,6 +148,7 @@ export interface AdminListParams {
147148
| '2.8'
148149
| '2.9'
149150
| '2.10'
151+
| '2.11'
150152
| 'Unstable';
151153
}
152154

@@ -183,6 +185,7 @@ export interface AdminAwayParams {
183185
| '2.8'
184186
| '2.9'
185187
| '2.10'
188+
| '2.11'
186189
| 'Unstable';
187190
}
188191

0 commit comments

Comments
 (0)