twilio 3.83.1 → 3.83.2

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.
@@ -11,7 +11,9 @@ import V1 = require('./flexApi/V1');
11
11
  import { ChannelListInstance } from './flexApi/v1/channel';
12
12
  import { ConfigurationListInstance } from './flexApi/v1/configuration';
13
13
  import { FlexFlowListInstance } from './flexApi/v1/flexFlow';
14
+ import { GoodDataListInstance } from './flexApi/v1/goodData';
14
15
  import { InteractionListInstance } from './flexApi/v1/interaction';
16
+ import { UserRolesListInstance } from './flexApi/v1/userRoles';
15
17
  import { WebChannelListInstance } from './flexApi/v1/webChannel';
16
18
 
17
19
 
@@ -26,7 +28,9 @@ declare class FlexApi extends Domain {
26
28
  readonly channel: ChannelListInstance;
27
29
  readonly configuration: ConfigurationListInstance;
28
30
  readonly flexFlow: FlexFlowListInstance;
31
+ readonly goodData: GoodDataListInstance;
29
32
  readonly interaction: InteractionListInstance;
33
+ readonly userRoles: UserRolesListInstance;
30
34
  readonly v1: V1;
31
35
  readonly webChannel: WebChannelListInstance;
32
36
  }
@@ -25,7 +25,9 @@ var V1 = require('./flexApi/V1'); /* jshint ignore:line */
25
25
  * @property {Twilio.FlexApi.V1.ConfigurationList} configuration -
26
26
  * configuration resource
27
27
  * @property {Twilio.FlexApi.V1.FlexFlowList} flexFlow - flexFlow resource
28
+ * @property {Twilio.FlexApi.V1.GoodDataList} goodData - goodData resource
28
29
  * @property {Twilio.FlexApi.V1.InteractionList} interaction - interaction resource
30
+ * @property {Twilio.FlexApi.V1.UserRolesList} userRoles - userRoles resource
29
31
  * @property {Twilio.FlexApi.V1.WebChannelList} webChannel - webChannel resource
30
32
  *
31
33
  * @param {Twilio} twilio - The twilio client
@@ -70,6 +72,13 @@ Object.defineProperty(FlexApi.prototype,
70
72
  }
71
73
  });
72
74
 
