twilio 3.77.2 → 3.79.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 -1
- package/lib/rest/Insights.d.ts +0 -2
- package/lib/rest/Insights.js +0 -8
- package/lib/rest/Lookups.d.ts +2 -0
- package/lib/rest/Lookups.js +11 -0
- package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/payment.js +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/participant.js +4 -2
- package/lib/rest/conversations/v1/service/conversation/participant.js +4 -2
- package/lib/rest/insights/V1.d.ts +0 -3
- package/lib/rest/insights/V1.js +0 -11
- package/lib/rest/insights/v1/{annotation.d.ts → call/annotation.d.ts} +29 -17
- package/lib/rest/insights/v1/{annotation.js → call/annotation.js} +72 -55
- package/lib/rest/insights/v1/call/summary.d.ts +2 -0
- package/lib/rest/insights/v1/call/summary.js +2 -0
- package/lib/rest/insights/v1/call.d.ts +7 -16
- package/lib/rest/insights/v1/call.js +28 -16
- package/lib/rest/lookups/V2.d.ts +25 -0
- package/lib/rest/lookups/V2.js +47 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +180 -0
- package/lib/rest/lookups/v2/phoneNumber.js +359 -0
- package/lib/rest/media/v1/mediaRecording.d.ts +2 -4
- package/lib/rest/media/v1/mediaRecording.js +2 -4
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +246 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.js +448 -0
- package/lib/rest/supersim/v1/sim.d.ts +7 -0
- package/lib/rest/supersim/v1/sim.js +28 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +8 -2
- package/lib/rest/verify/v2/service/verificationCheck.js +8 -9
- package/lib/twiml/VoiceResponse.d.ts +81 -4
- package/lib/twiml/VoiceResponse.js +111 -3
- package/package.json +1 -1
|
@@ -205,6 +205,14 @@ declare namespace VoiceResponse {
|
|
|
205
205
|
|
|
206
206
|
type ConferenceTrim = 'trim-silence'|'do-not-trim';
|
|
207
207
|
|
|
208
|
+
type ConversationEvent = 'call-initiated'|'call-ringing'|'call-in-progress'|'call-completed';
|
|
209
|
+
|
|
210
|
+
type ConversationRecord = 'do-not-record'|'record-from-answer'|'record-from-ringing'|'record-from-answer-dual'|'record-from-ringing-dual'|'true'|'false';
|
|
211
|
+
|
|
212
|
+
type ConversationRecordingEvent = 'in-progress'|'completed'|'absent';
|
|
213
|
+
|
|
214
|
+
type ConversationTrim = 'trim-silence'|'do-not-trim';
|
|
215
|
+
|
|
208
216
|
type DialRecord = 'do-not-record'|'record-from-answer'|'record-from-ringing'|'record-from-answer-dual'|'record-from-ringing-dual';
|
|
209
217
|
|
|
210
218
|
type DialRecordingEvent = 'in-progress'|'completed'|'absent';
|
|
@@ -249,9 +257,9 @@ declare namespace VoiceResponse {
|
|
|
249
257
|
|
|
250
258
|
type RejectReason = 'rejected'|'busy';
|
|
251
259
|
|
|
252
|
-
type SayLanguage = 'arb'|'ca-ES'|'cy-GB'|'da-DK'|'de-DE'|'en-AU'|'en-CA'|'en-GB'|'en-GB-WLS'|'en-IN'|'en-NZ'|'en-ZA'|'en-US'|'es-ES'|'es-MX'|'es-US'|'fi-FI'|'fr-CA'|'fr-FR'|'hi-IN'|'is-IS'|'it-IT'|'ja-JP'|'ko-KR'|'nb-NO'|'nl-NL'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'ru-RU'|'sv-SE'|'tr-TR'|'zh-CN'|'zh-HK'|'zh-TW';
|
|
260
|
+
type SayLanguage = 'arb'|'ca-ES'|'cy-GB'|'da-DK'|'de-DE'|'de-AT'|'en-AU'|'en-CA'|'en-GB'|'en-GB-WLS'|'en-IN'|'en-NZ'|'en-ZA'|'en-US'|'es-ES'|'es-MX'|'es-US'|'fi-FI'|'fr-CA'|'fr-FR'|'hi-IN'|'is-IS'|'it-IT'|'ja-JP'|'ko-KR'|'nb-NO'|'nl-NL'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'ru-RU'|'sv-SE'|'tr-TR'|'zh-CN'|'zh-HK'|'zh-TW';
|
|
253
261
|
|
|
254
|
-
type SayVoice = 'man'|'woman'|'alice'|'Polly.Aditi'|'Polly.Amy'|'Polly.Astrid'|'Polly.Bianca'|'Polly.Brian'|'Polly.Camila'|'Polly.Carla'|'Polly.Carmen'|'Polly.Celine'|'Polly.Chantal'|'Polly.Conchita'|'Polly.Cristiano'|'Polly.Dora'|'Polly.Emma'|'Polly.Enrique'|'Polly.Ewa'|'Polly.Filiz'|'Polly.Geraint'|'Polly.Giorgio'|'Polly.Gwyneth'|'Polly.Hans'|'Polly.Ines'|'Polly.Ivy'|'Polly.Jacek'|'Polly.Jan'|'Polly.Joanna'|'Polly.Joey'|'Polly.Justin'|'Polly.Karl'|'Polly.Kendra'|'Polly.Kimberly'|'Polly.Lea'|'Polly.Liv'|'Polly.Lotte'|'Polly.Lucia'|'Polly.Lupe'|'Polly.Mads'|'Polly.Maja'|'Polly.Marlene'|'Polly.Mathieu'|'Polly.Matthew'|'Polly.Maxim'|'Polly.Mia'|'Polly.Miguel'|'Polly.Mizuki'|'Polly.Naja'|'Polly.Nicole'|'Polly.Penelope'|'Polly.Raveena'|'Polly.Ricardo'|'Polly.Ruben'|'Polly.Russell'|'Polly.Salli'|'Polly.Seoyeon'|'Polly.Takumi'|'Polly.Tatyana'|'Polly.Vicki'|'Polly.Vitoria'|'Polly.Zeina'|'Polly.Zhiyu'|'Polly.Amy-Neural'|'Polly.Emma-Neural'|'Polly.Brian-Neural'|'Polly.Salli-Neural'|'Polly.Ivy-Neural'|'Polly.Joanna-Neural'|'Polly.Kendra-Neural'|'Polly.Kimberly-Neural'|'Polly.Joey-Neural'|'Polly.Justin-Neural'|'Polly.Matthew-Neural'|'Polly.Camila-Neural'|'Polly.Lupe-Neural'|'Polly.Olivia-Neural'|'Polly.Kevin-Neural'|'Polly.Aria-Neural'|'Polly.Ayanda-Neural'|'Polly.Gabrielle-Neural'|'Polly.Lea-Neural'|'Polly.Vicki-Neural'|'Polly.Bianca-Neural'|'Polly.Takumi-Neural'|'Polly.Seoyeon-Neural'|'Polly.Lucia-Neural';
|
|
262
|
+
type SayVoice = 'man'|'woman'|'alice'|'Polly.Aditi'|'Polly.Amy'|'Polly.Astrid'|'Polly.Bianca'|'Polly.Brian'|'Polly.Camila'|'Polly.Carla'|'Polly.Carmen'|'Polly.Celine'|'Polly.Chantal'|'Polly.Conchita'|'Polly.Cristiano'|'Polly.Dora'|'Polly.Emma'|'Polly.Enrique'|'Polly.Ewa'|'Polly.Filiz'|'Polly.Geraint'|'Polly.Giorgio'|'Polly.Gwyneth'|'Polly.Hans'|'Polly.Ines'|'Polly.Ivy'|'Polly.Jacek'|'Polly.Jan'|'Polly.Joanna'|'Polly.Joey'|'Polly.Justin'|'Polly.Karl'|'Polly.Kendra'|'Polly.Kimberly'|'Polly.Lea'|'Polly.Liv'|'Polly.Lotte'|'Polly.Lucia'|'Polly.Lupe'|'Polly.Mads'|'Polly.Maja'|'Polly.Marlene'|'Polly.Mathieu'|'Polly.Matthew'|'Polly.Maxim'|'Polly.Mia'|'Polly.Miguel'|'Polly.Mizuki'|'Polly.Naja'|'Polly.Nicole'|'Polly.Penelope'|'Polly.Raveena'|'Polly.Ricardo'|'Polly.Ruben'|'Polly.Russell'|'Polly.Salli'|'Polly.Seoyeon'|'Polly.Takumi'|'Polly.Tatyana'|'Polly.Vicki'|'Polly.Vitoria'|'Polly.Zeina'|'Polly.Zhiyu'|'Polly.Amy-Neural'|'Polly.Emma-Neural'|'Polly.Brian-Neural'|'Polly.Salli-Neural'|'Polly.Ivy-Neural'|'Polly.Joanna-Neural'|'Polly.Kendra-Neural'|'Polly.Kimberly-Neural'|'Polly.Joey-Neural'|'Polly.Justin-Neural'|'Polly.Matthew-Neural'|'Polly.Camila-Neural'|'Polly.Lupe-Neural'|'Polly.Olivia-Neural'|'Polly.Kevin-Neural'|'Polly.Aria-Neural'|'Polly.Ayanda-Neural'|'Polly.Gabrielle-Neural'|'Polly.Lea-Neural'|'Polly.Vicki-Neural'|'Polly.Bianca-Neural'|'Polly.Takumi-Neural'|'Polly.Seoyeon-Neural'|'Polly.Lucia-Neural'|'Polly.Arlet-Neural'|'Polly.Hannah-Neural'|'Polly.Mia-Neural'|'Polly.Vitoria-Neural'|'Polly.Ines-Neural';
|
|
255
263
|
|
|
256
264
|
type SipEvent = 'initiated'|'ringing'|'answered'|'completed';
|
|
257
265
|
|
|
@@ -337,6 +345,17 @@ declare namespace VoiceResponse {
|
|
|
337
345
|
waitUrl?: string;
|
|
338
346
|
}
|
|
339
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Options to pass to config
|
|
350
|
+
*
|
|
351
|
+
* @property name - The name of the custom config
|
|
352
|
+
* @property value - The value of the custom config
|
|
353
|
+
*/
|
|
354
|
+
export interface ConfigAttributes {
|
|
355
|
+
name?: string;
|
|
356
|
+
value?: string;
|
|
357
|
+
}
|
|
358
|
+
|
|
340
359
|
/**
|
|
341
360
|
* Options to pass to connect
|
|
342
361
|
*
|
|
@@ -348,6 +367,37 @@ declare namespace VoiceResponse {
|
|
|
348
367
|
method?: string;
|
|
349
368
|
}
|
|
350
369
|
|
|
370
|
+
/**
|
|
371
|
+
* Options to pass to conversation
|
|
372
|
+
*
|
|
373
|
+
* @property inboundAutocreation - Inbound autocreation
|
|
374
|
+
* @property inboundTimeout - Inbound timeout
|
|
375
|
+
* @property record - Record
|
|
376
|
+
* @property recordingStatusCallback - Recording status callback URL
|
|
377
|
+
* @property recordingStatusCallbackEvent - Recording status callback events
|
|
378
|
+
* @property recordingStatusCallbackMethod - Recording status callback URL method
|
|
379
|
+
* @property routingAssignmentTimeout - Routing assignment timeout
|
|
380
|
+
* @property serviceInstanceSid - Service instance Sid
|
|
381
|
+
* @property statusCallback - Status callback URL
|
|
382
|
+
* @property statusCallbackEvent - Events to call status callback URL
|
|
383
|
+
* @property statusCallbackMethod - Status callback URL method
|
|
384
|
+
* @property trim - Trim
|
|
385
|
+
*/
|
|
386
|
+
export interface ConversationAttributes {
|
|
387
|
+
inboundAutocreation?: boolean;
|
|
388
|
+
inboundTimeout?: number;
|
|
389
|
+
record?: ConversationRecord;
|
|
390
|
+
recordingStatusCallback?: string;
|
|
391
|
+
recordingStatusCallbackEvent?: ConversationRecordingEvent[];
|
|
392
|
+
recordingStatusCallbackMethod?: string;
|
|
393
|
+
routingAssignmentTimeout?: number;
|
|
394
|
+
serviceInstanceSid?: string;
|
|
395
|
+
statusCallback?: string;
|
|
396
|
+
statusCallbackEvent?: ConversationEvent[];
|
|
397
|
+
statusCallbackMethod?: string;
|
|
398
|
+
trim?: ConversationTrim;
|
|
399
|
+
}
|
|
400
|
+
|
|
351
401
|
/**
|
|
352
402
|
* Options to pass to dial
|
|
353
403
|
*
|
|
@@ -393,6 +443,7 @@ declare namespace VoiceResponse {
|
|
|
393
443
|
* Options to pass to enqueue
|
|
394
444
|
*
|
|
395
445
|
* @property action - Action URL
|
|
446
|
+
* @property maxQueueSize - Maximum size of queue
|
|
396
447
|
* @property method - Action URL method
|
|
397
448
|
* @property waitUrl - Wait URL
|
|
398
449
|
* @property waitUrlMethod - Wait URL method
|
|
@@ -400,6 +451,7 @@ declare namespace VoiceResponse {
|
|
|
400
451
|
*/
|
|
401
452
|
export interface EnqueueAttributes {
|
|
402
453
|
action?: string;
|
|
454
|
+
maxQueueSize?: number;
|
|
403
455
|
method?: string;
|
|
404
456
|
waitUrl?: string;
|
|
405
457
|
waitUrlMethod?: string;
|
|
@@ -646,7 +698,7 @@ declare namespace VoiceResponse {
|
|
|
646
698
|
/**
|
|
647
699
|
* Options to pass to say
|
|
648
700
|
*
|
|
649
|
-
* @property language - Message
|
|
701
|
+
* @property language - Message language
|
|
650
702
|
* @property loop - Times to loop message
|
|
651
703
|
* @property voice - Voice to use
|
|
652
704
|
*/
|
|
@@ -837,12 +889,14 @@ declare namespace VoiceResponse {
|
|
|
837
889
|
* @property language - Language to be used by Dialogflow to transcribe speech
|
|
838
890
|
* @property sentimentAnalysis - Whether sentiment analysis needs to be enabled or not
|
|
839
891
|
* @property statusCallback - URL to post status callbacks from Twilio
|
|
892
|
+
* @property statusCallbackMethod - HTTP method to use when requesting the status callback URL
|
|
840
893
|
*/
|
|
841
894
|
export interface VirtualAgentAttributes {
|
|
842
895
|
connectorName?: string;
|
|
843
896
|
language?: string;
|
|
844
897
|
sentimentAnalysis?: boolean;
|
|
845
898
|
statusCallback?: string;
|
|
899
|
+
statusCallbackMethod?: string;
|
|
846
900
|
}
|
|
847
901
|
|
|
848
902
|
|
|
@@ -885,6 +939,12 @@ declare namespace VoiceResponse {
|
|
|
885
939
|
* @param name - Autopilot assistant sid or unique name
|
|
886
940
|
*/
|
|
887
941
|
autopilot(attributes: object, name: string): void;
|
|
942
|
+
/**
|
|
943
|
+
* <Conversation> TwiML Noun
|
|
944
|
+
*
|
|
945
|
+
* @param attributes - TwiML attributes
|
|
946
|
+
*/
|
|
947
|
+
conversation(attributes?: VoiceResponse.ConversationAttributes): void;
|
|
888
948
|
/**
|
|
889
949
|
* <Room> TwiML Noun
|
|
890
950
|
*
|
|
@@ -909,7 +969,7 @@ declare namespace VoiceResponse {
|
|
|
909
969
|
*
|
|
910
970
|
* @param attributes - TwiML attributes
|
|
911
971
|
*/
|
|
912
|
-
virtualAgent(attributes?: VoiceResponse.VirtualAgentAttributes):
|
|
972
|
+
virtualAgent(attributes?: VoiceResponse.VirtualAgentAttributes): VoiceResponse.VirtualAgent;
|
|
913
973
|
}
|
|
914
974
|
|
|
915
975
|
|
|
@@ -2713,6 +2773,23 @@ declare namespace VoiceResponse {
|
|
|
2713
2773
|
*/
|
|
2714
2774
|
parameter(attributes?: VoiceResponse.ParameterAttributes): void;
|
|
2715
2775
|
}
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
class VirtualAgent {
|
|
2779
|
+
|
|
2780
|
+
/**
|
|
2781
|
+
* <Config> TwiML Noun
|
|
2782
|
+
*
|
|
2783
|
+
* @param attributes - TwiML attributes
|
|
2784
|
+
*/
|
|
2785
|
+
config(attributes?: VoiceResponse.ConfigAttributes): void;
|
|
2786
|
+
/**
|
|
2787
|
+
* <Parameter> TwiML Noun
|
|
2788
|
+
*
|
|
2789
|
+
* @param attributes - TwiML attributes
|
|
2790
|
+
*/
|
|
2791
|
+
parameter(attributes?: VoiceResponse.ParameterAttributes): void;
|
|
2792
|
+
}
|
|
2716
2793
|
}
|
|
2717
2794
|
|
|
2718
2795
|
export = VoiceResponse;
|
|
@@ -114,6 +114,7 @@ VoiceResponse.prototype.echo = function echo(attributes) {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {object} [attributes] - TwiML attributes
|
|
116
116
|
* @param {string} [attributes.action] - Action URL
|
|
117
|
+
* @param {number} [attributes.maxQueueSize] - Maximum size of queue
|
|
117
118
|
* @param {string} [attributes.method] - Action URL method
|
|
118
119
|
* @param {string} [attributes.waitUrl] - Wait URL
|
|
119
120
|
* @param {string} [attributes.waitUrlMethod] - Wait URL method
|
|
@@ -329,7 +330,7 @@ VoiceResponse.prototype.reject = function reject(attributes) {
|
|
|
329
330
|
* @param {object} attributes - TwiML attributes
|
|
330
331
|
* @param {say.voice} [attributes.voice] - Voice to use
|
|
331
332
|
* @param {number} [attributes.loop] - Times to loop message
|
|
332
|
-
* @param {say.language} [attributes.language] - Message
|
|
333
|
+
* @param {say.language} [attributes.language] - Message language
|
|
333
334
|
* @param {string} message - Message to say
|
|
334
335
|
*
|
|
335
336
|
* @returns Say
|
|
@@ -792,7 +793,7 @@ Prompt.prototype.constructor = Prompt;
|
|
|
792
793
|
* @param {object} attributes - TwiML attributes
|
|
793
794
|
* @param {say.voice} [attributes.voice] - Voice to use
|
|
794
795
|
* @param {number} [attributes.loop] - Times to loop message
|
|
795
|
-
* @param {say.language} [attributes.language] - Message
|
|
796
|
+
* @param {say.language} [attributes.language] - Message language
|
|
796
797
|
* @param {string} message - Message to say
|
|
797
798
|
*
|
|
798
799
|
* @returns Say
|
|
@@ -3773,7 +3774,7 @@ Gather.prototype.constructor = Gather;
|
|
|
3773
3774
|
* @param {object} attributes - TwiML attributes
|
|
3774
3775
|
* @param {say.voice} [attributes.voice] - Voice to use
|
|
3775
3776
|
* @param {number} [attributes.loop] - Times to loop message
|
|
3776
|
-
* @param {say.language} [attributes.language] - Message
|
|
3777
|
+
* @param {say.language} [attributes.language] - Message language
|
|
3777
3778
|
* @param {string} message - Message to say
|
|
3778
3779
|
*
|
|
3779
3780
|
* @returns Say
|
|
@@ -4302,6 +4303,8 @@ Connect.prototype.stream = function stream(attributes) {
|
|
|
4302
4303
|
* Whether sentiment analysis needs to be enabled or not
|
|
4303
4304
|
* @param {string} [attributes.statusCallback] -
|
|
4304
4305
|
* URL to post status callbacks from Twilio
|
|
4306
|
+
* @param {string} [attributes.statusCallbackMethod] -
|
|
4307
|
+
* HTTP method to use when requesting the status callback URL
|
|
4305
4308
|
*
|
|
4306
4309
|
* @returns VirtualAgent
|
|
4307
4310
|
*/
|
|
@@ -4310,6 +4313,57 @@ Connect.prototype.virtualAgent = function virtualAgent(attributes) {
|
|
|
4310
4313
|
return new VirtualAgent(this.connect.ele('VirtualAgent', attributes));
|
|
4311
4314
|
};
|
|
4312
4315
|
|
|
4316
|
+
/* jshint ignore:start */
|
|
4317
|
+
/**
|
|
4318
|
+
* <Conversation> TwiML Noun
|
|
4319
|
+
*
|
|
4320
|
+
* @function conversation
|
|
4321
|
+
* @memberof Connect#
|
|
4322
|
+
*
|
|
4323
|
+
* @param {object} [attributes] - TwiML attributes
|
|
4324
|
+
* @param {string} [attributes.serviceInstanceSid] - Service instance Sid
|
|
4325
|
+
* @param {boolean} [attributes.inboundAutocreation] - Inbound autocreation
|
|
4326
|
+
* @param {number} [attributes.routingAssignmentTimeout] -
|
|
4327
|
+
* Routing assignment timeout
|
|
4328
|
+
* @param {number} [attributes.inboundTimeout] - Inbound timeout
|
|
4329
|
+
* @param {conversation.record} [attributes.record] - Record
|
|
4330
|
+
* @param {conversation.trim} [attributes.trim] - Trim
|
|
4331
|
+
* @param {string} [attributes.recordingStatusCallback] -
|
|
4332
|
+
* Recording status callback URL
|
|
4333
|
+
* @param {string} [attributes.recordingStatusCallbackMethod] -
|
|
4334
|
+
* Recording status callback URL method
|
|
4335
|
+
* @param {conversation.recording_event} [attributes.recordingStatusCallbackEvent] -
|
|
4336
|
+
* Recording status callback events
|
|
4337
|
+
* @param {string} [attributes.statusCallback] - Status callback URL
|
|
4338
|
+
* @param {string} [attributes.statusCallbackMethod] - Status callback URL method
|
|
4339
|
+
* @param {conversation.event} [attributes.statusCallbackEvent] -
|
|
4340
|
+
* Events to call status callback URL
|
|
4341
|
+
*
|
|
4342
|
+
* @returns Conversation
|
|
4343
|
+
*/
|
|
4344
|
+
/* jshint ignore:end */
|
|
4345
|
+
Connect.prototype.conversation = function conversation(attributes) {
|
|
4346
|
+
return new Conversation(this.connect.ele('Conversation', attributes));
|
|
4347
|
+
};
|
|
4348
|
+
|
|
4349
|
+
|
|
4350
|
+
/* jshint ignore:start */
|
|
4351
|
+
/**
|
|
4352
|
+
* <Conversation> TwiML Noun
|
|
4353
|
+
*
|
|
4354
|
+
* @constructor Conversation
|
|
4355
|
+
*
|
|
4356
|
+
* @param {object} conversation - <Conversation> TwiML Noun
|
|
4357
|
+
*/
|
|
4358
|
+
/* jshint ignore:end */
|
|
4359
|
+
function Conversation(conversation) {
|
|
4360
|
+
this.conversation = conversation;
|
|
4361
|
+
this._propertyName = 'conversation';
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
Conversation.prototype = Object.create(TwiML.prototype);
|
|
4365
|
+
Conversation.prototype.constructor = Conversation;
|
|
4366
|
+
|
|
4313
4367
|
|
|
4314
4368
|
/* jshint ignore:start */
|
|
4315
4369
|
/**
|
|
@@ -4328,6 +4382,60 @@ function VirtualAgent(virtualAgent) {
|
|
|
4328
4382
|
VirtualAgent.prototype = Object.create(TwiML.prototype);
|
|
4329
4383
|
VirtualAgent.prototype.constructor = VirtualAgent;
|
|
4330
4384
|
|
|
4385
|
+
/* jshint ignore:start */
|
|
4386
|
+
/**
|
|
4387
|
+
* <Config> TwiML Noun
|
|
4388
|
+
*
|
|
4389
|
+
* @function config
|
|
4390
|
+
* @memberof VirtualAgent#
|
|
4391
|
+
*
|
|
4392
|
+
* @param {object} [attributes] - TwiML attributes
|
|
4393
|
+
* @param {string} [attributes.name] - The name of the custom config
|
|
4394
|
+
* @param {string} [attributes.value] - The value of the custom config
|
|
4395
|
+
*
|
|
4396
|
+
* @returns Config
|
|
4397
|
+
*/
|
|
4398
|
+
/* jshint ignore:end */
|
|
4399
|
+
VirtualAgent.prototype.config = function config(attributes) {
|
|
4400
|
+
return new Config(this.virtual_agent.ele('Config', attributes));
|
|
4401
|
+
};
|
|
4402
|
+
|
|
4403
|
+
/* jshint ignore:start */
|
|
4404
|
+
/**
|
|
4405
|
+
* <Parameter> TwiML Noun
|
|
4406
|
+
*
|
|
4407
|
+
* @function parameter
|
|
4408
|
+
* @memberof VirtualAgent#
|
|
4409
|
+
*
|
|
4410
|
+
* @param {object} [attributes] - TwiML attributes
|
|
4411
|
+
* @param {string} [attributes.name] - The name of the custom parameter
|
|
4412
|
+
* @param {string} [attributes.value] - The value of the custom parameter
|
|
4413
|
+
*
|
|
4414
|
+
* @returns Parameter
|
|
4415
|
+
*/
|
|
4416
|
+
/* jshint ignore:end */
|
|
4417
|
+
VirtualAgent.prototype.parameter = function parameter(attributes) {
|
|
4418
|
+
return new Parameter(this.virtual_agent.ele('Parameter', attributes));
|
|
4419
|
+
};
|
|
4420
|
+
|
|
4421
|
+
|
|
4422
|
+
/* jshint ignore:start */
|
|
4423
|
+
/**
|
|
4424
|
+
* <Config> TwiML Noun
|
|
4425
|
+
*
|
|
4426
|
+
* @constructor Config
|
|
4427
|
+
*
|
|
4428
|
+
* @param {object} config - <Config> TwiML Noun
|
|
4429
|
+
*/
|
|
4430
|
+
/* jshint ignore:end */
|
|
4431
|
+
function Config(config) {
|
|
4432
|
+
this.config = config;
|
|
4433
|
+
this._propertyName = 'config';
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
Config.prototype = Object.create(TwiML.prototype);
|
|
4437
|
+
Config.prototype.constructor = Config;
|
|
4438
|
+
|
|
4331
4439
|
|
|
4332
4440
|
/* jshint ignore:start */
|
|
4333
4441
|
/**
|