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
|
@@ -25,6 +25,7 @@ declare function MemberList(version: V2, serviceSid: string, channelSid: string)
|
|
|
25
25
|
/**
|
|
26
26
|
* Options to pass to update
|
|
27
27
|
*
|
|
28
|
+
* @property attributes - An optional string metadata field you can use to store any data you wish.
|
|
28
29
|
* @property dateCreated - The ISO8601 time specifying the datetime the Members should be set as being created.
|
|
29
30
|
* @property dateUpdated - The ISO8601 time specifying the datetime the Member should be set as having been last updated.
|
|
30
31
|
* @property lastConsumedMessageIndex - Field used to specify the last consumed Message index for the Channel for this Member.
|
|
@@ -32,6 +33,7 @@ declare function MemberList(version: V2, serviceSid: string, channelSid: string)
|
|
|
32
33
|
* @property roleSid - The role to be assigned to this member.
|
|
33
34
|
*/
|
|
34
35
|
interface MemberInstanceUpdateOptions {
|
|
36
|
+
attributes?: string;
|
|
35
37
|
dateCreated?: Date;
|
|
36
38
|
dateUpdated?: Date;
|
|
37
39
|
lastConsumedMessageIndex?: number;
|
|
@@ -105,6 +107,7 @@ interface MemberListInstance {
|
|
|
105
107
|
/**
|
|
106
108
|
* Options to pass to create
|
|
107
109
|
*
|
|
110
|
+
* @property attributes - An optional string metadata field you can use to store any data you wish.
|
|
108
111
|
* @property dateCreated - The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
|
|
109
112
|
* @property dateUpdated - The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the null by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
|
|
110
113
|
* @property identity - A unique string identifier for this User in this Service. See the access tokens docs for more details.
|
|
@@ -113,6 +116,7 @@ interface MemberListInstance {
|
|
|
113
116
|
* @property roleSid - The role to be assigned to this member. Defaults to the roles specified on the Service.
|
|
114
117
|
*/
|
|
115
118
|
interface MemberListInstanceCreateOptions {
|
|
119
|
+
attributes?: string;
|
|
116
120
|
dateCreated?: Date;
|
|
117
121
|
dateUpdated?: Date;
|
|
118
122
|
identity: string;
|
|
@@ -189,6 +193,7 @@ interface MemberPayload extends MemberResource, Page.TwilioResponsePayload {
|
|
|
189
193
|
|
|
190
194
|
interface MemberResource {
|
|
191
195
|
account_sid: string;
|
|
196
|
+
attributes: string;
|
|
192
197
|
channel_sid: string;
|
|
193
198
|
date_created: Date;
|
|
194
199
|
date_updated: Date;
|
|
@@ -255,6 +260,7 @@ declare class MemberInstance extends SerializableClass {
|
|
|
255
260
|
* @property lastConsumedMessageIndex - An Integer representing index of the last Message this Member has read within this Channel
|
|
256
261
|
* @property lastConsumptionTimestamp - An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
|
|
257
262
|
* @property url - An absolute URL for this member.
|
|
263
|
+
* @property attributes - An optional string metadata field you can use to store any data you wish.
|
|
258
264
|
*
|
|
259
265
|
* @param version - Version of the resource
|
|
260
266
|
* @param payload - The instance payload
|
|
@@ -266,6 +272,7 @@ declare class MemberInstance extends SerializableClass {
|
|
|
266
272
|
|
|
267
273
|
private _proxy: MemberContext;
|
|
268
274
|
accountSid: string;
|
|
275
|
+
attributes: string;
|
|
269
276
|
channelSid: string;
|
|
270
277
|
dateCreated: Date;
|
|
271
278
|
dateUpdated: Date;
|
|
@@ -68,6 +68,8 @@ MemberList = function MemberList(version, serviceSid, channelSid) {
|
|
|
68
68
|
* The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
|
|
69
69
|
* @param {Date} [opts.dateUpdated] -
|
|
70
70
|
* The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the null by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
|
|
71
|
+
* @param {string} [opts.attributes] -
|
|
72
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
71
73
|
* @param {function} [callback] - Callback to handle processed record
|
|
72
74
|
*
|
|
73
75
|
* @returns {Promise} Resolves to processed MemberInstance
|
|
@@ -88,7 +90,8 @@ MemberList = function MemberList(version, serviceSid, channelSid) {
|
|
|
88
90
|
'LastConsumedMessageIndex': _.get(opts, 'lastConsumedMessageIndex'),
|
|
89
91
|
'LastConsumptionTimestamp': serialize.iso8601DateTime(_.get(opts, 'lastConsumptionTimestamp')),
|
|
90
92
|
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
|
|
91
|
-
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated'))
|
|
93
|
+
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
|
|
94
|
+
'Attributes': _.get(opts, 'attributes')
|
|
92
95
|
});
|
|
93
96
|
|
|
94
97
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
@@ -424,6 +427,8 @@ MemberPage.prototype.getInstance = function getInstance(payload) {
|
|
|
424
427
|
* @property {Date} lastConsumptionTimestamp -
|
|
425
428
|
* An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
|
|
426
429
|
* @property {string} url - An absolute URL for this member.
|
|
430
|
+
* @property {string} attributes -
|
|
431
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
427
432
|
*
|
|
428
433
|
* @param {V2} version - Version of the resource
|
|
429
434
|
* @param {MemberPayload} payload - The instance payload
|
|
@@ -448,6 +453,7 @@ MemberInstance = function MemberInstance(version, payload, serviceSid,
|
|
|
448
453
|
this.lastConsumedMessageIndex = deserialize.integer(payload.last_consumed_message_index); // jshint ignore:line
|
|
449
454
|
this.lastConsumptionTimestamp = deserialize.iso8601DateTime(payload.last_consumption_timestamp); // jshint ignore:line
|
|
450
455
|
this.url = payload.url; // jshint ignore:line
|
|
456
|
+
this.attributes = payload.attributes; // jshint ignore:line
|
|
451
457
|
|
|
452
458
|
// Context
|
|
453
459
|
this._context = undefined;
|
|
@@ -510,6 +516,8 @@ MemberInstance.prototype.remove = function remove(callback) {
|
|
|
510
516
|
* The ISO8601 time specifying the datetime the Members should be set as being created.
|
|
511
517
|
* @param {Date} [opts.dateUpdated] -
|
|
512
518
|
* The ISO8601 time specifying the datetime the Member should be set as having been last updated.
|
|
519
|
+
* @param {string} [opts.attributes] -
|
|
520
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
513
521
|
* @param {function} [callback] - Callback to handle processed record
|
|
514
522
|
*
|
|
515
523
|
* @returns {Promise} Resolves to processed MemberInstance
|
|
@@ -635,6 +643,8 @@ MemberContext.prototype.remove = function remove(callback) {
|
|
|
635
643
|
* The ISO8601 time specifying the datetime the Members should be set as being created.
|
|
636
644
|
* @param {Date} [opts.dateUpdated] -
|
|
637
645
|
* The ISO8601 time specifying the datetime the Member should be set as having been last updated.
|
|
646
|
+
* @param {string} [opts.attributes] -
|
|
647
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
638
648
|
* @param {function} [callback] - Callback to handle processed record
|
|
639
649
|
*
|
|
640
650
|
* @returns {Promise} Resolves to processed MemberInstance
|
|
@@ -653,7 +663,8 @@ MemberContext.prototype.update = function update(opts, callback) {
|
|
|
653
663
|
'LastConsumedMessageIndex': _.get(opts, 'lastConsumedMessageIndex'),
|
|
654
664
|
'LastConsumptionTimestamp': serialize.iso8601DateTime(_.get(opts, 'lastConsumptionTimestamp')),
|
|
655
665
|
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
|
|
656
|
-
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated'))
|
|
666
|
+
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
|
|
667
|
+
'Attributes': _.get(opts, 'attributes')
|
|
657
668
|
});
|
|
658
669
|
|
|
659
670
|
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
@@ -25,6 +25,7 @@ declare function MemberList(version: V2, serviceSid: string, channelSid: string)
|
|
|
25
25
|
/**
|
|
26
26
|
* Options to pass to update
|
|
27
27
|
*
|
|
28
|
+
* @property attributes - An optional string metadata field you can use to store any data you wish.
|
|
28
29
|
* @property dateCreated - The ISO8601 time specifying the datetime the Members should be set as being created.
|
|
29
30
|
* @property dateUpdated - The ISO8601 time specifying the datetime the Member should be set as having been last updated.
|
|
30
31
|
* @property lastConsumedMessageIndex - Field used to specify the last consumed Message index for the Channel for this Member.
|
|
@@ -32,6 +33,7 @@ declare function MemberList(version: V2, serviceSid: string, channelSid: string)
|
|
|
32
33
|
* @property roleSid - The role to be assigned to this member.
|
|
33
34
|
*/
|
|
34
35
|
interface MemberInstanceUpdateOptions {
|
|
36
|
+
attributes?: string;
|
|
35
37
|
dateCreated?: Date;
|
|
36
38
|
dateUpdated?: Date;
|
|
37
39
|
lastConsumedMessageIndex?: number;
|
|
@@ -105,6 +107,7 @@ interface MemberListInstance {
|
|
|
105
107
|
/**
|
|
106
108
|
* Options to pass to create
|
|
107
109
|
*
|
|
110
|
+
* @property attributes - An optional string metadata field you can use to store any data you wish.
|
|
108
111
|
* @property dateCreated - The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
|
|
109
112
|
* @property dateUpdated - The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the null by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
|
|
110
113
|
* @property identity - A unique string identifier for this User in this Service. See the access tokens docs for more details.
|
|
@@ -113,6 +116,7 @@ interface MemberListInstance {
|
|
|
113
116
|
* @property roleSid - The role to be assigned to this member. Defaults to the roles specified on the Service.
|
|
114
117
|
*/
|
|
115
118
|
interface MemberListInstanceCreateOptions {
|
|
119
|
+
attributes?: string;
|
|
116
120
|
dateCreated?: Date;
|
|
117
121
|
dateUpdated?: Date;
|
|
118
122
|
identity: string;
|
|
@@ -189,6 +193,7 @@ interface MemberPayload extends MemberResource, Page.TwilioResponsePayload {
|
|
|
189
193
|
|
|
190
194
|
interface MemberResource {
|
|
191
195
|
account_sid: string;
|
|
196
|
+
attributes: string;
|
|
192
197
|
channel_sid: string;
|
|
193
198
|
date_created: Date;
|
|
194
199
|
date_updated: Date;
|
|
@@ -255,6 +260,7 @@ declare class MemberInstance extends SerializableClass {
|
|
|
255
260
|
* @property lastConsumedMessageIndex - An Integer representing index of the last Message this Member has read within this Channel
|
|
256
261
|
* @property lastConsumptionTimestamp - An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
|
|
257
262
|
* @property url - An absolute URL for this member.
|
|
263
|
+
* @property attributes - An optional string metadata field you can use to store any data you wish.
|
|
258
264
|
*
|
|
259
265
|
* @param version - Version of the resource
|
|
260
266
|
* @param payload - The instance payload
|
|
@@ -266,6 +272,7 @@ declare class MemberInstance extends SerializableClass {
|
|
|
266
272
|
|
|
267
273
|
private _proxy: MemberContext;
|
|
268
274
|
accountSid: string;
|
|
275
|
+
attributes: string;
|
|
269
276
|
channelSid: string;
|
|
270
277
|
dateCreated: Date;
|
|
271
278
|
dateUpdated: Date;
|
|
@@ -68,6 +68,8 @@ MemberList = function MemberList(version, serviceSid, channelSid) {
|
|
|
68
68
|
* The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
|
|
69
69
|
* @param {Date} [opts.dateUpdated] -
|
|
70
70
|
* The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the null by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
|
|
71
|
+
* @param {string} [opts.attributes] -
|
|
72
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
71
73
|
* @param {function} [callback] - Callback to handle processed record
|
|
72
74
|
*
|
|
73
75
|
* @returns {Promise} Resolves to processed MemberInstance
|
|
@@ -88,7 +90,8 @@ MemberList = function MemberList(version, serviceSid, channelSid) {
|
|
|
88
90
|
'LastConsumedMessageIndex': _.get(opts, 'lastConsumedMessageIndex'),
|
|
89
91
|
'LastConsumptionTimestamp': serialize.iso8601DateTime(_.get(opts, 'lastConsumptionTimestamp')),
|
|
90
92
|
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
|
|
91
|
-
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated'))
|
|
93
|
+
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
|
|
94
|
+
'Attributes': _.get(opts, 'attributes')
|
|
92
95
|
});
|
|
93
96
|
|
|
94
97
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
@@ -424,6 +427,8 @@ MemberPage.prototype.getInstance = function getInstance(payload) {
|
|
|
424
427
|
* @property {Date} lastConsumptionTimestamp -
|
|
425
428
|
* An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
|
|
426
429
|
* @property {string} url - An absolute URL for this member.
|
|
430
|
+
* @property {string} attributes -
|
|
431
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
427
432
|
*
|
|
428
433
|
* @param {V2} version - Version of the resource
|
|
429
434
|
* @param {MemberPayload} payload - The instance payload
|
|
@@ -448,6 +453,7 @@ MemberInstance = function MemberInstance(version, payload, serviceSid,
|
|
|
448
453
|
this.lastConsumedMessageIndex = deserialize.integer(payload.last_consumed_message_index); // jshint ignore:line
|
|
449
454
|
this.lastConsumptionTimestamp = deserialize.iso8601DateTime(payload.last_consumption_timestamp); // jshint ignore:line
|
|
450
455
|
this.url = payload.url; // jshint ignore:line
|
|
456
|
+
this.attributes = payload.attributes; // jshint ignore:line
|
|
451
457
|
|
|
452
458
|
// Context
|
|
453
459
|
this._context = undefined;
|
|
@@ -510,6 +516,8 @@ MemberInstance.prototype.remove = function remove(callback) {
|
|
|
510
516
|
* The ISO8601 time specifying the datetime the Members should be set as being created.
|
|
511
517
|
* @param {Date} [opts.dateUpdated] -
|
|
512
518
|
* The ISO8601 time specifying the datetime the Member should be set as having been last updated.
|
|
519
|
+
* @param {string} [opts.attributes] -
|
|
520
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
513
521
|
* @param {function} [callback] - Callback to handle processed record
|
|
514
522
|
*
|
|
515
523
|
* @returns {Promise} Resolves to processed MemberInstance
|
|
@@ -635,6 +643,8 @@ MemberContext.prototype.remove = function remove(callback) {
|
|
|
635
643
|
* The ISO8601 time specifying the datetime the Members should be set as being created.
|
|
636
644
|
* @param {Date} [opts.dateUpdated] -
|
|
637
645
|
* The ISO8601 time specifying the datetime the Member should be set as having been last updated.
|
|
646
|
+
* @param {string} [opts.attributes] -
|
|
647
|
+
* An optional string metadata field you can use to store any data you wish.
|
|
638
648
|
* @param {function} [callback] - Callback to handle processed record
|
|
639
649
|
*
|
|
640
650
|
* @returns {Promise} Resolves to processed MemberInstance
|
|
@@ -653,7 +663,8 @@ MemberContext.prototype.update = function update(opts, callback) {
|
|
|
653
663
|
'LastConsumedMessageIndex': _.get(opts, 'lastConsumedMessageIndex'),
|
|
654
664
|
'LastConsumptionTimestamp': serialize.iso8601DateTime(_.get(opts, 'lastConsumptionTimestamp')),
|
|
655
665
|
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
|
|
656
|
-
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated'))
|
|
666
|
+
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
|
|
667
|
+
'Attributes': _.get(opts, 'attributes')
|
|
657
668
|
});
|
|
658
669
|
|
|
659
670
|
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
@@ -17,8 +17,8 @@ declare class Marketplace extends Version {
|
|
|
17
17
|
/**
|
|
18
18
|
* Initialize the Marketplace version of Preview
|
|
19
19
|
*
|
|
20
|
-
* @property installedAddOns - installedAddOns resource
|
|
21
20
|
* @property availableAddOns - availableAddOns resource
|
|
21
|
+
* @property installedAddOns - installedAddOns resource
|
|
22
22
|
*
|
|
23
23
|
* @param domain - The twilio domain
|
|
24
24
|
*/
|
|
@@ -21,10 +21,10 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
|
21
21
|
/**
|
|
22
22
|
* Initialize the Marketplace version of Preview
|
|
23
23
|
*
|
|
24
|
-
* @property {Twilio.Preview.Marketplace.InstalledAddOnList} installedAddOns -
|
|
25
|
-
* installedAddOns resource
|
|
26
24
|
* @property {Twilio.Preview.Marketplace.AvailableAddOnList} availableAddOns -
|
|
27
25
|
* availableAddOns resource
|
|
26
|
+
* @property {Twilio.Preview.Marketplace.InstalledAddOnList} installedAddOns -
|
|
27
|
+
* installedAddOns resource
|
|
28
28
|
*
|
|
29
29
|
* @param {Twilio.Preview} domain - The twilio domain
|
|
30
30
|
*/
|
|
@@ -33,26 +33,26 @@ function Marketplace(domain) {
|
|
|
33
33
|
Version.prototype.constructor.call(this, domain, 'marketplace');
|
|
34
34
|
|
|
35
35
|
// Resources
|
|
36
|
-
this._installedAddOns = undefined;
|
|
37
36
|
this._availableAddOns = undefined;
|
|
37
|
+
this._installedAddOns = undefined;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
_.extend(Marketplace.prototype, Version.prototype);
|
|
41
41
|
Marketplace.prototype.constructor = Marketplace;
|
|
42
42
|
|
|
43
43
|
Object.defineProperty(Marketplace.prototype,
|
|
44
|
-
'
|
|
44
|
+
'availableAddOns', {
|
|
45
45
|
get: function() {
|
|
46
|
-
this.
|
|
47
|
-
return this.
|
|
46
|
+
this._availableAddOns = this._availableAddOns || new AvailableAddOnList(this);
|
|
47
|
+
return this._availableAddOns;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
Object.defineProperty(Marketplace.prototype,
|
|
52
|
-
'
|
|
52
|
+
'installedAddOns', {
|
|
53
53
|
get: function() {
|
|
54
|
-
this.
|
|
55
|
-
return this.
|
|
54
|
+
this._installedAddOns = this._installedAddOns || new InstalledAddOnList(this);
|
|
55
|
+
return this._installedAddOns;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -32,6 +32,7 @@ declare function ServiceList(version: V1): ServiceListInstance;
|
|
|
32
32
|
* Options to pass to update
|
|
33
33
|
*
|
|
34
34
|
* @property callbackUrl - URL Twilio will send callbacks to
|
|
35
|
+
* @property chatInstanceSid - The Chat Service Instance sid managed by Proxy Service
|
|
35
36
|
* @property defaultTtl - Default TTL for Sessions in Service, in seconds.
|
|
36
37
|
* @property geoMatchLevel - Whether proxy number selected must be in the same area code as the participant identifier.
|
|
37
38
|
* @property interceptCallbackUrl - A URL for Twilio call before each Interaction.
|
|
@@ -41,6 +42,7 @@ declare function ServiceList(version: V1): ServiceListInstance;
|
|
|
41
42
|
*/
|
|
42
43
|
interface ServiceInstanceUpdateOptions {
|
|
43
44
|
callbackUrl?: string;
|
|
45
|
+
chatInstanceSid?: string;
|
|
44
46
|
defaultTtl?: number;
|
|
45
47
|
geoMatchLevel?: ServiceGeoMatchLevel;
|
|
46
48
|
interceptCallbackUrl?: string;
|
|
@@ -116,6 +118,7 @@ interface ServiceListInstance {
|
|
|
116
118
|
* Options to pass to create
|
|
117
119
|
*
|
|
118
120
|
* @property callbackUrl - URL Twilio will send callbacks to
|
|
121
|
+
* @property chatInstanceSid - The Chat Service Instance sid managed by Proxy Service
|
|
119
122
|
* @property defaultTtl - Default TTL for Sessions in Service, in seconds.
|
|
120
123
|
* @property geoMatchLevel - Whether proxy number selected must be in the same area code as the participant identifier.
|
|
121
124
|
* @property interceptCallbackUrl - A URL for Twilio call before each Interaction.
|
|
@@ -125,6 +128,7 @@ interface ServiceListInstance {
|
|
|
125
128
|
*/
|
|
126
129
|
interface ServiceListInstanceCreateOptions {
|
|
127
130
|
callbackUrl?: string;
|
|
131
|
+
chatInstanceSid?: string;
|
|
128
132
|
defaultTtl?: number;
|
|
129
133
|
geoMatchLevel?: ServiceGeoMatchLevel;
|
|
130
134
|
interceptCallbackUrl?: string;
|
|
@@ -196,6 +200,7 @@ interface ServicePayload extends ServiceResource, Page.TwilioResponsePayload {
|
|
|
196
200
|
interface ServiceResource {
|
|
197
201
|
account_sid: string;
|
|
198
202
|
callback_url: string;
|
|
203
|
+
chat_instance_sid: string;
|
|
199
204
|
date_created: Date;
|
|
200
205
|
date_updated: Date;
|
|
201
206
|
default_ttl: number;
|
|
@@ -258,6 +263,7 @@ declare class ServiceInstance extends SerializableClass {
|
|
|
258
263
|
* @property sid - A string that uniquely identifies this Service.
|
|
259
264
|
* @property uniqueName - A human-readable description of this resource.
|
|
260
265
|
* @property accountSid - Account Sid.
|
|
266
|
+
* @property chatInstanceSid - The Chat Service Instance sid managed by Proxy Service
|
|
261
267
|
* @property callbackUrl - URL Twilio will send callbacks to
|
|
262
268
|
* @property defaultTtl - Default TTL for a Session, in seconds.
|
|
263
269
|
* @property numberSelectionBehavior - What behavior to use when choosing a proxy number.
|
|
@@ -278,6 +284,7 @@ declare class ServiceInstance extends SerializableClass {
|
|
|
278
284
|
private _proxy: ServiceContext;
|
|
279
285
|
accountSid: string;
|
|
280
286
|
callbackUrl: string;
|
|
287
|
+
chatInstanceSid: string;
|
|
281
288
|
dateCreated: Date;
|
|
282
289
|
dateUpdated: Date;
|
|
283
290
|
defaultTtl: number;
|
|
@@ -293,6 +293,8 @@ ServiceList = function ServiceList(version) {
|
|
|
293
293
|
* A URL for Twilio call before each Interaction.
|
|
294
294
|
* @param {string} [opts.outOfSessionCallbackUrl] -
|
|
295
295
|
* A URL for Twilio call when a new Interaction has no Session.
|
|
296
|
+
* @param {string} [opts.chatInstanceSid] -
|
|
297
|
+
* The Chat Service Instance sid managed by Proxy Service
|
|
296
298
|
* @param {function} [callback] - Callback to handle processed record
|
|
297
299
|
*
|
|
298
300
|
* @returns {Promise} Resolves to processed ServiceInstance
|
|
@@ -314,7 +316,8 @@ ServiceList = function ServiceList(version) {
|
|
|
314
316
|
'GeoMatchLevel': _.get(opts, 'geoMatchLevel'),
|
|
315
317
|
'NumberSelectionBehavior': _.get(opts, 'numberSelectionBehavior'),
|
|
316
318
|
'InterceptCallbackUrl': _.get(opts, 'interceptCallbackUrl'),
|
|
317
|
-
'OutOfSessionCallbackUrl': _.get(opts, 'outOfSessionCallbackUrl')
|
|
319
|
+
'OutOfSessionCallbackUrl': _.get(opts, 'outOfSessionCallbackUrl'),
|
|
320
|
+
'ChatInstanceSid': _.get(opts, 'chatInstanceSid')
|
|
318
321
|
});
|
|
319
322
|
|
|
320
323
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
@@ -393,6 +396,8 @@ ServicePage.prototype.getInstance = function getInstance(payload) {
|
|
|
393
396
|
* @property {string} sid - A string that uniquely identifies this Service.
|
|
394
397
|
* @property {string} uniqueName - A human-readable description of this resource.
|
|
395
398
|
* @property {string} accountSid - Account Sid.
|
|
399
|
+
* @property {string} chatInstanceSid -
|
|
400
|
+
* The Chat Service Instance sid managed by Proxy Service
|
|
396
401
|
* @property {string} callbackUrl - URL Twilio will send callbacks to
|
|
397
402
|
* @property {number} defaultTtl - Default TTL for a Session, in seconds.
|
|
398
403
|
* @property {service.number_selection_behavior} numberSelectionBehavior -
|
|
@@ -420,6 +425,7 @@ ServiceInstance = function ServiceInstance(version, payload, sid) {
|
|
|
420
425
|
this.sid = payload.sid; // jshint ignore:line
|
|
421
426
|
this.uniqueName = payload.unique_name; // jshint ignore:line
|
|
422
427
|
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
428
|
+
this.chatInstanceSid = payload.chat_instance_sid; // jshint ignore:line
|
|
423
429
|
this.callbackUrl = payload.callback_url; // jshint ignore:line
|
|
424
430
|
this.defaultTtl = deserialize.integer(payload.default_ttl); // jshint ignore:line
|
|
425
431
|
this.numberSelectionBehavior = payload.number_selection_behavior; // jshint ignore:line
|
|
@@ -491,6 +497,8 @@ ServiceInstance.prototype.remove = function remove(callback) {
|
|
|
491
497
|
* A URL for Twilio call before each Interaction.
|
|
492
498
|
* @param {string} [opts.outOfSessionCallbackUrl] -
|
|
493
499
|
* A URL for Twilio call when a new Interaction has no Session.
|
|
500
|
+
* @param {string} [opts.chatInstanceSid] -
|
|
501
|
+
* The Chat Service Instance sid managed by Proxy Service
|
|
494
502
|
* @param {function} [callback] - Callback to handle processed record
|
|
495
503
|
*
|
|
496
504
|
* @returns {Promise} Resolves to processed ServiceInstance
|
|
@@ -656,6 +664,8 @@ ServiceContext.prototype.remove = function remove(callback) {
|
|
|
656
664
|
* A URL for Twilio call before each Interaction.
|
|
657
665
|
* @param {string} [opts.outOfSessionCallbackUrl] -
|
|
658
666
|
* A URL for Twilio call when a new Interaction has no Session.
|
|
667
|
+
* @param {string} [opts.chatInstanceSid] -
|
|
668
|
+
* The Chat Service Instance sid managed by Proxy Service
|
|
659
669
|
* @param {function} [callback] - Callback to handle processed record
|
|
660
670
|
*
|
|
661
671
|
* @returns {Promise} Resolves to processed ServiceInstance
|
|
@@ -676,7 +686,8 @@ ServiceContext.prototype.update = function update(opts, callback) {
|
|
|
676
686
|
'GeoMatchLevel': _.get(opts, 'geoMatchLevel'),
|
|
677
687
|
'NumberSelectionBehavior': _.get(opts, 'numberSelectionBehavior'),
|
|
678
688
|
'InterceptCallbackUrl': _.get(opts, 'interceptCallbackUrl'),
|
|
679
|
-
'OutOfSessionCallbackUrl': _.get(opts, 'outOfSessionCallbackUrl')
|
|
689
|
+
'OutOfSessionCallbackUrl': _.get(opts, 'outOfSessionCallbackUrl'),
|
|
690
|
+
'ChatInstanceSid': _.get(opts, 'chatInstanceSid')
|
|
680
691
|
});
|
|
681
692
|
|
|
682
693
|
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
@@ -28,11 +28,15 @@ declare function SyncListItemList(version: V1, serviceSid: string, listSid: stri
|
|
|
28
28
|
/**
|
|
29
29
|
* Options to pass to update
|
|
30
30
|
*
|
|
31
|
+
* @property collectionTtl - Time-to-live of this item's parent List in seconds, defaults to no expiration.
|
|
31
32
|
* @property data - Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
|
|
32
|
-
* @property
|
|
33
|
+
* @property itemTtl - Time-to-live of this item in seconds, defaults to no expiration.
|
|
34
|
+
* @property ttl - Alias for item_ttl
|
|
33
35
|
*/
|
|
34
36
|
interface SyncListItemInstanceUpdateOptions {
|
|
37
|
+
collectionTtl?: number;
|
|
35
38
|
data?: string;
|
|
39
|
+
itemTtl?: number;
|
|
36
40
|
ttl?: number;
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -102,11 +106,15 @@ interface SyncListItemListInstance {
|
|
|
102
106
|
/**
|
|
103
107
|
* Options to pass to create
|
|
104
108
|
*
|
|
109
|
+
* @property collectionTtl - Time-to-live of this item's parent List in seconds, defaults to no expiration.
|
|
105
110
|
* @property data - Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
|
|
106
|
-
* @property
|
|
111
|
+
* @property itemTtl - Time-to-live of this item in seconds, defaults to no expiration.
|
|
112
|
+
* @property ttl - Alias for item_ttl
|
|
107
113
|
*/
|
|
108
114
|
interface SyncListItemListInstanceCreateOptions {
|
|
115
|
+
collectionTtl?: number;
|
|
109
116
|
data: string;
|
|
117
|
+
itemTtl?: number;
|
|
110
118
|
ttl?: number;
|
|
111
119
|
}
|
|
112
120
|
|
|
@@ -60,8 +60,11 @@ SyncListItemList = function SyncListItemList(version, serviceSid, listSid) {
|
|
|
60
60
|
* @param {object} opts - Options for request
|
|
61
61
|
* @param {string} opts.data -
|
|
62
62
|
* Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
|
|
63
|
-
* @param {number} [opts.ttl] -
|
|
63
|
+
* @param {number} [opts.ttl] - Alias for item_ttl
|
|
64
|
+
* @param {number} [opts.itemTtl] -
|
|
64
65
|
* Time-to-live of this item in seconds, defaults to no expiration.
|
|
66
|
+
* @param {number} [opts.collectionTtl] -
|
|
67
|
+
* Time-to-live of this item's parent List in seconds, defaults to no expiration.
|
|
65
68
|
* @param {function} [callback] - Callback to handle processed record
|
|
66
69
|
*
|
|
67
70
|
* @returns {Promise} Resolves to processed SyncListItemInstance
|
|
@@ -76,7 +79,12 @@ SyncListItemList = function SyncListItemList(version, serviceSid, listSid) {
|
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
var deferred = Q.defer();
|
|
79
|
-
var data = values.of({
|
|
82
|
+
var data = values.of({
|
|
83
|
+
'Data': serialize.object(_.get(opts, 'data')),
|
|
84
|
+
'Ttl': _.get(opts, 'ttl'),
|
|
85
|
+
'ItemTtl': _.get(opts, 'itemTtl'),
|
|
86
|
+
'CollectionTtl': _.get(opts, 'collectionTtl')
|
|
87
|
+
});
|
|
80
88
|
|
|
81
89
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
82
90
|
|
|
@@ -504,8 +512,11 @@ SyncListItemInstance.prototype.remove = function remove(callback) {
|
|
|
504
512
|
* @param {object} [opts] - Options for request
|
|
505
513
|
* @param {string} [opts.data] -
|
|
506
514
|
* Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
|
|
507
|
-
* @param {number} [opts.ttl] -
|
|
515
|
+
* @param {number} [opts.ttl] - Alias for item_ttl
|
|
516
|
+
* @param {number} [opts.itemTtl] -
|
|
508
517
|
* Time-to-live of this item in seconds, defaults to no expiration.
|
|
518
|
+
* @param {number} [opts.collectionTtl] -
|
|
519
|
+
* Time-to-live of this item's parent List in seconds, defaults to no expiration.
|
|
509
520
|
* @param {function} [callback] - Callback to handle processed record
|
|
510
521
|
*
|
|
511
522
|
* @returns {Promise} Resolves to processed SyncListItemInstance
|
|
@@ -624,8 +635,11 @@ SyncListItemContext.prototype.remove = function remove(callback) {
|
|
|
624
635
|
* @param {object} [opts] - Options for request
|
|
625
636
|
* @param {string} [opts.data] -
|
|
626
637
|
* Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
|
|
627
|
-
* @param {number} [opts.ttl] -
|
|
638
|
+
* @param {number} [opts.ttl] - Alias for item_ttl
|
|
639
|
+
* @param {number} [opts.itemTtl] -
|
|
628
640
|
* Time-to-live of this item in seconds, defaults to no expiration.
|
|
641
|
+
* @param {number} [opts.collectionTtl] -
|
|
642
|
+
* Time-to-live of this item's parent List in seconds, defaults to no expiration.
|
|
629
643
|
* @param {function} [callback] - Callback to handle processed record
|
|
630
644
|
*
|
|
631
645
|
* @returns {Promise} Resolves to processed SyncListItemInstance
|
|
@@ -639,7 +653,12 @@ SyncListItemContext.prototype.update = function update(opts, callback) {
|
|
|
639
653
|
opts = opts || {};
|
|
640
654
|
|
|
641
655
|
var deferred = Q.defer();
|
|
642
|
-
var data = values.of({
|
|
656
|
+
var data = values.of({
|
|
657
|
+
'Data': serialize.object(_.get(opts, 'data')),
|
|
658
|
+
'Ttl': _.get(opts, 'ttl'),
|
|
659
|
+
'ItemTtl': _.get(opts, 'itemTtl'),
|
|
660
|
+
'CollectionTtl': _.get(opts, 'collectionTtl')
|
|
661
|
+
});
|
|
643
662
|
|
|
644
663
|
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
645
664
|
|
|
@@ -26,9 +26,11 @@ declare function SyncListList(version: V1, serviceSid: string): SyncListListInst
|
|
|
26
26
|
/**
|
|
27
27
|
* Options to pass to update
|
|
28
28
|
*
|
|
29
|
-
* @property
|
|
29
|
+
* @property collectionTtl - Time-to-live of this List in seconds, defaults to no expiration.
|
|
30
|
+
* @property ttl - Alias for collection_ttl
|
|
30
31
|
*/
|
|
31
32
|
interface SyncListInstanceUpdateOptions {
|
|
33
|
+
collectionTtl?: number;
|
|
32
34
|
ttl?: number;
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -98,10 +100,12 @@ interface SyncListListInstance {
|
|
|
98
100
|
/**
|
|
99
101
|
* Options to pass to create
|
|
100
102
|
*
|
|
101
|
-
* @property
|
|
103
|
+
* @property collectionTtl - Time-to-live of this List in seconds, defaults to no expiration.
|
|
104
|
+
* @property ttl - Alias for collection_ttl
|
|
102
105
|
* @property uniqueName - Human-readable name for this list
|
|
103
106
|
*/
|
|
104
107
|
interface SyncListListInstanceCreateOptions {
|
|
108
|
+
collectionTtl?: number;
|
|
105
109
|
ttl?: number;
|
|
106
110
|
uniqueName?: string;
|
|
107
111
|
}
|
|
@@ -58,7 +58,8 @@ SyncListList = function SyncListList(version, serviceSid) {
|
|
|
58
58
|
*
|
|
59
59
|
* @param {object} [opts] - Options for request
|
|
60
60
|
* @param {string} [opts.uniqueName] - Human-readable name for this list
|
|
61
|
-
* @param {number} [opts.ttl] -
|
|
61
|
+
* @param {number} [opts.ttl] - Alias for collection_ttl
|
|
62
|
+
* @param {number} [opts.collectionTtl] -
|
|
62
63
|
* Time-to-live of this List in seconds, defaults to no expiration.
|
|
63
64
|
* @param {function} [callback] - Callback to handle processed record
|
|
64
65
|
*
|
|
@@ -73,7 +74,11 @@ SyncListList = function SyncListList(version, serviceSid) {
|
|
|
73
74
|
opts = opts || {};
|
|
74
75
|
|
|
75
76
|
var deferred = Q.defer();
|
|
76
|
-
var data = values.of({
|
|
77
|
+
var data = values.of({
|
|
78
|
+
'UniqueName': _.get(opts, 'uniqueName'),
|
|
79
|
+
'Ttl': _.get(opts, 'ttl'),
|
|
80
|
+
'CollectionTtl': _.get(opts, 'collectionTtl')
|
|
81
|
+
});
|
|
77
82
|
|
|
78
83
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
79
84
|
|
|
@@ -467,7 +472,8 @@ SyncListInstance.prototype.remove = function remove(callback) {
|
|
|
467
472
|
* update a SyncListInstance
|
|
468
473
|
*
|
|
469
474
|
* @param {object} [opts] - Options for request
|
|
470
|
-
* @param {number} [opts.ttl] -
|
|
475
|
+
* @param {number} [opts.ttl] - Alias for collection_ttl
|
|
476
|
+
* @param {number} [opts.collectionTtl] -
|
|
471
477
|
* Time-to-live of this List in seconds, defaults to no expiration.
|
|
472
478
|
* @param {function} [callback] - Callback to handle processed record
|
|
473
479
|
*
|
|
@@ -614,7 +620,8 @@ SyncListContext.prototype.remove = function remove(callback) {
|
|
|
614
620
|
* update a SyncListInstance
|
|
615
621
|
*
|
|
616
622
|
* @param {object} [opts] - Options for request
|
|
617
|
-
* @param {number} [opts.ttl] -
|
|
623
|
+
* @param {number} [opts.ttl] - Alias for collection_ttl
|
|
624
|
+
* @param {number} [opts.collectionTtl] -
|
|
618
625
|
* Time-to-live of this List in seconds, defaults to no expiration.
|
|
619
626
|
* @param {function} [callback] - Callback to handle processed record
|
|
620
627
|
*
|
|
@@ -629,7 +636,7 @@ SyncListContext.prototype.update = function update(opts, callback) {
|
|
|
629
636
|
opts = opts || {};
|
|
630
637
|
|
|
631
638
|
var deferred = Q.defer();
|
|
632
|
-
var data = values.of({'Ttl': _.get(opts, 'ttl')});
|
|
639
|
+
var data = values.of({'Ttl': _.get(opts, 'ttl'), 'CollectionTtl': _.get(opts, 'collectionTtl')});
|
|
633
640
|
|
|
634
641
|
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
635
642
|
|
|
@@ -28,11 +28,15 @@ declare function SyncMapItemList(version: V1, serviceSid: string, mapSid: string
|
|
|
28
28
|
/**
|
|
29
29
|
* Options to pass to update
|
|
30
30
|
*
|
|
31
|
+
* @property collectionTtl - Time-to-live of this item's parent Map in seconds, defaults to no expiration.
|
|
31
32
|
* @property data - Contains an arbitrary JSON object to be stored in this Map Item.
|
|
32
|
-
* @property
|
|
33
|
+
* @property itemTtl - Time-to-live of this item in seconds, defaults to no expiration.
|
|
34
|
+
* @property ttl - Alias for item_ttl
|
|
33
35
|
*/
|
|
34
36
|
interface SyncMapItemInstanceUpdateOptions {
|
|
37
|
+
collectionTtl?: number;
|
|
35
38
|
data?: string;
|
|
39
|
+
itemTtl?: number;
|
|
36
40
|
ttl?: number;
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -102,12 +106,16 @@ interface SyncMapItemListInstance {
|
|
|
102
106
|
/**
|
|
103
107
|
* Options to pass to create
|
|
104
108
|
*
|
|
109
|
+
* @property collectionTtl - Time-to-live of this item's parent Map in seconds, defaults to no expiration.
|
|
105
110
|
* @property data - Contains arbitrary user-defined, schema-less data that this Map Item stores, represented by a JSON object, up to 16KB.
|
|
111
|
+
* @property itemTtl - Time-to-live of this item in seconds, defaults to no expiration.
|
|
106
112
|
* @property key - The unique user-defined key of this Map Item.
|
|
107
|
-
* @property ttl -
|
|
113
|
+
* @property ttl - Alias for item_ttl
|
|
108
114
|
*/
|
|
109
115
|
interface SyncMapItemListInstanceCreateOptions {
|
|
116
|
+
collectionTtl?: number;
|
|
110
117
|
data: string;
|
|
118
|
+
itemTtl?: number;
|
|
111
119
|
key: string;
|
|
112
120
|
ttl?: number;
|
|
113
121
|
}
|