twilio 5.8.2 → 5.10.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 +103 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +2 -0
- package/lib/rest/NumbersBase.d.ts +3 -0
- package/lib/rest/NumbersBase.js +5 -0
- package/lib/rest/OauthBase.d.ts +3 -0
- package/lib/rest/OauthBase.js +5 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +3 -3
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +3 -3
- package/lib/rest/api/v2010/account/recording.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/record.d.ts +9 -10
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +11 -12
- package/lib/rest/api/v2010/account/usage.d.ts +0 -4
- package/lib/rest/assistants/v1/assistant/feedback.d.ts +2 -2
- package/lib/rest/assistants/v1/assistant/message.d.ts +1 -1
- package/lib/rest/assistants/v1/assistant.d.ts +20 -20
- package/lib/rest/assistants/v1/knowledge.d.ts +6 -6
- package/lib/rest/assistants/v1/tool.d.ts +8 -8
- package/lib/rest/content/v1/content.d.ts +41 -25
- package/lib/rest/content/v1/content.js +7 -1
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
- package/lib/rest/insights/v1/room/participant.d.ts +1 -1
- package/lib/rest/insights/v1/room.d.ts +1 -1
- package/lib/rest/intelligence/v2/service.d.ts +10 -0
- package/lib/rest/intelligence/v2/service.js +6 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.d.ts +113 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.js +120 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.d.ts +113 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.js +120 -0
- package/lib/rest/intelligence/v2/transcript.d.ts +22 -0
- package/lib/rest/intelligence/v2/transcript.js +28 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +1 -1
- package/lib/rest/lookups/v2/query.d.ts +71 -71
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +2 -2
- package/lib/rest/marketplace/v1/referralConversion.d.ts +1 -1
- package/lib/rest/messaging/v2/channelsSender.d.ts +71 -71
- package/lib/rest/messaging/v2/channelsSender.js +6 -6
- package/lib/rest/numbers/V3.d.ts +15 -0
- package/lib/rest/numbers/V3.js +37 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +3 -3
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +210 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.js +154 -0
- package/lib/rest/oauth/V2.d.ts +15 -0
- package/lib/rest/oauth/V2.js +36 -0
- package/lib/rest/oauth/v2/token.d.ts +87 -0
- package/lib/rest/oauth/v2/token.js +99 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +1 -1
- package/lib/rest/pricing/v1/messaging/country.d.ts +6 -6
- package/lib/rest/pricing/v1/phoneNumber/country.d.ts +3 -3
- package/lib/rest/pricing/v1/voice/country.d.ts +6 -6
- package/lib/rest/pricing/v1/voice/number.d.ts +5 -5
- package/lib/rest/pricing/v2/country.d.ts +8 -8
- package/lib/rest/pricing/v2/number.d.ts +8 -8
- package/lib/rest/pricing/v2/voice/country.d.ts +8 -8
- package/lib/rest/pricing/v2/voice/number.d.ts +6 -6
- package/lib/rest/verify/V2.d.ts +5 -0
- package/lib/rest/verify/V2.js +6 -0
- package/lib/rest/verify/v2/newChallenge.d.ts +204 -0
- package/lib/rest/verify/v2/newChallenge.js +150 -0
- package/lib/rest/verify/v2/service/newFactor.d.ts +154 -0
- package/lib/rest/verify/v2/service/newFactor.js +118 -0
- package/lib/rest/verify/v2/service.d.ts +8 -0
- package/lib/rest/verify/v2/service.js +13 -0
- package/lib/twiml/VoiceResponse.d.ts +22 -0
- package/lib/twiml/VoiceResponse.js +19 -0
- package/lib-esm/index.js +49 -0
- package/lib-esm/package.json +3 -0
- package/package.json +15 -4
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Verify
|
|
9
|
+
* This is the public Twilio REST API.
|
|
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.NewFactorInstance = exports.CreateNewPasskeysFactorRequestConfigRelyingParty = exports.CreateNewPasskeysFactorRequestConfig = exports.CreateNewPasskeysFactorRequest = void 0;
|
|
17
|
+
exports.NewFactorListInstance = NewFactorListInstance;
|
|
18
|
+
const util_1 = require("util");
|
|
19
|
+
const deserialize = require("../../../../base/deserialize");
|
|
20
|
+
const serialize = require("../../../../base/serialize");
|
|
21
|
+
const utility_1 = require("../../../../base/utility");
|
|
22
|
+
class CreateNewPasskeysFactorRequest {
|
|
23
|
+
}
|
|
24
|
+
exports.CreateNewPasskeysFactorRequest = CreateNewPasskeysFactorRequest;
|
|
25
|
+
class CreateNewPasskeysFactorRequestConfig {
|
|
26
|
+
}
|
|
27
|
+
exports.CreateNewPasskeysFactorRequestConfig = CreateNewPasskeysFactorRequestConfig;
|
|
28
|
+
/**
|
|
29
|
+
* Contains the information of the party requesting the user for authentication
|
|
30
|
+
*/
|
|
31
|
+
class CreateNewPasskeysFactorRequestConfigRelyingParty {
|
|
32
|
+
}
|
|
33
|
+
exports.CreateNewPasskeysFactorRequestConfigRelyingParty = CreateNewPasskeysFactorRequestConfigRelyingParty;
|
|
34
|
+
function NewFactorListInstance(version, serviceSid) {
|
|
35
|
+
if (!(0, utility_1.isValidPathParam)(serviceSid)) {
|
|
36
|
+
throw new Error("Parameter 'serviceSid' is not valid.");
|
|
37
|
+
}
|
|
38
|
+
const instance = {};
|
|
39
|
+
instance._version = version;
|
|
40
|
+
instance._solution = { serviceSid };
|
|
41
|
+
instance._uri = `/Services/${serviceSid}/Passkeys/Factors`;
|
|
42
|
+
instance.create = function create(params, headers, callback) {
|
|
43
|
+
if (params === null || params === undefined) {
|
|
44
|
+
throw new Error('Required parameter "params" missing.');
|
|
45
|
+
}
|
|
46
|
+
let data = {};
|
|
47
|
+
data = params;
|
|
48
|
+
if (headers === null || headers === undefined) {
|
|
49
|
+
headers = {};
|
|
50
|
+
}
|
|
51
|
+
headers["Content-Type"] = "application/json";
|
|
52
|
+
headers["Accept"] = "application/json";
|
|
53
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
54
|
+
uri: instance._uri,
|
|
55
|
+
method: "post",
|
|
56
|
+
data,
|
|
57
|
+
headers,
|
|
58
|
+
});
|
|
59
|
+
operationPromise = operationPromise.then((payload) => new NewFactorInstance(operationVersion, payload, instance._solution.serviceSid));
|
|
60
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
61
|
+
return operationPromise;
|
|
62
|
+
};
|
|
63
|
+
instance.toJSON = function toJSON() {
|
|
64
|
+
return instance._solution;
|
|
65
|
+
};
|
|
66
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
67
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
68
|
+
};
|
|
69
|
+
return instance;
|
|
70
|
+
}
|
|
71
|
+
class NewFactorInstance {
|
|
72
|
+
constructor(_version, payload, serviceSid) {
|
|
73
|
+
this._version = _version;
|
|
74
|
+
this.sid = payload.sid;
|
|
75
|
+
this.accountSid = payload.account_sid;
|
|
76
|
+
this.serviceSid = payload.service_sid;
|
|
77
|
+
this.entitySid = payload.entity_sid;
|
|
78
|
+
this.identity = payload.identity;
|
|
79
|
+
this.binding = payload.binding;
|
|
80
|
+
this.options = payload.options;
|
|
81
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
82
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
83
|
+
this.friendlyName = payload.friendly_name;
|
|
84
|
+
this.status = payload.status;
|
|
85
|
+
this.factorType = payload.factor_type;
|
|
86
|
+
this.config = payload.config;
|
|
87
|
+
this.metadata = payload.metadata;
|
|
88
|
+
this.url = payload.url;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Provide a user-friendly representation
|
|
92
|
+
*
|
|
93
|
+
* @returns Object
|
|
94
|
+
*/
|
|
95
|
+
toJSON() {
|
|
96
|
+
return {
|
|
97
|
+
sid: this.sid,
|
|
98
|
+
accountSid: this.accountSid,
|
|
99
|
+
serviceSid: this.serviceSid,
|
|
100
|
+
entitySid: this.entitySid,
|
|
101
|
+
identity: this.identity,
|
|
102
|
+
binding: this.binding,
|
|
103
|
+
options: this.options,
|
|
104
|
+
dateCreated: this.dateCreated,
|
|
105
|
+
dateUpdated: this.dateUpdated,
|
|
106
|
+
friendlyName: this.friendlyName,
|
|
107
|
+
status: this.status,
|
|
108
|
+
factorType: this.factorType,
|
|
109
|
+
config: this.config,
|
|
110
|
+
metadata: this.metadata,
|
|
111
|
+
url: this.url,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
[util_1.inspect.custom](_depth, options) {
|
|
115
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.NewFactorInstance = NewFactorInstance;
|
|
@@ -5,6 +5,7 @@ import V2 from "../V2";
|
|
|
5
5
|
import { AccessTokenListInstance } from "./service/accessToken";
|
|
6
6
|
import { EntityListInstance } from "./service/entity";
|
|
7
7
|
import { MessagingConfigurationListInstance } from "./service/messagingConfiguration";
|
|
8
|
+
import { NewFactorListInstance } from "./service/newFactor";
|
|
8
9
|
import { RateLimitListInstance } from "./service/rateLimit";
|
|
9
10
|
import { VerificationListInstance } from "./service/verification";
|
|
10
11
|
import { VerificationCheckListInstance } from "./service/verificationCheck";
|
|
@@ -160,6 +161,7 @@ export interface ServiceContext {
|
|
|
160
161
|
accessTokens: AccessTokenListInstance;
|
|
161
162
|
entities: EntityListInstance;
|
|
162
163
|
messagingConfigurations: MessagingConfigurationListInstance;
|
|
164
|
+
newFactors: NewFactorListInstance;
|
|
163
165
|
rateLimits: RateLimitListInstance;
|
|
164
166
|
verifications: VerificationListInstance;
|
|
165
167
|
verificationChecks: VerificationCheckListInstance;
|
|
@@ -213,6 +215,7 @@ export declare class ServiceContextImpl implements ServiceContext {
|
|
|
213
215
|
protected _accessTokens?: AccessTokenListInstance;
|
|
214
216
|
protected _entities?: EntityListInstance;
|
|
215
217
|
protected _messagingConfigurations?: MessagingConfigurationListInstance;
|
|
218
|
+
protected _newFactors?: NewFactorListInstance;
|
|
216
219
|
protected _rateLimits?: RateLimitListInstance;
|
|
217
220
|
protected _verifications?: VerificationListInstance;
|
|
218
221
|
protected _verificationChecks?: VerificationCheckListInstance;
|
|
@@ -221,6 +224,7 @@ export declare class ServiceContextImpl implements ServiceContext {
|
|
|
221
224
|
get accessTokens(): AccessTokenListInstance;
|
|
222
225
|
get entities(): EntityListInstance;
|
|
223
226
|
get messagingConfigurations(): MessagingConfigurationListInstance;
|
|
227
|
+
get newFactors(): NewFactorListInstance;
|
|
224
228
|
get rateLimits(): RateLimitListInstance;
|
|
225
229
|
get verifications(): VerificationListInstance;
|
|
226
230
|
get verificationChecks(): VerificationCheckListInstance;
|
|
@@ -388,6 +392,10 @@ export declare class ServiceInstance {
|
|
|
388
392
|
* Access the messagingConfigurations.
|
|
389
393
|
*/
|
|
390
394
|
messagingConfigurations(): MessagingConfigurationListInstance;
|
|
395
|
+
/**
|
|
396
|
+
* Access the newFactors.
|
|
397
|
+
*/
|
|
398
|
+
newFactors(): NewFactorListInstance;
|
|
391
399
|
/**
|
|
392
400
|
* Access the rateLimits.
|
|
393
401
|
*/
|
|
@@ -26,6 +26,7 @@ const utility_1 = require("../../../base/utility");
|
|
|
26
26
|
const accessToken_1 = require("./service/accessToken");
|
|
27
27
|
const entity_1 = require("./service/entity");
|
|
28
28
|
const messagingConfiguration_1 = require("./service/messagingConfiguration");
|
|
29
|
+
const newFactor_1 = require("./service/newFactor");
|
|
29
30
|
const rateLimit_1 = require("./service/rateLimit");
|
|
30
31
|
const verification_1 = require("./service/verification");
|
|
31
32
|
const verificationCheck_1 = require("./service/verificationCheck");
|
|
@@ -56,6 +57,12 @@ class ServiceContextImpl {
|
|
|
56
57
|
(0, messagingConfiguration_1.MessagingConfigurationListInstance)(this._version, this._solution.sid);
|
|
57
58
|
return this._messagingConfigurations;
|
|
58
59
|
}
|
|
60
|
+
get newFactors() {
|
|
61
|
+
this._newFactors =
|
|
62
|
+
this._newFactors ||
|
|
63
|
+
(0, newFactor_1.NewFactorListInstance)(this._version, this._solution.sid);
|
|
64
|
+
return this._newFactors;
|
|
65
|
+
}
|
|
59
66
|
get rateLimits() {
|
|
60
67
|
this._rateLimits =
|
|
61
68
|
this._rateLimits ||
|
|
@@ -268,6 +275,12 @@ class ServiceInstance {
|
|
|
268
275
|
messagingConfigurations() {
|
|
269
276
|
return this._proxy.messagingConfigurations;
|
|
270
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Access the newFactors.
|
|
280
|
+
*/
|
|
281
|
+
newFactors() {
|
|
282
|
+
return this._proxy.newFactors;
|
|
283
|
+
}
|
|
271
284
|
/**
|
|
272
285
|
* Access the rateLimits.
|
|
273
286
|
*/
|
|
@@ -1572,6 +1572,15 @@ declare namespace VoiceResponse {
|
|
|
1572
1572
|
/** welcomeGreetingInterruptible - "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting */
|
|
1573
1573
|
welcomeGreetingInterruptible?: string;
|
|
1574
1574
|
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Attributes to pass to aiSession
|
|
1577
|
+
*/
|
|
1578
|
+
export interface AiSessionAttributes {
|
|
1579
|
+
/** aiConnector - The unique name or installed add-on sid that identifies the installed addon resource for the AI Connector */
|
|
1580
|
+
aiConnector?: string;
|
|
1581
|
+
/** aiSessionConfiguration - The unique name or id of the AiSession Configuration resource. */
|
|
1582
|
+
aiSessionConfiguration?: string;
|
|
1583
|
+
}
|
|
1575
1584
|
/**
|
|
1576
1585
|
* Attributes to pass to language
|
|
1577
1586
|
*/
|
|
@@ -1638,6 +1647,13 @@ declare namespace VoiceResponse {
|
|
|
1638
1647
|
/** value - The value of the custom parameter */
|
|
1639
1648
|
value?: string;
|
|
1640
1649
|
}
|
|
1650
|
+
export class AiSession extends TwiML {
|
|
1651
|
+
aiSession: XMLElement;
|
|
1652
|
+
/**
|
|
1653
|
+
* <AiSession> TwiML Noun
|
|
1654
|
+
*/
|
|
1655
|
+
constructor(aiSession: XMLElement);
|
|
1656
|
+
}
|
|
1641
1657
|
export class Application extends TwiML {
|
|
1642
1658
|
application: XMLElement;
|
|
1643
1659
|
/**
|
|
@@ -1733,6 +1749,12 @@ declare namespace VoiceResponse {
|
|
|
1733
1749
|
* <Connect> TwiML Verb
|
|
1734
1750
|
*/
|
|
1735
1751
|
constructor(connect: XMLElement);
|
|
1752
|
+
/**
|
|
1753
|
+
* <AiSession> TwiML Noun
|
|
1754
|
+
*
|
|
1755
|
+
* @param attributes - TwiML attributes
|
|
1756
|
+
*/
|
|
1757
|
+
aiSession(attributes?: VoiceResponse.AiSessionAttributes): VoiceResponse.AiSession;
|
|
1736
1758
|
/**
|
|
1737
1759
|
* <Assistant> TwiML Noun
|
|
1738
1760
|
*
|
|
@@ -196,6 +196,17 @@ class VoiceResponse extends TwiML_1.default {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
(function (VoiceResponse) {
|
|
199
|
+
class AiSession extends TwiML_1.default {
|
|
200
|
+
/**
|
|
201
|
+
* <AiSession> TwiML Noun
|
|
202
|
+
*/
|
|
203
|
+
constructor(aiSession) {
|
|
204
|
+
super();
|
|
205
|
+
this.aiSession = aiSession;
|
|
206
|
+
this._propertyName = "aiSession";
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
VoiceResponse.AiSession = AiSession;
|
|
199
210
|
class Application extends TwiML_1.default {
|
|
200
211
|
/**
|
|
201
212
|
* <Application> TwiML Noun
|
|
@@ -328,6 +339,14 @@ class VoiceResponse extends TwiML_1.default {
|
|
|
328
339
|
this.connect = connect;
|
|
329
340
|
this._propertyName = "connect";
|
|
330
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* <AiSession> TwiML Noun
|
|
344
|
+
*
|
|
345
|
+
* @param attributes - TwiML attributes
|
|
346
|
+
*/
|
|
347
|
+
aiSession(attributes) {
|
|
348
|
+
return new VoiceResponse.AiSession(this.connect.ele("AiSession", attributes));
|
|
349
|
+
}
|
|
331
350
|
/**
|
|
332
351
|
* <Assistant> TwiML Noun
|
|
333
352
|
*
|
package/lib-esm/index.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// ESM wrapper for twilio-node
|
|
2
|
+
import { createRequire } from "module";
|
|
3
|
+
const require = createRequire(import.meta.url);
|
|
4
|
+
|
|
5
|
+
// Import the CommonJS module
|
|
6
|
+
const TwilioSDK = require("../lib/index.js");
|
|
7
|
+
|
|
8
|
+
// Extract all exports from the CJS module
|
|
9
|
+
const {
|
|
10
|
+
Twilio,
|
|
11
|
+
jwt,
|
|
12
|
+
twiml,
|
|
13
|
+
RequestClient,
|
|
14
|
+
RestException,
|
|
15
|
+
ClientCredentialProviderBuilder,
|
|
16
|
+
OrgsCredentialProviderBuilder,
|
|
17
|
+
NoAuthCredentialProvider,
|
|
18
|
+
validateBody,
|
|
19
|
+
validateRequest,
|
|
20
|
+
validateRequestWithBody,
|
|
21
|
+
validateExpressRequest,
|
|
22
|
+
validateIncomingRequest,
|
|
23
|
+
getExpectedBodyHash,
|
|
24
|
+
getExpectedTwilioSignature,
|
|
25
|
+
webhook,
|
|
26
|
+
} = TwilioSDK;
|
|
27
|
+
|
|
28
|
+
// Export everything as named exports
|
|
29
|
+
export {
|
|
30
|
+
Twilio,
|
|
31
|
+
jwt,
|
|
32
|
+
twiml,
|
|
33
|
+
RequestClient,
|
|
34
|
+
RestException,
|
|
35
|
+
ClientCredentialProviderBuilder,
|
|
36
|
+
OrgsCredentialProviderBuilder,
|
|
37
|
+
NoAuthCredentialProvider,
|
|
38
|
+
validateBody,
|
|
39
|
+
validateRequest,
|
|
40
|
+
validateRequestWithBody,
|
|
41
|
+
validateExpressRequest,
|
|
42
|
+
validateIncomingRequest,
|
|
43
|
+
getExpectedBodyHash,
|
|
44
|
+
getExpectedTwilioSignature,
|
|
45
|
+
webhook,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// Also provide default export for convenience
|
|
49
|
+
export default TwilioSDK;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twilio",
|
|
3
3
|
"description": "A Twilio helper library",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.10.0",
|
|
5
5
|
"author": "API Team <api@twilio.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/twilio/twilio-node.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"axios": "^1.
|
|
23
|
+
"axios": "^1.12.0",
|
|
24
24
|
"dayjs": "^1.11.9",
|
|
25
25
|
"https-proxy-agent": "^5.0.0",
|
|
26
26
|
"jsonwebtoken": "^9.0.2",
|
|
@@ -49,13 +49,16 @@
|
|
|
49
49
|
"typedoc": "^0.28.11"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"test": "npm run test:javascript && npm run test:typescript",
|
|
52
|
+
"test": "npm run test:javascript && npm run test:typescript && npm run test:esm",
|
|
53
53
|
"test:javascript": "jest spec --coverage --detectOpenHandles --testPathIgnorePatterns=spec/cluster",
|
|
54
54
|
"test:typescript": "tsc --noEmit",
|
|
55
|
+
"test:esm": "node scripts/verify-esm.js",
|
|
55
56
|
"jshint": "jshint src/rest/** src/base/** src/http/**",
|
|
56
57
|
"jscs": "eslint src/base/**/**.js src/http/**/**.js --fix",
|
|
57
58
|
"prepublish": "npm run build",
|
|
58
|
-
"build": "
|
|
59
|
+
"build": "npm run build:cjs && npm run build:esm && npm run prettier",
|
|
60
|
+
"build:cjs": "tsc",
|
|
61
|
+
"build:esm": "node scripts/build-esm.js",
|
|
59
62
|
"check": "npm run jshint && npm run jscs",
|
|
60
63
|
"ci": "npm run test && npm run nsp && npm run prettier-check",
|
|
61
64
|
"nsp": "npm audit --production",
|
|
@@ -65,11 +68,19 @@
|
|
|
65
68
|
},
|
|
66
69
|
"files": [
|
|
67
70
|
"lib",
|
|
71
|
+
"lib-esm",
|
|
68
72
|
"index.js",
|
|
69
73
|
"index.d.ts"
|
|
70
74
|
],
|
|
71
75
|
"main": "./lib",
|
|
76
|
+
"module": "./lib-esm/index.js",
|
|
72
77
|
"types": "./index.d.ts",
|
|
78
|
+
"exports": {
|
|
79
|
+
".": {
|
|
80
|
+
"import": "./lib-esm/index.js",
|
|
81
|
+
"require": "./lib/index.js"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
73
84
|
"engines": {
|
|
74
85
|
"node": ">=14.0"
|
|
75
86
|
},
|