twilio 4.7.2 → 4.8.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 (210) hide show
  1. package/lib/index.d.ts +52 -36
  2. package/lib/index.js +32 -51
  3. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +2 -2
  4. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
  5. package/lib/rest/api/v2010/account/call/feedback.d.ts +1 -1
  6. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +1 -1
  7. package/lib/rest/api/v2010/account/call/payment.d.ts +5 -5
  8. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -2
  9. package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
  10. package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
  11. package/lib/rest/api/v2010/account/call.d.ts +2 -2
  12. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/conference/recording.d.ts +2 -2
  14. package/lib/rest/api/v2010/account/conference.d.ts +4 -4
  15. package/lib/rest/api/v2010/account/connectApp.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +4 -4
  17. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +4 -4
  18. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +4 -4
  19. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +4 -4
  20. package/lib/rest/api/v2010/account/message/feedback.d.ts +1 -1
  21. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  22. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +1 -1
  23. package/lib/rest/api/v2010/account/recording/transcription.d.ts +1 -1
  24. package/lib/rest/api/v2010/account/recording.d.ts +2 -2
  25. package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
  26. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  27. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  28. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  29. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  30. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  31. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  32. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  33. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  34. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  35. package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -3
  36. package/lib/rest/api/v2010/account/usage.d.ts +1 -0
  37. package/lib/rest/api/v2010/account.d.ts +2 -2
  38. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
  39. package/lib/rest/chat/v1/credential.d.ts +1 -1
  40. package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
  41. package/lib/rest/chat/v1/service/channel.d.ts +1 -1
  42. package/lib/rest/chat/v1/service/role.d.ts +1 -1
  43. package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
  44. package/lib/rest/chat/v2/credential.d.ts +1 -1
  45. package/lib/rest/chat/v2/service/binding.d.ts +1 -1
  46. package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
  47. package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
  48. package/lib/rest/chat/v2/service/channel/webhook.d.ts +2 -2
  49. package/lib/rest/chat/v2/service/channel.d.ts +2 -2
  50. package/lib/rest/chat/v2/service/role.d.ts +1 -1
  51. package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
  52. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
  53. package/lib/rest/chat/v2/service/user.d.ts +1 -1
  54. package/lib/rest/chat/v3/channel.d.ts +2 -2
  55. package/lib/rest/conversations/v1/addressConfiguration.d.ts +3 -3
  56. package/lib/rest/conversations/v1/configuration/webhook.d.ts +2 -2
  57. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +1 -1
  58. package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
  59. package/lib/rest/conversations/v1/conversation/participant.d.ts +1 -1
  60. package/lib/rest/conversations/v1/conversation/webhook.d.ts +2 -2
  61. package/lib/rest/conversations/v1/conversation.d.ts +2 -2
  62. package/lib/rest/conversations/v1/credential.d.ts +1 -1
  63. package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
  64. package/lib/rest/conversations/v1/role.d.ts +1 -1
  65. package/lib/rest/conversations/v1/service/binding.d.ts +1 -1
  66. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +1 -1
  67. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +1 -1
  68. package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
  69. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +1 -1
  70. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +2 -2
  71. package/lib/rest/conversations/v1/service/conversation.d.ts +2 -2
  72. package/lib/rest/conversations/v1/service/participantConversation.d.ts +1 -1
  73. package/lib/rest/conversations/v1/service/role.d.ts +1 -1
  74. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +2 -2
  75. package/lib/rest/conversations/v1/service/user.d.ts +1 -1
  76. package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
  77. package/lib/rest/conversations/v1/user.d.ts +1 -1
  78. package/lib/rest/events/v1/sink.d.ts +2 -2
  79. package/lib/rest/flexApi/v1/assessments.d.ts +138 -10
  80. package/lib/rest/flexApi/v1/assessments.js +138 -22
  81. package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
  82. package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
  83. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -0
  84. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -0
  85. package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
  86. package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
  87. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
  88. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
  89. package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
  90. package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
  91. package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
  92. package/lib/rest/insights/v1/call/callSummary.d.ts +4 -4
  93. package/lib/rest/insights/v1/call/event.d.ts +2 -2
  94. package/lib/rest/insights/v1/call/metric.d.ts +2 -2
  95. package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
  96. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
  97. package/lib/rest/insights/v1/conference.d.ts +5 -5
  98. package/lib/rest/insights/v1/room/participant.d.ts +4 -4
  99. package/lib/rest/insights/v1/room.d.ts +8 -8
  100. package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
  101. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
  102. package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
  103. package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
  104. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
  105. package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
  106. package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
  107. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
  108. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
  109. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +2 -2
  110. package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
  111. package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
  112. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
  113. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
  114. package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
  115. package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
  116. package/lib/rest/media/v1/mediaProcessor.d.ts +3 -3
  117. package/lib/rest/media/v1/mediaRecording.d.ts +3 -3
  118. package/lib/rest/media/v1/playerStreamer.d.ts +4 -4
  119. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
  120. package/lib/rest/messaging/v1/brandRegistration.d.ts +3 -3
  121. package/lib/rest/messaging/v1/service.d.ts +1 -1
  122. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
  123. package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
  124. package/lib/rest/microvisor/v1/accountConfig.js +25 -0
  125. package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
  126. package/lib/rest/microvisor/v1/accountSecret.js +25 -0
  127. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
  128. package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
  129. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
  130. package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
  131. package/lib/rest/notify/v1/credential.d.ts +1 -1
  132. package/lib/rest/notify/v1/service/binding.d.ts +1 -1
  133. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  134. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
  135. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
  136. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
  137. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  138. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
  139. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
  140. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
  141. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
  142. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
  143. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
  144. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
  145. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
  146. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
  147. package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
  148. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
  149. package/lib/rest/proxy/v1/service/session.d.ts +2 -2
  150. package/lib/rest/proxy/v1/service.d.ts +2 -2
  151. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
  152. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
  153. package/lib/rest/serverless/v1/service/build.d.ts +2 -2
  154. package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
  155. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
  156. package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
  157. package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
  158. package/lib/rest/studio/v1/flow.d.ts +1 -1
  159. package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
  160. package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
  161. package/lib/rest/studio/v2/flow.d.ts +1 -1
  162. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  163. package/lib/rest/supersim/v1/esimProfile.d.ts +1 -1
  164. package/lib/rest/supersim/v1/fleet.d.ts +1 -1
  165. package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
  166. package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
  167. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
  168. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
  169. package/lib/rest/supersim/v1/sim.d.ts +2 -2
  170. package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
  171. package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
  172. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  173. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  174. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +4 -4
  175. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  176. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
  177. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -3
  178. package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
  179. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +1 -1
  180. package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
  181. package/lib/rest/trunking/v1/trunk.d.ts +2 -2
  182. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +1 -1
  183. package/lib/rest/trusthub/v1/customerProfiles.d.ts +1 -1
  184. package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
  185. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +1 -1
  186. package/lib/rest/trusthub/v1/trustProducts.d.ts +1 -1
  187. package/lib/rest/verify/v2/form.d.ts +1 -1
  188. package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
  189. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
  190. package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
  191. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
  192. package/lib/rest/verify/v2/service/verification.d.ts +2 -2
  193. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  194. package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
  195. package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
  196. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
  197. package/lib/rest/video/v1/composition.d.ts +2 -2
  198. package/lib/rest/video/v1/compositionHook.d.ts +1 -1
  199. package/lib/rest/video/v1/recording.d.ts +4 -4
  200. package/lib/rest/video/v1/room/participant/anonymize.d.ts +1 -1
  201. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +1 -1
  202. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +1 -1
  203. package/lib/rest/video/v1/room/participant.d.ts +1 -1
  204. package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
  205. package/lib/rest/video/v1/room.d.ts +3 -3
  206. package/lib/rest/wireless/v1/command.d.ts +4 -4
  207. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
  208. package/lib/rest/wireless/v1/sim.d.ts +2 -2
  209. package/lib/rest/wireless/v1/usageRecord.d.ts +1 -1
  210. package/package.json +2 -5
