@sentdm/sentdm 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/client.d.mts +11 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -8
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/contacts.d.mts +66 -1
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +66 -1
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +24 -0
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +24 -0
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +160 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +160 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +59 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +55 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +6 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +6 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/profiles/campaigns.d.mts +112 -83
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +112 -83
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +6 -5
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +6 -5
- package/resources/profiles/campaigns.mjs.map +1 -1
- package/resources/profiles/index.d.mts +2 -2
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +2 -2
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/profiles.d.mts +151 -139
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +151 -139
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +39 -21
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +39 -21
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +87 -87
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +87 -87
- package/resources/templates.d.ts.map +1 -1
- package/resources/users.d.mts +5 -3
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +5 -3
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +5 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +5 -3
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +226 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +226 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +53 -18
- package/src/resources/contacts.ts +96 -0
- package/src/resources/conversations.ts +238 -0
- package/src/resources/index.ts +25 -9
- package/src/resources/messages.ts +7 -3
- package/src/resources/profiles/campaigns.ts +160 -132
- package/src/resources/profiles/index.ts +8 -8
- package/src/resources/profiles/profiles.ts +185 -175
- package/src/resources/templates.ts +105 -105
- package/src/resources/users.ts +5 -3
- package/src/resources/webhooks.ts +269 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as CampaignsAPI from "./campaigns.mjs";
|
|
3
2
|
import * as WebhooksAPI from "../webhooks.mjs";
|
|
4
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -13,7 +12,7 @@ export declare class Campaigns extends APIResource {
|
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
14
|
* ```ts
|
|
16
|
-
* const
|
|
15
|
+
* const apiResponseOfBrandCampaign =
|
|
17
16
|
* await client.profiles.campaigns.create(
|
|
18
17
|
* '770e8400-e29b-41d4-a716-446655440002',
|
|
19
18
|
* {
|
|
@@ -36,14 +35,14 @@ export declare class Campaigns extends APIResource {
|
|
|
36
35
|
* );
|
|
37
36
|
* ```
|
|
38
37
|
*/
|
|
39
|
-
create(profileID: string, params: CampaignCreateParams, options?: RequestOptions): APIPromise<
|
|
38
|
+
create(profileID: string, params: CampaignCreateParams, options?: RequestOptions): APIPromise<APIResponseOfBrandCampaign>;
|
|
40
39
|
/**
|
|
41
40
|
* Updates an existing campaign under the brand of the specified profile. Cannot
|
|
42
41
|
* update campaigns that have already been submitted to TCR.
|
|
43
42
|
*
|
|
44
43
|
* @example
|
|
45
44
|
* ```ts
|
|
46
|
-
* const
|
|
45
|
+
* const apiResponseOfBrandCampaign =
|
|
47
46
|
* await client.profiles.campaigns.update(
|
|
48
47
|
* 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
|
|
49
48
|
* {
|
|
@@ -67,19 +66,20 @@ export declare class Campaigns extends APIResource {
|
|
|
67
66
|
* );
|
|
68
67
|
* ```
|
|
69
68
|
*/
|
|
70
|
-
update(campaignID: string, params: CampaignUpdateParams, options?: RequestOptions): APIPromise<
|
|
69
|
+
update(campaignID: string, params: CampaignUpdateParams, options?: RequestOptions): APIPromise<APIResponseOfBrandCampaign>;
|
|
71
70
|
/**
|
|
72
71
|
* Retrieves all campaigns linked to the profile's brand, including use cases and
|
|
73
72
|
* sample messages. Returns inherited campaigns if inherit_tcr_campaign=true.
|
|
74
73
|
*
|
|
75
74
|
* @example
|
|
76
75
|
* ```ts
|
|
77
|
-
* const
|
|
78
|
-
*
|
|
79
|
-
*
|
|
76
|
+
* const apiResponseOfListOfBrandCampaign =
|
|
77
|
+
* await client.profiles.campaigns.list(
|
|
78
|
+
* '770e8400-e29b-41d4-a716-446655440002',
|
|
79
|
+
* );
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
|
-
list(profileID: string, params?: CampaignListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
82
|
+
list(profileID: string, params?: CampaignListParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfListOfBrandCampaign>;
|
|
83
83
|
/**
|
|
84
84
|
* Deletes a campaign by ID from the brand of the specified profile. The profile
|
|
85
85
|
* must belong to the authenticated organization.
|
|
@@ -97,11 +97,11 @@ export declare class Campaigns extends APIResource {
|
|
|
97
97
|
/**
|
|
98
98
|
* Standard API response envelope for all v3 endpoints
|
|
99
99
|
*/
|
|
100
|
-
export interface
|
|
100
|
+
export interface APIResponseOfBrandCampaign {
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* A 10DLC campaign registered for a brand.
|
|
103
103
|
*/
|
|
104
|
-
data?:
|
|
104
|
+
data?: BrandCampaign | null;
|
|
105
105
|
/**
|
|
106
106
|
* Error information
|
|
107
107
|
*/
|
|
@@ -115,13 +115,82 @@ export interface APIResponseOfTcrCampaignWithUseCases {
|
|
|
115
115
|
*/
|
|
116
116
|
success?: boolean;
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Standard API response envelope for all v3 endpoints
|
|
120
|
+
*/
|
|
121
|
+
export interface APIResponseOfListOfBrandCampaign {
|
|
122
|
+
/**
|
|
123
|
+
* The response data (null if error)
|
|
124
|
+
*/
|
|
125
|
+
data?: Array<BrandCampaign> | null;
|
|
126
|
+
/**
|
|
127
|
+
* Error information
|
|
128
|
+
*/
|
|
129
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
119
130
|
/**
|
|
120
|
-
*
|
|
131
|
+
* Request and response metadata
|
|
121
132
|
*/
|
|
133
|
+
meta?: WebhooksAPI.APIMeta;
|
|
134
|
+
/**
|
|
135
|
+
* Indicates whether the request was successful
|
|
136
|
+
*/
|
|
137
|
+
success?: boolean;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* A 10DLC campaign registered for a brand.
|
|
141
|
+
*/
|
|
142
|
+
export interface BrandCampaign {
|
|
122
143
|
id?: string;
|
|
144
|
+
billedDate?: string | null;
|
|
145
|
+
brandId?: string | null;
|
|
146
|
+
cost?: number | null;
|
|
123
147
|
createdAt?: string;
|
|
148
|
+
customerId?: string;
|
|
149
|
+
/**
|
|
150
|
+
* True once every carrier has completed its DCA election and the campaign is
|
|
151
|
+
* operationally ready for traffic.
|
|
152
|
+
*/
|
|
153
|
+
dcaElectionsComplete?: boolean | null;
|
|
154
|
+
dcaElectionsCompletedAt?: string | null;
|
|
155
|
+
description?: string;
|
|
156
|
+
/**
|
|
157
|
+
* True when the one-time campaign submission fee has already been charged.
|
|
158
|
+
*/
|
|
159
|
+
hasSubmissionTransaction?: boolean;
|
|
160
|
+
helpKeywords?: string | null;
|
|
161
|
+
helpMessage?: string | null;
|
|
162
|
+
messageFlow?: string | null;
|
|
163
|
+
name?: string;
|
|
164
|
+
optinKeywords?: string | null;
|
|
165
|
+
optinMessage?: string | null;
|
|
166
|
+
optoutKeywords?: string | null;
|
|
167
|
+
optoutMessage?: string | null;
|
|
168
|
+
privacyPolicyLink?: string | null;
|
|
169
|
+
status?: 'SENT_CREATED' | 'ACTIVE' | 'EXPIRED' | null;
|
|
170
|
+
submittedAt?: string | null;
|
|
171
|
+
submittedToTCR?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* The Campaign Registry identifier, once the campaign has been accepted.
|
|
174
|
+
*/
|
|
175
|
+
tcrCampaignId?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Surfaced so customers can see why a submission did not reach the registry.
|
|
178
|
+
*/
|
|
179
|
+
tcrSyncError?: string | null;
|
|
180
|
+
termsAndConditionsLink?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Campaign type (for example KYC or App).
|
|
183
|
+
*/
|
|
184
|
+
type?: string;
|
|
124
185
|
updatedAt?: string | null;
|
|
186
|
+
useCases?: Array<CampaignUseCase>;
|
|
187
|
+
/**
|
|
188
|
+
* Expected messaging volume for this campaign — customer-supplied on
|
|
189
|
+
* create/update, and the input to both the TCR usecase classification (LOW_VOLUME
|
|
190
|
+
* vs MIXED/specific) and the campaign fee tier. Surfaced so customers can read
|
|
191
|
+
* back the value they set.
|
|
192
|
+
*/
|
|
193
|
+
volume?: string | null;
|
|
125
194
|
}
|
|
126
195
|
/**
|
|
127
196
|
* Campaign data for create or update operation
|
|
@@ -142,7 +211,7 @@ export interface CampaignData {
|
|
|
142
211
|
/**
|
|
143
212
|
* List of use cases with sample messages
|
|
144
213
|
*/
|
|
145
|
-
useCases: Array<
|
|
214
|
+
useCases: Array<CampaignUseCaseData>;
|
|
146
215
|
/**
|
|
147
216
|
* Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
148
217
|
*/
|
|
@@ -179,85 +248,45 @@ export interface CampaignData {
|
|
|
179
248
|
* URL to terms and conditions
|
|
180
249
|
*/
|
|
181
250
|
termsAndConditionsLink?: string | null;
|
|
182
|
-
}
|
|
183
|
-
export type MessagingUseCaseUs = 'MARKETING' | 'ACCOUNT_NOTIFICATION' | 'CUSTOMER_CARE' | 'FRAUD_ALERT' | 'TWO_FA' | 'DELIVERY_NOTIFICATION' | 'SECURITY_ALERT' | 'M2M' | 'MIXED' | 'HIGHER_EDUCATION' | 'POLLING_VOTING' | 'PUBLIC_SERVICE_ANNOUNCEMENT' | 'LOW_VOLUME';
|
|
184
|
-
/**
|
|
185
|
-
* Campaign use case with sample messages
|
|
186
|
-
*/
|
|
187
|
-
export interface SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData {
|
|
188
|
-
messagingUseCaseUs: MessagingUseCaseUs;
|
|
189
251
|
/**
|
|
190
|
-
*
|
|
252
|
+
* Expected messaging volume for this campaign. Numeric string (e.g. "1999",
|
|
253
|
+
* "5000"). Values below 2000 bill at the low-volume tier.
|
|
191
254
|
*/
|
|
192
|
-
|
|
255
|
+
volume?: string | null;
|
|
193
256
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
257
|
+
/**
|
|
258
|
+
* Customer-facing use-case representation for the public v3 campaign contract.
|
|
259
|
+
* Exists for the same reason as BrandCampaignV3Response: nesting the
|
|
260
|
+
* TcrCampaignUseCase database entity in a public response means any column added
|
|
261
|
+
* to that table silently becomes part of the customer-facing contract. This DTO is
|
|
262
|
+
* an explicit allowlist, so a new column stays invisible until it is added here on
|
|
263
|
+
* purpose. This mirrors exactly the fields the entity already serialized, so it
|
|
264
|
+
* removes nothing from the current response shape. It only closes the future-leak
|
|
265
|
+
* path.
|
|
266
|
+
*/
|
|
267
|
+
export interface CampaignUseCase {
|
|
268
|
+
id?: string;
|
|
269
|
+
campaignId?: string;
|
|
270
|
+
createdAt?: string;
|
|
202
271
|
customerId?: string;
|
|
203
|
-
|
|
204
|
-
dcaElectionsCompletedAt?: string | null;
|
|
272
|
+
messagingUseCaseUs?: MessagingUseCaseUs;
|
|
205
273
|
/**
|
|
206
|
-
*
|
|
207
|
-
* TCR_CAMPAIGN_SUBMISSION (the one-time submission fee was charged). Populated
|
|
208
|
-
* only by the campaigns-list path; defaults false on other responses.
|
|
274
|
+
* Sample messages submitted to the registry for this use case.
|
|
209
275
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
helpMessage?: string | null;
|
|
213
|
-
kycSubmissionFormId?: string | null;
|
|
214
|
-
messageFlow?: string | null;
|
|
215
|
-
optinKeywords?: string | null;
|
|
216
|
-
optinMessage?: string | null;
|
|
217
|
-
optoutKeywords?: string | null;
|
|
218
|
-
optoutMessage?: string | null;
|
|
219
|
-
privacyPolicyLink?: string | null;
|
|
220
|
-
resellerId?: string | null;
|
|
221
|
-
sharingStatus?: 'PENDING' | 'ACCEPTED' | 'DECLINED' | null;
|
|
222
|
-
status?: 'SENT_CREATED' | 'ACTIVE' | 'EXPIRED' | null;
|
|
223
|
-
submittedAt?: string | null;
|
|
224
|
-
submittedToTCR?: boolean;
|
|
225
|
-
tcrCampaignId?: string | null;
|
|
226
|
-
tcrSyncError?: string | null;
|
|
227
|
-
telnyxCampaignId?: string | null;
|
|
228
|
-
termsAndConditionsLink?: string | null;
|
|
229
|
-
upstreamCnpId?: string | null;
|
|
230
|
-
useCases?: Array<TcrCampaignWithUseCases.UseCase>;
|
|
231
|
-
}
|
|
232
|
-
export declare namespace TcrCampaignWithUseCases {
|
|
233
|
-
interface UseCase extends CampaignsAPI.BaseDto {
|
|
234
|
-
sampleMessages: Array<string>;
|
|
235
|
-
campaignId?: string;
|
|
236
|
-
customerId?: string;
|
|
237
|
-
messagingUseCaseUs?: CampaignsAPI.MessagingUseCaseUs;
|
|
238
|
-
}
|
|
276
|
+
sampleMessages?: Array<string>;
|
|
277
|
+
updatedAt?: string | null;
|
|
239
278
|
}
|
|
240
279
|
/**
|
|
241
|
-
*
|
|
280
|
+
* Campaign use case with sample messages
|
|
242
281
|
*/
|
|
243
|
-
export interface
|
|
244
|
-
|
|
245
|
-
* The response data (null if error)
|
|
246
|
-
*/
|
|
247
|
-
data?: Array<TcrCampaignWithUseCases> | null;
|
|
248
|
-
/**
|
|
249
|
-
* Error information
|
|
250
|
-
*/
|
|
251
|
-
error?: WebhooksAPI.ErrorDetail | null;
|
|
252
|
-
/**
|
|
253
|
-
* Request and response metadata
|
|
254
|
-
*/
|
|
255
|
-
meta?: WebhooksAPI.APIMeta;
|
|
282
|
+
export interface CampaignUseCaseData {
|
|
283
|
+
messagingUseCaseUs: MessagingUseCaseUs;
|
|
256
284
|
/**
|
|
257
|
-
*
|
|
285
|
+
* Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
258
286
|
*/
|
|
259
|
-
|
|
287
|
+
sampleMessages: Array<string>;
|
|
260
288
|
}
|
|
289
|
+
export type MessagingUseCaseUs = 'MARKETING' | 'ACCOUNT_NOTIFICATION' | 'CUSTOMER_CARE' | 'FRAUD_ALERT' | 'TWO_FA' | 'DELIVERY_NOTIFICATION' | 'SECURITY_ALERT' | 'M2M' | 'MIXED' | 'HIGHER_EDUCATION' | 'POLLING_VOTING' | 'PUBLIC_SERVICE_ANNOUNCEMENT' | 'LOW_VOLUME';
|
|
261
290
|
export interface CampaignCreateParams {
|
|
262
291
|
/**
|
|
263
292
|
* Body param: Campaign data for create or update operation
|
|
@@ -333,6 +362,6 @@ export interface CampaignDeleteParams {
|
|
|
333
362
|
'x-profile-id'?: string;
|
|
334
363
|
}
|
|
335
364
|
export declare namespace Campaigns {
|
|
336
|
-
export { type
|
|
365
|
+
export { type APIResponseOfBrandCampaign as APIResponseOfBrandCampaign, type APIResponseOfListOfBrandCampaign as APIResponseOfListOfBrandCampaign, type BrandCampaign as BrandCampaign, type CampaignData as CampaignData, type CampaignUseCase as CampaignUseCase, type CampaignUseCaseData as CampaignUseCaseData, type MessagingUseCaseUs as MessagingUseCaseUs, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, type CampaignDeleteParams as CampaignDeleteParams, };
|
|
337
366
|
}
|
|
338
367
|
//# sourceMappingURL=campaigns.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaigns.d.mts","sourceRoot":"","sources":["../../src/resources/profiles/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"campaigns.d.mts","sourceRoot":"","sources":["../../src/resources/profiles/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,O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AE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as CampaignsAPI from "./campaigns.js";
|
|
3
2
|
import * as WebhooksAPI from "../webhooks.js";
|
|
4
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
5
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
@@ -13,7 +12,7 @@ export declare class Campaigns extends APIResource {
|
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
14
|
* ```ts
|
|
16
|
-
* const
|
|
15
|
+
* const apiResponseOfBrandCampaign =
|
|
17
16
|
* await client.profiles.campaigns.create(
|
|
18
17
|
* '770e8400-e29b-41d4-a716-446655440002',
|
|
19
18
|
* {
|
|
@@ -36,14 +35,14 @@ export declare class Campaigns extends APIResource {
|
|
|
36
35
|
* );
|
|
37
36
|
* ```
|
|
38
37
|
*/
|
|
39
|
-
create(profileID: string, params: CampaignCreateParams, options?: RequestOptions): APIPromise<
|
|
38
|
+
create(profileID: string, params: CampaignCreateParams, options?: RequestOptions): APIPromise<APIResponseOfBrandCampaign>;
|
|
40
39
|
/**
|
|
41
40
|
* Updates an existing campaign under the brand of the specified profile. Cannot
|
|
42
41
|
* update campaigns that have already been submitted to TCR.
|
|
43
42
|
*
|
|
44
43
|
* @example
|
|
45
44
|
* ```ts
|
|
46
|
-
* const
|
|
45
|
+
* const apiResponseOfBrandCampaign =
|
|
47
46
|
* await client.profiles.campaigns.update(
|
|
48
47
|
* 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
|
|
49
48
|
* {
|
|
@@ -67,19 +66,20 @@ export declare class Campaigns extends APIResource {
|
|
|
67
66
|
* );
|
|
68
67
|
* ```
|
|
69
68
|
*/
|
|
70
|
-
update(campaignID: string, params: CampaignUpdateParams, options?: RequestOptions): APIPromise<
|
|
69
|
+
update(campaignID: string, params: CampaignUpdateParams, options?: RequestOptions): APIPromise<APIResponseOfBrandCampaign>;
|
|
71
70
|
/**
|
|
72
71
|
* Retrieves all campaigns linked to the profile's brand, including use cases and
|
|
73
72
|
* sample messages. Returns inherited campaigns if inherit_tcr_campaign=true.
|
|
74
73
|
*
|
|
75
74
|
* @example
|
|
76
75
|
* ```ts
|
|
77
|
-
* const
|
|
78
|
-
*
|
|
79
|
-
*
|
|
76
|
+
* const apiResponseOfListOfBrandCampaign =
|
|
77
|
+
* await client.profiles.campaigns.list(
|
|
78
|
+
* '770e8400-e29b-41d4-a716-446655440002',
|
|
79
|
+
* );
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
|
-
list(profileID: string, params?: CampaignListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
82
|
+
list(profileID: string, params?: CampaignListParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfListOfBrandCampaign>;
|
|
83
83
|
/**
|
|
84
84
|
* Deletes a campaign by ID from the brand of the specified profile. The profile
|
|
85
85
|
* must belong to the authenticated organization.
|
|
@@ -97,11 +97,11 @@ export declare class Campaigns extends APIResource {
|
|
|
97
97
|
/**
|
|
98
98
|
* Standard API response envelope for all v3 endpoints
|
|
99
99
|
*/
|
|
100
|
-
export interface
|
|
100
|
+
export interface APIResponseOfBrandCampaign {
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* A 10DLC campaign registered for a brand.
|
|
103
103
|
*/
|
|
104
|
-
data?:
|
|
104
|
+
data?: BrandCampaign | null;
|
|
105
105
|
/**
|
|
106
106
|
* Error information
|
|
107
107
|
*/
|
|
@@ -115,13 +115,82 @@ export interface APIResponseOfTcrCampaignWithUseCases {
|
|
|
115
115
|
*/
|
|
116
116
|
success?: boolean;
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Standard API response envelope for all v3 endpoints
|
|
120
|
+
*/
|
|
121
|
+
export interface APIResponseOfListOfBrandCampaign {
|
|
122
|
+
/**
|
|
123
|
+
* The response data (null if error)
|
|
124
|
+
*/
|
|
125
|
+
data?: Array<BrandCampaign> | null;
|
|
126
|
+
/**
|
|
127
|
+
* Error information
|
|
128
|
+
*/
|
|
129
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
119
130
|
/**
|
|
120
|
-
*
|
|
131
|
+
* Request and response metadata
|
|
121
132
|
*/
|
|
133
|
+
meta?: WebhooksAPI.APIMeta;
|
|
134
|
+
/**
|
|
135
|
+
* Indicates whether the request was successful
|
|
136
|
+
*/
|
|
137
|
+
success?: boolean;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* A 10DLC campaign registered for a brand.
|
|
141
|
+
*/
|
|
142
|
+
export interface BrandCampaign {
|
|
122
143
|
id?: string;
|
|
144
|
+
billedDate?: string | null;
|
|
145
|
+
brandId?: string | null;
|
|
146
|
+
cost?: number | null;
|
|
123
147
|
createdAt?: string;
|
|
148
|
+
customerId?: string;
|
|
149
|
+
/**
|
|
150
|
+
* True once every carrier has completed its DCA election and the campaign is
|
|
151
|
+
* operationally ready for traffic.
|
|
152
|
+
*/
|
|
153
|
+
dcaElectionsComplete?: boolean | null;
|
|
154
|
+
dcaElectionsCompletedAt?: string | null;
|
|
155
|
+
description?: string;
|
|
156
|
+
/**
|
|
157
|
+
* True when the one-time campaign submission fee has already been charged.
|
|
158
|
+
*/
|
|
159
|
+
hasSubmissionTransaction?: boolean;
|
|
160
|
+
helpKeywords?: string | null;
|
|
161
|
+
helpMessage?: string | null;
|
|
162
|
+
messageFlow?: string | null;
|
|
163
|
+
name?: string;
|
|
164
|
+
optinKeywords?: string | null;
|
|
165
|
+
optinMessage?: string | null;
|
|
166
|
+
optoutKeywords?: string | null;
|
|
167
|
+
optoutMessage?: string | null;
|
|
168
|
+
privacyPolicyLink?: string | null;
|
|
169
|
+
status?: 'SENT_CREATED' | 'ACTIVE' | 'EXPIRED' | null;
|
|
170
|
+
submittedAt?: string | null;
|
|
171
|
+
submittedToTCR?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* The Campaign Registry identifier, once the campaign has been accepted.
|
|
174
|
+
*/
|
|
175
|
+
tcrCampaignId?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Surfaced so customers can see why a submission did not reach the registry.
|
|
178
|
+
*/
|
|
179
|
+
tcrSyncError?: string | null;
|
|
180
|
+
termsAndConditionsLink?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Campaign type (for example KYC or App).
|
|
183
|
+
*/
|
|
184
|
+
type?: string;
|
|
124
185
|
updatedAt?: string | null;
|
|
186
|
+
useCases?: Array<CampaignUseCase>;
|
|
187
|
+
/**
|
|
188
|
+
* Expected messaging volume for this campaign — customer-supplied on
|
|
189
|
+
* create/update, and the input to both the TCR usecase classification (LOW_VOLUME
|
|
190
|
+
* vs MIXED/specific) and the campaign fee tier. Surfaced so customers can read
|
|
191
|
+
* back the value they set.
|
|
192
|
+
*/
|
|
193
|
+
volume?: string | null;
|
|
125
194
|
}
|
|
126
195
|
/**
|
|
127
196
|
* Campaign data for create or update operation
|
|
@@ -142,7 +211,7 @@ export interface CampaignData {
|
|
|
142
211
|
/**
|
|
143
212
|
* List of use cases with sample messages
|
|
144
213
|
*/
|
|
145
|
-
useCases: Array<
|
|
214
|
+
useCases: Array<CampaignUseCaseData>;
|
|
146
215
|
/**
|
|
147
216
|
* Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
148
217
|
*/
|
|
@@ -179,85 +248,45 @@ export interface CampaignData {
|
|
|
179
248
|
* URL to terms and conditions
|
|
180
249
|
*/
|
|
181
250
|
termsAndConditionsLink?: string | null;
|
|
182
|
-
}
|
|
183
|
-
export type MessagingUseCaseUs = 'MARKETING' | 'ACCOUNT_NOTIFICATION' | 'CUSTOMER_CARE' | 'FRAUD_ALERT' | 'TWO_FA' | 'DELIVERY_NOTIFICATION' | 'SECURITY_ALERT' | 'M2M' | 'MIXED' | 'HIGHER_EDUCATION' | 'POLLING_VOTING' | 'PUBLIC_SERVICE_ANNOUNCEMENT' | 'LOW_VOLUME';
|
|
184
|
-
/**
|
|
185
|
-
* Campaign use case with sample messages
|
|
186
|
-
*/
|
|
187
|
-
export interface SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData {
|
|
188
|
-
messagingUseCaseUs: MessagingUseCaseUs;
|
|
189
251
|
/**
|
|
190
|
-
*
|
|
252
|
+
* Expected messaging volume for this campaign. Numeric string (e.g. "1999",
|
|
253
|
+
* "5000"). Values below 2000 bill at the low-volume tier.
|
|
191
254
|
*/
|
|
192
|
-
|
|
255
|
+
volume?: string | null;
|
|
193
256
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
257
|
+
/**
|
|
258
|
+
* Customer-facing use-case representation for the public v3 campaign contract.
|
|
259
|
+
* Exists for the same reason as BrandCampaignV3Response: nesting the
|
|
260
|
+
* TcrCampaignUseCase database entity in a public response means any column added
|
|
261
|
+
* to that table silently becomes part of the customer-facing contract. This DTO is
|
|
262
|
+
* an explicit allowlist, so a new column stays invisible until it is added here on
|
|
263
|
+
* purpose. This mirrors exactly the fields the entity already serialized, so it
|
|
264
|
+
* removes nothing from the current response shape. It only closes the future-leak
|
|
265
|
+
* path.
|
|
266
|
+
*/
|
|
267
|
+
export interface CampaignUseCase {
|
|
268
|
+
id?: string;
|
|
269
|
+
campaignId?: string;
|
|
270
|
+
createdAt?: string;
|
|
202
271
|
customerId?: string;
|
|
203
|
-
|
|
204
|
-
dcaElectionsCompletedAt?: string | null;
|
|
272
|
+
messagingUseCaseUs?: MessagingUseCaseUs;
|
|
205
273
|
/**
|
|
206
|
-
*
|
|
207
|
-
* TCR_CAMPAIGN_SUBMISSION (the one-time submission fee was charged). Populated
|
|
208
|
-
* only by the campaigns-list path; defaults false on other responses.
|
|
274
|
+
* Sample messages submitted to the registry for this use case.
|
|
209
275
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
helpMessage?: string | null;
|
|
213
|
-
kycSubmissionFormId?: string | null;
|
|
214
|
-
messageFlow?: string | null;
|
|
215
|
-
optinKeywords?: string | null;
|
|
216
|
-
optinMessage?: string | null;
|
|
217
|
-
optoutKeywords?: string | null;
|
|
218
|
-
optoutMessage?: string | null;
|
|
219
|
-
privacyPolicyLink?: string | null;
|
|
220
|
-
resellerId?: string | null;
|
|
221
|
-
sharingStatus?: 'PENDING' | 'ACCEPTED' | 'DECLINED' | null;
|
|
222
|
-
status?: 'SENT_CREATED' | 'ACTIVE' | 'EXPIRED' | null;
|
|
223
|
-
submittedAt?: string | null;
|
|
224
|
-
submittedToTCR?: boolean;
|
|
225
|
-
tcrCampaignId?: string | null;
|
|
226
|
-
tcrSyncError?: string | null;
|
|
227
|
-
telnyxCampaignId?: string | null;
|
|
228
|
-
termsAndConditionsLink?: string | null;
|
|
229
|
-
upstreamCnpId?: string | null;
|
|
230
|
-
useCases?: Array<TcrCampaignWithUseCases.UseCase>;
|
|
231
|
-
}
|
|
232
|
-
export declare namespace TcrCampaignWithUseCases {
|
|
233
|
-
interface UseCase extends CampaignsAPI.BaseDto {
|
|
234
|
-
sampleMessages: Array<string>;
|
|
235
|
-
campaignId?: string;
|
|
236
|
-
customerId?: string;
|
|
237
|
-
messagingUseCaseUs?: CampaignsAPI.MessagingUseCaseUs;
|
|
238
|
-
}
|
|
276
|
+
sampleMessages?: Array<string>;
|
|
277
|
+
updatedAt?: string | null;
|
|
239
278
|
}
|
|
240
279
|
/**
|
|
241
|
-
*
|
|
280
|
+
* Campaign use case with sample messages
|
|
242
281
|
*/
|
|
243
|
-
export interface
|
|
244
|
-
|
|
245
|
-
* The response data (null if error)
|
|
246
|
-
*/
|
|
247
|
-
data?: Array<TcrCampaignWithUseCases> | null;
|
|
248
|
-
/**
|
|
249
|
-
* Error information
|
|
250
|
-
*/
|
|
251
|
-
error?: WebhooksAPI.ErrorDetail | null;
|
|
252
|
-
/**
|
|
253
|
-
* Request and response metadata
|
|
254
|
-
*/
|
|
255
|
-
meta?: WebhooksAPI.APIMeta;
|
|
282
|
+
export interface CampaignUseCaseData {
|
|
283
|
+
messagingUseCaseUs: MessagingUseCaseUs;
|
|
256
284
|
/**
|
|
257
|
-
*
|
|
285
|
+
* Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
258
286
|
*/
|
|
259
|
-
|
|
287
|
+
sampleMessages: Array<string>;
|
|
260
288
|
}
|
|
289
|
+
export type MessagingUseCaseUs = 'MARKETING' | 'ACCOUNT_NOTIFICATION' | 'CUSTOMER_CARE' | 'FRAUD_ALERT' | 'TWO_FA' | 'DELIVERY_NOTIFICATION' | 'SECURITY_ALERT' | 'M2M' | 'MIXED' | 'HIGHER_EDUCATION' | 'POLLING_VOTING' | 'PUBLIC_SERVICE_ANNOUNCEMENT' | 'LOW_VOLUME';
|
|
261
290
|
export interface CampaignCreateParams {
|
|
262
291
|
/**
|
|
263
292
|
* Body param: Campaign data for create or update operation
|
|
@@ -333,6 +362,6 @@ export interface CampaignDeleteParams {
|
|
|
333
362
|
'x-profile-id'?: string;
|
|
334
363
|
}
|
|
335
364
|
export declare namespace Campaigns {
|
|
336
|
-
export { type
|
|
365
|
+
export { type APIResponseOfBrandCampaign as APIResponseOfBrandCampaign, type APIResponseOfListOfBrandCampaign as APIResponseOfListOfBrandCampaign, type BrandCampaign as BrandCampaign, type CampaignData as CampaignData, type CampaignUseCase as CampaignUseCase, type CampaignUseCaseData as CampaignUseCaseData, type MessagingUseCaseUs as MessagingUseCaseUs, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, type CampaignDeleteParams as CampaignDeleteParams, };
|
|
337
366
|
}
|
|
338
367
|
//# sourceMappingURL=campaigns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaigns.d.ts","sourceRoot":"","sources":["../../src/resources/profiles/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"campaigns.d.ts","sourceRoot":"","sources":["../../src/resources/profiles/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAezC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,UAAU,EAAE,MAA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