Skip to content

Commit a04f52c

Browse files
feat(api): api update
1 parent 1c1b71d commit a04f52c

10 files changed

Lines changed: 132 additions & 153 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-38aaadafbb2bf0c5d5bb9330a0a5e7a89052fe3e791569c8a12051e040193edf.yml
3-
openapi_spec_hash: 2d35c1223beebaf2c1b8d8a474cbf7c2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-2566cdc5d8e0bffe2a8c442692b0fc1b35d3bfe7e9bf578331fc19d402361c1f.yml
3+
openapi_spec_hash: 85e1feeb9bbc8d59bb34d6cdd679575a
44
config_hash: ad652575976c2c8db09e4575778f0e77

src/resources/contacts.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@ export class Contacts extends APIResource {
147147
*/
148148
export interface APIResponseOfContact {
149149
/**
150-
* The response data (null if error)
150+
* Contact response for v3 API Uses snake_case for JSON property names
151151
*/
152152
data?: ContactResponse | null;
153153

154154
/**
155-
* Error details (null if successful)
155+
* Error information
156156
*/
157157
error?: WebhooksAPI.APIError | null;
158158

159159
/**
160-
* Metadata about the request and response
160+
* Request and response metadata
161161
*/
162162
meta?: WebhooksAPI.APIMeta;
163163

@@ -247,17 +247,17 @@ export interface ContactResponse {
247247
*/
248248
export interface ContactListResponse {
249249
/**
250-
* The response data (null if error)
250+
* Paginated list of contacts response
251251
*/
252252
data?: ContactListResponse.Data | null;
253253

254254
/**
255-
* Error details (null if successful)
255+
* Error information
256256
*/
257257
error?: WebhooksAPI.APIError | null;
258258

259259
/**
260-
* Metadata about the request and response
260+
* Request and response metadata
261261
*/
262262
meta?: WebhooksAPI.APIMeta;
263263

@@ -269,7 +269,7 @@ export interface ContactListResponse {
269269

270270
export namespace ContactListResponse {
271271
/**
272-
* The response data (null if error)
272+
* Paginated list of contacts response
273273
*/
274274
export interface Data {
275275
/**
@@ -278,7 +278,7 @@ export namespace ContactListResponse {
278278
contacts?: Array<ContactsAPI.ContactResponse>;
279279

280280
/**
281-
* Pagination metadata
281+
* Pagination metadata for list responses
282282
*/
283283
pagination?: WebhooksAPI.PaginationMeta;
284284
}

src/resources/me.ts

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,19 @@ export interface ProfileSettings {
8888
*/
8989
export interface MeRetrieveResponse {
9090
/**
91-
* The response data (null if error)
91+
* Account response for GET /v3/me endpoint. Returns organization (with profiles),
92+
* user (standalone), or profile (child of an organization) data depending on the
93+
* API key type. Always includes messaging channel configuration.
9294
*/
9395
data?: MeRetrieveResponse.Data | null;
9496

9597
/**
96-
* Error details (null if successful)
98+
* Error information
9799
*/
98100
error?: WebhooksAPI.APIError | null;
99101

100102
/**
101-
* Metadata about the request and response
103+
* Request and response metadata
102104
*/
103105
meta?: WebhooksAPI.APIMeta;
104106

@@ -110,7 +112,9 @@ export interface MeRetrieveResponse {
110112

111113
export namespace MeRetrieveResponse {
112114
/**
113-
* The response data (null if error)
115+
* Account response for GET /v3/me endpoint. Returns organization (with profiles),
116+
* user (standalone), or profile (child of an organization) data depending on the
117+
* API key type. Always includes messaging channel configuration.
114118
*/
115119
export interface Data {
116120
/**
@@ -119,7 +123,8 @@ export namespace MeRetrieveResponse {
119123
id?: string;
120124

121125
/**
122-
* Messaging channel configuration
126+
* Messaging channel configuration. All three channels are always present. Each
127+
* channel has a "configured" flag; configured channels expose additional details.
123128
*/
124129
channels?: Data.Channels;
125130

@@ -160,7 +165,7 @@ export namespace MeRetrieveResponse {
160165
profiles?: Array<Data.Profile>;
161166

162167
/**
163-
* Profile settings (only for profile type)
168+
* Profile configuration settings
164169
*/
165170
settings?: MeAPI.ProfileSettings | null;
166171

@@ -184,28 +189,30 @@ export namespace MeRetrieveResponse {
184189

185190
export namespace Data {
186191
/**
187-
* Messaging channel configuration
192+
* Messaging channel configuration. All three channels are always present. Each
193+
* channel has a "configured" flag; configured channels expose additional details.
188194
*/
189195
export interface Channels {
190196
/**
191-
* RCS channel (provider: vibes)
197+
* RCS channel configuration. When configured, includes the RCS phone number.
192198
*/
193199
rcs?: Channels.Rcs;
194200

195201
/**
196-
* SMS channel (providers: telnyx, sinch)
202+
* SMS channel configuration. When configured, includes the sending phone number.
197203
*/
198204
sms?: Channels.SMS;
199205

200206
/**
201-
* WhatsApp Business channel (provider: meta)
207+
* WhatsApp Business channel configuration. When configured, includes the WhatsApp
208+
* phone number and business name.
202209
*/
203210
whatsapp?: Channels.Whatsapp;
204211
}
205212

206213
export namespace Channels {
207214
/**
208-
* RCS channel (provider: vibes)
215+
* RCS channel configuration. When configured, includes the RCS phone number.
209216
*/
210217
export interface Rcs {
211218
/**
@@ -220,7 +227,7 @@ export namespace MeRetrieveResponse {
220227
}
221228

222229
/**
223-
* SMS channel (providers: telnyx, sinch)
230+
* SMS channel configuration. When configured, includes the sending phone number.
224231
*/
225232
export interface SMS {
226233
/**
@@ -235,7 +242,8 @@ export namespace MeRetrieveResponse {
235242
}
236243

237244
/**
238-
* WhatsApp Business channel (provider: meta)
245+
* WhatsApp Business channel configuration. When configured, includes the WhatsApp
246+
* phone number and business name.
239247
*/
240248
export interface Whatsapp {
241249
/**

src/resources/messages.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ export class Messages extends APIResource {
9696
*/
9797
export interface MessageRetrieveActivitiesResponse {
9898
/**
99-
* The response data (null if error)
99+
* Response for GET /messages/{id}/activities
100100
*/
101101
data?: MessageRetrieveActivitiesResponse.Data | null;
102102

103103
/**
104-
* Error details (null if successful)
104+
* Error information
105105
*/
106106
error?: WebhooksAPI.APIError | null;
107107

108108
/**
109-
* Metadata about the request and response
109+
* Request and response metadata
110110
*/
111111
meta?: WebhooksAPI.APIMeta;
112112

@@ -118,7 +118,7 @@ export interface MessageRetrieveActivitiesResponse {
118118

119119
export namespace MessageRetrieveActivitiesResponse {
120120
/**
121-
* The response data (null if error)
121+
* Response for GET /messages/{id}/activities
122122
*/
123123
export interface Data {
124124
/**
@@ -172,17 +172,17 @@ export namespace MessageRetrieveActivitiesResponse {
172172
*/
173173
export interface MessageRetrieveStatusResponse {
174174
/**
175-
* The response data (null if error)
175+
* Message response for v3 API — same shape as v2 with snake_case JSON conventions
176176
*/
177177
data?: MessageRetrieveStatusResponse.Data | null;
178178

179179
/**
180-
* Error details (null if successful)
180+
* Error information
181181
*/
182182
error?: WebhooksAPI.APIError | null;
183183

184184
/**
185-
* Metadata about the request and response
185+
* Request and response metadata
186186
*/
187187
meta?: WebhooksAPI.APIMeta;
188188

@@ -194,7 +194,7 @@ export interface MessageRetrieveStatusResponse {
194194

195195
export namespace MessageRetrieveStatusResponse {
196196
/**
197-
* The response data (null if error)
197+
* Message response for v3 API — same shape as v2 with snake_case JSON conventions
198198
*/
199199
export interface Data {
200200
id?: string;
@@ -275,17 +275,17 @@ export namespace MessageRetrieveStatusResponse {
275275
*/
276276
export interface MessageSendResponse {
277277
/**
278-
* The response data (null if error)
278+
* Response for the multi-recipient send message endpoint
279279
*/
280280
data?: MessageSendResponse.Data | null;
281281

282282
/**
283-
* Error details (null if successful)
283+
* Error information
284284
*/
285285
error?: WebhooksAPI.APIError | null;
286286

287287
/**
288-
* Metadata about the request and response
288+
* Request and response metadata
289289
*/
290290
meta?: WebhooksAPI.APIMeta;
291291

@@ -297,7 +297,7 @@ export interface MessageSendResponse {
297297

298298
export namespace MessageSendResponse {
299299
/**
300-
* The response data (null if error)
300+
* Response for the multi-recipient send message endpoint
301301
*/
302302
export interface Data {
303303
/**
@@ -381,7 +381,8 @@ export interface MessageSendParams {
381381
sandbox?: boolean;
382382

383383
/**
384-
* Body param: Template reference (by id or name, with optional parameters)
384+
* Body param: SDK-style template reference: resolve by ID or by name, with
385+
* optional parameters.
385386
*/
386387
template?: MessageSendParams.Template;
387388

@@ -408,7 +409,8 @@ export interface MessageSendParams {
408409

409410
export namespace MessageSendParams {
410411
/**
411-
* Template reference (by id or name, with optional parameters)
412+
* SDK-style template reference: resolve by ID or by name, with optional
413+
* parameters.
412414
*/
413415
export interface Template {
414416
/**

src/resources/numbers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ export interface NumberLookupResponse {
4949
data?: NumberLookupResponse.Data | null;
5050

5151
/**
52-
* Error details (null if successful)
52+
* Error information
5353
*/
5454
error?: WebhooksAPI.APIError | null;
5555

5656
/**
57-
* Metadata about the request and response
57+
* Request and response metadata
5858
*/
5959
meta?: WebhooksAPI.APIMeta;
6060

src/resources/profiles/campaigns.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ export interface APIResponseOfTcrCampaignWithUseCases {
174174
data?: TcrCampaignWithUseCases | null;
175175

176176
/**
177-
* Error details (null if successful)
177+
* Error information
178178
*/
179179
error?: WebhooksAPI.APIError | null;
180180

181181
/**
182-
* Metadata about the request and response
182+
* Request and response metadata
183183
*/
184184
meta?: WebhooksAPI.APIMeta;
185185

@@ -278,9 +278,6 @@ export type MessagingUseCaseUs =
278278
* Campaign use case with sample messages
279279
*/
280280
export interface SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData {
281-
/**
282-
* US messaging use case category
283-
*/
284281
messagingUseCaseUs: MessagingUseCaseUs;
285282

286283
/**
@@ -369,12 +366,12 @@ export interface CampaignListResponse {
369366
data?: Array<TcrCampaignWithUseCases> | null;
370367

371368
/**
372-
* Error details (null if successful)
369+
* Error information
373370
*/
374371
error?: WebhooksAPI.APIError | null;
375372

376373
/**
377-
* Metadata about the request and response
374+
* Request and response metadata
378375
*/
379376
meta?: WebhooksAPI.APIMeta;
380377

@@ -386,7 +383,7 @@ export interface CampaignListResponse {
386383

387384
export interface CampaignCreateParams {
388385
/**
389-
* Body param: Campaign data
386+
* Body param: Campaign data for create or update operation
390387
*/
391388
campaign: CampaignData;
392389

@@ -418,7 +415,7 @@ export interface CampaignUpdateParams {
418415
profileId: string;
419416

420417
/**
421-
* Body param: Campaign data
418+
* Body param: Campaign data for create or update operation
422419
*/
423420
campaign: CampaignData;
424421

0 commit comments

Comments
 (0)