75
+ Object.defineProperty(FlexApi.prototype,
76
+ 'goodData', {
77
+ get: function() {
78
+ return this.v1.goodData;
79
+ }
80
+ });
81
+
73
82
  Object.defineProperty(FlexApi.prototype,
74
83
  'interaction', {
75
84
  get: function() {
@@ -77,6 +86,13 @@ Object.defineProperty(FlexApi.prototype,
77
86
  }
78
87
  });
79
88
 
89
+ Object.defineProperty(FlexApi.prototype,
90
+ 'userRoles', {
91
+ get: function() {
92
+ return this.v1.userRoles;
93
+ }
94
+ });
95
+
80
96
  Object.defineProperty(FlexApi.prototype,
81
97
  'webChannel', {
82
98
  get: function() {
@@ -14,8 +14,8 @@ import { SerializableClass } from '../../../../../interfaces';
14
14
  * Initialize the UserDefinedMessageList
15
15
  *
16
16
  * @param version - Version of the resource
17
- * @param accountSid - Account Sid.
18
- * @param callSid - Call Sid.
17
+ * @param accountSid - Account SID.
18
+ * @param callSid - Call SID.
19
19
  */
20
20
  declare function UserDefinedMessageList(version: V2010, accountSid: string, callSid: string): UserDefinedMessageListInstance;
21
21
 
@@ -36,7 +36,7 @@ interface UserDefinedMessageListInstance {
36
36
  /**
37
37
  * Options to pass to create
38
38
  *
39
- * @property content - A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
39
+ * @property content - The User Defined Message in the form of URL-encoded JSON string.
40
40
  * @property idempotencyKey - A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
41
41
  */
42
42
  interface UserDefinedMessageListInstanceCreateOptions {
@@ -66,8 +66,8 @@ declare class UserDefinedMessageInstance extends SerializableClass {
66
66
  *
67
67
  * @param version - Version of the resource
68
68
  * @param payload - The instance payload
69
- * @param accountSid - Account Sid.
70
- * @param callSid - Call Sid.
69
+ * @param accountSid - Account SID.
70
+ * @param callSid - Call SID.
71
71
  */
72
72
  constructor(version: V2010, payload: UserDefinedMessagePayload, accountSid: string, callSid: string);
73
73
 
@@ -28,8 +28,8 @@ var UserDefinedMessageInstance;
28
28
  * @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageList
29
29
  *
30
30
  * @param {Twilio.Api.V2010} version - Version of the resource
31
- * @param {string} accountSid - Account Sid.
32
- * @param {string} callSid - Call Sid.
31
+ * @param {string} accountSid - Account SID.
32
+ * @param {string} callSid - Call SID.
33
33
  */
34
34
  /* jshint ignore:end */
35
35
  UserDefinedMessageList = function UserDefinedMessageList(version, accountSid,
@@ -61,7 +61,7 @@ UserDefinedMessageList = function UserDefinedMessageList(version, accountSid,
61
61
  *
62
62
  * @param {object} opts - Options for request
63
63
  * @param {string} opts.content -
64
- * A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
64
+ * The User Defined Message in the form of URL-encoded JSON string.
65
65
  * @param {string} [opts.idempotencyKey] -
66
66
  * A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
67
67
  * @param {function} [callback] - Callback to handle processed record
@@ -200,16 +200,15 @@ UserDefinedMessagePage.prototype[util.inspect.custom] = function inspect(depth,
200
200
  *
201
201
  * @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageInstance
202
202
  *
203
- * @property {string} accountSid - Account Sid.
204
- * @property {string} callSid - Call Sid.
205
- * @property {string} sid -
206
- * A string that uniquely identifies this User Defined Message.
207
- * @property {Date} dateCreated - The date this User Defined Message was created
203
+ * @property {string} accountSid - Account SID.
204
+ * @property {string} callSid - Call SID.
205
+ * @property {string} sid - User Defined Message SID.
206
+ * @property {Date} dateCreated - The date this User Defined Message was created.
208
207
  *
209
208
  * @param {V2010} version - Version of the resource
210
209
  * @param {UserDefinedMessagePayload} payload - The instance payload
211
- * @param {sid} accountSid - Account Sid.
212
- * @param {sid} callSid - Call Sid.
210
+ * @param {sid} accountSid - Account SID.
211
+ * @param {sid} callSid - Call SID.
213
212
  */
214
213
  /* jshint ignore:end */
215
214
  UserDefinedMessageInstance = function UserDefinedMessageInstance(version,
@@ -14,8 +14,8 @@ import { SerializableClass } from '../../../../../interfaces';
14
14
  * Initialize the UserDefinedMessageSubscriptionList
15
15
  *
16
16
  * @param version - Version of the resource
17
- * @param accountSid - Account Sid.
18
- * @param callSid - Call Sid.
17
+ * @param accountSid - Account SID.
18
+ * @param callSid - Call SID.
19
19
  */
20
20
  declare function UserDefinedMessageSubscriptionList(version: V2010, accountSid: string, callSid: string): UserDefinedMessageSubscriptionListInstance;
21
21
 
@@ -34,7 +34,7 @@ interface UserDefinedMessageSubscriptionListInstance {
34
34
  /**
35
35
  * Constructs a user_defined_message_subscription
36
36
  *
37
- * @param sid - User Defined Message Subscription Sid
37
+ * @param sid - User Defined Message Subscription SID.
38
38
  */
39
39
  get(sid: string): UserDefinedMessageSubscriptionContext;
40
40
  /**
@@ -78,9 +78,9 @@ declare class UserDefinedMessageSubscriptionContext {
78
78
  * Initialize the UserDefinedMessageSubscriptionContext
79
79
  *
80
80
  * @param version - Version of the resource
81
- * @param accountSid - Account Sid.
82
- * @param callSid - Call Sid.
83
- * @param sid - User Defined Message Subscription Sid
81
+ * @param accountSid - Account SID.
82
+ * @param callSid - Call SID.
83
+ * @param sid - User Defined Message Subscription SID.
84
84
  */
85
85
  constructor(version: V2010, accountSid: string, callSid: string, sid: string);
86
86
 
@@ -103,9 +103,9 @@ declare class UserDefinedMessageSubscriptionInstance extends SerializableClass {
103
103
  *
104
104
  * @param version - Version of the resource
105
105
  * @param payload - The instance payload
106
- * @param accountSid - Account Sid.
107
- * @param callSid - Call Sid.
108
- * @param sid - User Defined Message Subscription Sid
106
+ * @param accountSid - Account SID.
107
+ * @param callSid - Call SID.
108
+ * @param sid - User Defined Message Subscription SID.
109
109
  */
110
110
  constructor(version: V2010, payload: UserDefinedMessageSubscriptionPayload, accountSid: string, callSid: string, sid: string);
111
111
 
@@ -29,8 +29,8 @@ var UserDefinedMessageSubscriptionContext;
29
29
  * @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageSubscriptionList
30
30
  *
31
31
  * @param {Twilio.Api.V2010} version - Version of the resource
32
- * @param {string} accountSid - Account Sid.
33
- * @param {string} callSid - Call Sid.
32
+ * @param {string} accountSid - Account SID.
33
+ * @param {string} callSid - Call SID.
34
34
  */
35
35
  /* jshint ignore:end */
36
36
  UserDefinedMessageSubscriptionList = function
@@ -120,7 +120,7 @@ UserDefinedMessageSubscriptionList = function
120
120
  * @function get
121
121
  * @memberof Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageSubscriptionList#
122
122
  *
123
- * @param {string} sid - User Defined Message Subscription Sid
123
+ * @param {string} sid - User Defined Message Subscription SID.
124
124
  *
125
125
  * @returns {Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageSubscriptionContext}
126
126
  */
@@ -236,19 +236,19 @@ UserDefinedMessageSubscriptionPage.prototype[util.inspect.custom] = function
236
236
  *
237
237
  * @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageSubscriptionInstance
238
238
  *
239
- * @property {string} accountSid - Account Sid.
240
- * @property {string} callSid - Call Sid.
241
- * @property {string} sid - User Defined Message Subscription Sid
239
+ * @property {string} accountSid - Account SID.
240
+ * @property {string} callSid - Call SID.
241
+ * @property {string} sid - User Defined Message Subscription SID.
242
242
  * @property {Date} dateCreated -
243
- * The date this User Defined Message Subscription was created
243
+ * The date this User Defined Message Subscription was created.
244
244
  * @property {string} uri -
245
- * The URI of the resource, relative to `https://api.twilio.com`.
245
+ * The URI of the User Defined Message Subscription Resource, relative to `https://api.twilio.com`.
246
246
  *
247
247
  * @param {V2010} version - Version of the resource
248
248
  * @param {UserDefinedMessageSubscriptionPayload} payload - The instance payload
249
- * @param {sid} accountSid - Account Sid.
250
- * @param {sid} callSid - Call Sid.
251
- * @param {sid} sid - User Defined Message Subscription Sid
249
+ * @param {sid} accountSid - Account SID.
250
+ * @param {sid} callSid - Call SID.
251
+ * @param {sid} sid - User Defined Message Subscription SID.
252
252
  */
253
253
  /* jshint ignore:end */
254
254
  UserDefinedMessageSubscriptionInstance = function
@@ -334,9 +334,9 @@ UserDefinedMessageSubscriptionInstance.prototype[util.inspect.custom] = function
334
334
  * @constructor Twilio.Api.V2010.AccountContext.CallContext.UserDefinedMessageSubscriptionContext
335
335
  *
336
336
  * @param {V2010} version - Version of the resource
337
- * @param {sid} accountSid - Account Sid.
338
- * @param {sid} callSid - Call Sid.
339
- * @param {sid} sid - User Defined Message Subscription Sid
337
+ * @param {sid} accountSid - Account SID.
338
+ * @param {sid} callSid - Call SID.
339
+ * @param {sid} sid - User Defined Message Subscription SID.
340
340
  */
341
341
  /* jshint ignore:end */
342
342
  UserDefinedMessageSubscriptionContext = function
@@ -13,8 +13,12 @@ import { ConfigurationList } from './v1/configuration';
13
13
  import { ConfigurationListInstance } from './v1/configuration';
14
14
  import { FlexFlowList } from './v1/flexFlow';
15
15
  import { FlexFlowListInstance } from './v1/flexFlow';
16
+ import { GoodDataList } from './v1/goodData';
17
+ import { GoodDataListInstance } from './v1/goodData';
16
18
  import { InteractionList } from './v1/interaction';
17
19
  import { InteractionListInstance } from './v1/interaction';
20
+ import { UserRolesList } from './v1/userRoles';
21
+ import { UserRolesListInstance } from './v1/userRoles';
18
22
  import { WebChannelList } from './v1/webChannel';
19
23
  import { WebChannelListInstance } from './v1/webChannel';
20
24
 
@@ -30,7 +34,9 @@ declare class V1 extends Version {
30
34
  readonly channel: ChannelListInstance;
31
35
  readonly configuration: ConfigurationListInstance;
32
36
  readonly flexFlow: FlexFlowListInstance;
37
+ readonly goodData: GoodDataListInstance;
33
38
  readonly interaction: InteractionListInstance;
39
+ readonly userRoles: UserRolesListInstance;
34
40
  readonly webChannel: WebChannelListInstance;
35
41
  }
36
42
 
@@ -13,7 +13,9 @@ var _ = require('lodash'); /* jshint ignore:line */
13
13
  var ChannelList = require('./v1/channel').ChannelList;
14
14
  var ConfigurationList = require('./v1/configuration').ConfigurationList;
15
15
  var FlexFlowList = require('./v1/flexFlow').FlexFlowList;
16
+ var GoodDataList = require('./v1/goodData').GoodDataList;
16
17
  var InteractionList = require('./v1/interaction').InteractionList;
18
+ var UserRolesList = require('./v1/userRoles').UserRolesList;
17
19
  var Version = require('../../base/Version'); /* jshint ignore:line */
18
20
  var WebChannelList = require('./v1/webChannel').WebChannelList;
19
21
 
@@ -28,7 +30,9 @@ var WebChannelList = require('./v1/webChannel').WebChannelList;
28
30
  * @property {Twilio.FlexApi.V1.ConfigurationList} configuration -
29
31
  * configuration resource
30
32
  * @property {Twilio.FlexApi.V1.FlexFlowList} flexFlow - flexFlow resource
33
+ * @property {Twilio.FlexApi.V1.GoodDataList} goodData - goodData resource
31
34
  * @property {Twilio.FlexApi.V1.InteractionList} interaction - interaction resource
35
+ * @property {Twilio.FlexApi.V1.UserRolesList} userRoles - userRoles resource
32
36
  * @property {Twilio.FlexApi.V1.WebChannelList} webChannel - webChannel resource
33
37
  *
34
38
  * @param {Twilio.FlexApi} domain - The twilio domain
@@ -41,7 +45,9 @@ function V1(domain) {
41
45
  this._channel = undefined;
42
46
  this._configuration = undefined;
43
47
  this._flexFlow = undefined;
48
+ this._goodData = undefined;
44
49
  this._interaction = undefined;
50
+ this._userRoles = undefined;
45
51
  this._webChannel = undefined;
46
52
  }
47
53
 
@@ -72,6 +78,14 @@ Object.defineProperty(V1.prototype,
72
78
  }
73
79
  });
74
80
 
81
+ Object.defineProperty(V1.prototype,
82
+ 'goodData', {
83
+ get: function() {
84
+ this._goodData = this._goodData || new GoodDataList(this);
85
+ return this._goodData;
86
+ }
87
+ });
88
+
75
89
  Object.defineProperty(V1.prototype,
76
90
  'interaction', {
77
91
  get: function() {
@@ -80,6 +94,14 @@ Object.defineProperty(V1.prototype,
80
94
  }
81
95
  });
82
96
 
97
+ Object.defineProperty(V1.prototype,
98
+ 'userRoles', {
99
+ get: function() {
100
+ this._userRoles = this._userRoles || new UserRolesList(this);
101
+ return this._userRoles;
102
+ }
103
+ });
104
+
83
105
  Object.defineProperty(V1.prototype,
84
106
  'webChannel', {
85
107
  get: function() {
@@ -0,0 +1,142 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Page = require('../../../base/Page');
9
+ import Response = require('../../../http/response');
10
+ import V1 = require('../V1');
11
+ import { SerializableClass } from '../../../interfaces';
12
+
13
+ /**
14
+ * Initialize the GoodDataList
15
+ *
16
+ * @param version - Version of the resource
17
+ */
18
+ declare function GoodDataList(version: V1): GoodDataListInstance;
19
+
20
+ /**
21
+ * Options to pass to create
22
+ *
23
+ * @property token - The Token HTTP request header
24
+ */
25
+ interface GoodDataInstanceCreateOptions {
26
+ token?: string;
27
+ }
28
+
29
+ interface GoodDataListInstance {
30
+ /**
31
+ * @param sid - sid of instance
32
+ */
33
+ (sid: string): GoodDataContext;
34
+ /**
35
+ * Constructs a good_data
36
+ */
37
+ get(): GoodDataContext;
38
+ /**
39
+ * Provide a user-friendly representation
40
+ */
41
+ toJSON(): any;
42
+ }
43
+
44
+ interface GoodDataPayload extends GoodDataResource, Page.TwilioResponsePayload {
45
+ }
46
+
47
+ interface GoodDataResource {
48
+ session_expiry: string;
49
+ session_id: string;
50
+ url: string;
51
+ workspace_id: string;
52
+ }
53
+
54
+ interface GoodDataSolution {
55
+ }
56
+
57
+
58
+ declare class GoodDataContext {
59
+ /**
60
+ * Initialize the GoodDataContext
61
+ *
62
+ * @param version - Version of the resource
63
+ */
64
+ constructor(version: V1);
65
+
66
+ /**
67
+ * create a GoodDataInstance
68
+ *
69
+ * @param callback - Callback to handle processed record
70
+ */
71
+ create(callback?: (error: Error | null, item: GoodDataInstance) => any): Promise<GoodDataInstance>;
72
+ /**
73
+ * create a GoodDataInstance
74
+ *
75
+ * @param opts - Options for request
76
+ * @param callback - Callback to handle processed record
77
+ */
78
+ create(opts?: GoodDataInstanceCreateOptions, callback?: (error: Error | null, item: GoodDataInstance) => any): Promise<GoodDataInstance>;
79
+ /**
80
+ * Provide a user-friendly representation
81
+ */
82
+ toJSON(): any;
83
+ }
84
+
85
+
86
+ declare class GoodDataInstance extends SerializableClass {
87
+ /**
88
+ * Initialize the GoodDataContext
89
+ *
90
+ * @param version - Version of the resource
91
+ * @param payload - The instance payload
92
+ */
93
+ constructor(version: V1, payload: GoodDataPayload);
94
+
95
+ private _proxy: GoodDataContext;
96
+ /**
97
+ * create a GoodDataInstance
98
+ *
99
+ * @param callback - Callback to handle processed record
100
+ */
101
+ create(callback?: (error: Error | null, items: GoodDataInstance) => any): Promise<GoodDataInstance>;
102
+ /**
103
+ * create a GoodDataInstance
104
+ *
105
+ * @param opts - Options for request
106
+ * @param callback - Callback to handle processed record
107
+ */
108
+ create(opts?: GoodDataInstanceCreateOptions, callback?: (error: Error | null, items: GoodDataInstance) => any): Promise<GoodDataInstance>;
109
+ sessionExpiry: string;
110
+ sessionId: string;
111
+ /**
112
+ * Provide a user-friendly representation
113
+ */
114
+ toJSON(): any;
115
+ url: string;
116
+ workspaceId: string;
117
+ }
118
+
119
+
120
+ declare class GoodDataPage extends Page<V1, GoodDataPayload, GoodDataResource, GoodDataInstance> {
121
+ /**
122
+ * Initialize the GoodDataPage
123
+ *
124
+ * @param version - Version of the resource
125
+ * @param response - Response from the API
126
+ * @param solution - Path solution
127
+ */
128
+ constructor(version: V1, response: Response<string>, solution: GoodDataSolution);
129
+
130
+ /**
131
+ * Build an instance of GoodDataInstance
132
+ *
133
+ * @param payload - Payload response from the API
134
+ */
135
+ getInstance(payload: GoodDataPayload): GoodDataInstance;
136
+ /**
137
+ * Provide a user-friendly representation
138
+ */
139
+ toJSON(): any;
140
+ }
141
+
142
+ export { GoodDataContext, GoodDataInstance, GoodDataInstanceCreateOptions, GoodDataList, GoodDataListInstance, GoodDataPage, GoodDataPayload, GoodDataResource, GoodDataSolution }