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,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: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
8
+ */
6
9
  export type RoleRoleType = "conversation" | "service";
7
10
  /**
8
11
  * Options to pass to update a RoleInstance
@@ -26,7 +29,7 @@ export interface RoleListInstanceCreateOptions {
26
29
  * Options to pass to each
27
30
  */
28
31
  export interface RoleListInstanceEachOptions {
29
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
32
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
30
33
  pageSize?: number;
31
34
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
32
35
  callback?: (item: RoleInstance, done: (err?: Error) => void) => void;
@@ -39,7 +42,7 @@ export interface RoleListInstanceEachOptions {
39
42
  * Options to pass to list
40
43
  */
41
44
  export interface RoleListInstanceOptions {
42
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
45
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
43
46
  pageSize?: number;
44
47
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
45
48
  limit?: number;
@@ -48,7 +51,7 @@ export interface RoleListInstanceOptions {
48
51
  * Options to pass to page
49
52
  */
50
53
  export interface RoleListInstancePageOptions {
51
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
54
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
52
55
  pageSize?: number;
53
56
  /** Page Number, this value is simply for client state */
54
57
  pageNumber?: number;
@@ -15,7 +15,7 @@ export interface BindingListInstanceEachOptions {
15
15
  bindingType?: Array<BindingBindingType>;
16
16
  /** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
17
17
  identity?: Array<string>;
18
- /** 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 100. */
19
19
  pageSize?: number;
20
20
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
21
21
  callback?: (item: BindingInstance, done: (err?: Error) => void) => void;
@@ -32,7 +32,7 @@ export interface BindingListInstanceOptions {
32
32
  bindingType?: Array<BindingBindingType>;
33
33
  /** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
34
34
  identity?: Array<string>;
35
- /** 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 100. */
36
36
  pageSize?: number;
37
37
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
38
38
  limit?: number;
@@ -45,7 +45,7 @@ export interface BindingListInstancePageOptions {
45
45
  bindingType?: Array<BindingBindingType>;
46
46
  /** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
47
47
  identity?: Array<string>;
48
- /** 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 100. */
49
49
  pageSize?: number;
50
50
  /** Page Number, this value is simply for client state */
51
51
  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 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;
@@ -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: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
8
+ */
6
9
  export type RoleRoleType = "conversation" | "service";
7
10
  /**
8
11
  * Options to pass to update a RoleInstance
@@ -26,7 +29,7 @@ export interface RoleListInstanceCreateOptions {
26
29
  * Options to pass to each
27
30
  */
28
31
  export interface RoleListInstanceEachOptions {
29
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
32
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
30
33
  pageSize?: number;
31
34
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
32
35
  callback?: (item: RoleInstance, done: (err?: Error) => void) => void;
@@ -39,7 +42,7 @@ export interface RoleListInstanceEachOptions {
39
42
  * Options to pass to list
40
43
  */
41
44
  export interface RoleListInstanceOptions {
42
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
45
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
43
46
  pageSize?: number;
44
47
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
45
48
  limit?: number;
@@ -48,7 +51,7 @@ export interface RoleListInstanceOptions {
48
51
  * Options to pass to page
49
52
  */
50
53
  export interface RoleListInstancePageOptions {
51
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
54
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
52
55
  pageSize?: number;
53
56
  /** Page Number, this value is simply for client state */
54
57
  pageNumber?: number;
@@ -7,6 +7,9 @@ import V1 from "../../../V1";
7
7
  * The Notification Level of this User Conversation. One of `default` or `muted`.
8
8
  */
9
9
  export type UserConversationNotificationLevel = "default" | "muted";
10
+ /**
11
+ * The current state of this User Conversation. One of `inactive`, `active` or `closed`.
12
+ */
10
13
  export type UserConversationState = "inactive" | "active" | "closed";
11
14
  /**
12
15
  * Options to pass to update a UserConversationInstance
@@ -23,7 +26,7 @@ export interface UserConversationContextUpdateOptions {
23
26
  * Options to pass to each
24
27
  */
25
28
  export interface UserConversationListInstanceEachOptions {
26
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
29
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
27
30
  pageSize?: number;
28
31
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
29
32
  callback?: (item: UserConversationInstance, done: (err?: Error) => void) => void;
@@ -36,7 +39,7 @@ export interface UserConversationListInstanceEachOptions {
36
39
  * Options to pass to list
37
40
  */
38
41
  export interface UserConversationListInstanceOptions {
39
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
42
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
40
43
  pageSize?: number;
41
44
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
42
45
  limit?: number;
@@ -45,7 +48,7 @@ export interface UserConversationListInstanceOptions {
45
48
  * Options to pass to page
46
49
  */
47
50
  export interface UserConversationListInstancePageOptions {
48
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
51
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
49
52
  pageSize?: number;
50
53
  /** Page Number, this value is simply for client state */
51
54
  pageNumber?: number;
@@ -44,7 +44,7 @@ export interface UserListInstanceCreateOptions {
44
44
  * Options to pass to each
45
45
  */
46
46
  export interface UserListInstanceEachOptions {
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
47
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
48
48
  pageSize?: number;
49
49
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
50
50
  callback?: (item: UserInstance, done: (err?: Error) => void) => void;
@@ -57,7 +57,7 @@ export interface UserListInstanceEachOptions {
57
57
  * Options to pass to list
58
58
  */
59
59
  export interface UserListInstanceOptions {
60
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
60
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
61
61
  pageSize?: number;
62
62
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
63
63
  limit?: number;
@@ -66,7 +66,7 @@ export interface UserListInstanceOptions {
66
66
  * Options to pass to page
67
67
  */
68
68
  export interface UserListInstancePageOptions {
69
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
69
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
70
70
  pageSize?: number;
71
71
  /** Page Number, this value is simply for client state */
72
72
  pageNumber?: number;
@@ -21,7 +21,7 @@ export interface ServiceListInstanceCreateOptions {
21
21
  * Options to pass to each
22
22
  */
23
23
  export interface ServiceListInstanceEachOptions {
24
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
24
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
25
25
  pageSize?: number;
26
26
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
27
27
  callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
@@ -34,7 +34,7 @@ export interface ServiceListInstanceEachOptions {
34
34
  * Options to pass to list
35
35
  */
36
36
  export interface ServiceListInstanceOptions {
37
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
37
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
38
38
  pageSize?: number;
39
39
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
40
40
  limit?: number;
@@ -43,7 +43,7 @@ export interface ServiceListInstanceOptions {
43
43
  * Options to pass to page
44
44
  */
45
45
  export interface ServiceListInstancePageOptions {
46
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
46
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
47
47
  pageSize?: number;
48
48
  /** Page Number, this value is simply for client state */
49
49
  pageNumber?: number;
@@ -7,6 +7,9 @@ import V1 from "../../V1";
7
7
  * The Notification Level of this User Conversation. One of `default` or `muted`.
8
8
  */
9
9
  export type UserConversationNotificationLevel = "default" | "muted";
10
+ /**
11
+ * The current state of this User Conversation. One of `inactive`, `active` or `closed`.
12
+ */
10
13
  export type UserConversationState = "inactive" | "active" | "closed";
11
14
  /**
12
15
  * Options to pass to update a UserConversationInstance
@@ -23,7 +26,7 @@ export interface UserConversationContextUpdateOptions {
23
26
  * Options to pass to each
24
27
  */
25
28
  export interface UserConversationListInstanceEachOptions {
26
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
29
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
27
30
  pageSize?: number;
28
31
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
29
32
  callback?: (item: UserConversationInstance, done: (err?: Error) => void) => void;
@@ -36,7 +39,7 @@ export interface UserConversationListInstanceEachOptions {
36
39
  * Options to pass to list
37
40
  */
38
41
  export interface UserConversationListInstanceOptions {
39
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
42
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
40
43
  pageSize?: number;
41
44
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
42
45
  limit?: number;
@@ -45,7 +48,7 @@ export interface UserConversationListInstanceOptions {
45
48
  * Options to pass to page
46
49
  */
47
50
  export interface UserConversationListInstancePageOptions {
48
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
51
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
49
52
  pageSize?: number;
50
53
  /** Page Number, this value is simply for client state */
51
54
  pageNumber?: number;
@@ -44,7 +44,7 @@ export interface UserListInstanceCreateOptions {
44
44
  * Options to pass to each
45
45
  */
46
46
  export interface UserListInstanceEachOptions {
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
47
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
48
48
  pageSize?: number;
49
49
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
50
50
  callback?: (item: UserInstance, done: (err?: Error) => void) => void;
@@ -57,7 +57,7 @@ export interface UserListInstanceEachOptions {
57
57
  * Options to pass to list
58
58
  */
59
59
  export interface UserListInstanceOptions {
60
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
60
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
61
61
  pageSize?: number;
62
62
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
63
63
  limit?: number;
@@ -66,7 +66,7 @@ export interface UserListInstanceOptions {
66
66
  * Options to pass to page
67
67
  */
68
68
  export interface UserListInstancePageOptions {
69
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
69
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
70
70
  pageSize?: number;
71
71
  /** Page Number, this value is simply for client state */
72
72
  pageNumber?: number;
@@ -1,7 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../../V1";
4
+ /**
5
+ * The status of the Transfer. Can be: `active`, `completed`, `failed`.
6
+ */
4
7
  export type InteractionTransferTransferStatus = "active" | "failed" | "completed";
8
+ /**
9
+ * The type of the Transfer. Can be: `cold`, `warm`.
10
+ */
5
11
  export type InteractionTransferTransferType = "warm" | "cold" | "external";
6
12
  /**
7
13
  * Options to pass to update a InteractionTransferInstance
@@ -6,6 +6,9 @@ import V1 from "../../V1";
6
6
  import { InteractionChannelInviteListInstance } from "./interactionChannel/interactionChannelInvite";
7
7
  import { InteractionChannelParticipantListInstance } from "./interactionChannel/interactionChannelParticipant";
8
8
  import { InteractionTransferListInstance } from "./interactionChannel/interactionTransfer";
9
+ /**
10
+ * The status of this channel.
11
+ */
9
12
  export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed" | "inactive";
10
13
  /**
11
14
  * The Interaction Channel\'s type. Can be: `sms`, `email`, `chat`, `whatsapp`, `web`, `messenger`, or `gbm`. **Note:** These can be different from the task channel type specified in the Routing attributes. Task channel type corresponds to channel capacity while this channel type is the actual media type
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../V1";
4
+ /**
5
+ * Current state of this user. Can be either `active` or `deactivated` and defaults to `active`
6
+ */
4
7
  export type UserStateType = "active" | "deactivated";
5
8
  /**
6
9
  * Options to pass to update a UserInstance
@@ -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 HTTP method for the Webhook. One of `GET` or `POST`.
8
+ */
6
9
  export type ServiceHttpMethod = "GET" | "POST" | "NULL";
7
10
  /**
8
11
  * Options to pass to update a ServiceInstance
@@ -90,6 +90,8 @@ export interface KnowledgeListInstanceCreateOptions {
90
90
  export interface KnowledgeListInstanceEachOptions {
91
91
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
92
92
  pageSize?: number;
93
+ /** Json array of tag and value pairs for tag filtering. */
94
+ tags?: string;
93
95
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
94
96
  callback?: (item: KnowledgeInstance, done: (err?: Error) => void) => void;
95
97
  /** Function to be called upon completion of streaming */
@@ -103,6 +105,8 @@ export interface KnowledgeListInstanceEachOptions {
103
105
  export interface KnowledgeListInstanceOptions {
104
106
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
105
107
  pageSize?: number;
108
+ /** Json array of tag and value pairs for tag filtering. */
109
+ tags?: string;
106
110
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
107
111
  limit?: number;
108
112
  }
@@ -112,6 +116,8 @@ export interface KnowledgeListInstanceOptions {
112
116
  export interface KnowledgeListInstancePageOptions {
113
117
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
114
118
  pageSize?: number;
119
+ /** Json array of tag and value pairs for tag filtering. */
120
+ tags?: string;
115
121
  /** Page Number, this value is simply for client state */
116
122
  pageNumber?: number;
117
123
  /** PageToken provided by the API */
@@ -238,6 +238,8 @@ function KnowledgeListInstance(version) {
238
238
  let data = {};
239
239
  if (params["pageSize"] !== undefined)
240
240
  data["PageSize"] = params["pageSize"];
241
+ if (params["tags"] !== undefined)
242
+ data["Tags"] = params["tags"];
241
243
  if (params.pageNumber !== undefined)
242
244
  data["Page"] = params.pageNumber;
243
245
  if (params.pageToken !== undefined)
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../V2";
4
+ /**
5
+ * Contains reasons why a phone number is invalid. Possible values: TOO_SHORT, TOO_LONG, INVALID_BUT_POSSIBLE, INVALID_COUNTRY_CODE, INVALID_LENGTH, NOT_A_NUMBER.
6
+ */
4
7
  export type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT_POSSIBLE" | "INVALID_COUNTRY_CODE" | "INVALID_LENGTH" | "NOT_A_NUMBER";
5
8
  /**
6
9
  * Options to pass to fetch a PhoneNumberInstance
@@ -16,6 +16,8 @@ export interface DestinationAlphaSenderListInstanceCreateOptions {
16
16
  * Options to pass to each
17
17
  */
18
18
  export interface DestinationAlphaSenderListInstanceEachOptions {
19
+ /** Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code. */
20
+ isoCountryCode?: string;
19
21
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
20
22
  pageSize?: number;
21
23
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -29,6 +31,8 @@ export interface DestinationAlphaSenderListInstanceEachOptions {
29
31
  * Options to pass to list
30
32
  */
31
33
  export interface DestinationAlphaSenderListInstanceOptions {
34
+ /** Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code. */
35
+ isoCountryCode?: string;
32
36
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
33
37
  pageSize?: number;
34
38
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -38,6 +42,8 @@ export interface DestinationAlphaSenderListInstanceOptions {
38
42
  * Options to pass to page
39
43
  */
40
44
  export interface DestinationAlphaSenderListInstancePageOptions {
45
+ /** Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code. */
46
+ isoCountryCode?: string;
41
47
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
42
48
  pageSize?: number;
43
49
  /** Page Number, this value is simply for client state */
@@ -178,6 +178,8 @@ function DestinationAlphaSenderListInstance(version, serviceSid) {
178
178
  params = params || {};
179
179
  }
180
180
  let data = {};
181
+ if (params["isoCountryCode"] !== undefined)
182
+ data["IsoCountryCode"] = params["isoCountryCode"];
181
183
  if (params["pageSize"] !== undefined)
182
184
  data["PageSize"] = params["pageSize"];
183
185
  if (params.pageNumber !== undefined)
@@ -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 Credential type. 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,8 +7,8 @@ import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNum
7
7
  import { PortingPortabilityListInstance } from "./v1/portingPortability";
8
8
  import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
9
9
  import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
10
+ import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
10
11
  import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
11
- import { WebhookListInstance } from "./v1/webhook";
12
12
  export default class V1 extends Version {
13
13
  /**
14
14
  * Initialize the V1 version of Numbers
@@ -30,10 +30,10 @@ export default class V1 extends Version {
30
30
  protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
31
31
  /** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
32
32
  protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
33
+ /** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
34
+ protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
33
35
  /** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
34
36
  protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
35
- /** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
36
- protected _webhook?: WebhookListInstance;
37
37
  /** Getter for bulkEligibilities resource */
38
38
  get bulkEligibilities(): BulkEligibilityListInstance;
39
39
  /** Getter for eligibilities resource */
@@ -48,8 +48,8 @@ export default class V1 extends Version {
48
48
  get portingWebhookConfigurations(): PortingWebhookConfigurationListInstance;
49
49
  /** Getter for portingWebhookConfigurationsDelete resource */
50
50
  get portingWebhookConfigurationsDelete(): PortingWebhookConfigurationDeleteListInstance;
51
+ /** Getter for portingWebhookConfigurationFetch resource */
52
+ get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance;
51
53
  /** Getter for signingRequestConfigurations resource */
52
54
  get signingRequestConfigurations(): SigningRequestConfigurationListInstance;
53
- /** Getter for webhook resource */
54
- get webhook(): WebhookListInstance;
55
55
  }