twilio 5.7.0 → 5.7.1

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 (88) hide show
  1. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -10
  2. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -2
  3. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +3 -0
  4. package/lib/rest/api/v2010/account/connectApp.d.ts +3 -0
  5. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +3 -0
  6. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +3 -0
  7. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +3 -0
  8. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +3 -0
  9. package/lib/rest/api/v2010/account/recording.d.ts +1 -1
  10. package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -0
  11. package/lib/rest/chat/v1/credential.d.ts +3 -0
  12. package/lib/rest/chat/v1/service/channel.d.ts +3 -0
  13. package/lib/rest/chat/v1/service/role.d.ts +3 -0
  14. package/lib/rest/chat/v1/service/user/userChannel.d.ts +3 -0
  15. package/lib/rest/chat/v2/credential.d.ts +3 -0
  16. package/lib/rest/chat/v2/service/channel.d.ts +3 -0
  17. package/lib/rest/chat/v2/service/role.d.ts +3 -0
  18. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
  19. package/lib/rest/chat/v3/channel.d.ts +3 -0
  20. package/lib/rest/content/v2/content.d.ts +6 -6
  21. package/lib/rest/content/v2/contentAndApprovals.d.ts +9 -9
  22. package/lib/rest/conversations/v1/addressConfiguration.d.ts +3 -3
  23. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +6 -3
  24. package/lib/rest/conversations/v1/conversation/message.d.ts +3 -3
  25. package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
  26. package/lib/rest/conversations/v1/conversation/webhook.d.ts +3 -3
  27. package/lib/rest/conversations/v1/conversation.d.ts +3 -3
  28. package/lib/rest/conversations/v1/credential.d.ts +6 -3
  29. package/lib/rest/conversations/v1/participantConversation.d.ts +6 -3
  30. package/lib/rest/conversations/v1/role.d.ts +6 -3
  31. package/lib/rest/conversations/v1/service/binding.d.ts +3 -3
  32. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +6 -3
  33. package/lib/rest/conversations/v1/service/conversation/message.d.ts +3 -3
  34. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
  35. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +3 -3
  36. package/lib/rest/conversations/v1/service/conversation.d.ts +3 -3
  37. package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -3
  38. package/lib/rest/conversations/v1/service/role.d.ts +6 -3
  39. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +6 -3
  40. package/lib/rest/conversations/v1/service/user.d.ts +3 -3
  41. package/lib/rest/conversations/v1/service.d.ts +3 -3
  42. package/lib/rest/conversations/v1/user/userConversation.d.ts +6 -3
  43. package/lib/rest/conversations/v1/user.d.ts +3 -3
  44. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +6 -0
  45. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -0
  46. package/lib/rest/frontlineApi/v1/user.d.ts +3 -0
  47. package/lib/rest/intelligence/v2/service.d.ts +3 -0
  48. package/lib/rest/knowledge/v1/knowledge.d.ts +6 -0
  49. package/lib/rest/knowledge/v1/knowledge.js +2 -0
  50. package/lib/rest/lookups/v2/phoneNumber.d.ts +3 -0
  51. package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +6 -0
  52. package/lib/rest/messaging/v1/service/destinationAlphaSender.js +2 -0
  53. package/lib/rest/notify/v1/credential.d.ts +3 -0
  54. package/lib/rest/numbers/V1.d.ts +5 -5
  55. package/lib/rest/numbers/V1.js +8 -6
  56. package/lib/rest/numbers/v1/{webhook.d.ts → portingWebhookConfigurationFetch.d.ts} +10 -10
  57. package/lib/rest/numbers/v1/{webhook.js → portingWebhookConfigurationFetch.js} +6 -6
  58. package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
  59. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
  60. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +3 -0
  61. package/lib/rest/sync/v1/service/document/documentPermission.d.ts +3 -3
  62. package/lib/rest/sync/v1/service/document.d.ts +3 -3
  63. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +3 -3
  64. package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +3 -3
  65. package/lib/rest/sync/v1/service/syncList.d.ts +3 -3
  66. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +3 -3
  67. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +3 -3
  68. package/lib/rest/sync/v1/service/syncMap.d.ts +3 -3
  69. package/lib/rest/sync/v1/service/syncStream.d.ts +3 -3
  70. package/lib/rest/sync/v1/service.d.ts +3 -3
  71. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +3 -0
  72. package/lib/rest/taskrouter/v1/workspace/task.d.ts +3 -0
  73. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -0
  74. package/lib/rest/taskrouter/v1/workspace.d.ts +3 -0
  75. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +3 -0
  76. package/lib/rest/trunking/v1/trunk/recording.d.ts +6 -0
  77. package/lib/rest/trunking/v1/trunk.d.ts +3 -0
  78. package/lib/rest/verify/v2/form.d.ts +3 -0
  79. package/lib/rest/verify/v2/service/accessToken.d.ts +3 -0
  80. package/lib/rest/verify/v2/service/entity/challenge.d.ts +9 -0
  81. package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -0
  82. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +6 -0
  83. package/lib/rest/verify/v2/service/webhook.d.ts +3 -0
  84. package/lib/rest/verify/v2/verificationAttempt.d.ts +4 -1
  85. package/lib/rest/video/v1/composition.d.ts +3 -3
  86. package/lib/rest/video/v1/recording.d.ts +3 -3
  87. package/lib/twiml/VoiceResponse.d.ts +1 -1
  88. package/package.json +1 -1
