Skip to content

Commit 8abf3df

Browse files
feat(api): manual updates
1 parent a04f52c commit 8abf3df

15 files changed

Lines changed: 342 additions & 394 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-2566cdc5d8e0bffe2a8c442692b0fc1b35d3bfe7e9bf578331fc19d402361c1f.yml
33
openapi_spec_hash: 85e1feeb9bbc8d59bb34d6cdd679575a
4-
config_hash: ad652575976c2c8db09e4575778f0e77
4+
config_hash: 676ee4f74f5b328b155283c879154b66

api.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
# Shared
2-
3-
Types:
4-
5-
- <code><a href="./src/resources/shared.ts">BaseDto</a></code>
6-
71
# Webhooks
82

93
Types:
104

115
- <code><a href="./src/resources/webhooks.ts">APIError</a></code>
126
- <code><a href="./src/resources/webhooks.ts">APIMeta</a></code>
137
- <code><a href="./src/resources/webhooks.ts">APIResponseWebhook</a></code>
14-
- <code><a href="./src/resources/webhooks.ts">MutationRequestBase</a></code>
8+
- <code><a href="./src/resources/webhooks.ts">MutationRequest</a></code>
159
- <code><a href="./src/resources/webhooks.ts">PaginationMeta</a></code>
1610
- <code><a href="./src/resources/webhooks.ts">WebhookResponse</a></code>
1711
- <code><a href="./src/resources/webhooks.ts">WebhookListResponse</a></code>
@@ -54,12 +48,6 @@ Methods:
5448
Types:
5549

5650
- <code><a href="./src/resources/templates.ts">APIResponseTemplate</a></code>
57-
- <code><a href="./src/resources/templates.ts">SentDmServicesCommonContractsPocOsAuthenticationConfig</a></code>
58-
- <code><a href="./src/resources/templates.ts">SentDmServicesCommonContractsPocOsTemplateBody</a></code>
59-
- <code><a href="./src/resources/templates.ts">SentDmServicesCommonContractsPocOsTemplateButton</a></code>
60-
- <code><a href="./src/resources/templates.ts">SentDmServicesCommonContractsPocOsTemplateButtonProps</a></code>
61-
- <code><a href="./src/resources/templates.ts">SentDmServicesCommonContractsPocOsTemplateFooter</a></code>
62-
- <code><a href="./src/resources/templates.ts">SentDmServicesCommonContractsPocOsTemplateHeader</a></code>
6351
- <code><a href="./src/resources/templates.ts">Template</a></code>
6452
- <code><a href="./src/resources/templates.ts">TemplateBodyContent</a></code>
6553
- <code><a href="./src/resources/templates.ts">TemplateDefinition</a></code>
@@ -84,13 +72,10 @@ Types:
8472
- <code><a href="./src/resources/profiles/profiles.ts">DestinationCountry</a></code>
8573
- <code><a href="./src/resources/profiles/profiles.ts">PaymentDetails</a></code>
8674
- <code><a href="./src/resources/profiles/profiles.ts">ProfileDetail</a></code>
87-
- <code><a href="./src/resources/profiles/profiles.ts">SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo</a></code>
88-
- <code><a href="./src/resources/profiles/profiles.ts">SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo</a></code>
89-
- <code><a href="./src/resources/profiles/profiles.ts">SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo</a></code>
9075
- <code><a href="./src/resources/profiles/profiles.ts">TcrBrandRelationship</a></code>
9176
- <code><a href="./src/resources/profiles/profiles.ts">TcrVertical</a></code>
9277
- <code><a href="./src/resources/profiles/profiles.ts">ProfileListResponse</a></code>
93-
- <code><a href="./src/resources/profiles/profiles.ts">ProfileCompleteSetupResponse</a></code>
78+
- <code><a href="./src/resources/profiles/profiles.ts">ProfileCompleteResponse</a></code>
9479

9580
Methods:
9681

@@ -99,16 +84,16 @@ Methods:
9984
- <code title="patch /v3/profiles/{profileId}">client.profiles.<a href="./src/resources/profiles/profiles.ts">update</a>(profileID, { ...params }) -> APIResponseOfProfileDetail</code>
10085
- <code title="get /v3/profiles">client.profiles.<a href="./src/resources/profiles/profiles.ts">list</a>({ ...params }) -> ProfileListResponse</code>
10186
- <code title="delete /v3/profiles/{profileId}">client.profiles.<a href="./src/resources/profiles/profiles.ts">delete</a>(profileID, { ...params }) -> void</code>
102-
- <code title="post /v3/profiles/{profileId}/complete">client.profiles.<a href="./src/resources/profiles/profiles.ts">completeSetup</a>(profileID, { ...params }) -> unknown</code>
87+
- <code title="post /v3/profiles/{profileId}/complete">client.profiles.<a href="./src/resources/profiles/profiles.ts">complete</a>(profileID, { ...params }) -> unknown</code>
10388