@@ -7,8 +7,8 @@ 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
- type ChannelChannelType = "public" | "private";
11
- type ChannelWebhookEnabledType = "true" | "false";
10
+ export type ChannelChannelType = "public" | "private";
11
+ export type ChannelWebhookEnabledType = "true" | "false";
12
12
  /**
13
13
  * Options to pass to remove a ChannelInstance
14
14
  */
@@ -3,7 +3,7 @@ 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
- type RoleRoleType = "channel" | "deployment";
6
+ export type RoleRoleType = "channel" | "deployment";
7
7
  /**
8
8
  * Options to pass to update a RoleInstance
9
9
  */
@@ -3,7 +3,7 @@ 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
- type UserBindingBindingType = "gcm" | "apn" | "fcm";
6
+ export type UserBindingBindingType = "gcm" | "apn" | "fcm";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -3,9 +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
- type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
7
- type UserChannelNotificationLevel = "default" | "muted";
8
- type UserChannelWebhookEnabledType = "true" | "false";
6
+ export type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
7
+ export type UserChannelNotificationLevel = "default" | "muted";
8
+ export type UserChannelWebhookEnabledType = "true" | "false";
9
9
  /**
10
10
  * Options to pass to remove a UserChannelInstance
11
11
  */
@@ -5,7 +5,7 @@ import Response from "../../../../http/response";
5
5
  import V2 from "../../V2";
