twilio 3.83.1 → 3.83.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (C) 2021, Twilio, Inc. <help@twilio.com>
3
+ Copyright (C) 2022, Twilio, Inc. <help@twilio.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Domain = require('../base/Domain');
9
+ import Twilio = require('./Twilio');
10
+ import V1 = require('./content/V1');
11
+ import { ContentListInstance } from './content/v1/content';
12
+
13
+
14
+ declare class Content extends Domain {
15
+ /**
16
+ * Initialize content domain
17
+ *
18
+ * @param twilio - The twilio client
19
+ */
20
+ constructor(twilio: Twilio);
21
+
22
+ readonly contents: ContentListInstance;
23
+ readonly v1: V1;
24
+ }
25
+
26
+ export = Content;
@@ -0,0 +1,54 @@
1
+ 'use strict';
2
+
3
+ /* jshint ignore:start */
4
+ /**
5
+ * This code was generated by
6
+ * \ / _ _ _| _ _
7
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
8
+ * / /
9
+ */
10
+ /* jshint ignore:end */
11
+
12
+ var _ = require('lodash'); /* jshint ignore:line */
13
+ var Domain = require('../base/Domain'); /* jshint ignore:line */
14
+ var V1 = require('./content/V1'); /* jshint ignore:line */
15
+
16
+
17
+ /* jshint ignore:start */
18
+ /**
19
+ * Initialize content domain
20
+ *
21
+ * @constructor Twilio.Content
22
+ *
23
+ * @property {Twilio.Content.V1} v1 - v1 version
24
+ * @property {Twilio.Content.V1.ContentList} contents - contents resource
25
+ *
26
+ * @param {Twilio} twilio - The twilio client
27
+ */
28
+ /* jshint ignore:end */
29
+ function Content(twilio) {
30
+ Domain.prototype.constructor.call(this, twilio, 'https://content.twilio.com');
31
+
32
+ // Versions
33
+ this._v1 = undefined;
34
+ }
35
+
36
+ _.extend(Content.prototype, Domain.prototype);
37
+ Content.prototype.constructor = Content;
38
+
39
+ Object.defineProperty(Content.prototype,
40
+ 'v1', {
41
+ get: function() {
42
+ this._v1 = this._v1 || new V1(this);
43
+ return this._v1;
44
+ }
45
+ });
46
+
47
+ Object.defineProperty(Content.prototype,
48
+ 'contents', {
49
+ get: function() {
50
+ return this.v1.contents;
51
+ }
52
+ });
53
+
54
+ module.exports = Content;
@@ -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() {
@@ -10,6 +10,7 @@ import Api = require('./Api');
10
10
  import Autopilot = require('./Autopilot');
11
11
  import Bulkexports = require('./Bulkexports');
12
12
  import Chat = require('./Chat');
13
+ import Content = require('./Content');
13
14
  import Conversations = require('./Conversations');
14
15
  import Events = require('./Events');
15
16
  import FlexApi = require('./FlexApi');
@@ -64,6 +65,7 @@ declare class Twilio {
64
65
  chat: Chat;
65
66
  conferences: (typeof Api.prototype.account.conferences);
66
67
  connectApps: (typeof Api.prototype.account.connectApps);
68
+ content: Content;
67
69
  conversations: Conversations;
68
70
  events: Events;
69
71
  flexApi: FlexApi;
@@ -26,6 +26,7 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
26
26
  * @property {Twilio.Api} api - api domain
27
27
  * @property {Twilio.Autopilot} autopilot - autopilot domain
28
28
  * @property {Twilio.Chat} chat - chat domain
29
+ * @property {Twilio.Content} content - content domain
29
30
  * @property {Twilio.Conversations} conversations - conversations domain
30
31
  * @property {Twilio.Events} events - events domain
31
32
  * @property {Twilio.FlexApi} flexApi - flex_api domain
@@ -154,6 +155,7 @@ function Twilio(username, password, opts) {
154
155
  this._api = undefined;
155
156
  this._autopilot = undefined;
156
157
  this._chat = undefined;
158
+ this._content = undefined;
157
159
  this._conversations = undefined;
158
160
  this._events = undefined;
159
161
  this._flexApi = undefined;
@@ -190,6 +192,7 @@ function Twilio(username, password, opts) {
190
192
  this.api;
191
193
  this.autopilot;
192
194
  this.chat;
195
+ this.content;
193
196
  this.conversations;
194
197
  this.events;
195
198
  this.flexApi;
@@ -412,6 +415,17 @@ Object.defineProperty(Twilio.prototype,
412
415
  }
413
416
  });
414
417
 
418
+ Object.defineProperty(Twilio.prototype,
419
+ 'content', {
420
+ get: function() {
421
+ if (!this._content) {
422
+ var Content = require('./Content'); /* jshint ignore:line */
423
+ this._content = new Content(this);
424
+ }
425
+ return this._content;
426
+ }
427
+ });
428
+
415
429
  Object.defineProperty(Twilio.prototype,
416
430
  'conversations', {
417
431
  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
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Content = require('../Content');
9
+ import Version = require('../../base/Version');
10
+ import { ContentList } from './v1/content';
11
+ import { ContentListInstance } from './v1/content';
12
+
13
+
14
+ declare class V1 extends Version {
15
+ /**
16
+ * Initialize the V1 version of Content
17
+ *
18
+ * @param domain - The twilio domain
19
+ */
20
+ constructor(domain: Content);
21
+
22
+ readonly contents: ContentListInstance;
23
+ }
24
+
25
+ export = V1;
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ /* jshint ignore:start */
4
+ /**
5
+ * This code was generated by
6
+ * \ / _ _ _| _ _
7
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
8
+ * / /
9
+ */
10
+ /* jshint ignore:end */
11
+
12
+ var _ = require('lodash'); /* jshint ignore:line */
13
+ var ContentList = require('./v1/content').ContentList;
14
+ var Version = require('../../base/Version'); /* jshint ignore:line */
15
+
16
+
17
+ /* jshint ignore:start */
18
+ /**
19
+ * Initialize the V1 version of Content
20
+ *
21
+ * @constructor Twilio.Content.V1
22
+ *
23
+ * @property {Twilio.Content.V1.ContentList} contents - contents resource
24
+ *
25
+ * @param {Twilio.Content} domain - The twilio domain
26
+ */
27
+ /* jshint ignore:end */
28
+ function V1(domain) {
29
+ Version.prototype.constructor.call(this, domain, 'v1');
30
+
31
+ // Resources
32
+ this._contents = undefined;
33
+ }
34
+
35
+ _.extend(V1.prototype, Version.prototype);
36
+ V1.prototype.constructor = V1;
37
+
38
+ Object.defineProperty(V1.prototype,
39
+ 'contents', {
40
+ get: function() {
41
+ this._contents = this._contents || new ContentList(this);
42
+ return this._contents;
43
+ }
44
+ });
45
+
46
+ module.exports = V1;