10489
## Campaigns
10590

10691
Types:
10792

10893
- <code><a href="./src/resources/profiles/campaigns.ts">APIResponseOfTcrCampaignWithUseCases</a></code>
94+
- <code><a href="./src/resources/profiles/campaigns.ts">BaseDto</a></code>
10995
- <code><a href="./src/resources/profiles/campaigns.ts">CampaignData</a></code>
11096
- <code><a href="./src/resources/profiles/campaigns.ts">MessagingUseCaseUs</a></code>
111-
- <code><a href="./src/resources/profiles/campaigns.ts">SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData</a></code>
11297
- <code><a href="./src/resources/profiles/campaigns.ts">TcrCampaignWithUseCases</a></code>
11398
- <code><a href="./src/resources/profiles/campaigns.ts">CampaignListResponse</a></code>
11499

packages/mcp-server/src/code-tool-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const fuse = new Fuse(
124124
'client.templates.list',
125125
'client.templates.retrieve',
126126
'client.templates.update',
127-
'client.profiles.completeSetup',
127+
'client.profiles.complete',
128128
'client.profiles.create',
129129
'client.profiles.delete',
130130
'client.profiles.list',

packages/mcp-server/src/methods.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ export const sdkMethods: SdkMethod[] = [
161161
httpPath: '/v3/profiles/{profileId}',
162162
},
163163
{
164-
clientCallName: 'client.profiles.completeSetup',
165-
fullyQualifiedName: 'profiles.completeSetup',
164+
clientCallName: 'client.profiles.complete',
165+
fullyQualifiedName: 'profiles.complete',
166166
httpMethod: 'post',
167167
httpPath: '/v3/profiles/{profileId}/complete',
168168
},

src/client.ts

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ import {
4242
import { NumberLookupParams, NumberLookupResponse, Numbers } from './resources/numbers';
4343
import {
4444
APIResponseTemplate,
45-
SentDmServicesCommonContractsPocOsAuthenticationConfig,
46-
SentDmServicesCommonContractsPocOsTemplateBody,
47-
SentDmServicesCommonContractsPocOsTemplateButton,
48-
SentDmServicesCommonContractsPocOsTemplateButtonProps,
49-
SentDmServicesCommonContractsPocOsTemplateFooter,
50-
SentDmServicesCommonContractsPocOsTemplateHeader,
5145
Template,
5246
TemplateBodyContent,
5347
TemplateCreateParams,
@@ -75,7 +69,7 @@ import {
7569
APIError,
7670
APIMeta,
7771
APIResponseWebhook,
78-
MutationRequestBase,
72+
MutationRequest,
7973
PaginationMeta,
8074
WebhookCreateParams,
8175
WebhookDeleteParams,
@@ -101,8 +95,8 @@ import {
10195
BrandsBrandData,
10296
DestinationCountry,
10397
PaymentDetails,
104-
ProfileCompleteSetupParams,
105-
ProfileCompleteSetupResponse,
98+
ProfileCompleteParams,
99+
ProfileCompleteResponse,
106100
ProfileCreateParams,
107101
ProfileDeleteParams,
108102
ProfileDetail,
@@ -111,9 +105,6 @@ import {
111105
ProfileRetrieveParams,
112106
ProfileUpdateParams,
113107
Profiles,
114-
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
115-
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
116-
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
117108
TcrBrandRelationship,
118109
TcrVertical,
119110
} from './resources/profiles/profiles';
@@ -868,7 +859,7 @@ export declare namespace SentDm {
868859
type APIError as APIError,
869860
type APIMeta as APIMeta,
870861
type APIResponseWebhook as APIResponseWebhook,
871-
type MutationRequestBase as MutationRequestBase,
862+
type MutationRequest as MutationRequest,
872863
type PaginationMeta as PaginationMeta,
873864
type WebhookResponse as WebhookResponse,
874865
type WebhookListResponse as WebhookListResponse,
@@ -903,12 +894,6 @@ export declare namespace SentDm {
903894
export {
904895
Templates as Templates,
905896
type APIResponseTemplate as APIResponseTemplate,
906-
type SentDmServicesCommonContractsPocOsAuthenticationConfig as SentDmServicesCommonContractsPocOsAuthenticationConfig,
907-
type SentDmServicesCommonContractsPocOsTemplateBody as SentDmServicesCommonContractsPocOsTemplateBody,
908-
type SentDmServicesCommonContractsPocOsTemplateButton as SentDmServicesCommonContractsPocOsTemplateButton,
909-
type SentDmServicesCommonContractsPocOsTemplateButtonProps as SentDmServicesCommonContractsPocOsTemplateButtonProps,
910-
type SentDmServicesCommonContractsPocOsTemplateFooter as SentDmServicesCommonContractsPocOsTemplateFooter,
911-
type SentDmServicesCommonContractsPocOsTemplateHeader as SentDmServicesCommonContractsPocOsTemplateHeader,
912897
type Template as Template,
913898
type TemplateBodyContent as TemplateBodyContent,
914899
type TemplateDefinition as TemplateDefinition,
@@ -929,19 +914,16 @@ export declare namespace SentDm {
929914
type DestinationCountry as DestinationCountry,
930915
type PaymentDetails as PaymentDetails,
931916
type ProfileDetail as ProfileDetail,
932-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
933-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
934-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
935917
type TcrBrandRelationship as TcrBrandRelationship,
936918
type TcrVertical as TcrVertical,
937919
type ProfileListResponse as ProfileListResponse,
938-
type ProfileCompleteSetupResponse as ProfileCompleteSetupResponse,
920+
type ProfileCompleteResponse as ProfileCompleteResponse,
939921
type ProfileCreateParams as ProfileCreateParams,
940922
type ProfileRetrieveParams as ProfileRetrieveParams,
941923
type ProfileUpdateParams as ProfileUpdateParams,
942924
type ProfileListParams as ProfileListParams,
943925
type ProfileDeleteParams as ProfileDeleteParams,
944-
type ProfileCompleteSetupParams as ProfileCompleteSetupParams,
926+
type ProfileCompleteParams as ProfileCompleteParams,
945927
};
946928

947929
export {
@@ -978,6 +960,4 @@ export declare namespace SentDm {
978960
type MeRetrieveResponse as MeRetrieveResponse,
979961
type MeRetrieveParams as MeRetrieveParams,
980962
};
981-
982-
export type BaseDto = API.BaseDto;
983963
}

src/resources/contacts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export namespace ContactDeleteParams {
403403
/**
404404
* Request to delete/dissociate a contact
405405
*/
406-
export interface Body extends WebhooksAPI.MutationRequestBase {}
406+
export interface Body extends WebhooksAPI.MutationRequest {}
407407
}
408408

409409
export declare namespace Contacts {

src/resources/index.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
export * from './shared';
43
export {
54
Contacts,
65
type APIResponseOfContact,
@@ -31,29 +30,20 @@ export {
3130
type DestinationCountry,
3231
type PaymentDetails,
3332
type ProfileDetail,
34-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
35-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
36-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
3733
type TcrBrandRelationship,
3834
type TcrVertical,
3935
type ProfileListResponse,
40-
type ProfileCompleteSetupResponse,
36+
type ProfileCompleteResponse,
4137
type ProfileCreateParams,
4238
type ProfileRetrieveParams,
4339
type ProfileUpdateParams,
4440
type ProfileListParams,
4541
type ProfileDeleteParams,
46-
type ProfileCompleteSetupParams,
42+
type ProfileCompleteParams,
4743
} from './profiles/profiles';
4844
export {
4945
Templates,
5046
type APIResponseTemplate,
51-
type SentDmServicesCommonContractsPocOsAuthenticationConfig,
52-
type SentDmServicesCommonContractsPocOsTemplateBody,
53-
type SentDmServicesCommonContractsPocOsTemplateButton,
54-
type SentDmServicesCommonContractsPocOsTemplateButtonProps,
55-
type SentDmServicesCommonContractsPocOsTemplateFooter,
56-
type SentDmServicesCommonContractsPocOsTemplateHeader,
5747
type Template,
5848
type TemplateBodyContent,
5949
type TemplateDefinition,
@@ -81,7 +71,7 @@ export {
8171
type APIError,
8272
type APIMeta,
8373
type APIResponseWebhook,
84-
type MutationRequestBase,
74+
type MutationRequest,
8575
type PaginationMeta,
8676
type WebhookResponse,
8777
type WebhookListResponse,

src/resources/profiles/campaigns.ts

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { APIResource } from '../../core/resource';
44
import * as CampaignsAPI from './campaigns';
5-
import * as Shared from '../shared';
65
import * as WebhooksAPI from '../webhooks';
76
import { APIPromise } from '../../core/api-promise';
87
import { buildHeaders } from '../../internal/headers';
@@ -189,6 +188,17 @@ export interface APIResponseOfTcrCampaignWithUseCases {
189188
success?: boolean;
190189
}
191190

191+
export interface BaseDto {
192+
/**
193+
* Unique identifier
194+
*/
195+
id?: string;
196+
197+
createdAt?: string;
198+
199+
updatedAt?: string | null;
200+
}
201+
192202
/**
193203
* Campaign data for create or update operation
194204
*/
@@ -211,7 +221,7 @@ export interface CampaignData {
211221
/**
212222
* List of use cases with sample messages
213223
*/
214-
useCases: Array<SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData>;
224+
useCases: Array<CampaignData.UseCase>;
215225

216226
/**
217227
* Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
@@ -259,6 +269,20 @@ export interface CampaignData {
259269
termsAndConditionsLink?: string | null;
260270
}
261271

272+
export namespace CampaignData {
273+
/**
274+
* Campaign use case with sample messages
275+
*/
276+
export interface UseCase {
277+
messagingUseCaseUs: CampaignsAPI.MessagingUseCaseUs;
278+
279+
/**
280+
* Sample messages for this use case (1-5 messages, max 1024 characters each)
281+
*/
282+
sampleMessages: Array<string>;
283+
}
284+
}
285+
262286
export type MessagingUseCaseUs =
263287
| 'MARKETING'
264288
| 'ACCOUNT_NOTIFICATION'
@@ -274,19 +298,7 @@ export type MessagingUseCaseUs =
274298
| 'PUBLIC_SERVICE_ANNOUNCEMENT'
275299
| 'LOW_VOLUME';
276300

277-
/**
278-
* Campaign use case with sample messages
279-
*/
280-
export interface SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData {
281-
messagingUseCaseUs: MessagingUseCaseUs;
282-
283-
/**
284-
* Sample messages for this use case (1-5 messages, max 1024 characters each)
285-
*/
286-
sampleMessages: Array<string>;
287-
}
288-
289-
export interface TcrCampaignWithUseCases extends Shared.BaseDto {
301+
export interface TcrCampaignWithUseCases extends BaseDto {
290302
billedDate?: string | null;
291303

292304
brandId?: string | null;
@@ -345,7 +357,7 @@ export interface TcrCampaignWithUseCases extends Shared.BaseDto {
345357
}
346358

347359
export namespace TcrCampaignWithUseCases {
348-
export interface UseCase extends Shared.BaseDto {
360+
export interface UseCase extends CampaignsAPI.BaseDto {
349361
campaignId?: string;
350362

351363
customerId?: string;
@@ -471,15 +483,15 @@ export namespace CampaignDeleteParams {
471483
/**
472484
* Request to delete a campaign from a brand
473485
*/
474-
export interface Body extends WebhooksAPI.MutationRequestBase {}
486+
export interface Body extends WebhooksAPI.MutationRequest {}
475487
}
476488

477489
export declare namespace Campaigns {
478490
export {
479491
type APIResponseOfTcrCampaignWithUseCases as APIResponseOfTcrCampaignWithUseCases,
492+
type BaseDto as BaseDto,
480493
type CampaignData as CampaignData,
481494
type MessagingUseCaseUs as MessagingUseCaseUs,
482-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData as SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData,
483495
type TcrCampaignWithUseCases as TcrCampaignWithUseCases,
484496
type CampaignListResponse as CampaignListResponse,
485497
type CampaignCreateParams as CampaignCreateParams,

src/resources/profiles/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
export {
44
Campaigns,
55
type APIResponseOfTcrCampaignWithUseCases,
6+
type BaseDto,
67
type CampaignData,
78
type MessagingUseCaseUs,
8-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData,
99
type TcrCampaignWithUseCases,
1010
type CampaignListResponse,
1111
type CampaignCreateParams,
@@ -21,17 +21,14 @@ export {
2121
type DestinationCountry,
2222
type PaymentDetails,
2323
type ProfileDetail,
24-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
25-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
26-
type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
2724
type TcrBrandRelationship,
2825
type TcrVertical,
2926
type ProfileListResponse,
30-
type ProfileCompleteSetupResponse,
27+
type ProfileCompleteResponse,
3128
type ProfileCreateParams,
3229
type ProfileRetrieveParams,
3330
type ProfileUpdateParams,
3431
type ProfileListParams,
3532
type ProfileDeleteParams,
36-
type ProfileCompleteSetupParams,
33+
type ProfileCompleteParams,
3734
} from './profiles';

0 commit comments

Comments
 (0)