@sentdm/sentdm 0.41.0 → 0.43.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 +20 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -3
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -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 +388 -0
- package/resources/calls/calls.d.mts.map +1 -0
- package/resources/calls/calls.d.ts +388 -0
- package/resources/calls/calls.d.ts.map +1 -0
- package/resources/calls/calls.js +159 -0
- package/resources/calls/calls.js.map +1 -0
- package/resources/calls/calls.mjs +154 -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/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/messages.d.mts +13 -8
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +13 -8
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +7 -4
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +7 -4
- package/resources/messages.mjs.map +1 -1
- package/resources/webhooks.d.mts +112 -109
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +112 -109
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +62 -0
- package/src/core/pagination.ts +59 -0
- package/src/resources/calls/calls.ts +556 -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/index.ts +21 -0
- package/src/resources/messages.ts +13 -8
- package/src/resources/webhooks.ts +127 -122
- 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 +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,G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AK,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"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","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,0BAAsB;AACvB,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,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,KAA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K,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,wBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,oBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,kBAAkB,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,mBAAm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,EACrB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,uBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,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,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AAmB,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"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
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/messages.d.mts
CHANGED
|
@@ -10,6 +10,8 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
10
10
|
* **A message needs a sender.** What you can send, where, and at what cost is decided by the markets under **Channels** — so a recipient in a country you hold no sender for is refused here rather than queued.
|
|
11
11
|
*
|
|
12
12
|
* **A message can be resent on its id.** `POST /v3/messages/{id}/resend` puts a finished message — typically one BLOCKED for insufficient balance — back through the send pipeline. It is a new attempt, not a free retry: every policy runs again, the message is billed again, and its status webhooks fire again. A FILTERED message is never resendable.
|
|
13
|
+
*
|
|
14
|
+
* **A scheduled message can be called off.** `POST /v3/messages/{id}/cancel` cancels a send you scheduled with `scheduled_at`, as long as it has not been released yet. Cancelling is free, fires `message.cancelled`, and is final — a cancelled message cannot be resent.
|
|
13
15
|
*/
|
|
14
16
|
export declare class Messages extends APIResource {
|
|
15
17
|
/**
|
|
@@ -29,10 +31,11 @@ export declare class Messages extends APIResource {
|
|
|
29
31
|
/**
|
|
30
32
|
* Retrieves the current status and details of a message by ID. Includes delivery
|
|
31
33
|
* status, timestamps, and error information if applicable. A message that is or
|
|
32
|
-
* was held for a later time (a send you scheduled with scheduled_at,
|
|
33
|
-
*
|
|
34
|
-
* plus scheduled_at, the
|
|
35
|
-
*
|
|
34
|
+
* was held for a later time (a send you scheduled with scheduled_at, a quiet-hours
|
|
35
|
+
* hold, or a message you cancelled while it was held) is returned as a
|
|
36
|
+
* ScheduledMessageResponse: the same fields plus scheduled_at, the instant it is
|
|
37
|
+
* held for in UTC — or, on a CANCELLED message, the instant that was called off. A
|
|
38
|
+
* message sent immediately has no scheduled_at key.
|
|
36
39
|
*
|
|
37
40
|
* @example
|
|
38
41
|
* ```ts
|
|
@@ -153,10 +156,12 @@ export declare namespace MessageRetrieveActivitiesResponse {
|
|
|
153
156
|
*/
|
|
154
157
|
reason_code?: string | null;
|
|
155
158
|
/**
|
|
156
|
-
* SCHEDULED activities only
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
159
|
+
* SCHEDULED and CANCELLED activities only, in UTC: on a SCHEDULED entry, when the
|
|
160
|
+
* held message will be released for delivery; on a CANCELLED entry, the instant
|
|
161
|
+
* that was called off. Same wire name as on the send response, the message and the
|
|
162
|
+
* webhook. Omitted on every other activity. A message that quiet hours moved at
|
|
163
|
+
* release has two SCHEDULED entries, each carrying the instant as it stood at that
|
|
164
|
+
* moment.
|
|
160
165
|
*/
|
|
161
166
|
scheduled_at?: string | null;
|
|
162
167
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;A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CAAC;IAElC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC,QAAQ,GAAG,IAAI,CAAC;IAE7C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;;OAGG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEnB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;;;;;;;;;;;;;;WAeG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;KAC/C;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/messages.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
10
10
|
* **A message needs a sender.** What you can send, where, and at what cost is decided by the markets under **Channels** — so a recipient in a country you hold no sender for is refused here rather than queued.
|
|
11
11
|
*
|
|
12
12
|
* **A message can be resent on its id.** `POST /v3/messages/{id}/resend` puts a finished message — typically one BLOCKED for insufficient balance — back through the send pipeline. It is a new attempt, not a free retry: every policy runs again, the message is billed again, and its status webhooks fire again. A FILTERED message is never resendable.
|
|
13
|
+
*
|
|
14
|
+
* **A scheduled message can be called off.** `POST /v3/messages/{id}/cancel` cancels a send you scheduled with `scheduled_at`, as long as it has not been released yet. Cancelling is free, fires `message.cancelled`, and is final — a cancelled message cannot be resent.
|
|
13
15
|
*/
|
|
14
16
|
export declare class Messages extends APIResource {
|
|
15
17
|
/**
|
|
@@ -29,10 +31,11 @@ export declare class Messages extends APIResource {
|
|
|
29
31
|
/**
|
|
30
32
|
* Retrieves the current status and details of a message by ID. Includes delivery
|
|
31
33
|
* status, timestamps, and error information if applicable. A message that is or
|
|
32
|
-
* was held for a later time (a send you scheduled with scheduled_at,
|
|
33
|
-
*
|
|
34
|
-
* plus scheduled_at, the
|
|
35
|
-
*
|
|
34
|
+
* was held for a later time (a send you scheduled with scheduled_at, a quiet-hours
|
|
35
|
+
* hold, or a message you cancelled while it was held) is returned as a
|
|
36
|
+
* ScheduledMessageResponse: the same fields plus scheduled_at, the instant it is
|
|
37
|
+
* held for in UTC — or, on a CANCELLED message, the instant that was called off. A
|
|
38
|
+
* message sent immediately has no scheduled_at key.
|
|
36
39
|
*
|
|
37
40
|
* @example
|
|
38
41
|
* ```ts
|
|
@@ -153,10 +156,12 @@ export declare namespace MessageRetrieveActivitiesResponse {
|
|
|
153
156
|
*/
|
|
154
157
|
reason_code?: string | null;
|
|
155
158
|
/**
|
|
156
|
-
* SCHEDULED activities only
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
159
|
+
* SCHEDULED and CANCELLED activities only, in UTC: on a SCHEDULED entry, when the
|
|
160
|
+
* held message will be released for delivery; on a CANCELLED entry, the instant
|
|
161
|
+
* that was called off. Same wire name as on the send response, the message and the
|
|
162
|
+
* webhook. Omitted on every other activity. A message that quiet hours moved at
|
|
163
|
+
* release has two SCHEDULED entries, each carrying the instant as it stood at that
|
|
164
|
+
* moment.
|
|
160
165
|
*/
|
|
161
166
|
scheduled_at?: string | null;
|
|
162
167
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;;;GAUG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAWhD;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAW5C;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,IAAI,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CA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AI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -13,6 +13,8 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
13
13
|
* **A message needs a sender.** What you can send, where, and at what cost is decided by the markets under **Channels** — so a recipient in a country you hold no sender for is refused here rather than queued.
|
|
14
14
|
*
|
|
15
15
|
* **A message can be resent on its id.** `POST /v3/messages/{id}/resend` puts a finished message — typically one BLOCKED for insufficient balance — back through the send pipeline. It is a new attempt, not a free retry: every policy runs again, the message is billed again, and its status webhooks fire again. A FILTERED message is never resendable.
|
|
16
|
+
*
|
|
17
|
+
* **A scheduled message can be called off.** `POST /v3/messages/{id}/cancel` cancels a send you scheduled with `scheduled_at`, as long as it has not been released yet. Cancelling is free, fires `message.cancelled`, and is final — a cancelled message cannot be resent.
|
|
16
18
|
*/
|
|
17
19
|
class Messages extends resource_1.APIResource {
|
|
18
20
|
/**
|
|
@@ -41,10 +43,11 @@ class Messages extends resource_1.APIResource {
|
|
|
41
43
|
/**
|
|
42
44
|
* Retrieves the current status and details of a message by ID. Includes delivery
|
|
43
45
|
* status, timestamps, and error information if applicable. A message that is or
|
|
44
|
-
* was held for a later time (a send you scheduled with scheduled_at,
|
|
45
|
-
*
|
|
46
|
-
* plus scheduled_at, the
|
|
47
|
-
*
|
|
46
|
+
* was held for a later time (a send you scheduled with scheduled_at, a quiet-hours
|
|
47
|
+
* hold, or a message you cancelled while it was held) is returned as a
|
|
48
|
+
* ScheduledMessageResponse: the same fields plus scheduled_at, the instant it is
|
|
49
|
+
* held for in UTC — or, on a CANCELLED message, the instant that was called off. A
|
|
50
|
+
* message sent immediately has no scheduled_at key.
|
|
48
51
|
*
|
|
49
52
|
* @example
|
|
50
53
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;;;;;;;GAUG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAChB,EAAU,EACV,SAA6D,EAAE,EAC/D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,aAAa,EAAE;YAC3D,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;IAED;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CACZ,EAAU,EACV,SAAyD,EAAE,EAC3D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE;YAChD,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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,IAAI,CAAC,MAAyB,EAAE,OAAwB;QACtD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AArGD,4BAqGC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -10,6 +10,8 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
10
10
|
* **A message needs a sender.** What you can send, where, and at what cost is decided by the markets under **Channels** — so a recipient in a country you hold no sender for is refused here rather than queued.
|
|
11
11
|
*
|
|
12
12
|
* **A message can be resent on its id.** `POST /v3/messages/{id}/resend` puts a finished message — typically one BLOCKED for insufficient balance — back through the send pipeline. It is a new attempt, not a free retry: every policy runs again, the message is billed again, and its status webhooks fire again. A FILTERED message is never resendable.
|
|
13
|
+
*
|
|
14
|
+
* **A scheduled message can be called off.** `POST /v3/messages/{id}/cancel` cancels a send you scheduled with `scheduled_at`, as long as it has not been released yet. Cancelling is free, fires `message.cancelled`, and is final — a cancelled message cannot be resent.
|
|
13
15
|
*/
|
|
14
16
|
export class Messages extends APIResource {
|
|
15
17
|
/**
|
|
@@ -38,10 +40,11 @@ export class Messages extends APIResource {
|
|
|
38
40
|
/**
|
|
39
41
|
* Retrieves the current status and details of a message by ID. Includes delivery
|
|
40
42
|
* status, timestamps, and error information if applicable. A message that is or
|
|
41
|
-
* was held for a later time (a send you scheduled with scheduled_at,
|
|
42
|
-
*
|
|
43
|
-
* plus scheduled_at, the
|
|
44
|
-
*
|
|
43
|
+
* was held for a later time (a send you scheduled with scheduled_at, a quiet-hours
|
|
44
|
+
* hold, or a message you cancelled while it was held) is returned as a
|
|
45
|
+
* ScheduledMessageResponse: the same fields plus scheduled_at, the instant it is
|
|
46
|
+
* held for in UTC — or, on a CANCELLED message, the instant that was called off. A
|
|
47
|
+
* message sent immediately has no scheduled_at key.
|
|
45
48
|
*
|
|
46
49
|
* @example
|
|
47
50
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAChB,EAAU,EACV,SAA6D,EAAE,EAC/D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GA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E,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/webhooks.d.mts
CHANGED
|
@@ -166,6 +166,108 @@ export interface APIResponseWebhook {
|
|
|
166
166
|
*/
|
|
167
167
|
success?: boolean;
|
|
168
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
|
|
171
|
+
* this shape and varies only in Payload.
|
|
172
|
+
*/
|
|
173
|
+
export interface CallEvent {
|
|
174
|
+
/**
|
|
175
|
+
* The specific event within the family, for example message.delivered,
|
|
176
|
+
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
177
|
+
* treat it as optional.
|
|
178
|
+
*/
|
|
179
|
+
event?: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* The event family, for example message, templates or contact. Route on this
|
|
182
|
+
* first, then on event for the specific change.
|
|
183
|
+
*/
|
|
184
|
+
field?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Body of a call.initiated, call.answered, call.completed, call.failed or
|
|
187
|
+
* call.recording_ready event. Which of them occurred is the envelope's event.
|
|
188
|
+
*
|
|
189
|
+
* Shaped like the message, inbound, template and channel payloads: account_id
|
|
190
|
+
* names the account the event is about, channel names the channel, and updated_at
|
|
191
|
+
* is when the change happened on the call, in the same yyyy-MM-ddTHH:mm:ssZ form.
|
|
192
|
+
* duration_seconds and price are added on call.completed, reason on call.failed
|
|
193
|
+
* and recording_id on call.recording_ready; each is omitted rather than sent as
|
|
194
|
+
* null when it does not apply.
|
|
195
|
+
*
|
|
196
|
+
* Casing is snake_case because these ride the same webhook stream customers
|
|
197
|
+
* already parse message_id from; the question/answer contract is a separate
|
|
198
|
+
* surface and stays camelCase. Nothing here is provider-shaped: no provider call
|
|
199
|
+
* id, no namespaced identity.
|
|
200
|
+
*/
|
|
201
|
+
payload?: CallEventPayload | null;
|
|
202
|
+
/**
|
|
203
|
+
* The event-specific body.
|
|
204
|
+
*/
|
|
205
|
+
request_id?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
208
|
+
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
209
|
+
* payload for the latter.
|
|
210
|
+
*/
|
|
211
|
+
timestamp?: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Body of a call.initiated, call.answered, call.completed, call.failed or
|
|
215
|
+
* call.recording_ready event. Which of them occurred is the envelope's event.
|
|
216
|
+
*
|
|
217
|
+
* Shaped like the message, inbound, template and channel payloads: account_id
|
|
218
|
+
* names the account the event is about, channel names the channel, and updated_at
|
|
219
|
+
* is when the change happened on the call, in the same yyyy-MM-ddTHH:mm:ssZ form.
|
|
220
|
+
* duration_seconds and price are added on call.completed, reason on call.failed
|
|
221
|
+
* and recording_id on call.recording_ready; each is omitted rather than sent as
|
|
222
|
+
* null when it does not apply.
|
|
223
|
+
*
|
|
224
|
+
* Casing is snake_case because these ride the same webhook stream customers
|
|
225
|
+
* already parse message_id from; the question/answer contract is a separate
|
|
226
|
+
* surface and stays camelCase. Nothing here is provider-shaped: no provider call
|
|
227
|
+
* id, no namespaced identity.
|
|
228
|
+
*/
|
|
229
|
+
export interface CallEventPayload {
|
|
230
|
+
/**
|
|
231
|
+
* Sent's call id, the same one the customer saw on the first question.
|
|
232
|
+
*/
|
|
233
|
+
call_id: string;
|
|
234
|
+
/**
|
|
235
|
+
* The account the call belongs to: the key's own customer, or the sender profile
|
|
236
|
+
* it acted as.
|
|
237
|
+
*/
|
|
238
|
+
account_id?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Always voice.
|
|
241
|
+
*/
|
|
242
|
+
channel?: string;
|
|
243
|
+
/**
|
|
244
|
+
* How long the call lasted. Only on call.completed.
|
|
245
|
+
*/
|
|
246
|
+
duration_seconds?: number | null;
|
|
247
|
+
/**
|
|
248
|
+
* The customer number that owns the call, in E.164 format.
|
|
249
|
+
*/
|
|
250
|
+
number?: string;
|
|
251
|
+
/**
|
|
252
|
+
* What the call was charged. Only on call.completed, and omitted there until
|
|
253
|
+
* billing has recorded the charge.
|
|
254
|
+
*/
|
|
255
|
+
price?: number | null;
|
|
256
|
+
/**
|
|
257
|
+
* The machine-readable reason the call did not complete. Only on call.failed, and
|
|
258
|
+
* omitted when no reason was recorded.
|
|
259
|
+
*/
|
|
260
|
+
reason?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* The recording that became available, the same id GET /v3/calls/{id}/recordings
|
|
263
|
+
* lists it under. Only on call.recording_ready, which is sent once per recording.
|
|
264
|
+
*/
|
|
265
|
+
recording_id?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* When the change happened on the call, as opposed to when the event was emitted.
|
|
268
|
+
*/
|
|
269
|
+
updated_at?: string;
|
|
270
|
+
}
|
|
169
271
|
/**
|
|
170
272
|
* The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
|
|
171
273
|
* this shape and varies only in Payload.
|
|
@@ -818,12 +920,17 @@ export interface MessageEventPayload {
|
|
|
818
920
|
/**
|
|
819
921
|
* message.scheduled only: why the message is held, either because you scheduled it
|
|
820
922
|
* or because the recipient is inside a protected quiet-hours window. Omitted on
|
|
821
|
-
* every other event.
|
|
923
|
+
* every other event, including message.cancelled — that is a property of the hold,
|
|
924
|
+
* not of the cancellation, and repeating it there would read as "why was this
|
|
925
|
+
* cancelled", which it does not answer.
|
|
822
926
|
*/
|
|
823
927
|
schedule_reason?: string | null;
|
|
824
928
|
/**
|
|
825
|
-
* message.scheduled
|
|
826
|
-
*
|
|
929
|
+
* message.scheduled and message.cancelled only, in UTC (yyyy-MM-ddTHH:mm:ssZ): on
|
|
930
|
+
* message.scheduled it is when the held message will be released for delivery, on
|
|
931
|
+
* message.cancelled the release instant that was called off — the same instant,
|
|
932
|
+
* before and after. A consumer that recorded a future send from the first event
|
|
933
|
+
* has what it needs to un-record it from the second. Omitted on every other event.
|
|
827
934
|
*/
|
|
828
935
|
scheduled_at?: string | null;
|
|
829
936
|
/**
|
|
@@ -1082,7 +1189,7 @@ export interface WebhookListEventsResponse {
|
|
|
1082
1189
|
* handler that rejects an envelope it does not recognise will break on the next
|
|
1083
1190
|
* addition rather than ignore it.
|
|
1084
1191
|
*/
|
|
1085
|
-
event_data?: MessageEvent | InboundMessageEvent | TemplateEvent | ChannelEvent | ContactEvent | WebhookListEventsResponse.SentDmServicesCommonServicesWebhooksContractsWebhookEventOfLinkWebhookPayload |
|
|
1192
|
+
event_data?: MessageEvent | InboundMessageEvent | TemplateEvent | ChannelEvent | ContactEvent | WebhookListEventsResponse.SentDmServicesCommonServicesWebhooksContractsWebhookEventOfLinkWebhookPayload | CallEvent;
|
|
1086
1193
|
event_type?: string;
|
|
1087
1194
|
http_status_code?: number | null;
|
|
1088
1195
|
processing_completed_at?: string | null;
|
|
@@ -1278,110 +1385,6 @@ export declare namespace WebhookListEventsResponse {
|
|
|
1278
1385
|
traffic_class?: string | null;
|
|
1279
1386
|
}
|
|
1280
1387
|
}
|
|
1281
|
-
/**
|
|
1282
|
-
* The envelope Sent POSTs to a subscribed webhook endpoint. Every event shares
|
|
1283
|
-
* this shape and varies only in Payload.
|
|
1284
|
-
*/
|
|
1285
|
-
interface SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload {
|
|
1286
|
-
/**
|
|
1287
|
-
* The specific event within the family, for example message.delivered,
|
|
1288
|
-
* message.received or contact.opt_out. Absent on events that have no subtype, so
|
|
1289
|
-
* treat it as optional.
|
|
1290
|
-
*/
|
|
1291
|
-
event?: string | null;
|
|
1292
|
-
/**
|
|
1293
|
-
* The event family, for example message, templates or contact. Route on this
|
|
1294
|
-
* first, then on event for the specific change.
|
|
1295
|
-
*/
|
|
1296
|
-
field?: string;
|
|
1297
|
-
/**
|
|
1298
|
-
* Body of a call.initiated, call.answered, call.completed, call.failed or
|
|
1299
|
-
* call.recording_ready event. Which of them occurred is the envelope's event.
|
|
1300
|
-
*
|
|
1301
|
-
* Shaped like the message, inbound, template and channel payloads: account_id
|
|
1302
|
-
* names the account the event is about, channel names the channel, and updated_at
|
|
1303
|
-
* is when the change happened on the call, in the same yyyy-MM-ddTHH:mm:ssZ form.
|
|
1304
|
-
* duration_seconds and price are added on call.completed, reason on call.failed
|
|
1305
|
-
* and recording_id on call.recording_ready; each is omitted rather than sent as
|
|
1306
|
-
* null when it does not apply.
|
|
1307
|
-
*
|
|
1308
|
-
* Casing is snake_case because these ride the same webhook stream customers
|
|
1309
|
-
* already parse message_id from; the question/answer contract is a separate
|
|
1310
|
-
* surface and stays camelCase. Nothing here is provider-shaped: no provider call
|
|
1311
|
-
* id, no namespaced identity.
|
|
1312
|
-
*/
|
|
1313
|
-
payload?: SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload.Payload | null;
|
|
1314
|
-
/**
|
|
1315
|
-
* The event-specific body.
|
|
1316
|
-
*/
|
|
1317
|
-
request_id?: string | null;
|
|
1318
|
-
/**
|
|
1319
|
-
* When Sent emitted the event, in UTC (yyyy-MM-ddTHH:mm:ssZ). This is the emission
|
|
1320
|
-
* time, not the time the underlying change happened. Use the timestamp inside the
|
|
1321
|
-
* payload for the latter.
|
|
1322
|
-
*/
|
|
1323
|
-
timestamp?: string;
|
|
1324
|
-
}
|
|
1325
|
-
namespace SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload {
|
|
1326
|
-
/**
|
|
1327
|
-
* Body of a call.initiated, call.answered, call.completed, call.failed or
|
|
1328
|
-
* call.recording_ready event. Which of them occurred is the envelope's event.
|
|
1329
|
-
*
|
|
1330
|
-
* Shaped like the message, inbound, template and channel payloads: account_id
|
|
1331
|
-
* names the account the event is about, channel names the channel, and updated_at
|
|
1332
|
-
* is when the change happened on the call, in the same yyyy-MM-ddTHH:mm:ssZ form.
|
|
1333
|
-
* duration_seconds and price are added on call.completed, reason on call.failed
|
|
1334
|
-
* and recording_id on call.recording_ready; each is omitted rather than sent as
|
|
1335
|
-
* null when it does not apply.
|
|
1336
|
-
*
|
|
1337
|
-
* Casing is snake_case because these ride the same webhook stream customers
|
|
1338
|
-
* already parse message_id from; the question/answer contract is a separate
|
|
1339
|
-
* surface and stays camelCase. Nothing here is provider-shaped: no provider call
|
|
1340
|
-
* id, no namespaced identity.
|
|
1341
|
-
*/
|
|
1342
|
-
interface Payload {
|
|
1343
|
-
/**
|
|
1344
|
-
* Sent's call id, the same one the customer saw on the first question.
|
|
1345
|
-
*/
|
|
1346
|
-
call_id: string;
|
|
1347
|
-
/**
|
|
1348
|
-
* The account the call belongs to: the key's own customer, or the sender profile
|
|
1349
|
-
* it acted as.
|
|
1350
|
-
*/
|
|
1351
|
-
account_id?: string;
|
|
1352
|
-
/**
|
|
1353
|
-
* Always voice.
|
|
1354
|
-
*/
|
|
1355
|
-
channel?: string;
|
|
1356
|
-
/**
|
|
1357
|
-
* How long the call lasted. Only on call.completed.
|
|
1358
|
-
*/
|
|
1359
|
-
duration_seconds?: number | null;
|
|
1360
|
-
/**
|
|
1361
|
-
* The customer number that owns the call, in E.164 format.
|
|
1362
|
-
*/
|
|
1363
|
-
number?: string;
|
|
1364
|
-
/**
|
|
1365
|
-
* What the call was charged. Only on call.completed, and omitted there until
|
|
1366
|
-
* billing has recorded the charge.
|
|
1367
|
-
*/
|
|
1368
|
-
price?: number | null;
|
|
1369
|
-
/**
|
|
1370
|
-
* The machine-readable reason the call did not complete. Only on call.failed, and
|
|
1371
|
-
* omitted when no reason was recorded.
|
|
1372
|
-
*/
|
|
1373
|
-
reason?: string | null;
|
|
1374
|
-
/**
|
|
1375
|
-
* The recording that became available, the same id GET /v3/calls/{id}/recordings
|
|
1376
|
-
* lists it under. Only on call.recording_ready, which is sent once per recording.
|
|
1377
|
-
*/
|
|
1378
|
-
recording_id?: string | null;
|
|
1379
|
-
/**
|
|
1380
|
-
* When the change happened on the call, as opposed to when the event was emitted.
|
|
1381
|
-
*/
|
|
1382
|
-
updated_at?: string;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
1388
|
}
|
|
1386
1389
|
/**
|
|
1387
1390
|
* Standard API response envelope for all v3 endpoints
|
|
@@ -1683,6 +1686,6 @@ export interface WebhookToggleStatusParams {
|
|
|
1683
1686
|
'x-profile-id'?: string;
|
|
1684
1687
|
}
|
|
1685
1688
|
export declare namespace Webhooks {
|
|
1686
|
-
export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type ChannelEvent as ChannelEvent, type ChannelEventPayload as ChannelEventPayload, type ContactEvent as ContactEvent, type ContactEventPayload as ContactEventPayload, type ErrorDetail as ErrorDetail, type InboundMessageEvent as InboundMessageEvent, type InboundMessageEventPayload as InboundMessageEventPayload, type MessageEvent as MessageEvent, type MessageEventPayload as MessageEventPayload, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type TemplateEvent as TemplateEvent, type TemplateEventPayload as TemplateEventPayload, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookResponsesWebhooksPage as WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage as WebhookListEventsResponsesWebhookEventsPage, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
|
|
1689
|
+
export { type APIMeta as APIMeta, type APIResponseWebhook as APIResponseWebhook, type CallEvent as CallEvent, type CallEventPayload as CallEventPayload, type ChannelEvent as ChannelEvent, type ChannelEventPayload as ChannelEventPayload, type ContactEvent as ContactEvent, type ContactEventPayload as ContactEventPayload, type ErrorDetail as ErrorDetail, type InboundMessageEvent as InboundMessageEvent, type InboundMessageEventPayload as InboundMessageEventPayload, type MessageEvent as MessageEvent, type MessageEventPayload as MessageEventPayload, type MutationRequest as MutationRequest, type PaginationMeta as PaginationMeta, type TemplateEvent as TemplateEvent, type TemplateEventPayload as TemplateEventPayload, type WebhookEventType as WebhookEventType, type WebhookResponse as WebhookResponse, type WebhookListEventTypesResponse as WebhookListEventTypesResponse, type WebhookListEventsResponse as WebhookListEventsResponse, type WebhookRotateSecretResponse as WebhookRotateSecretResponse, type WebhookTestResponse as WebhookTestResponse, type WebhookResponsesWebhooksPage as WebhookResponsesWebhooksPage, type WebhookListEventsResponsesWebhookEventsPage as WebhookListEventsResponsesWebhookEventsPage, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookListEventTypesParams as WebhookListEventTypesParams, type WebhookListEventsParams as WebhookListEventsParams, type WebhookRotateSecretParams as WebhookRotateSecretParams, type WebhookTestParams as WebhookTestParams, type WebhookToggleStatusParams as WebhookToggleStatusParams, };
|
|
1687
1690
|
}
|
|
1688
1691
|
//# sourceMappingURL=webhooks.d.mts.map
|