@@ -3,7 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
- import { PhoneNumberCapabilities } from "../../../../../interfaces";
6
+ /**
7
+ * Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio. Can be: `none`, `any`, `local`, or `foreign`.
8
+ */
7
9
  export type DependentPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
8
10
  /**
9
11
  * Whether the phone number is enabled for emergency calling.
@@ -120,14 +122,14 @@ interface DependentPhoneNumberResource {
120
122
  voice_fallback_method: string;
121
123
  voice_fallback_url: string;
122
124
  voice_caller_id_lookup: boolean;
123
- date_created: string;
124
- date_updated: string;
125
+ date_created: Date;
126
+ date_updated: Date;
125
127
  sms_fallback_method: string;
126
128
  sms_fallback_url: string;
127
129
  sms_method: string;
128
130
  sms_url: string;
129
131
  address_requirements: DependentPhoneNumberAddressRequirement;
130
- capabilities: PhoneNumberCapabilities;
132
+ capabilities: Record<string, object>;
131
133
  status_callback: string;
132
134
  status_callback_method: string;
133
135
  api_version: string;
@@ -180,11 +182,11 @@ export declare class DependentPhoneNumberInstance {
180
182
  /**
181
183
  * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
182
184
  */
183
- dateCreated: string;
185
+ dateCreated: Date;
184
186
  /**
185
187
  * The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
186
188
  */
187
- dateUpdated: string;
189
+ dateUpdated: Date;
188
190
  /**
189
191
  * The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
190
192
  */
