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.
Files changed (86) hide show
  1. package/CHANGES.md +55 -0
  2. package/lib/rest/Api.d.ts +2 -0
  3. package/lib/rest/Api.js +9 -0
  4. package/lib/rest/Authy.js +5 -5
  5. package/lib/rest/Preview.d.ts +0 -2
  6. package/lib/rest/Preview.js +12 -23
  7. package/lib/rest/Twilio.d.ts +1 -0
  8. package/lib/rest/Twilio.js +9 -0
  9. package/lib/rest/Video.js +8 -8
  10. package/lib/rest/api/V2010.d.ts +3 -0
  11. package/lib/rest/api/V2010.js +9 -0
  12. package/lib/rest/api/v2010/account/balance.d.ts +87 -0
  13. package/lib/rest/api/v2010/account/balance.js +162 -0
  14. package/lib/rest/api/v2010/account/message.d.ts +2 -0
  15. package/lib/rest/api/v2010/account/message.js +4 -1
  16. package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +3 -3
  17. package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +3 -3
  18. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  19. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  21. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  22. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  23. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  24. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  25. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  26. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  27. package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
  28. package/lib/rest/api/v2010/account.d.ts +8 -0
  29. package/lib/rest/api/v2010/account.js +25 -0
  30. package/lib/rest/authy/V1.d.ts +1 -1
  31. package/lib/rest/authy/V1.js +8 -8
  32. package/lib/rest/authy/v1/form.d.ts +13 -13
  33. package/lib/rest/authy/v1/form.js +17 -17
  34. package/lib/rest/authy/v1/service/entity/factor/challenge.d.ts +12 -13
  35. package/lib/rest/authy/v1/service/entity/factor/challenge.js +4 -6
  36. package/lib/rest/authy/v1/service/entity/factor.d.ts +9 -9
  37. package/lib/rest/authy/v1/service/entity/factor.js +7 -9
  38. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +5 -5
  39. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +9 -5
  40. package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +5 -5
  41. package/lib/rest/autopilot/v1/assistant/fieldType.js +8 -5
  42. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +5 -5
  43. package/lib/rest/autopilot/v1/assistant/modelBuild.js +8 -5
  44. package/lib/rest/autopilot/v1/assistant/query.d.ts +17 -17
  45. package/lib/rest/autopilot/v1/assistant/query.js +24 -18
  46. package/lib/rest/autopilot/v1/assistant/task/field.d.ts +11 -11
  47. package/lib/rest/autopilot/v1/assistant/task/field.js +15 -11
  48. package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +18 -18
  49. package/lib/rest/autopilot/v1/assistant/task/sample.js +23 -21
  50. package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +2 -2
  51. package/lib/rest/autopilot/v1/assistant/task/taskActions.js +4 -3
  52. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +6 -6
  53. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +7 -6
  54. package/lib/rest/autopilot/v1/assistant/task.d.ts +10 -10
  55. package/lib/rest/autopilot/v1/assistant/task.js +21 -12
  56. package/lib/rest/autopilot/v1/assistant.d.ts +15 -15
  57. package/lib/rest/autopilot/v1/assistant.js +25 -20
  58. package/lib/rest/chat/v2/service/channel/member.d.ts +7 -0
  59. package/lib/rest/chat/v2/service/channel/member.js +13 -2
  60. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +7 -0
  61. package/lib/rest/ipMessaging/v2/service/channel/member.js +13 -2
  62. package/lib/rest/preview/Marketplace.d.ts +1 -1
  63. package/lib/rest/preview/Marketplace.js +9 -9
  64. package/lib/rest/proxy/v1/service.d.ts +7 -0
  65. package/lib/rest/proxy/v1/service.js +13 -2
  66. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +10 -2
  67. package/lib/rest/sync/v1/service/syncList/syncListItem.js +24 -5
  68. package/lib/rest/sync/v1/service/syncList.d.ts +6 -2
  69. package/lib/rest/sync/v1/service/syncList.js +12 -5
  70. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +10 -2
  71. package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +24 -6
  72. package/lib/rest/sync/v1/service/syncMap.d.ts +6 -2
  73. package/lib/rest/sync/v1/service/syncMap.js +12 -5
  74. package/lib/rest/verify/v1/service/verification.d.ts +4 -0
  75. package/lib/rest/verify/v1/service/verification.js +5 -1
  76. package/lib/rest/video/V1.d.ts +1 -1
  77. package/lib/rest/video/V1.js +10 -10
  78. package/lib/twiml/VoiceResponse.d.ts +124 -0
  79. package/lib/twiml/VoiceResponse.js +960 -0
  80. package/package.json +1 -1
  81. package/lib/rest/preview/Authy.d.ts +0 -27
  82. package/lib/rest/preview/Authy.js +0 -44
  83. package/lib/rest/preview/authy/service/entity.d.ts +0 -250
  84. package/lib/rest/preview/authy/service/entity.js +0 -514
  85. package/lib/rest/preview/authy/service.d.ts +0 -275
  86. package/lib/rest/preview/authy/service.js +0 -578
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "3.23.0",
4
+ "version": "3.25.0",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -1,27 +0,0 @@
1
- /**
2
- * This code was generated by
3
- * \ / _ _ _| _ _
4
- * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- * / /
6
- */
7
-
8
- import Preview = require('../Preview');
9
- import Version = require('../../base/Version');
10
- import { ServiceList } from './authy/service';
11
- import { ServiceListInstance } from './authy/service';
12
-
13
-
14
- declare class Authy extends Version {
15
- /**
16
- * Initialize the Authy version of Preview
17
- *
18
- * @property services - services resource
19
- *
20
- * @param domain - The twilio domain
21
- */
22
- constructor(domain: Preview);
23
-
24
- readonly services: ServiceListInstance;
25
- }
26
-
27
- export = Authy;
@@ -1,44 +0,0 @@
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 ServiceList = require('./authy/service').ServiceList;
14
- var Version = require('../../base/Version'); /* jshint ignore:line */
15
-
16
-
17
- /* jshint ignore:start */
18
- /**
19
- * Initialize the Authy version of Preview
20
- *
21
- * @property {Twilio.Preview.Authy.ServiceList} services - services resource
22
- *
23
- * @param {Twilio.Preview} domain - The twilio domain
24
- */
25
- /* jshint ignore:end */
26
- function Authy(domain) {
27
- Version.prototype.constructor.call(this, domain, 'Authy');
28
-
29
- // Resources
30
- this._services = undefined;
31
- }
32
-
33
- _.extend(Authy.prototype, Version.prototype);
34
- Authy.prototype.constructor = Authy;
35
-
36
- Object.defineProperty(Authy.prototype,
37
- 'services', {
38
- get: function() {
39
- this._services = this._services || new ServiceList(this);
40
- return this._services;
41
- }
42
- });
43
-
44
- module.exports = Authy;
@@ -1,250 +0,0 @@
1
- /**
2
- * This code was generated by
3
- * \ / _ _ _| _ _
4
- * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- * / /
6
- */
7
-
8
- import Authy = require('../../Authy');
9
- import Page = require('../../../../base/Page');
10
- import Response = require('../../../../http/response');
11
- import { SerializableClass } from '../../../../interfaces';
12
-
13
- /**
14
- * @description Initialize the EntityList
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
- *
17
- * @param version - Version of the resource
18
- * @param serviceSid - Service Sid.
19
- */
20
- declare function EntityList(version: Authy, serviceSid: string): EntityListInstance;
21
-
22
- interface EntityListInstance {
23
- /**
24
- * @param sid - sid of instance
25
- */
26
- (sid: string): EntityContext;
27
- /**
28
- * create a EntityInstance
29
- *
30
- * @param opts - Options for request
31
- * @param callback - Callback to handle processed record
32
- */
33
- create(opts: EntityListInstanceCreateOptions, callback?: (error: Error | null, item: EntityInstance) => any): Promise<EntityInstance>;
34
- /**
35
- * Streams EntityInstance records from the API.
36
- *
37
- * This operation lazily loads records as efficiently as possible until the limit
38
- * is reached.
39
- *
40
- * The results are passed into the callback function, so this operation is memory efficient.
41
- *
42
- * If a function is passed as the first argument, it will be used as the callback function.
43
- *
44
- * @param opts - Options for request
45
- * @param callback - Function to process each record
46
- */
47
- each(opts?: EntityListInstanceEachOptions, callback?: (item: EntityInstance, done: (err?: Error) => void) => void): void;
48
- /**
49
- * Constructs a entity
50
- *
51
- * @param identity - Unique identity of the Entity
52
- */
53
- get(identity: string): EntityContext;
54
- /**
55
- * Retrieve a single target page of EntityInstance records from the API.
56
- * Request is executed immediately
57
- *
58
- * If a function is passed as the first argument, it will be used as the callback function.
59
- *
60
- * @param targetUrl - API-generated URL for the requested results page
61
- * @param callback - Callback to handle list of records
62
- */
63
- getPage(targetUrl?: string, callback?: (error: Error | null, items: EntityPage) => any): Promise<EntityPage>;
64
- /**
65
- * Lists EntityInstance records from the API as a list.
66
- *
67
- * If a function is passed as the first argument, it will be used as the callback function.
68
- *
69
- * @param opts - Options for request
70
- * @param callback - Callback to handle list of records
71
- */
72
- list(opts?: EntityListInstanceOptions, callback?: (error: Error | null, items: EntityInstance[]) => any): Promise<EntityInstance[]>;
73
- /**
74
- * Retrieve a single page of EntityInstance records from the API.
75
- * Request is executed immediately
76
- *
77
- * If a function is passed as the first argument, it will be used as the callback function.
78
- *
79
- * @param opts - Options for request
80
- * @param callback - Callback to handle list of records
81
- */
82
- page(opts?: EntityListInstancePageOptions, callback?: (error: Error | null, items: EntityPage) => any): Promise<EntityPage>;
83
- }
84
-
85
- /**
86
- * Options to pass to create
87
- *
88
- * @property identity - Unique identity of the Entity
89
- */
90
- interface EntityListInstanceCreateOptions {
91
- identity: string;
92
- }
93
-
94
- /**
95
- * Options to pass to each
96
- *
97
- * @property callback -
98
- * Function to process each record. If this and a positional
99
- * callback are passed, this one will be used
100
- * @property done - Function to be called upon completion of streaming
101
- * @property limit -
102
- * Upper limit for the number of records to return.
103
- * each() guarantees never to return more than limit.
104
- * Default is no limit
105
- * @property pageSize -
106
- * Number of records to fetch per request,
107
- * when not set will use the default value of 50 records.
108
- * If no pageSize is defined but a limit is defined,
109
- * each() will attempt to read the limit with the most efficient
110
- * page size, i.e. min(limit, 1000)
111
- */
112
- interface EntityListInstanceEachOptions {
113
- callback?: (item: EntityInstance, done: (err?: Error) => void) => void;
114
- done?: Function;
115
- limit?: number;
116
- pageSize?: number;
117
- }
118
-
119
- /**
120
- * Options to pass to list
121
- *
122
- * @property limit -
123
- * Upper limit for the number of records to return.
124
- * list() guarantees never to return more than limit.
125
- * Default is no limit
126
- * @property pageSize -
127
- * Number of records to fetch per request,
128
- * when not set will use the default value of 50 records.
129
- * If no page_size is defined but a limit is defined,
130
- * list() will attempt to read the limit with the most
131
- * efficient page size, i.e. min(limit, 1000)
132
- */
133
- interface EntityListInstanceOptions {
134
- limit?: number;
135
- pageSize?: number;
136
- }
137
-
138
- /**
139
- * Options to pass to page
140
- *
141
- * @property pageNumber - Page Number, this value is simply for client state
142
- * @property pageSize - Number of records to return, defaults to 50
143
- * @property pageToken - PageToken provided by the API
144
- */
145
- interface EntityListInstancePageOptions {
146
- pageNumber?: number;
147
- pageSize?: number;
148
- pageToken?: string;
149
- }
150
-
151
- interface EntityPayload extends EntityResource, Page.TwilioResponsePayload {
152
- }
153
-
154
- interface EntityResource {
155
- account_sid: string;
156
- date_created: Date;
157
- date_updated: Date;
158
- identity: string;
159
- links: string;
160
- service_sid: string;
161
- sid: string;
162
- url: string;
163
- }
164
-
165
- interface EntitySolution {
166
- serviceSid?: string;
167
- }
168
-
169
-
170
- declare class EntityContext {
171
- /**
172
- * Initialize the EntityContextPLEASE 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.
173
- *
174
- * @param version - Version of the resource
175
- * @param serviceSid - Service Sid.
176
- * @param identity - Unique identity of the Entity
177
- */
178
- constructor(version: Authy, serviceSid: string, identity: string);
179
-
180
- /**
181
- * fetch a EntityInstance
182
- *
183
- * @param callback - Callback to handle processed record
184
- */
185
- fetch(callback?: (error: Error | null, items: EntityInstance) => any): Promise<EntityInstance>;
186
- }
187
-
188
-
189
- declare class EntityInstance extends SerializableClass {
190
- /**
191
- * Initialize the EntityContextPLEASE 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.
192
- *
193
- * @property sid - A string that uniquely identifies this Entity.
194
- * @property identity - Unique identity of the Entity
195
- * @property accountSid - Account Sid.
196
- * @property serviceSid - Service Sid.
197
- * @property dateCreated - The date this Entity was created
198
- * @property dateUpdated - The date this Entity was updated
199
- * @property url - The URL of this resource.
200
- * @property links - Nested resource URLs.
201
- *
202
- * @param version - Version of the resource
203
- * @param payload - The instance payload
204
- * @param serviceSid - Service Sid.
205
- * @param identity - Unique identity of the Entity
206
- */
207
- constructor(version: Authy, payload: EntityPayload, serviceSid: string, identity: string);
208
-
209
- private _proxy: EntityContext;
210
- accountSid: string;
211
- dateCreated: Date;
212
- dateUpdated: Date;
213
- /**
214
- * fetch a EntityInstance
215
- *
216
- * @param callback - Callback to handle processed record
217
- */
218
- fetch(callback?: (error: Error | null, items: EntityInstance) => any): void;
219
- identity: string;
220
- links: string;
221
- serviceSid: string;
222
- sid: string;
223
- /**
224
- * Produce a plain JSON object version of the EntityInstance for serialization.
225
- * Removes any circular references in the object.
226
- */
227
- toJSON(): any;
228
- url: string;
229
- }
230
-
231
-
232
- declare class EntityPage extends Page<Authy, EntityPayload, EntityResource, EntityInstance> {
233
- /**
234
- * Initialize the EntityPagePLEASE 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.
235
- *
236
- * @param version - Version of the resource
237
- * @param response - Response from the API
238
- * @param solution - Path solution
239
- */
240
- constructor(version: Authy, response: Response<string>, solution: EntitySolution);
241
-
242
- /**
243
- * Build an instance of EntityInstance
244
- *
245
- * @param payload - Payload response from the API
246
- */
247
- getInstance(payload: EntityPayload): EntityInstance;
248
- }
249
-
250
- export { EntityContext, EntityInstance, EntityList, EntityListInstance, EntityListInstanceCreateOptions, EntityListInstanceEachOptions, EntityListInstanceOptions, EntityListInstancePageOptions, EntityPage, EntityPayload, EntityResource, EntitySolution }