6
6
  import { UserBindingListInstance } from "./user/userBinding";
7
7
  import { UserChannelListInstance } from "./user/userChannel";
8
- type UserWebhookEnabledType = "true" | "false";
8
+ export type UserWebhookEnabledType = "true" | "false";
9
9
  /**
10
10
  * Options to pass to update a UserInstance
11
11
  */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V3 from "../V3";
4
- type ChannelChannelType = "public" | "private";
5
- type ChannelWebhookEnabledType = "true" | "false";
4
+ export type ChannelChannelType = "public" | "private";
5
+ export type ChannelWebhookEnabledType = "true" | "false";
6
6
  /**
7
7
  * Options to pass to update a ChannelInstance
8
8
  */
@@ -3,9 +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
- type ConfigurationAddressAutoCreationType = "webhook" | "studio" | "default";
7
- type ConfigurationAddressMethod = "GET" | "POST";
8
- type ConfigurationAddressType = "sms" | "whatsapp" | "messenger" | "gbm";
6
+ export type ConfigurationAddressAutoCreationType = "webhook" | "studio" | "default";
7
+ export type ConfigurationAddressMethod = "GET" | "POST";
8
+ export type ConfigurationAddressType = "sms" | "whatsapp" | "messenger" | "gbm";
9
9
  /**
10
10
  * Options to pass to update a AddressConfigurationInstance
11
11
  */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../V1";
4
- type ConfigurationWebhookMethod = "GET" | "POST";
5
- type ConfigurationWebhookTarget = "webhook" | "flex";
4
+ export type ConfigurationWebhookMethod = "GET" | "POST";
5
+ export type ConfigurationWebhookTarget = "webhook" | "flex";
6
6
  /**
7
7
  * Options to pass to update a WebhookInstance
8
8
  */
@@ -3,7 +3,7 @@ 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
- type ConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
6
+ export type ConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -4,8 +4,8 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
6
  import { DeliveryReceiptListInstance } from "./message/deliveryReceipt";
7
- type ConversationMessageOrderType = "asc" | "desc";
8
- type ConversationMessageWebhookEnabledType = "true" | "false";
7
+ export type ConversationMessageOrderType = "asc" | "desc";
8
+ export type ConversationMessageWebhookEnabledType = "true" | "false";
9
9
  /**
10
10
  * Options to pass to remove a MessageInstance
11
11
  */
@@ -3,7 +3,7 @@ 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
- type ConversationParticipantWebhookEnabledType = "true" | "false";
6
+ export type ConversationParticipantWebhookEnabledType = "true" | "false";
7
7
  /**
8
8
  * Options to pass to remove a ParticipantInstance
9
9
  */
@@ -3,8 +3,8 @@ 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
- type ConversationScopedWebhookMethod = "GET" | "POST";
7
- type ConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
6
+ export type ConversationScopedWebhookMethod = "GET" | "POST";
7
+ export type ConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
8
8
  /**
9
9
  * Options to pass to update a WebhookInstance
10
10
  */
@@ -6,8 +6,8 @@ import V1 from "../V1";
6
6
  import { MessageListInstance } from "./conversation/message";
7
7
  import { ParticipantListInstance } from "./conversation/participant";
8
8
  import { WebhookListInstance } from "./conversation/webhook";
9
- type ConversationState = "inactive" | "active" | "closed";
10
- type ConversationWebhookEnabledType = "true" | "false";
9
+ export type ConversationState = "inactive" | "active" | "closed";
10
+ export type ConversationWebhookEnabledType = "true" | "false";
11
11
  /**
12
12
  * Options to pass to remove a ConversationInstance
13
13
  */
