@zavudev/sdk 0.30.0 → 0.38.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 +124 -0
- package/client.d.mts +28 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -4
- package/client.d.ts.map +1 -1
- package/client.js +25 -1
- package/client.js.map +1 -1
- package/client.mjs +25 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/balance.d.mts +33 -0
- package/resources/balance.d.mts.map +1 -0
- package/resources/balance.d.ts +33 -0
- package/resources/balance.d.ts.map +1 -0
- package/resources/balance.js +16 -0
- package/resources/balance.js.map +1 -0
- package/resources/balance.mjs +12 -0
- package/resources/balance.mjs.map +1 -0
- package/resources/broadcasts/broadcasts.d.mts +31 -1
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +31 -1
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +28 -0
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +28 -0
- package/resources/broadcasts/broadcasts.mjs.map +1 -1
- package/resources/broadcasts/index.d.mts +1 -1
- package/resources/broadcasts/index.d.mts.map +1 -1
- package/resources/broadcasts/index.d.ts +1 -1
- package/resources/broadcasts/index.d.ts.map +1 -1
- package/resources/broadcasts/index.js.map +1 -1
- package/resources/broadcasts/index.mjs.map +1 -1
- package/resources/contacts/channels.d.mts +127 -0
- package/resources/contacts/channels.d.mts.map +1 -0
- package/resources/contacts/channels.d.ts +127 -0
- package/resources/contacts/channels.d.ts.map +1 -0
- package/resources/contacts/channels.js +76 -0
- package/resources/contacts/channels.js.map +1 -0
- package/resources/contacts/channels.mjs +72 -0
- package/resources/contacts/channels.mjs.map +1 -0
- package/resources/contacts/contacts.d.mts +262 -0
- package/resources/contacts/contacts.d.mts.map +1 -0
- package/resources/contacts/contacts.d.ts +262 -0
- package/resources/contacts/contacts.d.ts.map +1 -0
- package/resources/contacts/contacts.js +118 -0
- package/resources/contacts/contacts.js.map +1 -0
- package/resources/contacts/contacts.mjs +113 -0
- package/resources/contacts/contacts.mjs.map +1 -0
- package/resources/contacts/index.d.mts +3 -0
- package/resources/contacts/index.d.mts.map +1 -0
- package/resources/contacts/index.d.ts +3 -0
- package/resources/contacts/index.d.ts.map +1 -0
- package/resources/contacts/index.js +9 -0
- package/resources/contacts/index.js.map +1 -0
- package/resources/contacts/index.mjs +4 -0
- package/resources/contacts/index.mjs.map +1 -0
- package/resources/contacts.d.mts +1 -144
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +1 -144
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +2 -31
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +1 -29
- package/resources/contacts.mjs.map +1 -1
- package/resources/exports.d.mts +101 -0
- package/resources/exports.d.mts.map +1 -0
- package/resources/exports.d.ts +101 -0
- package/resources/exports.d.ts.map +1 -0
- package/resources/exports.js +53 -0
- package/resources/exports.js.map +1 -0
- package/resources/exports.mjs +49 -0
- package/resources/exports.mjs.map +1 -0
- package/resources/index.d.mts +10 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +10 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invitations.d.mts +133 -0
- package/resources/invitations.d.mts.map +1 -0
- package/resources/invitations.d.ts +133 -0
- package/resources/invitations.d.ts.map +1 -0
- package/resources/invitations.js +67 -0
- package/resources/invitations.js.map +1 -0
- package/resources/invitations.mjs +63 -0
- package/resources/invitations.mjs.map +1 -0
- package/resources/messages.d.mts +37 -4
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +37 -4
- package/resources/messages.d.ts.map +1 -1
- package/resources/number-10dlc/brands.d.mts +258 -0
- package/resources/number-10dlc/brands.d.mts.map +1 -0
- package/resources/number-10dlc/brands.d.ts +258 -0
- package/resources/number-10dlc/brands.d.ts.map +1 -0
- package/resources/number-10dlc/brands.js +132 -0
- package/resources/number-10dlc/brands.js.map +1 -0
- package/resources/number-10dlc/brands.mjs +128 -0
- package/resources/number-10dlc/brands.mjs.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.d.mts +223 -0
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.d.ts +223 -0
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.js +133 -0
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.mjs +128 -0
- package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -0
- package/resources/number-10dlc/campaigns/index.d.mts +3 -0
- package/resources/number-10dlc/campaigns/index.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns/index.d.ts +3 -0
- package/resources/number-10dlc/campaigns/index.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns/index.js +9 -0
- package/resources/number-10dlc/campaigns/index.js.map +1 -0
- package/resources/number-10dlc/campaigns/index.mjs +4 -0
- package/resources/number-10dlc/campaigns/index.mjs.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts +79 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts +79 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.js +59 -0
- package/resources/number-10dlc/campaigns/phone-numbers.js.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.mjs +55 -0
- package/resources/number-10dlc/campaigns/phone-numbers.mjs.map +1 -0
- package/resources/number-10dlc/campaigns.d.mts +2 -0
- package/resources/number-10dlc/campaigns.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns.d.ts +2 -0
- package/resources/number-10dlc/campaigns.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns.js +6 -0
- package/resources/number-10dlc/campaigns.js.map +1 -0
- package/resources/number-10dlc/campaigns.mjs +3 -0
- package/resources/number-10dlc/campaigns.mjs.map +1 -0
- package/resources/number-10dlc/index.d.mts +4 -0
- package/resources/number-10dlc/index.d.mts.map +1 -0
- package/resources/number-10dlc/index.d.ts +4 -0
- package/resources/number-10dlc/index.d.ts.map +1 -0
- package/resources/number-10dlc/index.js +11 -0
- package/resources/number-10dlc/index.js.map +1 -0
- package/resources/number-10dlc/index.mjs +5 -0
- package/resources/number-10dlc/index.mjs.map +1 -0
- package/resources/number-10dlc/number-10dlc.d.mts +14 -0
- package/resources/number-10dlc/number-10dlc.d.mts.map +1 -0
- package/resources/number-10dlc/number-10dlc.d.ts +14 -0
- package/resources/number-10dlc/number-10dlc.d.ts.map +1 -0
- package/resources/number-10dlc/number-10dlc.js +21 -0
- package/resources/number-10dlc/number-10dlc.js.map +1 -0
- package/resources/number-10dlc/number-10dlc.mjs +16 -0
- package/resources/number-10dlc/number-10dlc.mjs.map +1 -0
- package/resources/number-10dlc.d.mts +2 -0
- package/resources/number-10dlc.d.mts.map +1 -0
- package/resources/number-10dlc.d.ts +2 -0
- package/resources/number-10dlc.d.ts.map +1 -0
- package/resources/number-10dlc.js +6 -0
- package/resources/number-10dlc.js.map +1 -0
- package/resources/number-10dlc.mjs +3 -0
- package/resources/number-10dlc.mjs.map +1 -0
- package/resources/plan.d.mts +43 -0
- package/resources/plan.d.mts.map +1 -0
- package/resources/plan.d.ts +43 -0
- package/resources/plan.d.ts.map +1 -0
- package/resources/plan.js +16 -0
- package/resources/plan.js.map +1 -0
- package/resources/plan.mjs +12 -0
- package/resources/plan.mjs.map +1 -0
- package/resources/senders/agent/agent.d.mts +4 -4
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +4 -4
- package/resources/senders/agent/agent.d.ts.map +1 -1
- package/resources/senders/agent/agent.js.map +1 -1
- package/resources/senders/agent/agent.mjs.map +1 -1
- package/resources/senders/agent/flows.d.mts +40 -114
- package/resources/senders/agent/flows.d.mts.map +1 -1
- package/resources/senders/agent/flows.d.ts +40 -114
- package/resources/senders/agent/flows.d.ts.map +1 -1
- package/resources/senders/agent/index.d.mts +2 -2
- package/resources/senders/agent/index.d.mts.map +1 -1
- package/resources/senders/agent/index.d.ts +2 -2
- package/resources/senders/agent/index.d.ts.map +1 -1
- package/resources/senders/agent/index.js.map +1 -1
- package/resources/senders/agent/index.mjs.map +1 -1
- package/resources/senders/agent/tools.d.mts +15 -47
- package/resources/senders/agent/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools.d.ts +15 -47
- package/resources/senders/agent/tools.d.ts.map +1 -1
- package/resources/senders/index.d.mts +1 -0
- package/resources/senders/index.d.mts.map +1 -1
- package/resources/senders/index.d.ts +1 -0
- package/resources/senders/index.d.ts.map +1 -1
- package/resources/senders/index.js +3 -1
- package/resources/senders/index.js.map +1 -1
- package/resources/senders/index.mjs +1 -0
- package/resources/senders/index.mjs.map +1 -1
- package/resources/senders/senders.d.mts +17 -1
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +17 -1
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js +4 -0
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs +4 -0
- package/resources/senders/senders.mjs.map +1 -1
- package/resources/senders/whatsapp-sync.d.mts +134 -0
- package/resources/senders/whatsapp-sync.d.mts.map +1 -0
- package/resources/senders/whatsapp-sync.d.ts +134 -0
- package/resources/senders/whatsapp-sync.d.ts.map +1 -0
- package/resources/senders/whatsapp-sync.js +56 -0
- package/resources/senders/whatsapp-sync.js.map +1 -0
- package/resources/senders/whatsapp-sync.mjs +52 -0
- package/resources/senders/whatsapp-sync.mjs.map +1 -0
- package/resources/sub-accounts/api-keys.d.mts +85 -0
- package/resources/sub-accounts/api-keys.d.mts.map +1 -0
- package/resources/sub-accounts/api-keys.d.ts +85 -0
- package/resources/sub-accounts/api-keys.d.ts.map +1 -0
- package/resources/sub-accounts/api-keys.js +53 -0
- package/resources/sub-accounts/api-keys.js.map +1 -0
- package/resources/sub-accounts/api-keys.mjs +49 -0
- package/resources/sub-accounts/api-keys.mjs.map +1 -0
- package/resources/sub-accounts/index.d.mts +3 -0
- package/resources/sub-accounts/index.d.mts.map +1 -0
- package/resources/sub-accounts/index.d.ts +3 -0
- package/resources/sub-accounts/index.d.ts.map +1 -0
- package/resources/sub-accounts/index.js +9 -0
- package/resources/sub-accounts/index.js.map +1 -0
- package/resources/sub-accounts/index.mjs +4 -0
- package/resources/sub-accounts/index.mjs.map +1 -0
- package/resources/sub-accounts/sub-accounts.d.mts +168 -0
- package/resources/sub-accounts/sub-accounts.d.mts.map +1 -0
- package/resources/sub-accounts/sub-accounts.d.ts +168 -0
- package/resources/sub-accounts/sub-accounts.d.ts.map +1 -0
- package/resources/sub-accounts/sub-accounts.js +94 -0
- package/resources/sub-accounts/sub-accounts.js.map +1 -0
- package/resources/sub-accounts/sub-accounts.mjs +89 -0
- package/resources/sub-accounts/sub-accounts.mjs.map +1 -0
- package/resources/sub-accounts.d.mts +2 -0
- package/resources/sub-accounts.d.mts.map +1 -0
- package/resources/sub-accounts.d.ts +2 -0
- package/resources/sub-accounts.d.ts.map +1 -0
- package/resources/sub-accounts.js +6 -0
- package/resources/sub-accounts.js.map +1 -0
- package/resources/sub-accounts.mjs +3 -0
- package/resources/sub-accounts.mjs.map +1 -0
- package/resources/templates.d.mts +42 -2
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +42 -2
- package/resources/templates.d.ts.map +1 -1
- package/resources/urls.d.mts +88 -0
- package/resources/urls.d.mts.map +1 -0
- package/resources/urls.d.ts +88 -0
- package/resources/urls.d.ts.map +1 -0
- package/resources/urls.js +55 -0
- package/resources/urls.js.map +1 -0
- package/resources/urls.mjs +51 -0
- package/resources/urls.mjs.map +1 -0
- package/resources/usage.d.mts +36 -0
- package/resources/usage.d.mts.map +1 -0
- package/resources/usage.d.ts +36 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +16 -0
- package/resources/usage.js.map +1 -0
- package/resources/usage.mjs +12 -0
- package/resources/usage.mjs.map +1 -0
- package/src/client.ts +130 -6
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/balance.ts +43 -0
- package/src/resources/broadcasts/broadcasts.ts +40 -0
- package/src/resources/broadcasts/index.ts +2 -0
- package/src/resources/contacts/channels.ts +177 -0
- package/src/resources/contacts/contacts.ts +360 -0
- package/src/resources/contacts/index.ts +22 -0
- package/src/resources/contacts.ts +1 -196
- package/src/resources/exports.ts +141 -0
- package/src/resources/index.ts +51 -1
- package/src/resources/invitations.ts +188 -0
- package/src/resources/messages.ts +43 -3
- package/src/resources/number-10dlc/brands.ts +377 -0
- package/src/resources/number-10dlc/campaigns/campaigns.ts +349 -0
- package/src/resources/number-10dlc/campaigns/index.ts +23 -0
- package/src/resources/number-10dlc/campaigns/phone-numbers.ts +123 -0
- package/src/resources/number-10dlc/campaigns.ts +3 -0
- package/src/resources/number-10dlc/index.ts +30 -0
- package/src/resources/number-10dlc/number-10dlc.ts +71 -0
- package/src/resources/number-10dlc.ts +3 -0
- package/src/resources/plan.ts +62 -0
- package/src/resources/senders/agent/agent.ts +6 -0
- package/src/resources/senders/agent/flows.ts +44 -126
- package/src/resources/senders/agent/index.ts +3 -0
- package/src/resources/senders/agent/tools.ts +13 -50
- package/src/resources/senders/index.ts +9 -0
- package/src/resources/senders/senders.ts +38 -1
- package/src/resources/senders/whatsapp-sync.ts +175 -0
- package/src/resources/sub-accounts/api-keys.ts +126 -0
- package/src/resources/sub-accounts/index.ts +22 -0
- package/src/resources/sub-accounts/sub-accounts.ts +246 -0
- package/src/resources/sub-accounts.ts +3 -0
- package/src/resources/templates.ts +51 -2
- package/src/resources/urls.ts +125 -0
- package/src/resources/usage.ts +48 -0
- 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
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Brands extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a 10DLC brand registration. The brand starts in draft status. Submit it
|
|
13
|
+
* for review using the submit endpoint.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const brand = await client.number10dlc.brands.create({
|
|
18
|
+
* city: 'San Francisco',
|
|
19
|
+
* country: 'US',
|
|
20
|
+
* displayName: 'Acme Corp',
|
|
21
|
+
* email: 'compliance@acme.com',
|
|
22
|
+
* entityType: 'PRIVATE_PROFIT',
|
|
23
|
+
* phone: '+14155551234',
|
|
24
|
+
* postalCode: '94102',
|
|
25
|
+
* state: 'CA',
|
|
26
|
+
* street: '123 Main St',
|
|
27
|
+
* vertical: 'Technology',
|
|
28
|
+
* companyName: 'Acme Corporation',
|
|
29
|
+
* ein: '12-3456789',
|
|
30
|
+
* website: 'https://acme.com',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
create(body: BrandCreateParams, options?: RequestOptions): APIPromise<BrandCreateResponse> {
|
|
35
|
+
return this._client.post('/v1/10dlc/brands', { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Get 10DLC brand
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const brand = await client.number10dlc.brands.retrieve(
|
|
44
|
+
* 'brandId',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
retrieve(brandID: string, options?: RequestOptions): APIPromise<BrandRetrieveResponse> {
|
|
49
|
+
return this._client.get(path`/v1/10dlc/brands/${brandID}`, options);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Update a 10DLC brand in draft status. Cannot update after submission.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const brand = await client.number10dlc.brands.update(
|
|
58
|
+
* 'brandId',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
update(
|
|
63
|
+
brandID: string,
|
|
64
|
+
body: BrandUpdateParams,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): APIPromise<BrandUpdateResponse> {
|
|
67
|
+
return this._client.patch(path`/v1/10dlc/brands/${brandID}`, { body, ...options });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* List 10DLC brand registrations for this project.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* // Automatically fetches more pages as needed.
|
|
76
|
+
* for await (const tenDlcBrand of client.number10dlc.brands.list()) {
|
|
77
|
+
* // ...
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
list(
|
|
82
|
+
query: BrandListParams | null | undefined = {},
|
|
83
|
+
options?: RequestOptions,
|
|
84
|
+
): PagePromise<TenDlcBrandsCursor, TenDlcBrand> {
|
|
85
|
+
return this._client.getAPIList('/v1/10dlc/brands', Cursor<TenDlcBrand>, { query, ...options });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Delete 10DLC brand
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* await client.number10dlc.brands.delete('brandId');
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
delete(brandID: string, options?: RequestOptions): APIPromise<void> {
|
|
97
|
+
return this._client.delete(path`/v1/10dlc/brands/${brandID}`, {
|
|
98
|
+
...options,
|
|
99
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* List available use cases for 10DLC campaign registration.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* const response =
|
|
109
|
+
* await client.number10dlc.brands.listUseCases();
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
listUseCases(options?: RequestOptions): APIPromise<BrandListUseCasesResponse> {
|
|
113
|
+
return this._client.get('/v1/10dlc/brands/use-cases', options);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Submit a draft brand to The Campaign Registry (TCR) for vetting. The brand must
|
|
118
|
+
* be in draft status. A $35 registration fee is charged from your balance.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* const response = await client.number10dlc.brands.submit(
|
|
123
|
+
* 'brandId',
|
|
124
|
+
* );
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
submit(brandID: string, options?: RequestOptions): APIPromise<BrandSubmitResponse> {
|
|
128
|
+
return this._client.post(path`/v1/10dlc/brands/${brandID}/submit`, options);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Sync the brand status with the registration provider. Use this to check for
|
|
133
|
+
* approval updates after submission.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* const response = await client.number10dlc.brands.syncStatus(
|
|
138
|
+
* 'brandId',
|
|
139
|
+
* );
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
syncStatus(brandID: string, options?: RequestOptions): APIPromise<BrandSyncStatusResponse> {
|
|
143
|
+
return this._client.post(path`/v1/10dlc/brands/${brandID}/sync`, options);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type TenDlcBrandsCursor = Cursor<TenDlcBrand>;
|
|
148
|
+
|
|
149
|
+
export interface TenDlcBrand {
|
|
150
|
+
id: string;
|
|
151
|
+
|
|
152
|
+
city: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Two-letter ISO country code.
|
|
156
|
+
*/
|
|
157
|
+
country: string;
|
|
158
|
+
|
|
159
|
+
createdAt: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Display name of the brand.
|
|
163
|
+
*/
|
|
164
|
+
displayName: string;
|
|
165
|
+
|
|
166
|
+
email: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Business entity type for 10DLC brand registration.
|
|
170
|
+
*/
|
|
171
|
+
entityType: 'PRIVATE_PROFIT' | 'PUBLIC_PROFIT' | 'NON_PROFIT' | 'GOVERNMENT' | 'SOLE_PROPRIETOR';
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Contact phone number in E.164 format.
|
|
175
|
+
*/
|
|
176
|
+
phone: string;
|
|
177
|
+
|
|
178
|
+
postalCode: string;
|
|
179
|
+
|
|
180
|
+
state: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Status of a 10DLC brand registration.
|
|
184
|
+
*/
|
|
185
|
+
status: 'draft' | 'pending' | 'verified' | 'rejected';
|
|
186
|
+
|
|
187
|
+
street: string;
|
|
188
|
+
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Industry vertical.
|
|
193
|
+
*/
|
|
194
|
+
vertical: string;
|
|
195
|
+
|
|
196
|
+
brandRelationship?: string | null;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Trust score assigned by TCR after vetting.
|
|
200
|
+
*/
|
|
201
|
+
brandScore?: number | null;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Legal company name.
|
|
205
|
+
*/
|
|
206
|
+
companyName?: string | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Employer Identification Number (EIN).
|
|
210
|
+
*/
|
|
211
|
+
ein?: string | null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Reason for rejection, if applicable.
|
|
215
|
+
*/
|
|
216
|
+
failureReason?: string | null;
|
|
217
|
+
|
|
218
|
+
firstName?: string | null;
|
|
219
|
+
|
|
220
|
+
lastName?: string | null;
|
|
221
|
+
|
|
222
|
+
stockExchange?: string | null;
|
|
223
|
+
|
|
224
|
+
stockSymbol?: string | null;
|
|
225
|
+
|
|
226
|
+
submittedAt?: string | null;
|
|
227
|
+
|
|
228
|
+
verifiedAt?: string | null;
|
|
229
|
+
|
|
230
|
+
website?: string | null;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface BrandCreateResponse {
|
|
234
|
+
brand: TenDlcBrand;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface BrandRetrieveResponse {
|
|
238
|
+
brand: TenDlcBrand;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface BrandUpdateResponse {
|
|
242
|
+
brand: TenDlcBrand;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface BrandListUseCasesResponse {
|
|
246
|
+
useCases: Array<BrandListUseCasesResponse.UseCase>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export namespace BrandListUseCasesResponse {
|
|
250
|
+
export interface UseCase {
|
|
251
|
+
description?: string;
|
|
252
|
+
|
|
253
|
+
name?: string;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface BrandSubmitResponse {
|
|
258
|
+
brand: TenDlcBrand;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface BrandSyncStatusResponse {
|
|
262
|
+
brand: TenDlcBrand;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface BrandCreateParams {
|
|
266
|
+
city: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Two-letter ISO country code.
|
|
270
|
+
*/
|
|
271
|
+
country: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Display name of the brand.
|
|
275
|
+
*/
|
|
276
|
+
displayName: string;
|
|
277
|
+
|
|
278
|
+
email: string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Business entity type for 10DLC brand registration.
|
|
282
|
+
*/
|
|
283
|
+
entityType: 'PRIVATE_PROFIT' | 'PUBLIC_PROFIT' | 'NON_PROFIT' | 'GOVERNMENT' | 'SOLE_PROPRIETOR';
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Contact phone in E.164 format.
|
|
287
|
+
*/
|
|
288
|
+
phone: string;
|
|
289
|
+
|
|
290
|
+
postalCode: string;
|
|
291
|
+
|
|
292
|
+
state: string;
|
|
293
|
+
|
|
294
|
+
street: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Industry vertical.
|
|
298
|
+
*/
|
|
299
|
+
vertical: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Legal company name.
|
|
303
|
+
*/
|
|
304
|
+
companyName?: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Employer Identification Number (format: XX-XXXXXXX).
|
|
308
|
+
*/
|
|
309
|
+
ein?: string;
|
|
310
|
+
|
|
311
|
+
firstName?: string;
|
|
312
|
+
|
|
313
|
+
lastName?: string;
|
|
314
|
+
|
|
315
|
+
stockExchange?: string;
|
|
316
|
+
|
|
317
|
+
stockSymbol?: string;
|
|
318
|
+
|
|
319
|
+
website?: string;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export interface BrandUpdateParams {
|
|
323
|
+
city?: string;
|
|
324
|
+
|
|
325
|
+
companyName?: string;
|
|
326
|
+
|
|
327
|
+
country?: string;
|
|
328
|
+
|
|
329
|
+
displayName?: string;
|
|
330
|
+
|
|
331
|
+
ein?: string;
|
|
332
|
+
|
|
333
|
+
email?: string;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Business entity type for 10DLC brand registration.
|
|
337
|
+
*/
|
|
338
|
+
entityType?: 'PRIVATE_PROFIT' | 'PUBLIC_PROFIT' | 'NON_PROFIT' | 'GOVERNMENT' | 'SOLE_PROPRIETOR';
|
|
339
|
+
|
|
340
|
+
firstName?: string;
|
|
341
|
+
|
|
342
|
+
lastName?: string;
|
|
343
|
+
|
|
344
|
+
phone?: string;
|
|
345
|
+
|
|
346
|
+
postalCode?: string;
|
|
347
|
+
|
|
348
|
+
state?: string;
|
|
349
|
+
|
|
350
|
+
stockExchange?: string;
|
|
351
|
+
|
|
352
|
+
stockSymbol?: string;
|
|
353
|
+
|
|
354
|
+
street?: string;
|
|
355
|
+
|
|
356
|
+
vertical?: string;
|
|
357
|
+
|
|
358
|
+
website?: string;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface BrandListParams extends CursorParams {}
|
|
362
|
+
|
|
363
|
+
export declare namespace Brands {
|
|
364
|
+
export {
|
|
365
|
+
type TenDlcBrand as TenDlcBrand,
|
|
366
|
+
type BrandCreateResponse as BrandCreateResponse,
|
|
367
|
+
type BrandRetrieveResponse as BrandRetrieveResponse,
|
|
368
|
+
type BrandUpdateResponse as BrandUpdateResponse,
|
|
369
|
+
type BrandListUseCasesResponse as BrandListUseCasesResponse,
|
|
370
|
+
type BrandSubmitResponse as BrandSubmitResponse,
|
|
371
|
+
type BrandSyncStatusResponse as BrandSyncStatusResponse,
|
|
372
|
+
type TenDlcBrandsCursor as TenDlcBrandsCursor,
|
|
373
|
+
type BrandCreateParams as BrandCreateParams,
|
|
374
|
+
type BrandUpdateParams as BrandUpdateParams,
|
|
375
|
+
type BrandListParams as BrandListParams,
|
|
376
|
+
};
|
|
377
|
+
}
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as PhoneNumbersAPI from './phone-numbers';
|
|
5
|
+
import {
|
|
6
|
+
PhoneNumberAssignParams,
|
|
7
|
+
PhoneNumberAssignResponse,
|
|
8
|
+
PhoneNumberListResponse,
|
|
9
|
+
PhoneNumberUnassignParams,
|
|
10
|
+
PhoneNumbers,
|
|
11
|
+
TenDlcPhoneNumberAssignment,
|
|
12
|
+
} from './phone-numbers';
|
|
13
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
14
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
15
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
16
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
17
|
+
import { path } from '../../../internal/utils/path';
|
|
18
|
+
|
|
19
|
+
export class Campaigns extends APIResource {
|
|
20
|
+
phoneNumbers: PhoneNumbersAPI.PhoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Create a 10DLC campaign under an existing brand. The campaign starts in draft
|
|
24
|
+
* status. Submit it for carrier review using the submit endpoint.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const campaign = await client.number10dlc.campaigns.create({
|
|
29
|
+
* affiliateMarketing: false,
|
|
30
|
+
* ageGated: false,
|
|
31
|
+
* brandId: 'brand_abc123',
|
|
32
|
+
* description:
|
|
33
|
+
* 'Send order status updates and shipping notifications to customers who opted in.',
|
|
34
|
+
* directLending: false,
|
|
35
|
+
* embeddedLink: true,
|
|
36
|
+
* embeddedPhone: false,
|
|
37
|
+
* name: 'Order Notifications',
|
|
38
|
+
* numberPooling: false,
|
|
39
|
+
* sampleMessages: [
|
|
40
|
+
* 'Hi {{name}}, your order #{{order_id}} has shipped! Track it at {{url}}',
|
|
41
|
+
* 'Your order #{{order_id}} has been delivered. Thank you for your purchase!',
|
|
42
|
+
* ],
|
|
43
|
+
* subscriberHelp: true,
|
|
44
|
+
* subscriberOptIn: true,
|
|
45
|
+
* subscriberOptOut: true,
|
|
46
|
+
* useCase: 'ACCOUNT_NOTIFICATION',
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
create(body: CampaignCreateParams, options?: RequestOptions): APIPromise<CampaignCreateResponse> {
|
|
51
|
+
return this._client.post('/v1/10dlc/campaigns', { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Get 10DLC campaign
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const campaign =
|
|
60
|
+
* await client.number10dlc.campaigns.retrieve('campaignId');
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
retrieve(campaignID: string, options?: RequestOptions): APIPromise<CampaignRetrieveResponse> {
|
|
64
|
+
return this._client.get(path`/v1/10dlc/campaigns/${campaignID}`, options);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Update a 10DLC campaign in draft status. Cannot update after submission.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const campaign = await client.number10dlc.campaigns.update(
|
|
73
|
+
* 'campaignId',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(
|
|
78
|
+
campaignID: string,
|
|
79
|
+
body: CampaignUpdateParams,
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): APIPromise<CampaignUpdateResponse> {
|
|
82
|
+
return this._client.patch(path`/v1/10dlc/campaigns/${campaignID}`, { body, ...options });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* List 10DLC campaign registrations for this project.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* // Automatically fetches more pages as needed.
|
|
91
|
+
* for await (const tenDlcCampaign of client.number10dlc.campaigns.list()) {
|
|
92
|
+
* // ...
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
list(
|
|
97
|
+
query: CampaignListParams | null | undefined = {},
|
|
98
|
+
options?: RequestOptions,
|
|
99
|
+
): PagePromise<TenDlcCampaignsCursor, TenDlcCampaign> {
|
|
100
|
+
return this._client.getAPIList('/v1/10dlc/campaigns', Cursor<TenDlcCampaign>, { query, ...options });
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Delete 10DLC campaign
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* await client.number10dlc.campaigns.delete('campaignId');
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
delete(campaignID: string, options?: RequestOptions): APIPromise<void> {
|
|
112
|
+
return this._client.delete(path`/v1/10dlc/campaigns/${campaignID}`, {
|
|
113
|
+
...options,
|
|
114
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Submit a draft campaign for carrier review. The campaign must be in draft status
|
|
120
|
+
* and its brand must be verified.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```ts
|
|
124
|
+
* const response = await client.number10dlc.campaigns.submit(
|
|
125
|
+
* 'campaignId',
|
|
126
|
+
* );
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
submit(campaignID: string, options?: RequestOptions): APIPromise<CampaignSubmitResponse> {
|
|
130
|
+
return this._client.post(path`/v1/10dlc/campaigns/${campaignID}/submit`, options);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Sync the campaign status with the registration provider. Use this to check for
|
|
135
|
+
* approval updates after submission.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const response =
|
|
140
|
+
* await client.number10dlc.campaigns.syncStatus(
|
|
141
|
+
* 'campaignId',
|
|
142
|
+
* );
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
syncStatus(campaignID: string, options?: RequestOptions): APIPromise<CampaignSyncStatusResponse> {
|
|
146
|
+
return this._client.post(path`/v1/10dlc/campaigns/${campaignID}/sync`, options);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type TenDlcCampaignsCursor = Cursor<TenDlcCampaign>;
|
|
151
|
+
|
|
152
|
+
export interface TenDlcCampaign {
|
|
153
|
+
id: string;
|
|
154
|
+
|
|
155
|
+
affiliateMarketing: boolean;
|
|
156
|
+
|
|
157
|
+
ageGated: boolean;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* ID of the brand this campaign belongs to.
|
|
161
|
+
*/
|
|
162
|
+
brandId: string;
|
|
163
|
+
|
|
164
|
+
createdAt: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Description of the messaging campaign.
|
|
168
|
+
*/
|
|
169
|
+
description: string;
|
|
170
|
+
|
|
171
|
+
directLending: boolean;
|
|
172
|
+
|
|
173
|
+
embeddedLink: boolean;
|
|
174
|
+
|
|
175
|
+
embeddedPhone: boolean;
|
|
176
|
+
|
|
177
|
+
name: string;
|
|
178
|
+
|
|
179
|
+
numberPooling: boolean;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Sample messages representative of campaign content.
|
|
183
|
+
*/
|
|
184
|
+
sampleMessages: Array<string>;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Status of a 10DLC campaign registration.
|
|
188
|
+
*/
|
|
189
|
+
status: 'draft' | 'pending' | 'approved' | 'rejected';
|
|
190
|
+
|
|
191
|
+
subscriberHelp: boolean;
|
|
192
|
+
|
|
193
|
+
subscriberOptIn: boolean;
|
|
194
|
+
|
|
195
|
+
subscriberOptOut: boolean;
|
|
196
|
+
|
|
197
|
+
updatedAt: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Campaign use case type.
|
|
201
|
+
*/
|
|
202
|
+
useCase: string;
|
|
203
|
+
|
|
204
|
+
approvedAt?: string | null;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Daily message limit based on brand trust score.
|
|
208
|
+
*/
|
|
209
|
+
dailyLimit?: number | null;
|
|
210
|
+
|
|
211
|
+
failureReason?: string | null;
|
|
212
|
+
|
|
213
|
+
helpMessage?: string | null;
|
|
214
|
+
|
|
215
|
+
messageFlow?: string | null;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Recurring monthly fee in cents.
|
|
219
|
+
*/
|
|
220
|
+
monthlyFeeCents?: number | null;
|
|
221
|
+
|
|
222
|
+
optInKeywords?: Array<string> | null;
|
|
223
|
+
|
|
224
|
+
optOutKeywords?: Array<string> | null;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* One-time registration cost in cents.
|
|
228
|
+
*/
|
|
229
|
+
registrationCostCents?: number | null;
|
|
230
|
+
|
|
231
|
+
submittedAt?: string | null;
|
|
232
|
+
|
|
233
|
+
subUseCases?: Array<string> | null;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface CampaignCreateResponse {
|
|
237
|
+
campaign: TenDlcCampaign;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface CampaignRetrieveResponse {
|
|
241
|
+
campaign: TenDlcCampaign;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface CampaignUpdateResponse {
|
|
245
|
+
campaign: TenDlcCampaign;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface CampaignSubmitResponse {
|
|
249
|
+
campaign: TenDlcCampaign;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface CampaignSyncStatusResponse {
|
|
253
|
+
campaign: TenDlcCampaign;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface CampaignCreateParams {
|
|
257
|
+
affiliateMarketing: boolean;
|
|
258
|
+
|
|
259
|
+
ageGated: boolean;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* ID of the brand to create this campaign under.
|
|
263
|
+
*/
|
|
264
|
+
brandId: string;
|
|
265
|
+
|
|
266
|
+
description: string;
|
|
267
|
+
|
|
268
|
+
directLending: boolean;
|
|
269
|
+
|
|
270
|
+
embeddedLink: boolean;
|
|
271
|
+
|
|
272
|
+
embeddedPhone: boolean;
|
|
273
|
+
|
|
274
|
+
name: string;
|
|
275
|
+
|
|
276
|
+
numberPooling: boolean;
|
|
277
|
+
|
|
278
|
+
sampleMessages: Array<string>;
|
|
279
|
+
|
|
280
|
+
subscriberHelp: boolean;
|
|
281
|
+
|
|
282
|
+
subscriberOptIn: boolean;
|
|
283
|
+
|
|
284
|
+
subscriberOptOut: boolean;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Campaign use case (e.g., ACCOUNT_NOTIFICATION, MARKETING, 2FA).
|
|
288
|
+
*/
|
|
289
|
+
useCase: string;
|
|
290
|
+
|
|
291
|
+
helpMessage?: string;
|
|
292
|
+
|
|
293
|
+
messageFlow?: string;
|
|
294
|
+
|
|
295
|
+
optInKeywords?: Array<string>;
|
|
296
|
+
|
|
297
|
+
optOutKeywords?: Array<string>;
|
|
298
|
+
|
|
299
|
+
subUseCases?: Array<string>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface CampaignUpdateParams {
|
|
303
|
+
description?: string;
|
|
304
|
+
|
|
305
|
+
helpMessage?: string;
|
|
306
|
+
|
|
307
|
+
messageFlow?: string;
|
|
308
|
+
|
|
309
|
+
name?: string;
|
|
310
|
+
|
|
311
|
+
optInKeywords?: Array<string>;
|
|
312
|
+
|
|
313
|
+
optOutKeywords?: Array<string>;
|
|
314
|
+
|
|
315
|
+
sampleMessages?: Array<string>;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export interface CampaignListParams extends CursorParams {
|
|
319
|
+
/**
|
|
320
|
+
* Filter campaigns by brand ID.
|
|
321
|
+
*/
|
|
322
|
+
brandId?: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
Campaigns.PhoneNumbers = PhoneNumbers;
|
|
326
|
+
|
|
327
|
+
export declare namespace Campaigns {
|
|
328
|
+
export {
|
|
329
|
+
type TenDlcCampaign as TenDlcCampaign,
|
|
330
|
+
type CampaignCreateResponse as CampaignCreateResponse,
|
|
331
|
+
type CampaignRetrieveResponse as CampaignRetrieveResponse,
|
|
332
|
+
type CampaignUpdateResponse as CampaignUpdateResponse,
|
|
333
|
+
type CampaignSubmitResponse as CampaignSubmitResponse,
|
|
334
|
+
type CampaignSyncStatusResponse as CampaignSyncStatusResponse,
|
|
335
|
+
type TenDlcCampaignsCursor as TenDlcCampaignsCursor,
|
|
336
|
+
type CampaignCreateParams as CampaignCreateParams,
|
|
337
|
+
type CampaignUpdateParams as CampaignUpdateParams,
|
|
338
|
+
type CampaignListParams as CampaignListParams,
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export {
|
|
342
|
+
PhoneNumbers as PhoneNumbers,
|
|
343
|
+
type TenDlcPhoneNumberAssignment as TenDlcPhoneNumberAssignment,
|
|
344
|
+
type PhoneNumberListResponse as PhoneNumberListResponse,
|
|
345
|
+
type PhoneNumberAssignResponse as PhoneNumberAssignResponse,
|
|
346
|
+
type PhoneNumberAssignParams as PhoneNumberAssignParams,
|
|
347
|
+
type PhoneNumberUnassignParams as PhoneNumberUnassignParams,
|
|
348
|
+
};
|
|
349
|
+
}
|