@@ -202,7 +204,10 @@ export declare class DependentPhoneNumberInstance {
202
204
  */
203
205
  smsUrl: string;
204
206
  addressRequirements: DependentPhoneNumberAddressRequirement;
205
- capabilities: PhoneNumberCapabilities;
207
+ /**
208
+ * The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
209
+ */
210
+ capabilities: Record<string, object>;
206
211
  /**
207
212
  * The URL we call using the `status_callback_method` to send status information to your application.
208
213
  */
@@ -251,14 +256,14 @@ export declare class DependentPhoneNumberInstance {
251
256
  voiceFallbackMethod: string;
252
257
  voiceFallbackUrl: string;
253
258
  voiceCallerIdLookup: boolean;
254
- dateCreated: string;
255
- dateUpdated: string;
259
+ dateCreated: Date;
260
+ dateUpdated: Date;
256
261
  smsFallbackMethod: string;
257
262
  smsFallbackUrl: string;
258
263
  smsMethod: string;
259
264
  smsUrl: string;
260
265
  addressRequirements: DependentPhoneNumberAddressRequirement;
261
- capabilities: PhoneNumberCapabilities;
266
+ capabilities: Record<string, object>;
262
267
  statusCallback: string;
263
268
  statusCallbackMethod: string;
264
269
  apiVersion: string;
@@ -92,8 +92,8 @@ class DependentPhoneNumberInstance {
92
92
  this.voiceFallbackMethod = payload.voice_fallback_method;
93
93
  this.voiceFallbackUrl = payload.voice_fallback_url;
94
94
  this.voiceCallerIdLookup = payload.voice_caller_id_lookup;
95
- this.dateCreated = payload.date_created;
96
- this.dateUpdated = payload.date_updated;
95
+ this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
96
+ this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
97
97
  this.smsFallbackMethod = payload.sms_fallback_method;
98
98
  this.smsFallbackUrl = payload.sms_fallback_url;
99
99
  this.smsMethod = payload.sms_method;
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
+ /**
7
+ * The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
8
+ */
6
9
  export type AuthorizedConnectAppPermission = "get-all" | "post-all";
7
10
  /**
8
11
  * Options to pass to each
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
+ /**
7
+ * The set of permissions that your ConnectApp requests.
8
+ */
6
9
  export type ConnectAppPermission = "get-all" | "post-all";
7
10
  /**
8
11
  * Options to pass to update a ConnectAppInstance
@@ -4,6 +4,9 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
+ /**
8
+ * Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio. Can be: `none`, `any`, `local`, or `foreign`.
9
+ */
7
10
  export type LocalAddressRequirement = "none" | "any" | "local" | "foreign";
8
11
  /**
9
12
  * The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
@@ -4,6 +4,9 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
+ /**
8
+ * Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio. Can be: `none`, `any`, `local`, or `foreign`.
9
+ */
7
10
  export type MobileAddressRequirement = "none" | "any" | "local" | "foreign";
8
11
  /**
9
12
  * The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
@@ -4,6 +4,9 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
6
  import { PhoneNumberCapabilities } from "../../../../../interfaces";
7
+ /**
8
+ * Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio. Can be: `none`, `any`, `local`, or `foreign`.
9
+ */
7
10
  export type TollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
8
11
  /**
9
12
  * The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
@@ -8,6 +8,9 @@ import { LocalListInstance } from "./incomingPhoneNumber/local";
8
8
  import { MobileListInstance } from "./incomingPhoneNumber/mobile";
9
9
  import { TollFreeListInstance } from "./incomingPhoneNumber/tollFree";
10
10
  import { PhoneNumberCapabilities } from "../../../../interfaces";
11
+ /**
12
+ * Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio. Can be: `none`, `any`, `local`, or `foreign`.
13
+ */
11
14
  export type IncomingPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
12
15
  /**
13
16
  * The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
@@ -221,7 +221,7 @@ export declare class RecordingInstance {
221
221
  priceUnit: string;
222
222
  status: RecordingStatus;
223
223
  /**
224
- * The number of channels in the final recording file. Can be: `1` or `2`.
224
+ * The number of channels in the final recording file. Can be: `1` or `2`. Default: `1`.
225
225
  */
226
226
  channels: number;
227
227
  source: RecordingSource;
@@ -7,6 +7,9 @@ import V2010 from "../../../V2010";
7
7
  * The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT.
8
8
  */
9
9
  export type TriggerRecurring = "daily" | "monthly" | "yearly" | "alltime";
10
+ /**
11
+ * The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that fires the trigger. Can be: `count`, `usage`, or `price`, as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
12
+ */
10
13
  export type TriggerTriggerField = "count" | "usage" | "price";
11
14
  /**
12
15
  * The usage category the trigger watches. Must be one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
+ /**
7
+ * The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`.
8
+ */
6
9
  export type CredentialPushService = "gcm" | "apn" | "fcm";
7
10
  /**
8
11
  * Options to pass to update a CredentialInstance
@@ -6,6 +6,9 @@ import V1 from "../../V1";
6
6
  import { InviteListInstance } from "./channel/invite";
7
7
  import { MemberListInstance } from "./channel/member";
8
8
  import { MessageListInstance } from "./channel/message";
9
+ /**
10
+ * The visibility of the channel. Can be: `public` or `private`.
11
+ */
9
12
  export type ChannelChannelType = "public" | "private";
10
13
  /**
11
14
  * Options to pass to update a ChannelInstance
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
+ /**
7
+ * The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles.
8
+ */
6
9
  export type RoleRoleType = "channel" | "deployment";
7
10
  /**
8
11
  * Options to pass to update a RoleInstance
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
+ /**
7
+ * The status of the User on the Channel. Can be: `joined`, `invited`, or `not_participating`.
8
+ */
6
9
  export type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
7
10
  /**
8
11
  * Options to pass to each
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V2 from "../V2";
6
+ /**
7
+ * The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`.
8
+ */
6
9
  export type CredentialPushService = "gcm" | "apn" | "fcm";
7
10
  /**
8
11
  * Options to pass to update a CredentialInstance
@@ -7,6 +7,9 @@ import { InviteListInstance } from "./channel/invite";
7
7
  import { MemberListInstance } from "./channel/member";
8
8
  import { MessageListInstance } from "./channel/message";
9
9
  import { WebhookListInstance } from "./channel/webhook";
10
+ /**
11
+ * The visibility of the channel. Can be: `public` or `private`.
12
+ */
10
13
  export type ChannelChannelType = "public" | "private";
11
14
  export type ChannelWebhookEnabledType = "true" | "false";
12
15
  /**
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2 from "../../V2";
6
+ /**
7
+ * The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles.
8
+ */
6
9
  export type RoleRoleType = "channel" | "deployment";
7
10
  /**
8
11
  * Options to pass to update a RoleInstance
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2 from "../../../V2";
6
+ /**
7
+ * The status of the User on the Channel. Can be: `joined`, `invited`, or `not_participating`.
8
+ */
6
9
  export type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
7
10
  /**
8
11
  * The push notification level of the User for the Channel. Can be: `default` or `muted`.
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V3 from "../V3";
4
+ /**
5
+ * The visibility of the channel. Can be: `public` or `private`.
6
+ */
4
7
  export type ChannelChannelType = "public" | "private";
5
8
  export type ChannelWebhookEnabledType = "true" | "false";
6
9
  /**
@@ -163,8 +163,8 @@ interface ContentResource {
163
163
  account_sid: string;
164
164
  friendly_name: string;
165
165
  language: string;
166
- variables: any;
167
- types: any;
166
+ variables: Record<string, object>;
167
+ types: Record<string, object>;
168
168
  url: string;
169
169
  links: Record<string, string>;
170
170
  }
@@ -198,11 +198,11 @@ export declare class ContentInstance {
198
198
  /**
199
199
  * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
200
200
  */
201
- variables: any;
201
+ variables: Record<string, object>;
202
202
  /**
203
203
  * The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
204
204
  */
205
- types: any;
205
+ types: Record<string, object>;
206
206
  /**
207
207
  * The URL of the resource, relative to `https://content.twilio.com`.
208
208
  */
@@ -223,8 +223,8 @@ export declare class ContentInstance {
223
223
  accountSid: string;
224
224
  friendlyName: string;
225
225
  language: string;
226
- variables: any;
227
- types: any;
226
+ variables: Record<string, object>;
227
+ types: Record<string, object>;
228
228
  url: string;
229
229
  links: Record<string, string>;
230
230
  };
@@ -163,9 +163,9 @@ interface ContentAndApprovalsResource {
163
163
  account_sid: string;
164
164
  friendly_name: string;
165
165
  language: string;
166
- variables: any;
167
- types: any;
168
- approval_requests: any;
166
+ variables: Record<string, object>;
167
+ types: Record<string, object>;
168
+ approval_requests: Record<string, object>;
169
169
  }
170
170
  export declare class ContentAndApprovalsInstance {
171
171
  protected _version: V2;
@@ -197,15 +197,15 @@ export declare class ContentAndApprovalsInstance {
197
197
  /**
198
198
  * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
199
199
  */
200
- variables: any;
200
+ variables: Record<string, object>;
201
201
  /**
202
202
  * The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
203
203
  */
204
- types: any;
204
+ types: Record<string, object>;
205
205
  /**
206
206
  * The submitted information and approval request status of the Content resource.
207
207
  */
208
- approvalRequests: any;
208
+ approvalRequests: Record<string, object>;
209
209
  /**
210
210
  * Provide a user-friendly representation
211
211
  *
@@ -218,9 +218,9 @@ export declare class ContentAndApprovalsInstance {
218
218
  accountSid: string;
219
219
  friendlyName: string;
220
220
  language: string;
221
- variables: any;
222
- types: any;
223
- approvalRequests: any;
221
+ variables: Record<string, object>;
222
+ types: Record<string, object>;
223
+ approvalRequests: Record<string, object>;
224
224
  };
225
225
  [inspect.custom](_depth: any, options: InspectOptions): string;
226
226
  }
@@ -67,7 +67,7 @@ export interface AddressConfigurationListInstanceCreateOptions {
67
67
  export interface AddressConfigurationListInstanceEachOptions {
68
68
  /** Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`. */
69
69
  type?: string;
70
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
70
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
71
71
  pageSize?: number;
72
72
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
73
73
  callback?: (item: AddressConfigurationInstance, done: (err?: Error) => void) => void;
@@ -82,7 +82,7 @@ export interface AddressConfigurationListInstanceEachOptions {
82
82
  export interface AddressConfigurationListInstanceOptions {
83
83
  /** Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`. */
84
84
  type?: string;
85
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
85
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
86
86
  pageSize?: number;
87
87
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
88
88
  limit?: number;
@@ -93,7 +93,7 @@ export interface AddressConfigurationListInstanceOptions {
93
93
  export interface AddressConfigurationListInstancePageOptions {
94
94
  /** Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`. */
95
95
  type?: string;
96
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
96
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
97
97
  pageSize?: number;
98
98
  /** Page Number, this value is simply for client state */
99
99
  pageNumber?: number;
@@ -3,12 +3,15 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
+ /**
7
+ * The message delivery status, can be `read`, `failed`, `delivered`, `undelivered`, `sent` or null.
8
+ */
6
9
  export type DeliveryReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
7
10
  /**
8
11
  * Options to pass to each
9
12
  */
10
13
  export interface DeliveryReceiptListInstanceEachOptions {
11
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
14
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
12
15
  pageSize?: number;
13
16
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
14
17
  callback?: (item: DeliveryReceiptInstance, done: (err?: Error) => void) => void;
@@ -21,7 +24,7 @@ export interface DeliveryReceiptListInstanceEachOptions {
21
24
  * Options to pass to list
22
25
  */
23
26
  export interface DeliveryReceiptListInstanceOptions {
24
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
27
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
25
28
  pageSize?: number;
26
29
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
27
30
  limit?: number;
@@ -30,7 +33,7 @@ export interface DeliveryReceiptListInstanceOptions {
30
33
  * Options to pass to page
31
34
  */
32
35
  export interface DeliveryReceiptListInstancePageOptions {
33
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
36
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
34
37
  pageSize?: number;
35
38
  /** Page Number, this value is simply for client state */
36
39
  pageNumber?: number;
@@ -63,7 +63,7 @@ export interface MessageListInstanceCreateOptions {
63
63
  export interface MessageListInstanceEachOptions {
64
64
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
65
65
  order?: MessageOrderType;
66
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
66
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
67
67
  pageSize?: number;
68
68
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
69
69
  callback?: (item: MessageInstance, done: (err?: Error) => void) => void;
@@ -78,7 +78,7 @@ export interface MessageListInstanceEachOptions {
78
78
  export interface MessageListInstanceOptions {
79
79
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
80
80
  order?: MessageOrderType;
81
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
81
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
82
82
  pageSize?: number;
83
83
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
84
84
  limit?: number;
@@ -89,7 +89,7 @@ export interface MessageListInstanceOptions {
89
89
  export interface MessageListInstancePageOptions {
90
90
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
91
91
  order?: MessageOrderType;
92
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
92
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
93
93
  pageSize?: number;
94
94
  /** Page Number, this value is simply for client state */
95
95
  pageNumber?: number;
@@ -63,7 +63,7 @@ export interface ParticipantListInstanceCreateOptions {
63
63
  * Options to pass to each
64
64
  */
65
65
  export interface ParticipantListInstanceEachOptions {
66
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
66
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
67
67
  pageSize?: number;
68
68
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
69
69
  callback?: (item: ParticipantInstance, done: (err?: Error) => void) => void;
@@ -76,7 +76,7 @@ export interface ParticipantListInstanceEachOptions {
76
76
  * Options to pass to list
77
77
  */
78
78
  export interface ParticipantListInstanceOptions {
79
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
79
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
80
80
  pageSize?: number;
81
81
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
82
82
  limit?: number;
@@ -85,7 +85,7 @@ export interface ParticipantListInstanceOptions {
85
85
  * Options to pass to page
86
86
  */
87
87
  export interface ParticipantListInstancePageOptions {
88
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
88
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
89
89
  pageSize?: number;
90
90
  /** Page Number, this value is simply for client state */
91
91
  pageNumber?: number;
@@ -46,7 +46,7 @@ export interface WebhookListInstanceCreateOptions {
46
46
  * Options to pass to each
47
47
  */
48
48
  export interface WebhookListInstanceEachOptions {
49
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
49
+ /** How many resources to return in each list page. The default is 5, and the maximum is 5. */
50
50
  pageSize?: number;
51
51
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
52
52
  callback?: (item: WebhookInstance, done: (err?: Error) => void) => void;
@@ -59,7 +59,7 @@ export interface WebhookListInstanceEachOptions {
59
59
  * Options to pass to list
60
60
  */
61
61
  export interface WebhookListInstanceOptions {
62
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
62
+ /** How many resources to return in each list page. The default is 5, and the maximum is 5. */
63
63
  pageSize?: number;
64
64
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
65
65
  limit?: number;
@@ -68,7 +68,7 @@ export interface WebhookListInstanceOptions {
68
68
  * Options to pass to page
69
69
  */
70
70
  export interface WebhookListInstancePageOptions {
71
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
71
+ /** How many resources to return in each list page. The default is 5, and the maximum is 5. */
72
72
  pageSize?: number;
73
73
  /** Page Number, this value is simply for client state */
74
74
  pageNumber?: number;
@@ -86,7 +86,7 @@ export interface ConversationListInstanceEachOptions {
86
86
  endDate?: string;
87
87
  /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
88
88
  state?: ConversationState;
89
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
89
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
90
90
  pageSize?: number;
91
91
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
92
92
  callback?: (item: ConversationInstance, done: (err?: Error) => void) => void;
@@ -105,7 +105,7 @@ export interface ConversationListInstanceOptions {
105
105
  endDate?: string;
106
106
  /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
107
107
  state?: ConversationState;
108
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
108
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
109
109
  pageSize?: number;
110
110
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
111
111
  limit?: number;
@@ -120,7 +120,7 @@ export interface ConversationListInstancePageOptions {
120
120
  endDate?: string;
121
121
  /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
122
122
  state?: ConversationState;
123
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
123
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
124
124
  pageSize?: number;
125
125
  /** Page Number, this value is simply for client state */
126
126
  pageNumber?: number;
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
+ /**
7
+ * The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`.
8
+ */
6
9
  export type CredentialPushType = "apn" | "gcm" | "fcm";
7
10
  /**
8
11
  * Options to pass to update a CredentialInstance
@@ -46,7 +49,7 @@ export interface CredentialListInstanceCreateOptions {
46
49
  * Options to pass to each
47
50
  */
48
51
  export interface CredentialListInstanceEachOptions {
49
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
52
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
50
53
  pageSize?: number;
51
54
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
52
55
  callback?: (item: CredentialInstance, done: (err?: Error) => void) => void;
@@ -59,7 +62,7 @@ export interface CredentialListInstanceEachOptions {
59
62
  * Options to pass to list
60
63
  */
61
64
  export interface CredentialListInstanceOptions {
62
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
65
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
63
66
  pageSize?: number;
64
67
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
65
68
  limit?: number;
@@ -68,7 +71,7 @@ export interface CredentialListInstanceOptions {
68
71
  * Options to pass to page
69
72
  */
70
73
  export interface CredentialListInstancePageOptions {
71
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
74
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
72
75
  pageSize?: number;
73
76
  /** Page Number, this value is simply for client state */
74
77
  pageNumber?: number;
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
+ /**
7
+ * The current state of this User Conversation. One of `inactive`, `active` or `closed`.
8
+ */
6
9
  export type ParticipantConversationState = "inactive" | "active" | "closed";
7
10
  /**
8
11
  * Options to pass to each
@@ -12,7 +15,7 @@ export interface ParticipantConversationListInstanceEachOptions {
12
15
  identity?: string;
13
16
  /** A unique string identifier for the conversation participant who\'s not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. */
14
17
  address?: string;
15
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
18
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
16
19
  pageSize?: number;
17
20
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
18
21
  callback?: (item: ParticipantConversationInstance, done: (err?: Error) => void) => void;
@@ -29,7 +32,7 @@ export interface ParticipantConversationListInstanceOptions {
29
32
  identity?: string;
30
33
  /** A unique string identifier for the conversation participant who\'s not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. */
31
34
  address?: string;
32
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
35
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
33
36
  pageSize?: number;
34
37
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
35
38
  limit?: number;
@@ -42,7 +45,7 @@ export interface ParticipantConversationListInstancePageOptions {
42
45
  identity?: string;
43
46
  /** A unique string identifier for the conversation participant who\'s not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. */
44
47
  address?: string;
45
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
48
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
46
49
  pageSize?: number;
47
50
  /** Page Number, this value is simply for client state */
48
51
  pageNumber?: number;