twilio 5.0.3 → 5.1.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/README.md +1 -0
- package/lib/rest/ContentBase.d.ts +3 -0
- package/lib/rest/ContentBase.js +5 -0
- package/lib/rest/Twilio.d.ts +0 -5
- package/lib/rest/Twilio.js +0 -6
- package/lib/rest/api/v2010/account/call/stream.d.ts +5 -5
- package/lib/rest/api/v2010/account/message.d.ts +1 -1
- package/lib/rest/content/V2.d.ts +20 -0
- package/lib/rest/content/V2.js +43 -0
- package/lib/rest/content/v2/content.d.ts +196 -0
- package/lib/rest/content/v2/content.js +136 -0
- package/lib/rest/content/v2/contentAndApprovals.d.ts +190 -0
- package/lib/rest/content/v2/contentAndApprovals.js +134 -0
- package/lib/rest/flexApi/V2.d.ts +5 -0
- package/lib/rest/flexApi/V2.js +6 -0
- package/lib/rest/flexApi/v1/interaction.d.ts +1 -1
- package/lib/rest/flexApi/v1/interaction.js +2 -4
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +4 -1
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +2 -0
- package/lib/rest/flexApi/v2/flexUser.d.ts +170 -0
- package/lib/rest/flexApi/v2/flexUser.js +142 -0
- package/lib/rest/flexApi/v2/webChannels.d.ts +2 -0
- package/lib/rest/flexApi/v2/webChannels.js +2 -0
- package/lib/rest/intelligence/V2.d.ts +30 -0
- package/lib/rest/intelligence/V2.js +40 -0
- package/lib/rest/intelligence/v2/customOperator.d.ts +330 -0
- package/lib/rest/intelligence/v2/customOperator.js +279 -0
- package/lib/rest/intelligence/v2/operator.d.ts +263 -0
- package/lib/rest/intelligence/v2/operator.js +197 -0
- package/lib/rest/intelligence/v2/operatorAttachment.d.ts +112 -0
- package/lib/rest/intelligence/v2/operatorAttachment.js +135 -0
- package/lib/rest/intelligence/v2/operatorAttachments.d.ts +94 -0
- package/lib/rest/intelligence/v2/operatorAttachments.js +110 -0
- package/lib/rest/intelligence/v2/operatorType.d.ts +259 -0
- package/lib/rest/intelligence/v2/operatorType.js +197 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +263 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.js +197 -0
- package/lib/rest/intelligence/v2/service.d.ts +8 -4
- package/lib/rest/intelligence/v2/service.js +3 -2
- package/lib/rest/messaging/v1/service.d.ts +0 -6
- package/lib/rest/messaging/v1/service.js +0 -2
- package/lib/rest/numbers/V1.d.ts +20 -10
- package/lib/rest/numbers/V1.js +31 -14
- package/lib/rest/numbers/v1/portingPortIn.d.ts +133 -14
- package/lib/rest/numbers/v1/portingPortIn.js +116 -24
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +175 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +157 -0
- package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +79 -0
- package/lib/rest/{previewMessaging/v1/broadcast.js → numbers/v1/portingWebhookConfiguration.js} +19 -32
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +51 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +68 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +75 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.js +72 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +24 -0
- package/lib/rest/taskrouter/v1/workspace/task.js +12 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +6 -0
- package/lib/rest/trusthub/v1/customerProfiles.js +2 -0
- package/lib/rest/trusthub/v1/trustProducts.d.ts +6 -0
- package/lib/rest/trusthub/v1/trustProducts.js +2 -0
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
- package/lib/rest/verify/v2/service.d.ts +1 -1
- package/lib/webhooks/webhooks.js +9 -11
- package/package.json +4 -6
- package/lib/rest/PreviewMessaging.d.ts +0 -9
- package/lib/rest/PreviewMessaging.js +0 -15
- package/lib/rest/PreviewMessagingBase.d.ts +0 -13
- package/lib/rest/PreviewMessagingBase.js +0 -31
- package/lib/rest/numbers/v1/portingBulkPortability.d.ts +0 -120
- package/lib/rest/numbers/v1/portingBulkPortability.js +0 -136
- package/lib/rest/numbers/v1/portingPortInFetch.d.ts +0 -142
- package/lib/rest/numbers/v1/portingPortInFetch.js +0 -128
- package/lib/rest/previewMessaging/V1.d.ts +0 -20
- package/lib/rest/previewMessaging/V1.js +0 -42
- package/lib/rest/previewMessaging/v1/broadcast.d.ts +0 -108
- package/lib/rest/previewMessaging/v1/message.d.ts +0 -178
- package/lib/rest/previewMessaging/v1/message.js +0 -91
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Bulk Messaging and Broadcast
|
|
9
|
-
* Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.MessageInstance = exports.MessageListInstance = exports.MessagingV1MessageReceipt = exports.MessagingV1Message = exports.MessagingV1FailedMessageReceipt = exports.CreateMessagesRequest = void 0;
|
|
17
|
-
const util_1 = require("util");
|
|
18
|
-
const deserialize = require("../../../base/deserialize");
|
|
19
|
-
const serialize = require("../../../base/serialize");
|
|
20
|
-
class CreateMessagesRequest {
|
|
21
|
-
}
|
|
22
|
-
exports.CreateMessagesRequest = CreateMessagesRequest;
|
|
23
|
-
class MessagingV1FailedMessageReceipt {
|
|
24
|
-
}
|
|
25
|
-
exports.MessagingV1FailedMessageReceipt = MessagingV1FailedMessageReceipt;
|
|
26
|
-
class MessagingV1Message {
|
|
27
|
-
}
|
|
28
|
-
exports.MessagingV1Message = MessagingV1Message;
|
|
29
|
-
class MessagingV1MessageReceipt {
|
|
30
|
-
}
|
|
31
|
-
exports.MessagingV1MessageReceipt = MessagingV1MessageReceipt;
|
|
32
|
-
function MessageListInstance(version) {
|
|
33
|
-
const instance = {};
|
|
34
|
-
instance._version = version;
|
|
35
|
-
instance._solution = {};
|
|
36
|
-
instance._uri = `/Messages`;
|
|
37
|
-
instance.create = function create(params, callback) {
|
|
38
|
-
if (params === null || params === undefined) {
|
|
39
|
-
throw new Error('Required parameter "params" missing.');
|
|
40
|
-
}
|
|
41
|
-
let data = {};
|
|
42
|
-
data = params;
|
|
43
|
-
const headers = {};
|
|
44
|
-
headers["Content-Type"] = "application/json";
|
|
45
|
-
let operationVersion = version, operationPromise = operationVersion.create({
|
|
46
|
-
uri: instance._uri,
|
|
47
|
-
method: "post",
|
|
48
|
-
data,
|
|
49
|
-
headers,
|
|
50
|
-
});
|
|
51
|
-
operationPromise = operationPromise.then((payload) => new MessageInstance(operationVersion, payload));
|
|
52
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
53
|
-
return operationPromise;
|
|
54
|
-
};
|
|
55
|
-
instance.toJSON = function toJSON() {
|
|
56
|
-
return instance._solution;
|
|
57
|
-
};
|
|
58
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
59
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
60
|
-
};
|
|
61
|
-
return instance;
|
|
62
|
-
}
|
|
63
|
-
exports.MessageListInstance = MessageListInstance;
|
|
64
|
-
class MessageInstance {
|
|
65
|
-
constructor(_version, payload) {
|
|
66
|
-
this._version = _version;
|
|
67
|
-
this.totalMessageCount = deserialize.integer(payload.total_message_count);
|
|
68
|
-
this.successCount = deserialize.integer(payload.success_count);
|
|
69
|
-
this.errorCount = deserialize.integer(payload.error_count);
|
|
70
|
-
this.messageReceipts = payload.message_receipts;
|
|
71
|
-
this.failedMessageReceipts = payload.failed_message_receipts;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Provide a user-friendly representation
|
|
75
|
-
*
|
|
76
|
-
* @returns Object
|
|
77
|
-
*/
|
|
78
|
-
toJSON() {
|
|
79
|
-
return {
|
|
80
|
-
totalMessageCount: this.totalMessageCount,
|
|
81
|
-
successCount: this.successCount,
|
|
82
|
-
errorCount: this.errorCount,
|
|
83
|
-
messageReceipts: this.messageReceipts,
|
|
84
|
-
failedMessageReceipts: this.failedMessageReceipts,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
[util_1.inspect.custom](_depth, options) {
|
|
88
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.MessageInstance = MessageInstance;
|