@@ -3,7 +3,7 @@ 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
- type CredentialPushType = "apn" | "gcm" | "fcm";
6
+ export type CredentialPushType = "apn" | "gcm" | "fcm";
7
7
  /**
8
8
  * Options to pass to update a CredentialInstance
9
9
  */
@@ -3,7 +3,7 @@ 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
- type ParticipantConversationState = "inactive" | "active" | "closed";
6
+ export type ParticipantConversationState = "inactive" | "active" | "closed";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -3,7 +3,7 @@ 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
- type RoleRoleType = "conversation" | "service";
6
+ export type RoleRoleType = "conversation" | "service";
7
7
  /**
8
8
  * Options to pass to update a RoleInstance
9
9
  */
@@ -3,7 +3,7 @@ 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
- type ServiceBindingBindingType = "apn" | "gcm" | "fcm";
6
+ export type ServiceBindingBindingType = "apn" | "gcm" | "fcm";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../../V1";
4
- type ServiceWebhookConfigurationMethod = "GET" | "POST";
4
+ export type ServiceWebhookConfigurationMethod = "GET" | "POST";
5
5
  /**
6
6
  * Options to pass to update a WebhookInstance
7
7
  */
@@ -3,7 +3,7 @@ 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
- type ServiceConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
6
+ export type ServiceConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -4,8 +4,8 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
6
  import { DeliveryReceiptListInstance } from "./message/deliveryReceipt";
7
- type ServiceConversationMessageOrderType = "asc" | "desc";
8
- type ServiceConversationMessageWebhookEnabledType = "true" | "false";
7
+ export type ServiceConversationMessageOrderType = "asc" | "desc";
8
+ export type ServiceConversationMessageWebhookEnabledType = "true" | "false";
9
9
  /**
10
10
  * Options to pass to remove a MessageInstance
11
11
  */
@@ -3,7 +3,7 @@ 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
- type ServiceConversationParticipantWebhookEnabledType = "true" | "false";
6
+ export type ServiceConversationParticipantWebhookEnabledType = "true" | "false";
7
7
  /**
8
8
  * Options to pass to remove a ParticipantInstance
9
9
  */
@@ -3,8 +3,8 @@ 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
- type ServiceConversationScopedWebhookMethod = "GET" | "POST";
7
- type ServiceConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
6
+ export type ServiceConversationScopedWebhookMethod = "GET" | "POST";
7
+ export type ServiceConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
8
8
  /**
9
9
  * Options to pass to update a WebhookInstance
10
10
  */
@@ -6,8 +6,8 @@ import V1 from "../../V1";
6
6
  import { MessageListInstance } from "./conversation/message";
7
7
  import { ParticipantListInstance } from "./conversation/participant";
8
8
  import { WebhookListInstance } from "./conversation/webhook";
9
- type ServiceConversationState = "inactive" | "active" | "closed";
10
- type ServiceConversationWebhookEnabledType = "true" | "false";
9
+ export type ServiceConversationState = "inactive" | "active" | "closed";
10
+ export type ServiceConversationWebhookEnabledType = "true" | "false";
11
11
  /**
12
12
  * Options to pass to remove a ConversationInstance
13
13
  */
@@ -3,7 +3,7 @@ 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
- type ServiceParticipantConversationState = "inactive" | "active" | "closed";
6
+ export type ServiceParticipantConversationState = "inactive" | "active" | "closed";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -3,7 +3,7 @@ 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
- type ServiceRoleRoleType = "conversation" | "service";
6
+ export type ServiceRoleRoleType = "conversation" | "service";
7
7
  /**
8
8
  * Options to pass to update a RoleInstance
9
9
  */
@@ -3,8 +3,8 @@ 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
- type ServiceUserConversationNotificationLevel = "default" | "muted";
7
- type ServiceUserConversationState = "inactive" | "active" | "closed";
6
+ export type ServiceUserConversationNotificationLevel = "default" | "muted";
7
+ export type ServiceUserConversationState = "inactive" | "active" | "closed";
8
8
  /**
9
9
  * Options to pass to update a UserConversationInstance
10
10
  */
@@ -4,7 +4,7 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
6
  import { UserConversationListInstance } from "./user/userConversation";
