twilio 3.23.0 → 3.25.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/CHANGES.md +55 -0
- package/lib/rest/Api.d.ts +2 -0
- package/lib/rest/Api.js +9 -0
- package/lib/rest/Authy.js +5 -5
- package/lib/rest/Preview.d.ts +0 -2
- package/lib/rest/Preview.js +12 -23
- package/lib/rest/Twilio.d.ts +1 -0
- package/lib/rest/Twilio.js +9 -0
- package/lib/rest/Video.js +8 -8
- package/lib/rest/api/V2010.d.ts +3 -0
- package/lib/rest/api/V2010.js +9 -0
- package/lib/rest/api/v2010/account/balance.d.ts +87 -0
- package/lib/rest/api/v2010/account/balance.js +162 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -1
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +3 -3
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +3 -3
- 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/api/v2010/account.d.ts +8 -0
- package/lib/rest/api/v2010/account.js +25 -0
- package/lib/rest/authy/V1.d.ts +1 -1
- package/lib/rest/authy/V1.js +8 -8
- package/lib/rest/authy/v1/form.d.ts +13 -13
- package/lib/rest/authy/v1/form.js +17 -17
- package/lib/rest/authy/v1/service/entity/factor/challenge.d.ts +12 -13
- package/lib/rest/authy/v1/service/entity/factor/challenge.js +4 -6
- package/lib/rest/authy/v1/service/entity/factor.d.ts +9 -9
- package/lib/rest/authy/v1/service/entity/factor.js +7 -9
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +9 -5
- package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/fieldType.js +8 -5
- package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/modelBuild.js +8 -5
- package/lib/rest/autopilot/v1/assistant/query.d.ts +17 -17
- package/lib/rest/autopilot/v1/assistant/query.js +24 -18
- package/lib/rest/autopilot/v1/assistant/task/field.d.ts +11 -11
- package/lib/rest/autopilot/v1/assistant/task/field.js +15 -11
- package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +18 -18
- package/lib/rest/autopilot/v1/assistant/task/sample.js +23 -21
- package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +2 -2
- package/lib/rest/autopilot/v1/assistant/task/taskActions.js +4 -3
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +6 -6
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +7 -6
- package/lib/rest/autopilot/v1/assistant/task.d.ts +10 -10
- package/lib/rest/autopilot/v1/assistant/task.js +21 -12
- package/lib/rest/autopilot/v1/assistant.d.ts +15 -15
- package/lib/rest/autopilot/v1/assistant.js +25 -20
- package/lib/rest/chat/v2/service/channel/member.d.ts +7 -0
- package/lib/rest/chat/v2/service/channel/member.js +13 -2
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +7 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.js +13 -2
- package/lib/rest/preview/Marketplace.d.ts +1 -1
- package/lib/rest/preview/Marketplace.js +9 -9
- package/lib/rest/proxy/v1/service.d.ts +7 -0
- package/lib/rest/proxy/v1/service.js +13 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +10 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +24 -5
- package/lib/rest/sync/v1/service/syncList.d.ts +6 -2
- package/lib/rest/sync/v1/service/syncList.js +12 -5
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +10 -2
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +24 -6
- package/lib/rest/sync/v1/service/syncMap.d.ts +6 -2
- package/lib/rest/sync/v1/service/syncMap.js +12 -5
- package/lib/rest/verify/v1/service/verification.d.ts +4 -0
- package/lib/rest/verify/v1/service/verification.js +5 -1
- package/lib/rest/video/V1.d.ts +1 -1
- package/lib/rest/video/V1.js +10 -10
- package/lib/twiml/VoiceResponse.d.ts +124 -0
- package/lib/twiml/VoiceResponse.js +960 -0
- package/package.json +1 -1
- package/lib/rest/preview/Authy.d.ts +0 -27
- package/lib/rest/preview/Authy.js +0 -44
- package/lib/rest/preview/authy/service/entity.d.ts +0 -250
- package/lib/rest/preview/authy/service/entity.js +0 -514
- package/lib/rest/preview/authy/service.d.ts +0 -275
- package/lib/rest/preview/authy/service.js +0 -578
|
@@ -62,7 +62,7 @@ SampleList = function SampleList(version, assistantSid, taskSid) {
|
|
|
62
62
|
*
|
|
63
63
|
* @param {object} [opts] - Options for request
|
|
64
64
|
* @param {string} [opts.language] -
|
|
65
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
65
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
66
66
|
* @param {number} [opts.limit] -
|
|
67
67
|
* Upper limit for the number of records to return.
|
|
68
68
|
* each() guarantees never to return more than limit.
|
|
@@ -149,7 +149,7 @@ SampleList = function SampleList(version, assistantSid, taskSid) {
|
|
|
149
149
|
*
|
|
150
150
|
* @param {object} [opts] - Options for request
|
|
151
151
|
* @param {string} [opts.language] -
|
|
152
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
152
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
153
153
|
* @param {number} [opts.limit] -
|
|
154
154
|
* Upper limit for the number of records to return.
|
|
155
155
|
* list() guarantees never to return more than limit.
|
|
@@ -206,7 +206,7 @@ SampleList = function SampleList(version, assistantSid, taskSid) {
|
|
|
206
206
|
*
|
|
207
207
|
* @param {object} [opts] - Options for request
|
|
208
208
|
* @param {string} [opts.language] -
|
|
209
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
209
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
210
210
|
* @param {string} [opts.pageToken] - PageToken provided by the API
|
|
211
211
|
* @param {number} [opts.pageNumber] -
|
|
212
212
|
* Page Number, this value is simply for client state
|
|
@@ -287,11 +287,11 @@ SampleList = function SampleList(version, assistantSid, taskSid) {
|
|
|
287
287
|
*
|
|
288
288
|
* @param {object} opts - Options for request
|
|
289
289
|
* @param {string} opts.language -
|
|
290
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
290
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
291
291
|
* @param {string} opts.taggedText -
|
|
292
|
-
* The text example of how end-users may express this task. The sample may contain Field tag blocks.
|
|
292
|
+
* The text example of how end-users may express this task. The sample may contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
|
|
293
293
|
* @param {string} [opts.sourceChannel] -
|
|
294
|
-
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included the value will be null
|
|
294
|
+
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included, the value will be `null`
|
|
295
295
|
* @param {function} [callback] - Callback to handle processed record
|
|
296
296
|
*
|
|
297
297
|
* @returns {Promise} Resolves to processed SampleInstance
|
|
@@ -342,7 +342,8 @@ SampleList = function SampleList(version, assistantSid, taskSid) {
|
|
|
342
342
|
/**
|
|
343
343
|
* Constructs a sample
|
|
344
344
|
*
|
|
345
|
-
* @param {string} sid -
|
|
345
|
+
* @param {string} sid -
|
|
346
|
+
* A 34-character string that uniquely identifies this resource.
|
|
346
347
|
*
|
|
347
348
|
* @returns {Twilio.Autopilot.V1.AssistantContext.TaskContext.SampleContext}
|
|
348
349
|
*/
|
|
@@ -406,21 +407,21 @@ SamplePage.prototype.getInstance = function getInstance(payload) {
|
|
|
406
407
|
* @property {string} taskSid -
|
|
407
408
|
* The unique ID of the Task associated with this Sample.
|
|
408
409
|
* @property {string} language -
|
|
409
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
410
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
410
411
|
* @property {string} assistantSid - The unique ID of the Assistant.
|
|
411
412
|
* @property {string} sid -
|
|
412
|
-
* A 34
|
|
413
|
+
* A 34-character string that uniquely identifies this resource.
|
|
413
414
|
* @property {string} taggedText -
|
|
414
|
-
* The text example of how end-users may express this task. The sample may contain Field tag blocks.
|
|
415
|
+
* The text example of how end-users may express this task. The sample may contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
|
|
415
416
|
* @property {string} url - The url
|
|
416
417
|
* @property {string} sourceChannel -
|
|
417
|
-
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included the value will be null
|
|
418
|
+
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included, the value will be `null`
|
|
418
419
|
*
|
|
419
420
|
* @param {V1} version - Version of the resource
|
|
420
421
|
* @param {SamplePayload} payload - The instance payload
|
|
421
422
|
* @param {sid} assistantSid - The unique ID of the Assistant.
|
|
422
423
|
* @param {sid} taskSid - The unique ID of the Task associated with this Sample.
|
|
423
|
-
* @param {sid} sid -
|
|
424
|
+
* @param {sid} sid - A 34-character string that uniquely identifies this resource.
|
|
424
425
|
*/
|
|
425
426
|
/* jshint ignore:end */
|
|
426
427
|
SampleInstance = function SampleInstance(version, payload, assistantSid,
|
|
@@ -479,11 +480,11 @@ SampleInstance.prototype.fetch = function fetch(callback) {
|
|
|
479
480
|
*
|
|
480
481
|
* @param {object} [opts] - Options for request
|
|
481
482
|
* @param {string} [opts.language] -
|
|
482
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
483
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
483
484
|
* @param {string} [opts.taggedText] -
|
|
484
|
-
* The text example of how end-users may express this task. The sample may contain Field tag blocks.
|
|
485
|
+
* The text example of how end-users may express this task. The sample may contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
|
|
485
486
|
* @param {string} [opts.sourceChannel] -
|
|
486
|
-
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included the value will be null
|
|
487
|
+
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included, the value will be `null`
|
|
487
488
|
* @param {function} [callback] - Callback to handle processed record
|
|
488
489
|
*
|
|
489
490
|
* @returns {Promise} Resolves to processed SampleInstance
|
|
@@ -530,9 +531,10 @@ SampleInstance.prototype.toJSON = function toJSON() {
|
|
|
530
531
|
* Initialize the SampleContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
531
532
|
*
|
|
532
533
|
* @param {V1} version - Version of the resource
|
|
533
|
-
* @param {sid_like} assistantSid - The
|
|
534
|
-
* @param {sid_like} taskSid -
|
|
535
|
-
*
|
|
534
|
+
* @param {sid_like} assistantSid - The unique ID of the Assistant.
|
|
535
|
+
* @param {sid_like} taskSid -
|
|
536
|
+
* The unique ID of the Task associated with this Sample.
|
|
537
|
+
* @param {sid} sid - A 34-character string that uniquely identifies this resource.
|
|
536
538
|
*/
|
|
537
539
|
/* jshint ignore:end */
|
|
538
540
|
SampleContext = function SampleContext(version, assistantSid, taskSid, sid) {
|
|
@@ -585,11 +587,11 @@ SampleContext.prototype.fetch = function fetch(callback) {
|
|
|
585
587
|
*
|
|
586
588
|
* @param {object} [opts] - Options for request
|
|
587
589
|
* @param {string} [opts.language] -
|
|
588
|
-
* An ISO language-country string that specifies the language used for this sample. For example: en-US
|
|
590
|
+
* An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
|
|
589
591
|
* @param {string} [opts.taggedText] -
|
|
590
|
-
* The text example of how end-users may express this task. The sample may contain Field tag blocks.
|
|
592
|
+
* The text example of how end-users may express this task. The sample may contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
|
|
591
593
|
* @param {string} [opts.sourceChannel] -
|
|
592
|
-
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included the value will be null
|
|
594
|
+
* The communication channel from which the sample was captured. It can be: voice, sms, chat, alexa, google-assistant, or slack. If not included, the value will be `null`
|
|
593
595
|
* @param {function} [callback] - Callback to handle processed record
|
|
594
596
|
*
|
|
595
597
|
* @returns {Promise} Resolves to processed SampleInstance
|
|
@@ -24,7 +24,7 @@ declare function TaskActionsList(version: V1, assistantSid: string, taskSid: str
|
|
|
24
24
|
/**
|
|
25
25
|
* Options to pass to update
|
|
26
26
|
*
|
|
27
|
-
* @property actions - The JSON actions that instruct the Assistant how to perform this task.
|
|
27
|
+
* @property actions - The JSON [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
|
|
28
28
|
*/
|
|
29
29
|
interface TaskActionsInstanceUpdateOptions {
|
|
30
30
|
actions?: string;
|
|
@@ -92,7 +92,7 @@ declare class TaskActionsInstance extends SerializableClass {
|
|
|
92
92
|
* @property assistantSid - The unique ID of the parent Assistant.
|
|
93
93
|
* @property taskSid - The unique ID of the Task.
|
|
94
94
|
* @property url - The url
|
|
95
|
-
* @property data - The
|
|
95
|
+
* @property data - The JSON [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
|
|
96
96
|
*
|
|
97
97
|
* @param version - Version of the resource
|
|
98
98
|
* @param payload - The instance payload
|
|
@@ -110,7 +110,8 @@ TaskActionsPage.prototype.getInstance = function getInstance(payload) {
|
|
|
110
110
|
* @property {string} assistantSid - The unique ID of the parent Assistant.
|
|
111
111
|
* @property {string} taskSid - The unique ID of the Task.
|
|
112
112
|
* @property {string} url - The url
|
|
113
|
-
* @property {string} data -
|
|
113
|
+
* @property {string} data -
|
|
114
|
+
* The JSON [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
|
|
114
115
|
*
|
|
115
116
|
* @param {V1} version - Version of the resource
|
|
116
117
|
* @param {TaskActionsPayload} payload - The instance payload
|
|
@@ -168,7 +169,7 @@ TaskActionsInstance.prototype.fetch = function fetch(callback) {
|
|
|
168
169
|
*
|
|
169
170
|
* @param {object} [opts] - Options for request
|
|
170
171
|
* @param {string} [opts.actions] -
|
|
171
|
-
* The JSON actions that instruct the Assistant how to perform this task.
|
|
172
|
+
* The JSON [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
|
|
172
173
|
* @param {function} [callback] - Callback to handle processed record
|
|
173
174
|
*
|
|
174
175
|
* @returns {Promise} Resolves to processed TaskActionsInstance
|
|
@@ -256,7 +257,7 @@ TaskActionsContext.prototype.fetch = function fetch(callback) {
|
|
|
256
257
|
*
|
|
257
258
|
* @param {object} [opts] - Options for request
|
|
258
259
|
* @param {string} [opts.actions] -
|
|
259
|
-
* The JSON actions that instruct the Assistant how to perform this task.
|
|
260
|
+
* The JSON [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
|
|
260
261
|
* @param {function} [callback] - Callback to handle processed record
|
|
261
262
|
*
|
|
262
263
|
* @returns {Promise} Resolves to processed TaskActionsInstance
|
|
@@ -15,7 +15,7 @@ import { SerializableClass } from '../../../../../interfaces';
|
|
|
15
15
|
* PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
16
16
|
*
|
|
17
17
|
* @param version - Version of the resource
|
|
18
|
-
* @param assistantSid - The unique ID of the
|
|
18
|
+
* @param assistantSid - The unique ID of the Assistant.
|
|
19
19
|
* @param taskSid - The unique ID of the Task associated with this Field.
|
|
20
20
|
*/
|
|
21
21
|
declare function TaskStatisticsList(version: V1, assistantSid: string, taskSid: string): TaskStatisticsListInstance;
|
|
@@ -54,8 +54,8 @@ declare class TaskStatisticsContext {
|
|
|
54
54
|
* Initialize the TaskStatisticsContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
55
55
|
*
|
|
56
56
|
* @param version - Version of the resource
|
|
57
|
-
* @param assistantSid - The
|
|
58
|
-
* @param taskSid - The
|
|
57
|
+
* @param assistantSid - The unique ID of the Assistant.
|
|
58
|
+
* @param taskSid - The unique ID of the Task associated with this Field.
|
|
59
59
|
*/
|
|
60
60
|
constructor(version: V1, assistantSid: string, taskSid: string);
|
|
61
61
|
|
|
@@ -72,8 +72,8 @@ declare class TaskStatisticsInstance extends SerializableClass {
|
|
|
72
72
|
/**
|
|
73
73
|
* Initialize the TaskStatisticsContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
74
74
|
*
|
|
75
|
-
* @property accountSid - The unique ID of the Account that created this
|
|
76
|
-
* @property assistantSid - The unique ID of the
|
|
75
|
+
* @property accountSid - The unique ID of the Account that created this resource.
|
|
76
|
+
* @property assistantSid - The unique ID of the Assistant.
|
|
77
77
|
* @property taskSid - The unique ID of the Task associated with this Field.
|
|
78
78
|
* @property samplesCount - The total number of Samples associated with this Task.
|
|
79
79
|
* @property fieldsCount - The total number of Fields associated with this Task.
|
|
@@ -81,7 +81,7 @@ declare class TaskStatisticsInstance extends SerializableClass {
|
|
|
81
81
|
*
|
|
82
82
|
* @param version - Version of the resource
|
|
83
83
|
* @param payload - The instance payload
|
|
84
|
-
* @param assistantSid - The unique ID of the
|
|
84
|
+
* @param assistantSid - The unique ID of the Assistant.
|
|
85
85
|
* @param taskSid - The unique ID of the Task associated with this Field.
|
|
86
86
|
*/
|
|
87
87
|
constructor(version: V1, payload: TaskStatisticsPayload, assistantSid: string, taskSid: string);
|
|
@@ -27,7 +27,7 @@ var TaskStatisticsContext;
|
|
|
27
27
|
* PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
28
28
|
*
|
|
29
29
|
* @param {Twilio.Autopilot.V1} version - Version of the resource
|
|
30
|
-
* @param {string} assistantSid - The unique ID of the
|
|
30
|
+
* @param {string} assistantSid - The unique ID of the Assistant.
|
|
31
31
|
* @param {string} taskSid - The unique ID of the Task associated with this Field.
|
|
32
32
|
*/
|
|
33
33
|
/* jshint ignore:end */
|
|
@@ -111,8 +111,8 @@ TaskStatisticsPage.prototype.getInstance = function getInstance(payload) {
|
|
|
111
111
|
* Initialize the TaskStatisticsContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
112
112
|
*
|
|
113
113
|
* @property {string} accountSid -
|
|
114
|
-
* The unique ID of the Account that created this
|
|
115
|
-
* @property {string} assistantSid - The unique ID of the
|
|
114
|
+
* The unique ID of the Account that created this resource.
|
|
115
|
+
* @property {string} assistantSid - The unique ID of the Assistant.
|
|
116
116
|
* @property {string} taskSid -
|
|
117
117
|
* The unique ID of the Task associated with this Field.
|
|
118
118
|
* @property {number} samplesCount -
|
|
@@ -123,7 +123,7 @@ TaskStatisticsPage.prototype.getInstance = function getInstance(payload) {
|
|
|
123
123
|
*
|
|
124
124
|
* @param {V1} version - Version of the resource
|
|
125
125
|
* @param {TaskStatisticsPayload} payload - The instance payload
|
|
126
|
-
* @param {sid} assistantSid - The unique ID of the
|
|
126
|
+
* @param {sid} assistantSid - The unique ID of the Assistant.
|
|
127
127
|
* @param {sid} taskSid - The unique ID of the Task associated with this Field.
|
|
128
128
|
*/
|
|
129
129
|
/* jshint ignore:end */
|
|
@@ -197,8 +197,9 @@ TaskStatisticsInstance.prototype.toJSON = function toJSON() {
|
|
|
197
197
|
* Initialize the TaskStatisticsContextPLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
198
198
|
*
|
|
199
199
|
* @param {V1} version - Version of the resource
|
|
200
|
-
* @param {sid_like} assistantSid - The
|
|
201
|
-
* @param {sid_like} taskSid -
|
|
200
|
+
* @param {sid_like} assistantSid - The unique ID of the Assistant.
|
|
201
|
+
* @param {sid_like} taskSid -
|
|
202
|
+
* The unique ID of the Task associated with this Field.
|
|
202
203
|
*/
|
|
203
204
|
/* jshint ignore:end */
|
|
204
205
|
TaskStatisticsContext = function TaskStatisticsContext(version, assistantSid,
|
|
@@ -31,8 +31,8 @@ declare function TaskList(version: V1, assistantSid: string): TaskListInstance;
|
|
|
31
31
|
/**
|
|
32
32
|
* Options to pass to update
|
|
33
33
|
*
|
|
34
|
-
* @property actions -
|
|
35
|
-
* @property actionsUrl -
|
|
34
|
+
* @property actions - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
|
|
35
|
+
* @property actionsUrl - User-provided HTTP endpoint where the assistant can fetch actions.
|
|
36
36
|
* @property friendlyName - A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
|
|
37
37
|
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
38
38
|
*/
|
|
@@ -72,7 +72,7 @@ interface TaskListInstance {
|
|
|
72
72
|
/**
|
|
73
73
|
* Constructs a task
|
|
74
74
|
*
|
|
75
|
-
* @param sid -
|
|
75
|
+
* @param sid - A 34-character string that uniquely identifies this resource.
|
|
76
76
|
*/
|
|
77
77
|
get(sid: string): TaskContext;
|
|
78
78
|
/**
|
|
@@ -109,8 +109,8 @@ interface TaskListInstance {
|
|
|
109
109
|
/**
|
|
110
110
|
* Options to pass to create
|
|
111
111
|
*
|
|
112
|
-
* @property actions -
|
|
113
|
-
* @property actionsUrl -
|
|
112
|
+
* @property actions - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
|
|
113
|
+
* @property actionsUrl - User-provided HTTP endpoint where the assistant can fetch actions.
|
|
114
114
|
* @property friendlyName - A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
|
|
115
115
|
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
116
116
|
*/
|
|
@@ -209,8 +209,8 @@ declare class TaskContext {
|
|
|
209
209
|
* @property statistics - statistics resource
|
|
210
210
|
*
|
|
211
211
|
* @param version - Version of the resource
|
|
212
|
-
* @param assistantSid - The
|
|
213
|
-
* @param sid -
|
|
212
|
+
* @param assistantSid - The unique ID of the Assistant.
|
|
213
|
+
* @param sid - A 34-character string that uniquely identifies this resource.
|
|
214
214
|
*/
|
|
215
215
|
constructor(version: V1, assistantSid: string, sid: string);
|
|
216
216
|
|
|
@@ -250,15 +250,15 @@ declare class TaskInstance extends SerializableClass {
|
|
|
250
250
|
* @property friendlyName - A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
|
|
251
251
|
* @property links - The links
|
|
252
252
|
* @property assistantSid - The unique ID of the Assistant.
|
|
253
|
-
* @property sid - A 34
|
|
253
|
+
* @property sid - A 34-character string that uniquely identifies this resource.
|
|
254
254
|
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
255
|
-
* @property actionsUrl -
|
|
255
|
+
* @property actionsUrl - A user-provided HTTP endpoint where the assistant can fetch actions.
|
|
256
256
|
* @property url - The url
|
|
257
257
|
*
|
|
258
258
|
* @param version - Version of the resource
|
|
259
259
|
* @param payload - The instance payload
|
|
260
260
|
* @param assistantSid - The unique ID of the Assistant.
|
|
261
|
-
* @param sid -
|
|
261
|
+
* @param sid - A 34-character string that uniquely identifies this resource.
|
|
262
262
|
*/
|
|
263
263
|
constructor(version: V1, payload: TaskPayload, assistantSid: string, sid: string);
|
|
264
264
|
|
|
@@ -287,8 +287,10 @@ TaskList = function TaskList(version, assistantSid) {
|
|
|
287
287
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
288
288
|
* @param {string} [opts.friendlyName] -
|
|
289
289
|
* A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
|
|
290
|
-
* @param {string} [opts.actions] -
|
|
291
|
-
*
|
|
290
|
+
* @param {string} [opts.actions] -
|
|
291
|
+
* A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
|
|
292
|
+
* @param {string} [opts.actionsUrl] -
|
|
293
|
+
* User-provided HTTP endpoint where the assistant can fetch actions.
|
|
292
294
|
* @param {function} [callback] - Callback to handle processed record
|
|
293
295
|
*
|
|
294
296
|
* @returns {Promise} Resolves to processed TaskInstance
|
|
@@ -336,7 +338,8 @@ TaskList = function TaskList(version, assistantSid) {
|
|
|
336
338
|
/**
|
|
337
339
|
* Constructs a task
|
|
338
340
|
*
|
|
339
|
-
* @param {string} sid -
|
|
341
|
+
* @param {string} sid -
|
|
342
|
+
* A 34-character string that uniquely identifies this resource.
|
|
340
343
|
*
|
|
341
344
|
* @returns {Twilio.Autopilot.V1.AssistantContext.TaskContext}
|
|
342
345
|
*/
|
|
@@ -397,17 +400,18 @@ TaskPage.prototype.getInstance = function getInstance(payload) {
|
|
|
397
400
|
* @property {string} links - The links
|
|
398
401
|
* @property {string} assistantSid - The unique ID of the Assistant.
|
|
399
402
|
* @property {string} sid -
|
|
400
|
-
* A 34
|
|
403
|
+
* A 34-character string that uniquely identifies this resource.
|
|
401
404
|
* @property {string} uniqueName -
|
|
402
405
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
403
406
|
* @property {string} actionsUrl -
|
|
404
|
-
*
|
|
407
|
+
* A user-provided HTTP endpoint where the assistant can fetch actions.
|
|
405
408
|
* @property {string} url - The url
|
|
406
409
|
*
|
|
407
410
|
* @param {V1} version - Version of the resource
|
|
408
411
|
* @param {TaskPayload} payload - The instance payload
|
|
409
412
|
* @param {sid} assistantSid - The unique ID of the Assistant.
|
|
410
|
-
* @param {sid_like} sid -
|
|
413
|
+
* @param {sid_like} sid -
|
|
414
|
+
* A 34-character string that uniquely identifies this resource.
|
|
411
415
|
*/
|
|
412
416
|
/* jshint ignore:end */
|
|
413
417
|
TaskInstance = function TaskInstance(version, payload, assistantSid, sid) {
|
|
@@ -463,8 +467,10 @@ TaskInstance.prototype.fetch = function fetch(callback) {
|
|
|
463
467
|
* A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
|
|
464
468
|
* @param {string} [opts.uniqueName] -
|
|
465
469
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
466
|
-
* @param {string} [opts.actions] -
|
|
467
|
-
*
|
|
470
|
+
* @param {string} [opts.actions] -
|
|
471
|
+
* A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
|
|
472
|
+
* @param {string} [opts.actionsUrl] -
|
|
473
|
+
* User-provided HTTP endpoint where the assistant can fetch actions.
|
|
468
474
|
* @param {function} [callback] - Callback to handle processed record
|
|
469
475
|
*
|
|
470
476
|
* @returns {Promise} Resolves to processed TaskInstance
|
|
@@ -564,8 +570,9 @@ TaskInstance.prototype.toJSON = function toJSON() {
|
|
|
564
570
|
* statistics resource
|
|
565
571
|
*
|
|
566
572
|
* @param {V1} version - Version of the resource
|
|
567
|
-
* @param {sid_like} assistantSid - The
|
|
568
|
-
* @param {sid_like} sid -
|
|
573
|
+
* @param {sid_like} assistantSid - The unique ID of the Assistant.
|
|
574
|
+
* @param {sid_like} sid -
|
|
575
|
+
* A 34-character string that uniquely identifies this resource.
|
|
569
576
|
*/
|
|
570
577
|
/* jshint ignore:end */
|
|
571
578
|
TaskContext = function TaskContext(version, assistantSid, sid) {
|
|
@@ -626,8 +633,10 @@ TaskContext.prototype.fetch = function fetch(callback) {
|
|
|
626
633
|
* A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
|
|
627
634
|
* @param {string} [opts.uniqueName] -
|
|
628
635
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
629
|
-
* @param {string} [opts.actions] -
|
|
630
|
-
*
|
|
636
|
+
* @param {string} [opts.actions] -
|
|
637
|
+
* A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
|
|
638
|
+
* @param {string} [opts.actionsUrl] -
|
|
639
|
+
* User-provided HTTP endpoint where the assistant can fetch actions.
|
|
631
640
|
* @param {function} [callback] - Callback to handle processed record
|
|
632
641
|
*
|
|
633
642
|
* @returns {Promise} Resolves to processed TaskInstance
|
|
@@ -36,12 +36,12 @@ declare function AssistantList(version: V1): AssistantListInstance;
|
|
|
36
36
|
/**
|
|
37
37
|
* Options to pass to update
|
|
38
38
|
*
|
|
39
|
-
* @property callbackEvents -
|
|
39
|
+
* @property callbackEvents - A space-separated list of callback events that will trigger callbacks
|
|
40
40
|
* @property callbackUrl - The callback_url
|
|
41
|
-
* @property defaults - A JSON object that defines the assistant's default tasks for various scenarios
|
|
41
|
+
* @property defaults - A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
|
|
42
42
|
* @property friendlyName - A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
43
|
-
* @property logQueries - A boolean that specifies whether queries should be logged for 30 days
|
|
44
|
-
* @property styleSheet - A JSON object that defines the assistant style sheet
|
|
43
|
+
* @property logQueries - A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
|
|
44
|
+
* @property styleSheet - A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
|
|
45
45
|
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
46
46
|
*/
|
|
47
47
|
interface AssistantInstanceUpdateOptions {
|
|
@@ -83,7 +83,7 @@ interface AssistantListInstance {
|
|
|
83
83
|
/**
|
|
84
84
|
* Constructs a assistant
|
|
85
85
|
*
|
|
86
|
-
* @param sid -
|
|
86
|
+
* @param sid - A 34-character string that uniquely identifies this resource.
|
|
87
87
|
*/
|
|
88
88
|
get(sid: string): AssistantContext;
|
|
89
89
|
/**
|
|
@@ -120,12 +120,12 @@ interface AssistantListInstance {
|
|
|
120
120
|
/**
|
|
121
121
|
* Options to pass to create
|
|
122
122
|
*
|
|
123
|
-
* @property callbackEvents -
|
|
123
|
+
* @property callbackEvents - A space-separated list of callback events that will trigger callbacks
|
|
124
124
|
* @property callbackUrl - The callback_url
|
|
125
|
-
* @property defaults - A JSON object that defines the assistant's default tasks for various scenarios
|
|
125
|
+
* @property defaults - A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
|
|
126
126
|
* @property friendlyName - A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
127
|
-
* @property logQueries - A boolean that specifies whether queries should be logged for 30 days
|
|
128
|
-
* @property styleSheet - A JSON object that defines the assistant style sheet
|
|
127
|
+
* @property logQueries - A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
|
|
128
|
+
* @property styleSheet - A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
|
|
129
129
|
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
130
130
|
*/
|
|
131
131
|
interface AssistantListInstanceCreateOptions {
|
|
@@ -230,7 +230,7 @@ declare class AssistantContext {
|
|
|
230
230
|
* @property dialogues - dialogues resource
|
|
231
231
|
*
|
|
232
232
|
* @param version - Version of the resource
|
|
233
|
-
* @param sid -
|
|
233
|
+
* @param sid - A 34-character string that uniquely identifies this resource.
|
|
234
234
|
*/
|
|
235
235
|
constructor(version: V1, sid: string);
|
|
236
236
|
|
|
@@ -271,18 +271,18 @@ declare class AssistantInstance extends SerializableClass {
|
|
|
271
271
|
* @property dateCreated - The date that this resource was created
|
|
272
272
|
* @property dateUpdated - The date that this resource was last updated
|
|
273
273
|
* @property friendlyName - A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
274
|
-
* @property latestModelBuildSid - The
|
|
274
|
+
* @property latestModelBuildSid - The latest_model_build_sid
|
|
275
275
|
* @property links - The links
|
|
276
|
-
* @property logQueries - A boolean that specifies whether queries should be logged for 30 days
|
|
277
|
-
* @property sid - A 34
|
|
278
|
-
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid.
|
|
276
|
+
* @property logQueries - A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter.
|
|
277
|
+
* @property sid - A 34-character string that uniquely identifies this resource.
|
|
278
|
+
* @property uniqueName - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
279
279
|
* @property url - The url
|
|
280
280
|
* @property callbackUrl - The callback_url
|
|
281
281
|
* @property callbackEvents - The callback_events
|
|
282
282
|
*
|
|
283
283
|
* @param version - Version of the resource
|
|
284
284
|
* @param payload - The instance payload
|
|
285
|
-
* @param sid -
|
|
285
|
+
* @param sid - A 34-character string that uniquely identifies this resource.
|
|
286
286
|
*/
|
|
287
287
|
constructor(version: V1, payload: AssistantPayload, sid: string);
|
|
288
288
|
|
|
@@ -288,15 +288,16 @@ AssistantList = function AssistantList(version) {
|
|
|
288
288
|
* @param {string} [opts.friendlyName] -
|
|
289
289
|
* A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
290
290
|
* @param {boolean} [opts.logQueries] -
|
|
291
|
-
* A boolean that specifies whether queries should be logged for 30 days
|
|
291
|
+
* A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
|
|
292
292
|
* @param {string} [opts.uniqueName] -
|
|
293
293
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
294
294
|
* @param {string} [opts.callbackUrl] - The callback_url
|
|
295
|
-
* @param {string} [opts.callbackEvents] -
|
|
295
|
+
* @param {string} [opts.callbackEvents] -
|
|
296
|
+
* A space-separated list of callback events that will trigger callbacks
|
|
296
297
|
* @param {string} [opts.styleSheet] -
|
|
297
|
-
* A JSON object that defines the assistant style sheet
|
|
298
|
+
* A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
|
|
298
299
|
* @param {string} [opts.defaults] -
|
|
299
|
-
* A JSON object that defines the assistant's default tasks for various scenarios
|
|
300
|
+
* A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
|
|
300
301
|
* @param {function} [callback] - Callback to handle processed record
|
|
301
302
|
*
|
|
302
303
|
* @returns {Promise} Resolves to processed AssistantInstance
|
|
@@ -341,7 +342,8 @@ AssistantList = function AssistantList(version) {
|
|
|
341
342
|
/**
|
|
342
343
|
* Constructs a assistant
|
|
343
344
|
*
|
|
344
|
-
* @param {string} sid -
|
|
345
|
+
* @param {string} sid -
|
|
346
|
+
* A 34-character string that uniquely identifies this resource.
|
|
345
347
|
*
|
|
346
348
|
* @returns {Twilio.Autopilot.V1.AssistantContext}
|
|
347
349
|
*/
|
|
@@ -399,22 +401,22 @@ AssistantPage.prototype.getInstance = function getInstance(payload) {
|
|
|
399
401
|
* @property {Date} dateUpdated - The date that this resource was last updated
|
|
400
402
|
* @property {string} friendlyName -
|
|
401
403
|
* A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
402
|
-
* @property {string} latestModelBuildSid -
|
|
403
|
-
* The unique ID (Sid) of the latest model build. Null if no model has been built.
|
|
404
|
+
* @property {string} latestModelBuildSid - The latest_model_build_sid
|
|
404
405
|
* @property {string} links - The links
|
|
405
406
|
* @property {boolean} logQueries -
|
|
406
|
-
* A boolean that specifies whether queries should be logged for 30 days
|
|
407
|
+
* A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter.
|
|
407
408
|
* @property {string} sid -
|
|
408
|
-
* A 34
|
|
409
|
+
* A 34-character string that uniquely identifies this resource.
|
|
409
410
|
* @property {string} uniqueName -
|
|
410
|
-
* A user-provided string that uniquely identifies this resource as an alternative to the sid.
|
|
411
|
+
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
411
412
|
* @property {string} url - The url
|
|
412
413
|
* @property {string} callbackUrl - The callback_url
|
|
413
414
|
* @property {string} callbackEvents - The callback_events
|
|
414
415
|
*
|
|
415
416
|
* @param {V1} version - Version of the resource
|
|
416
417
|
* @param {AssistantPayload} payload - The instance payload
|
|
417
|
-
* @param {sid_like} sid -
|
|
418
|
+
* @param {sid_like} sid -
|
|
419
|
+
* A 34-character string that uniquely identifies this resource.
|
|
418
420
|
*/
|
|
419
421
|
/* jshint ignore:end */
|
|
420
422
|
AssistantInstance = function AssistantInstance(version, payload, sid) {
|
|
@@ -471,15 +473,16 @@ AssistantInstance.prototype.fetch = function fetch(callback) {
|
|
|
471
473
|
* @param {string} [opts.friendlyName] -
|
|
472
474
|
* A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
473
475
|
* @param {boolean} [opts.logQueries] -
|
|
474
|
-
* A boolean that specifies whether queries should be logged for 30 days
|
|
476
|
+
* A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
|
|
475
477
|
* @param {string} [opts.uniqueName] -
|
|
476
478
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
477
479
|
* @param {string} [opts.callbackUrl] - The callback_url
|
|
478
|
-
* @param {string} [opts.callbackEvents] -
|
|
480
|
+
* @param {string} [opts.callbackEvents] -
|
|
481
|
+
* A space-separated list of callback events that will trigger callbacks
|
|
479
482
|
* @param {string} [opts.styleSheet] -
|
|
480
|
-
* A JSON object that defines the assistant style sheet
|
|
483
|
+
* A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
|
|
481
484
|
* @param {string} [opts.defaults] -
|
|
482
|
-
* A JSON object that defines the assistant's default tasks for various scenarios
|
|
485
|
+
* A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
|
|
483
486
|
* @param {function} [callback] - Callback to handle processed record
|
|
484
487
|
*
|
|
485
488
|
* @returns {Promise} Resolves to processed AssistantInstance
|
|
@@ -617,7 +620,8 @@ AssistantInstance.prototype.toJSON = function toJSON() {
|
|
|
617
620
|
* dialogues resource
|
|
618
621
|
*
|
|
619
622
|
* @param {V1} version - Version of the resource
|
|
620
|
-
* @param {sid_like} sid -
|
|
623
|
+
* @param {sid_like} sid -
|
|
624
|
+
* A 34-character string that uniquely identifies this resource.
|
|
621
625
|
*/
|
|
622
626
|
/* jshint ignore:end */
|
|
623
627
|
AssistantContext = function AssistantContext(version, sid) {
|
|
@@ -675,15 +679,16 @@ AssistantContext.prototype.fetch = function fetch(callback) {
|
|
|
675
679
|
* @param {string} [opts.friendlyName] -
|
|
676
680
|
* A text description for the Assistant. It is non-unique and can be up to 255 characters long.
|
|
677
681
|
* @param {boolean} [opts.logQueries] -
|
|
678
|
-
* A boolean that specifies whether queries should be logged for 30 days
|
|
682
|
+
* A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
|
|
679
683
|
* @param {string} [opts.uniqueName] -
|
|
680
684
|
* A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
|
|
681
685
|
* @param {string} [opts.callbackUrl] - The callback_url
|
|
682
|
-
* @param {string} [opts.callbackEvents] -
|
|
686
|
+
* @param {string} [opts.callbackEvents] -
|
|
687
|
+
* A space-separated list of callback events that will trigger callbacks
|
|
683
688
|
* @param {string} [opts.styleSheet] -
|
|
684
|
-
* A JSON object that defines the assistant style sheet
|
|
689
|
+
* A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
|
|
685
690
|
* @param {string} [opts.defaults] -
|
|
686
|
-
* A JSON object that defines the assistant's default tasks for various scenarios
|
|
691
|
+
* A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
|
|
687
692
|
* @param {function} [callback] - Callback to handle processed record
|
|
688
693
|
*
|
|
689
694
|
* @returns {Promise} Resolves to processed AssistantInstance
|