@sentdm/sentdm 0.40.0 → 0.42.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 +14 -0
- package/client.d.mts +18 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -3
- package/client.d.ts.map +1 -1
- package/client.js +13 -0
- package/client.js.map +1 -1
- package/client.mjs +13 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +25 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +25 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +28 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +26 -0
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/calls.d.mts +386 -0
- package/resources/calls/calls.d.mts.map +1 -0
- package/resources/calls/calls.d.ts +386 -0
- package/resources/calls/calls.d.ts.map +1 -0
- package/resources/calls/calls.js +158 -0
- package/resources/calls/calls.js.map +1 -0
- package/resources/calls/calls.mjs +153 -0
- package/resources/calls/calls.mjs.map +1 -0
- package/resources/calls/index.d.mts +3 -0
- package/resources/calls/index.d.mts.map +1 -0
- package/resources/calls/index.d.ts +3 -0
- package/resources/calls/index.d.ts.map +1 -0
- package/resources/calls/index.js +9 -0
- package/resources/calls/index.js.map +1 -0
- package/resources/calls/index.mjs +4 -0
- package/resources/calls/index.mjs.map +1 -0
- package/resources/calls/participants.d.mts +258 -0
- package/resources/calls/participants.d.mts.map +1 -0
- package/resources/calls/participants.d.ts +258 -0
- package/resources/calls/participants.d.ts.map +1 -0
- package/resources/calls/participants.js +158 -0
- package/resources/calls/participants.js.map +1 -0
- package/resources/calls/participants.mjs +154 -0
- package/resources/calls/participants.mjs.map +1 -0
- package/resources/calls.d.mts +2 -0
- package/resources/calls.d.mts.map +1 -0
- package/resources/calls.d.ts +2 -0
- package/resources/calls.d.ts.map +1 -0
- package/resources/calls.js +6 -0
- package/resources/calls.js.map +1 -0
- package/resources/calls.mjs +3 -0
- package/resources/calls.mjs.map +1 -0
- package/resources/channels/channels.d.mts +10 -0
- package/resources/channels/channels.d.mts.map +1 -0
- package/resources/channels/channels.d.ts +10 -0
- package/resources/channels/channels.d.ts.map +1 -0
- package/resources/channels/channels.js +17 -0
- package/resources/channels/channels.js.map +1 -0
- package/resources/channels/channels.mjs +12 -0
- package/resources/channels/channels.mjs.map +1 -0
- package/resources/channels/index.d.mts +3 -0
- package/resources/channels/index.d.mts.map +1 -0
- package/resources/channels/index.d.ts +3 -0
- package/resources/channels/index.d.ts.map +1 -0
- package/resources/channels/index.js +9 -0
- package/resources/channels/index.js.map +1 -0
- package/resources/channels/index.mjs +4 -0
- package/resources/channels/index.mjs.map +1 -0
- package/resources/channels/voice.d.mts +654 -0
- package/resources/channels/voice.d.mts.map +1 -0
- package/resources/channels/voice.d.ts +654 -0
- package/resources/channels/voice.d.ts.map +1 -0
- package/resources/channels/voice.js +285 -0
- package/resources/channels/voice.js.map +1 -0
- package/resources/channels/voice.mjs +281 -0
- package/resources/channels/voice.mjs.map +1 -0
- package/resources/channels.d.mts +2 -0
- package/resources/channels.d.mts.map +1 -0
- package/resources/channels.d.ts +2 -0
- package/resources/channels.d.ts.map +1 -0
- package/resources/channels.js +6 -0
- package/resources/channels.js.map +1 -0
- package/resources/channels.mjs +3 -0
- package/resources/channels.mjs.map +1 -0
- package/resources/conversations.d.mts +63 -8
- package/resources/conversations.d.mts.map +1 -1
- package/resources/conversations.d.ts +63 -8
- package/resources/conversations.d.ts.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +21 -0
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +21 -0
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +5 -0
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +5 -0
- package/resources/me.mjs.map +1 -1
- package/resources/messages.d.mts +76 -8
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +76 -8
- package/resources/messages.d.ts.map +1 -1
- package/resources/templates.d.mts +7 -0
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +7 -0
- package/resources/templates.d.ts.map +1 -1
- package/resources/webhooks.d.mts +212 -8
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +212 -8
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +60 -0
- package/src/core/pagination.ts +59 -0
- package/src/resources/calls/calls.ts +554 -0
- package/src/resources/calls/index.ts +31 -0
- package/src/resources/calls/participants.ts +367 -0
- package/src/resources/calls.ts +3 -0
- package/src/resources/channels/channels.ts +61 -0
- package/src/resources/channels/index.ts +27 -0
- package/src/resources/channels/voice.ts +864 -0
- package/src/resources/channels.ts +3 -0
- package/src/resources/conversations.ts +70 -8
- package/src/resources/index.ts +21 -0
- package/src/resources/me.ts +22 -0
- package/src/resources/messages.ts +85 -8
- package/src/resources/templates.ts +8 -0
- package/src/resources/webhooks.ts +238 -7
- 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
|
@@ -107,6 +107,20 @@ export declare namespace ConversationMessagesList {
|
|
|
107
107
|
phone?: string;
|
|
108
108
|
phone_international?: string;
|
|
109
109
|
price?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
* A human-readable sentence for reason_code, for example "Insufficient balance".
|
|
112
|
+
* Omitted whenever reason_code is.
|
|
113
|
+
*/
|
|
114
|
+
reason?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Why the message is at its current status, as a stable platform code such as
|
|
117
|
+
* DELIVERY_007, BUSINESS_003 or DELIVERY_003. Present when the current status is
|
|
118
|
+
* FAILED, FILTERED or BLOCKED and the lifecycle was loaded; omitted otherwise.
|
|
119
|
+
* Switch on this rather than on reason: the code is stable, the wording may be
|
|
120
|
+
* improved. It is the platform's classification of the outcome, never a carrier or
|
|
121
|
+
* vendor code.
|
|
122
|
+
*/
|
|
123
|
+
reason_code?: string | null;
|
|
110
124
|
region_code?: string;
|
|
111
125
|
status?: string;
|
|
112
126
|
template_category?: string | null;
|
|
@@ -121,6 +135,17 @@ export declare namespace ConversationMessagesList {
|
|
|
121
135
|
status: string;
|
|
122
136
|
timestamp: string;
|
|
123
137
|
description?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* A human-readable sentence for reason_code. Omitted whenever reason_code is.
|
|
140
|
+
*/
|
|
141
|
+
reason?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Why the message reached this status, as a stable platform code such as
|
|
144
|
+
* DELIVERY_007. Present on FAILED, FILTERED and BLOCKED events; omitted on every
|
|
145
|
+
* status that needs no explanation. Same wire name and vocabulary as on the
|
|
146
|
+
* activities list and the webhook.
|
|
147
|
+
*/
|
|
148
|
+
reason_code?: string | null;
|
|
124
149
|
}
|
|
125
150
|
/**
|
|
126
151
|
* Structured message body format for database storage. Preserves channel-specific
|
|
@@ -180,20 +205,50 @@ export declare namespace ConversationMessagesList {
|
|
|
180
205
|
url?: string;
|
|
181
206
|
}
|
|
182
207
|
/**
|
|
183
|
-
* One attachment on a message
|
|
184
|
-
*
|
|
208
|
+
* One attachment on a message, in either direction — and in both, a URL somebody
|
|
209
|
+
* else hosts.
|
|
210
|
+
*
|
|
211
|
+
* Outbound: the customer supplied a public URL and we handed it to the carrier.
|
|
212
|
+
* Inbound: the carrier hosts the file and we record where. sent.dm never holds the
|
|
213
|
+
* bytes, so there is no key, no expiry bookkeeping and nothing minted per read —
|
|
214
|
+
* what is stored is what is served.
|
|
215
|
+
*
|
|
216
|
+
* An inbound link expires on the carrier's own schedule and is unauthenticated.
|
|
217
|
+
* That is the customer's to manage, and it is documented where they will see it
|
|
218
|
+
* rather than only here — a recipient who needs an attachment to outlive that
|
|
219
|
+
* window copies it on receipt.
|
|
185
220
|
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
221
|
+
* Storing a presigned URL is the specific mistake this shape still avoids:
|
|
222
|
+
* M260826130000 and M260826140000 exist because RCS assets were stored as signed
|
|
223
|
+
* URLs and went stale. Nothing here is signed.
|
|
189
224
|
*/
|
|
190
225
|
interface Media {
|
|
191
226
|
/**
|
|
192
|
-
* One of
|
|
193
|
-
* fetched object's Content-Type
|
|
227
|
+
* One of MmsMediaTypes when the content type is known. Advisory — a reader should
|
|
228
|
+
* trust the fetched object's own Content-Type.
|
|
194
229
|
*/
|
|
195
230
|
mediaType?: string | null;
|
|
196
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Content type as the provider declared it. Null when it declared none.
|
|
233
|
+
*/
|
|
234
|
+
mimeType?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Size as the provider declared it. Never measured here — nothing downloads the
|
|
237
|
+
* file.
|
|
238
|
+
*/
|
|
239
|
+
sizeBytes?: number | null;
|
|
240
|
+
/**
|
|
241
|
+
* Inbound only: the SHA-256 the provider declared alongside the attachment, when
|
|
242
|
+
* it declared one. Relayed to the customer so they can verify what they fetch
|
|
243
|
+
* matches what the carrier said it sent. It is the only integrity signal available
|
|
244
|
+
* on an attachment nobody here has read.
|
|
245
|
+
*/
|
|
246
|
+
sourceHashSha256?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Where the file lives. Outbound: the URL the customer gave us and the carrier
|
|
249
|
+
* fetched. Inbound: the URL the carrier hosts it at, relayed unchanged.
|
|
250
|
+
*/
|
|
251
|
+
url?: string | null;
|
|
197
252
|
}
|
|
198
253
|
}
|
|
199
254
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.mts","sourceRoot":"","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|
107
107
|
phone?: string;
|
|
108
108
|
phone_international?: string;
|
|
109
109
|
price?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
* A human-readable sentence for reason_code, for example "Insufficient balance".
|
|
112
|
+
* Omitted whenever reason_code is.
|
|
113
|
+
*/
|
|
114
|
+
reason?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Why the message is at its current status, as a stable platform code such as
|
|
117
|
+
* DELIVERY_007, BUSINESS_003 or DELIVERY_003. Present when the current status is
|
|
118
|
+
* FAILED, FILTERED or BLOCKED and the lifecycle was loaded; omitted otherwise.
|
|
119
|
+
* Switch on this rather than on reason: the code is stable, the wording may be
|
|
120
|
+
* improved. It is the platform's classification of the outcome, never a carrier or
|
|
121
|
+
* vendor code.
|
|
122
|
+
*/
|
|
123
|
+
reason_code?: string | null;
|
|
110
124
|
region_code?: string;
|
|
111
125
|
status?: string;
|
|
112
126
|
template_category?: string | null;
|
|
@@ -121,6 +135,17 @@ export declare namespace ConversationMessagesList {
|
|
|
121
135
|
status: string;
|
|
122
136
|
timestamp: string;
|
|
123
137
|
description?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* A human-readable sentence for reason_code. Omitted whenever reason_code is.
|
|
140
|
+
*/
|
|
141
|
+
reason?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Why the message reached this status, as a stable platform code such as
|
|
144
|
+
* DELIVERY_007. Present on FAILED, FILTERED and BLOCKED events; omitted on every
|
|
145
|
+
* status that needs no explanation. Same wire name and vocabulary as on the
|
|
146
|
+
* activities list and the webhook.
|
|
147
|
+
*/
|
|
148
|
+
reason_code?: string | null;
|
|
124
149
|
}
|
|
125
150
|
/**
|
|
126
151
|
* Structured message body format for database storage. Preserves channel-specific
|
|
@@ -180,20 +205,50 @@ export declare namespace ConversationMessagesList {
|
|
|
180
205
|
url?: string;
|
|
181
206
|
}
|
|
182
207
|
/**
|
|
183
|
-
* One attachment on a message
|
|
184
|
-
*
|
|
208
|
+
* One attachment on a message, in either direction — and in both, a URL somebody
|
|
209
|
+
* else hosts.
|
|
210
|
+
*
|
|
211
|
+
* Outbound: the customer supplied a public URL and we handed it to the carrier.
|
|
212
|
+
* Inbound: the carrier hosts the file and we record where. sent.dm never holds the
|
|
213
|
+
* bytes, so there is no key, no expiry bookkeeping and nothing minted per read —
|
|
214
|
+
* what is stored is what is served.
|
|
215
|
+
*
|
|
216
|
+
* An inbound link expires on the carrier's own schedule and is unauthenticated.
|
|
217
|
+
* That is the customer's to manage, and it is documented where they will see it
|
|
218
|
+
* rather than only here — a recipient who needs an attachment to outlive that
|
|
219
|
+
* window copies it on receipt.
|
|
185
220
|
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
221
|
+
* Storing a presigned URL is the specific mistake this shape still avoids:
|
|
222
|
+
* M260826130000 and M260826140000 exist because RCS assets were stored as signed
|
|
223
|
+
* URLs and went stale. Nothing here is signed.
|
|
189
224
|
*/
|
|
190
225
|
interface Media {
|
|
191
226
|
/**
|
|
192
|
-
* One of
|
|
193
|
-
* fetched object's Content-Type
|
|
227
|
+
* One of MmsMediaTypes when the content type is known. Advisory — a reader should
|
|
228
|
+
* trust the fetched object's own Content-Type.
|
|
194
229
|
*/
|
|
195
230
|
mediaType?: string | null;
|
|
196
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Content type as the provider declared it. Null when it declared none.
|
|
233
|
+
*/
|
|
234
|
+
mimeType?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Size as the provider declared it. Never measured here — nothing downloads the
|
|
237
|
+
* file.
|
|
238
|
+
*/
|
|
239
|
+
sizeBytes?: number | null;
|
|
240
|
+
/**
|
|
241
|
+
* Inbound only: the SHA-256 the provider declared alongside the attachment, when
|
|
242
|
+
* it declared one. Relayed to the customer so they can verify what they fetch
|
|
243
|
+
* matches what the carrier said it sent. It is the only integrity signal available
|
|
244
|
+
* on an attachment nobody here has read.
|
|
245
|
+
*/
|
|
246
|
+
sourceHashSha256?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Where the file lives. Outbound: the URL the customer gave us and the carrier
|
|
249
|
+
* fetched. Inbound: the URL the carrier hosts it at, relayed unchanged.
|
|
250
|
+
*/
|
|
251
|
+
url?: string | null;
|
|
197
252
|
}
|
|
198
253
|
}
|
|
199
254
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE,8BAA2B;AAElG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,wBAAwB,CAAC,OAAO,CAAC;IAYnG;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,wBAAwB,CAAC,OAAO,CAAC;CAepG;AAED,MAAM,MAAM,iDAAiD,GAC3D,iBAAiB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE3B;;OAEG;IAC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AO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { Calls, type APIResponseOfCall, type APIResponseOfCallRecordings, type APIResponseOfCallsList, type Call, type CallParty, type CallRecording, type CallRecordings, type CallTimelineEntry, type CallsList, type CallRetrieveParams, type CallListParams, type CallHangupParams, type CallListRecordingsParams, type CallRecordParams, type CallsCallsPage, } from "./calls/calls.mjs";
|
|
2
|
+
export { Channels } from "./channels/channels.mjs";
|
|
1
3
|
export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type ContactCreateParams, type ContactRetrieveParams, type ContactUpdateParams, type ContactListParams, type ContactDeleteParams, type ContactRetrieveMessageSummaryParams, type ContactResponsesContactsPage, } from "./contacts.mjs";
|
|
2
4
|
export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, type ConversationMessagesListMessagesConversationsPage, } from "./conversations.mjs";
|
|
3
5
|
export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from "./me.mjs";
|
|
@@ -6,5 +8,5 @@ export { Numbers, type NumberLookupResponse, type NumberLookupParams } from "./n
|
|
|
6
8
|
export { Profiles, type APIResponseOfProfileDetail, type BillingContactInfo, type BrandBusinessInfo, type BrandComplianceInfo, type BrandContactInfo, type BrandsBrandData, type DestinationCountry, type PaymentDetails, type ProfileDetail, type TcrBrandRelationship, type TcrVertical, type ProfileListResponse, type ProfileCompleteResponse, type ProfileCreateParams, type ProfileRetrieveParams, type ProfileUpdateParams, type ProfileListParams, type ProfileDeleteParams, type ProfileCompleteParams, } from "./profiles/profiles.mjs";
|
|
7
9
|
export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type TemplateCreateParams, type TemplateRetrieveParams, type TemplateUpdateParams, type TemplateListParams, type TemplateDeleteParams, type TemplatesTemplatesPage, } from "./templates.mjs";
|
|
8
10
|
export { Users, type APIResponseOfUser, type UserResponse, type UserListResponse, type UserRetrieveParams, type UserListParams, type UserInviteParams, type UserRemoveParams, type UserUpdateRoleParams, } from "./users.mjs";
|
|
9
|
-
export { Webhooks, type APIMeta, type APIResponseWebhook, type ChannelEvent, type ChannelEventPayload, type ContactEvent, type ContactEventPayload, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, type WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage, } from "./webhooks.mjs";
|
|
11
|
+
export { Webhooks, type APIMeta, type APIResponseWebhook, type CallEvent, type CallEventPayload, type ChannelEvent, type ChannelEventPayload, type ContactEvent, type ContactEventPayload, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, type WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage, } from "./webhooks.mjs";
|
|
10
12
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,GAClC,uBAAmB;AACpB,OAAO,EACL,aAAa,EACb,KAAK,qCAAqC,EAC1C,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,iDAAiD,GACvD,4BAAwB;AACzB,OAAO,EAAE,EAAE,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,iBAAa;AAChG,OAAO,EACL,QAAQ,EACR,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,GACvB,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,sBAAkB;AACxF,OAAO,EACL,QAAQ,EACR,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,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AkB,EACvB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,GACjD,uBAAmB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { Calls, type APIResponseOfCall, type APIResponseOfCallRecordings, type APIResponseOfCallsList, type Call, type CallParty, type CallRecording, type CallRecordings, type CallTimelineEntry, type CallsList, type CallRetrieveParams, type CallListParams, type CallHangupParams, type CallListRecordingsParams, type CallRecordParams, type CallsCallsPage, } from "./calls/calls.js";
|
|
2
|
+
export { Channels } from "./channels/channels.js";
|
|
1
3
|
export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type ContactCreateParams, type ContactRetrieveParams, type ContactUpdateParams, type ContactListParams, type ContactDeleteParams, type ContactRetrieveMessageSummaryParams, type ContactResponsesContactsPage, } from "./contacts.js";
|
|
2
4
|
export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, type ConversationMessagesListMessagesConversationsPage, } from "./conversations.js";
|
|
3
5
|
export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from "./me.js";
|
|
@@ -6,5 +8,5 @@ export { Numbers, type NumberLookupResponse, type NumberLookupParams } from "./n
|
|
|
6
8
|
export { Profiles, type APIResponseOfProfileDetail, type BillingContactInfo, type BrandBusinessInfo, type BrandComplianceInfo, type BrandContactInfo, type BrandsBrandData, type DestinationCountry, type PaymentDetails, type ProfileDetail, type TcrBrandRelationship, type TcrVertical, type ProfileListResponse, type ProfileCompleteResponse, type ProfileCreateParams, type ProfileRetrieveParams, type ProfileUpdateParams, type ProfileListParams, type ProfileDeleteParams, type ProfileCompleteParams, } from "./profiles/profiles.js";
|
|
7
9
|
export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type TemplateCreateParams, type TemplateRetrieveParams, type TemplateUpdateParams, type TemplateListParams, type TemplateDeleteParams, type TemplatesTemplatesPage, } from "./templates.js";
|
|
8
10
|
export { Users, type APIResponseOfUser, type UserResponse, type UserListResponse, type UserRetrieveParams, type UserListParams, type UserInviteParams, type UserRemoveParams, type UserUpdateRoleParams, } from "./users.js";
|
|
9
|
-
export { Webhooks, type APIMeta, type APIResponseWebhook, type ChannelEvent, type ChannelEventPayload, type ContactEvent, type ContactEventPayload, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, type WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage, } from "./webhooks.js";
|
|
11
|
+
export { Webhooks, type APIMeta, type APIResponseWebhook, type CallEvent, type CallEventPayload, type ChannelEvent, type ChannelEventPayload, type ContactEvent, type ContactEventPayload, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, type WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage, } from "./webhooks.js";
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,GAClC,sBAAmB;AACpB,OAAO,EACL,aAAa,EACb,KAAK,qCAAqC,EAC1C,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,iDAAiD,GACvD,2BAAwB;AACzB,OAAO,EAAE,EAAE,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAA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,GAC1B,mBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,2CAA2C,GACjD,sBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,yBAAsB;AACvB,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAA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
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhooks = exports.Users = exports.Templates = exports.Profiles = exports.Numbers = exports.Messages = exports.Me = exports.Conversations = exports.Contacts = void 0;
|
|
4
|
+
exports.Webhooks = exports.Users = exports.Templates = exports.Profiles = exports.Numbers = exports.Messages = exports.Me = exports.Conversations = exports.Contacts = exports.Channels = exports.Calls = void 0;
|
|
5
|
+
var calls_1 = require("./calls/calls.js");
|
|
6
|
+
Object.defineProperty(exports, "Calls", { enumerable: true, get: function () { return calls_1.Calls; } });
|
|
7
|
+
var channels_1 = require("./channels/channels.js");
|
|
8
|
+
Object.defineProperty(exports, "Channels", { enumerable: true, get: function () { return channels_1.Channels; } });
|
|
5
9
|
var contacts_1 = require("./contacts.js");
|
|
6
10
|
Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return contacts_1.Contacts; } });
|
|
7
11
|
var conversations_1 = require("./conversations.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,oDAOyB;AANvB,8GAAA,aAAa,OAAA;AAOf,8BAAgG;AAAvF,wFAAA,EAAE,OAAA;AACX,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,mDAqB6B;AApB3B,oGAAA,QAAQ,OAAA;AAqBV,4CAmBqB;AAlBnB,sGAAA,SAAS,OAAA;AAmBX,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAiBuB;AAhBrB,8FAAA,KAAK,OAAA;AAiBP,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,oDAOyB;AANvB,8GAAA,aAAa,OAAA;AAOf,8BAAgG;AAAvF,wFAAA,EAAE,OAAA;AACX,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,mDAqB6B;AApB3B,oGAAA,QAAQ,OAAA;AAqBV,4CAmBqB;AAlBnB,sGAAA,SAAS,OAAA;AAmBX,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,0CAqCoB;AApClB,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Calls, } from "./calls/calls.mjs";
|
|
3
|
+
export { Channels } from "./channels/channels.mjs";
|
|
2
4
|
export { Contacts, } from "./contacts.mjs";
|
|
3
5
|
export { Conversations, } from "./conversations.mjs";
|
|
4
6
|
export { Me } from "./me.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAMd,4BAAwB;AACzB,OAAO,EAAE,EAAE,EAAwE,iBAAa;AAChG,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAsD,sBAAkB;AACxF,OAAO,EACL,QAAQ,GAoBT,gCAA4B;AAC7B,OAAO,EACL,SAAS,GAkBV,wBAAoB;AACrB,OAAO,EACL,KAAK,GASN,oBAAgB;AACjB,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAgBN,0BAAsB;AACvB,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAMd,4BAAwB;AACzB,OAAO,EAAE,EAAE,EAAwE,iBAAa;AAChG,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAsD,sBAAkB;AACxF,OAAO,EACL,QAAQ,GAoBT,gCAA4B;AAC7B,OAAO,EACL,SAAS,GAkBV,wBAAoB;AACrB,OAAO,EACL,KAAK,GASN,oBAAgB;AACjB,OAAO,EACL,QAAQ,GAoCT,uBAAmB"}
|
package/resources/me.d.mts
CHANGED
|
@@ -36,6 +36,11 @@ export declare class Me extends APIResource {
|
|
|
36
36
|
* `sending_phone_number_profile_id` names the account that holds that number in
|
|
37
37
|
* inventory — normally this account, and a different one where a number is shared.
|
|
38
38
|
* Both are `null` when the account has no US SMS sender.
|
|
39
|
+
*
|
|
40
|
+
* **Template auto-creation:** `enable_template_auto_creation_for_sp` reports
|
|
41
|
+
* whether this account may mark a template for automatic creation on its sender
|
|
42
|
+
* profiles. It is granted by Sent and off by default. A `profile` reports `false`,
|
|
43
|
+
* having no sender profiles of its own to create anything on.
|
|
39
44
|
*/
|
|
40
45
|
retrieve(params?: MeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MeRetrieveResponse>;
|
|
41
46
|
}
|
|
@@ -131,6 +136,22 @@ export declare namespace MeRetrieveResponse {
|
|
|
131
136
|
* Contact email address
|
|
132
137
|
*/
|
|
133
138
|
email?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Whether this account may mark a template for automatic creation on its sender
|
|
141
|
+
* profiles. Granted by Sent per account and off by default, so it is what a
|
|
142
|
+
* template-create form reads to decide whether to offer the option at all —
|
|
143
|
+
* marking a template without it does nothing.
|
|
144
|
+
*
|
|
145
|
+
* Top-level rather than inside settings, which is written for type: "profile" only
|
|
146
|
+
* and so would never carry it to the account type that can act on it.
|
|
147
|
+
*
|
|
148
|
+
* This is the capability, not the stored flag: a profile reports false whatever
|
|
149
|
+
* its own row holds. A sender profile owns no sender profiles, so a template it
|
|
150
|
+
* marked would have nothing to be created on and the fan-out would never read the
|
|
151
|
+
* flag. The admin GET /customers/{id} reports the stored value instead, because
|
|
152
|
+
* that is the one an operator granted.
|
|
153
|
+
*/
|
|
154
|
+
enable_template_auto_creation_for_sp?: boolean;
|
|
134
155
|
/**
|
|
135
156
|
* Account icon URL
|
|
136
157
|
*/
|
package/resources/me.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;GAIG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC
|
|
1
|
+
{"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;GAIG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAUlC;AAED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,QAAQ;gBACvB;;mBAEG;gBACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAE9B;;mBAEG;gBACH,UAAU,CAAC,EAAE,OAAO,CAAC;gBAErB;;mBAEG;gBACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;aAC9B;SACF;QAED;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,EAAE,CAAC,EAAE,MAAM,CAAC;YAEZ;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE5B;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;;eAGG;YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC;YAEjC;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/me.d.ts
CHANGED
|
@@ -36,6 +36,11 @@ export declare class Me extends APIResource {
|
|
|
36
36
|
* `sending_phone_number_profile_id` names the account that holds that number in
|
|
37
37
|
* inventory — normally this account, and a different one where a number is shared.
|
|
38
38
|
* Both are `null` when the account has no US SMS sender.
|
|
39
|
+
*
|
|
40
|
+
* **Template auto-creation:** `enable_template_auto_creation_for_sp` reports
|
|
41
|
+
* whether this account may mark a template for automatic creation on its sender
|
|
42
|
+
* profiles. It is granted by Sent and off by default. A `profile` reports `false`,
|
|
43
|
+
* having no sender profiles of its own to create anything on.
|
|
39
44
|
*/
|
|
40
45
|
retrieve(params?: MeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MeRetrieveResponse>;
|
|
41
46
|
}
|
|
@@ -131,6 +136,22 @@ export declare namespace MeRetrieveResponse {
|
|
|
131
136
|
* Contact email address
|
|
132
137
|
*/
|
|
133
138
|
email?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Whether this account may mark a template for automatic creation on its sender
|
|
141
|
+
* profiles. Granted by Sent per account and off by default, so it is what a
|
|
142
|
+
* template-create form reads to decide whether to offer the option at all —
|
|
143
|
+
* marking a template without it does nothing.
|
|
144
|
+
*
|
|
145
|
+
* Top-level rather than inside settings, which is written for type: "profile" only
|
|
146
|
+
* and so would never carry it to the account type that can act on it.
|
|
147
|
+
*
|
|
148
|
+
* This is the capability, not the stored flag: a profile reports false whatever
|
|
149
|
+
* its own row holds. A sender profile owns no sender profiles, so a template it
|
|
150
|
+
* marked would have nothing to be created on and the fan-out would never read the
|
|
151
|
+
* flag. The admin GET /customers/{id} reports the stored value instead, because
|
|
152
|
+
* that is the one an operator granted.
|
|
153
|
+
*/
|
|
154
|
+
enable_template_auto_creation_for_sp?: boolean;
|
|
134
155
|
/**
|
|
135
156
|
* Account icon URL
|
|
136
157
|
*/
|
package/resources/me.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,KAAK,gBAAa;AAC9B,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAA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C;YAE3B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/me.js
CHANGED
|
@@ -37,6 +37,11 @@ class Me extends resource_1.APIResource {
|
|
|
37
37
|
* `sending_phone_number_profile_id` names the account that holds that number in
|
|
38
38
|
* inventory — normally this account, and a different one where a number is shared.
|
|
39
39
|
* Both are `null` when the account has no US SMS sender.
|
|
40
|
+
*
|
|
41
|
+
* **Template auto-creation:** `enable_template_auto_creation_for_sp` reports
|
|
42
|
+
* whether this account may mark a template for automatic creation on its sender
|
|
43
|
+
* profiles. It is granted by Sent and off by default. A `profile` reports `false`,
|
|
44
|
+
* having no sender profiles of its own to create anything on.
|
|
40
45
|
*/
|
|
41
46
|
retrieve(params = {}, options) {
|
|
42
47
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
package/resources/me.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAGnD;;;;GAIG;AACH,MAAa,EAAG,SAAQ,sBAAW;IACjC
|
|
1
|
+
{"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAGnD;;;;GAIG;AACH,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,gBA+CC"}
|
package/resources/me.mjs
CHANGED
|
@@ -34,6 +34,11 @@ export class Me extends APIResource {
|
|
|
34
34
|
* `sending_phone_number_profile_id` names the account that holds that number in
|
|
35
35
|
* inventory — normally this account, and a different one where a number is shared.
|
|
36
36
|
* Both are `null` when the account has no US SMS sender.
|
|
37
|
+
*
|
|
38
|
+
* **Template auto-creation:** `enable_template_auto_creation_for_sp` reports
|
|
39
|
+
* whether this account may mark a template for automatic creation on its sender
|
|
40
|
+
* profiles. It is granted by Sent and off by default. A `profile` reports `false`,
|
|
41
|
+
* having no sender profiles of its own to create anything on.
|
|
37
42
|
*/
|
|
38
43
|
retrieve(params = {}, options) {
|
|
39
44
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
package/resources/me.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;;;GAIG;AACH,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC
|
|
1
|
+
{"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;;;GAIG;AACH,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/messages.d.mts
CHANGED
|
@@ -139,6 +139,19 @@ export declare namespace MessageRetrieveActivitiesResponse {
|
|
|
139
139
|
* 4 decimal places.
|
|
140
140
|
*/
|
|
141
141
|
price?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* A human-readable sentence for reason_code, for example "The recipient is not
|
|
144
|
+
* registered on this channel" Omitted whenever reason_code is.
|
|
145
|
+
*/
|
|
146
|
+
reason?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Why the message reached this status, as a stable platform code such as
|
|
149
|
+
* DELIVERY_007 or BUSINESS_003. Present on FAILED, FILTERED and BLOCKED
|
|
150
|
+
* activities; omitted on every status that needs no explanation. Switch on this
|
|
151
|
+
* rather than on reason: the code is stable, the wording may be improved. Same
|
|
152
|
+
* wire name and vocabulary as on the message and the webhook.
|
|
153
|
+
*/
|
|
154
|
+
reason_code?: string | null;
|
|
142
155
|
/**
|
|
143
156
|
* SCHEDULED activities only: when the held message will be released for delivery,
|
|
144
157
|
* in UTC. Same wire name as on the send response, the message and the webhook.
|
|
@@ -217,6 +230,20 @@ export declare namespace MessageRetrieveStatusResponse {
|
|
|
217
230
|
phone?: string;
|
|
218
231
|
phone_international?: string;
|
|
219
232
|
price?: number | null;
|
|
233
|
+
/**
|
|
234
|
+
* A human-readable sentence for reason_code, for example "Insufficient balance".
|
|
235
|
+
* Omitted whenever reason_code is.
|
|
236
|
+
*/
|
|
237
|
+
reason?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Why the message is at its current status, as a stable platform code such as
|
|
240
|
+
* DELIVERY_007, BUSINESS_003 or DELIVERY_003. Present when the current status is
|
|
241
|
+
* FAILED, FILTERED or BLOCKED and the lifecycle was loaded; omitted otherwise.
|
|
242
|
+
* Switch on this rather than on reason: the code is stable, the wording may be
|
|
243
|
+
* improved. It is the platform's classification of the outcome, never a carrier or
|
|
244
|
+
* vendor code.
|
|
245
|
+
*/
|
|
246
|
+
reason_code?: string | null;
|
|
220
247
|
region_code?: string;
|
|
221
248
|
status?: string;
|
|
222
249
|
template_category?: string | null;
|
|
@@ -231,6 +258,17 @@ export declare namespace MessageRetrieveStatusResponse {
|
|
|
231
258
|
status: string;
|
|
232
259
|
timestamp: string;
|
|
233
260
|
description?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* A human-readable sentence for reason_code. Omitted whenever reason_code is.
|
|
263
|
+
*/
|
|
264
|
+
reason?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* Why the message reached this status, as a stable platform code such as
|
|
267
|
+
* DELIVERY_007. Present on FAILED, FILTERED and BLOCKED events; omitted on every
|
|
268
|
+
* status that needs no explanation. Same wire name and vocabulary as on the
|
|
269
|
+
* activities list and the webhook.
|
|
270
|
+
*/
|
|
271
|
+
reason_code?: string | null;
|
|
234
272
|
}
|
|
235
273
|
/**
|
|
236
274
|
* Structured message body format for database storage. Preserves channel-specific
|
|
@@ -290,20 +328,50 @@ export declare namespace MessageRetrieveStatusResponse {
|
|
|
290
328
|
url?: string;
|
|
291
329
|
}
|
|
292
330
|
/**
|
|
293
|
-
* One attachment on a message
|
|
294
|
-
*
|
|
331
|
+
* One attachment on a message, in either direction — and in both, a URL somebody
|
|
332
|
+
* else hosts.
|
|
295
333
|
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
334
|
+
* Outbound: the customer supplied a public URL and we handed it to the carrier.
|
|
335
|
+
* Inbound: the carrier hosts the file and we record where. sent.dm never holds the
|
|
336
|
+
* bytes, so there is no key, no expiry bookkeeping and nothing minted per read —
|
|
337
|
+
* what is stored is what is served.
|
|
338
|
+
*
|
|
339
|
+
* An inbound link expires on the carrier's own schedule and is unauthenticated.
|
|
340
|
+
* That is the customer's to manage, and it is documented where they will see it
|
|
341
|
+
* rather than only here — a recipient who needs an attachment to outlive that
|
|
342
|
+
* window copies it on receipt.
|
|
343
|
+
*
|
|
344
|
+
* Storing a presigned URL is the specific mistake this shape still avoids:
|
|
345
|
+
* M260826130000 and M260826140000 exist because RCS assets were stored as signed
|
|
346
|
+
* URLs and went stale. Nothing here is signed.
|
|
299
347
|
*/
|
|
300
348
|
interface Media {
|
|
301
349
|
/**
|
|
302
|
-
* One of
|
|
303
|
-
* fetched object's Content-Type
|
|
350
|
+
* One of MmsMediaTypes when the content type is known. Advisory — a reader should
|
|
351
|
+
* trust the fetched object's own Content-Type.
|
|
304
352
|
*/
|
|
305
353
|
mediaType?: string | null;
|
|
306
|
-
|
|
354
|
+
/**
|
|
355
|
+
* Content type as the provider declared it. Null when it declared none.
|
|
356
|
+
*/
|
|
357
|
+
mimeType?: string | null;
|
|
358
|
+
/**
|
|
359
|
+
* Size as the provider declared it. Never measured here — nothing downloads the
|
|
360
|
+
* file.
|
|
361
|
+
*/
|
|
362
|
+
sizeBytes?: number | null;
|
|
363
|
+
/**
|
|
364
|
+
* Inbound only: the SHA-256 the provider declared alongside the attachment, when
|
|
365
|
+
* it declared one. Relayed to the customer so they can verify what they fetch
|
|
366
|
+
* matches what the carrier said it sent. It is the only integrity signal available
|
|
367
|
+
* on an attachment nobody here has read.
|
|
368
|
+
*/
|
|
369
|
+
sourceHashSha256?: string | null;
|
|
370
|
+
/**
|
|
371
|
+
* Where the file lives. Outbound: the URL the customer gave us and the carrier
|
|
372
|
+
* fetched. Inbound: the URL the carrier hosts it at, relayed unchanged.
|
|
373
|
+
*/
|
|
374
|
+
url?: string | null;
|
|
307
375
|
}
|
|
308
376
|
}
|
|
309
377
|
}
|