7
- type ServiceUserWebhookEnabledType = "true" | "false";
7
+ export type ServiceUserWebhookEnabledType = "true" | "false";
8
8
  /**
9
9
  * Options to pass to remove a UserInstance
10
10
  */
@@ -3,8 +3,8 @@ 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
- type UserConversationNotificationLevel = "default" | "muted";
7
- type UserConversationState = "inactive" | "active" | "closed";
6
+ export type UserConversationNotificationLevel = "default" | "muted";
7
+ export type UserConversationState = "inactive" | "active" | "closed";
8
8
  /**
9
9
  * Options to pass to update a UserConversationInstance
10
10
  */
@@ -4,7 +4,7 @@ import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
6
  import { UserConversationListInstance } from "./user/userConversation";
7
- type UserWebhookEnabledType = "true" | "false";
7
+ export type UserWebhookEnabledType = "true" | "false";
8
8
  /**
9
9
  * Options to pass to remove a UserInstance
10
10
  */
@@ -5,8 +5,8 @@ import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
6
  import { SinkTestListInstance } from "./sink/sinkTest";
7
7
  import { SinkValidateListInstance } from "./sink/sinkValidate";
8
- type SinkSinkType = "kinesis" | "webhook" | "segment";
9
- type SinkStatus = "initialized" | "validating" | "active" | "failed";
8
+ export type SinkSinkType = "kinesis" | "webhook" | "segment";
9
+ export type SinkStatus = "initialized" | "validating" | "active" | "failed";
10
10
  /**
11
11
  * Options to pass to update a SinkInstance
12
12
  */
@@ -1,15 +1,60 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../V1";
4
+ /**
5
+ * Options to pass to update a AssessmentsInstance
6
+ */
7
+ export interface AssessmentsContextUpdateOptions {
8
+ /** The offset of the conversation */
9
+ offset: number;
10
+ /** The answer text selected by user */
11
+ answerText: string;
12
+ /** The id of the answer selected by user */
13
+ answerId: string;
14
+ /** The Token HTTP request header */
15
+ token?: string;
16
+ }
17
+ /**
18
+ * Options to pass to create a AssessmentsInstance
19
+ */
20
+ export interface AssessmentsListInstanceCreateOptions {
21
+ /** The id of the category */
22
+ categoryId: string;
23
+ /** The name of the category */
24
+ categoryName: string;
25
+ /** Segment Id of the conversation */
26
+ segmentId: string;
27
+ /** Name of the user assessing conversation */
28
+ userName: string;
29
+ /** Email of the user assessing conversation */
30
+ userEmail: string;
31
+ /** The id of the Agent */
32
+ agentId: string;
33
+ /** The offset of the conversation. */
34
+ offset: number;
35
+ /** The question Id selected for assessment */
36
+ metricId: string;
37
+ /** The question name of the assessment */
38
+ metricName: string;
39
+ /** The answer text selected by user */
40
+ answerText: string;
41
+ /** The id of the answer selected by user */
42
+ answerId: string;
43
+ /** Questionnaire Id of the associated question */
44
+ questionnaireId: string;
45
+ /** The Token HTTP request header */
46
+ token?: string;
47
+ }
4
48
  export interface AssessmentsContext {
5
49
  /**
6
- * Create a AssessmentsInstance
50
+ * Update a AssessmentsInstance
7
51
  *
52
+ * @param params - Parameter for request
8
53
  * @param callback - Callback to handle processed record
9
54
  *
10
55
  * @returns Resolves to processed AssessmentsInstance
11
56
  */
12
- create(callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
57
+ update(params: AssessmentsContextUpdateOptions, callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
13
58
  /**
14
59
  * Provide a user-friendly representation
15
60
  */
@@ -17,13 +62,14 @@ export interface AssessmentsContext {
17
62
  [inspect.custom](_depth: any, options: InspectOptions): any;
18
63
  }
19
64
  export interface AssessmentsContextSolution {
65
+ assessmentId: string;
20
66
  }
21
67
  export declare class AssessmentsContextImpl implements AssessmentsContext {
22
68
  protected _version: V1;
23
69
  protected _solution: AssessmentsContextSolution;
24
70
  protected _uri: string;
25
- constructor(_version: V1);
26
- create(callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
71
+ constructor(_version: V1, assessmentId: string);
72
+ update(params: AssessmentsContextUpdateOptions, callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
27
73
  /**
28
74
  * Provide a user-friendly representation
29
75
  *
@@ -33,32 +79,105 @@ export declare class AssessmentsContextImpl implements AssessmentsContext {
33
79
  [inspect.custom](_depth: any, options: InspectOptions): string;
34
80
  }
35
81
  interface AssessmentsResource {
82
+ account_sid: string;
83
+ assessment_id: string;
84
+ offset: number;
85
+ report: boolean;
86
+ weight: number;
87
+ agent_id: string;
88
+ segment_id: string;
89
+ user_name: string;
90
+ user_email: string;
91
+ answer_text: string;
92
+ answer_id: string;
93
+ assessment: any;
94
+ timestamp: number;
36
95
  url: string;
37
96
  }
38
97
  export declare class AssessmentsInstance {
39
98
  protected _version: V1;
40
99
  protected _solution: AssessmentsContextSolution;
41
100
  protected _context?: AssessmentsContext;
42
- constructor(_version: V1, payload: AssessmentsResource);
101
+ constructor(_version: V1, payload: AssessmentsResource, assessmentId?: string);
102
+ /**
103
+ * The unique SID identifier of the Account.
104
+ */
105
+ accountSid: string;
106
+ /**
107
+ * The unique id of the assessment
108
+ */
109
+ assessmentId: string;
110
+ /**
111
+ * Offset of the conversation
112
+ */
113
+ offset: number;
114
+ /**
115
+ * The flag indicating if this assessment is part of report
116
+ */
117
+ report: boolean;
118
+ /**
119
+ * The weightage given to this comment
120
+ */
121
+ weight: number;
122
+ /**
123
+ * The id of the Agent
124
+ */
125
+ agentId: string;
126
+ /**
127
+ * Segment Id of conversation
128
+ */
129
+ segmentId: string;
43
130
  /**
44
- * The URL of this resource.
131
+ * The name of the user.
45
132
  */
133
+ userName: string;
134
+ /**
135
+ * The email id of the user.
136
+ */
137
+ userEmail: string;
138
+ /**
139
+ * The answer text selected by user
140
+ */
141
+ answerText: string;
142
+ /**
143
+ * The id of the answer selected by user
144
+ */
145
+ answerId: string;
146
+ /**
147
+ * Assessment Details associated with an assessment
148
+ */
149
+ assessment: any;
150
+ timestamp: number;
46
151
  url: string;
47
152
  private get _proxy();
48
153
  /**
49
- * Create a AssessmentsInstance
154
+ * Update a AssessmentsInstance
50
155
  *
156
+ * @param params - Parameter for request
51
157
  * @param callback - Callback to handle processed record
52
158
  *
53
159
  * @returns Resolves to processed AssessmentsInstance
54
160
  */
55
- create(callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
161
+ update(params: AssessmentsContextUpdateOptions, callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
56
162
  /**
57
163
  * Provide a user-friendly representation
58
164
  *
59
165
  * @returns Object
60
166
  */
61
167
  toJSON(): {
168
+ accountSid: string;
169
+ assessmentId: string;
170
+ offset: number;
171
+ report: boolean;
172
+ weight: number;
173
+ agentId: string;
174
+ segmentId: string;
175
+ userName: string;
176
+ userEmail: string;
177
+ answerText: string;
178
+ answerId: string;
179
+ assessment: any;
180
+ timestamp: number;
62
181
  url: string;
63
182
  };
64
183
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -69,8 +188,17 @@ export interface AssessmentsListInstance {
69
188
  _version: V1;
70
189
  _solution: AssessmentsSolution;
71
190
  _uri: string;
72
- (): AssessmentsContext;
73
- get(): AssessmentsContext;
191
+ (assessmentId: string): AssessmentsContext;
192
+ get(assessmentId: string): AssessmentsContext;
193
+ /**
194
+ * Create a AssessmentsInstance
195
+ *
196
+ * @param params - Parameter for request
197
+ * @param callback - Callback to handle processed record
198
+ *
199
+ * @returns Resolves to processed AssessmentsInstance
200
+ */
201
+ create(params: AssessmentsListInstanceCreateOptions, callback?: (error: Error | null, item?: AssessmentsInstance) => any): Promise<AssessmentsInstance>;
74
202
  /**
75
203
  * Provide a user-friendly representation
76
204
  */