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.
- package/lib/index.d.ts +52 -36
- package/lib/index.js +32 -51
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +2 -2
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/feedback.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/payment.d.ts +5 -5
- package/lib/rest/api/v2010/account/call/recording.d.ts +2 -2
- package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
- package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
- package/lib/rest/api/v2010/account/call.d.ts +2 -2
- package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
- package/lib/rest/api/v2010/account/conference/recording.d.ts +2 -2
- package/lib/rest/api/v2010/account/conference.d.ts +4 -4
- package/lib/rest/api/v2010/account/connectApp.d.ts +1 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +4 -4
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +4 -4
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +4 -4
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +4 -4
- package/lib/rest/api/v2010/account/message/feedback.d.ts +1 -1
- package/lib/rest/api/v2010/account/message.d.ts +6 -6
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +1 -1
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/recording.d.ts +2 -2
- package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -3
- package/lib/rest/api/v2010/account/usage.d.ts +1 -0
- package/lib/rest/api/v2010/account.d.ts +2 -2
- package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
- package/lib/rest/chat/v1/credential.d.ts +1 -1
- package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
- package/lib/rest/chat/v1/service/channel.d.ts +1 -1
- package/lib/rest/chat/v1/service/role.d.ts +1 -1
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
- package/lib/rest/chat/v2/credential.d.ts +1 -1
- package/lib/rest/chat/v2/service/binding.d.ts +1 -1
- package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
- package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +2 -2
- package/lib/rest/chat/v2/service/channel.d.ts +2 -2
- package/lib/rest/chat/v2/service/role.d.ts +1 -1
- package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
- package/lib/rest/chat/v2/service/user.d.ts +1 -1
- package/lib/rest/chat/v3/channel.d.ts +2 -2
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +3 -3
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +2 -2
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
- package/lib/rest/conversations/v1/conversation/participant.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +2 -2
- package/lib/rest/conversations/v1/conversation.d.ts +2 -2
- package/lib/rest/conversations/v1/credential.d.ts +1 -1
- package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
- package/lib/rest/conversations/v1/role.d.ts +1 -1
- package/lib/rest/conversations/v1/service/binding.d.ts +1 -1
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +1 -1
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +1 -1
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +1 -1
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +2 -2
- package/lib/rest/conversations/v1/service/conversation.d.ts +2 -2
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +1 -1
- package/lib/rest/conversations/v1/service/role.d.ts +1 -1
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +2 -2
- package/lib/rest/conversations/v1/service/user.d.ts +1 -1
- package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
- package/lib/rest/conversations/v1/user.d.ts +1 -1
- package/lib/rest/events/v1/sink.d.ts +2 -2
- package/lib/rest/flexApi/v1/assessments.d.ts +138 -10
- package/lib/rest/flexApi/v1/assessments.js +138 -22
- package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
- package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -0
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
- package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
- package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
- package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
- package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
- package/lib/rest/insights/v1/call/callSummary.d.ts +4 -4
- package/lib/rest/insights/v1/call/event.d.ts +2 -2
- package/lib/rest/insights/v1/call/metric.d.ts +2 -2
- package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
- package/lib/rest/insights/v1/conference.d.ts +5 -5
- package/lib/rest/insights/v1/room/participant.d.ts +4 -4
- package/lib/rest/insights/v1/room.d.ts +8 -8
- package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
- package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
- package/lib/rest/media/v1/mediaProcessor.d.ts +3 -3
- package/lib/rest/media/v1/mediaRecording.d.ts +3 -3
- package/lib/rest/media/v1/playerStreamer.d.ts +4 -4
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
- package/lib/rest/messaging/v1/brandRegistration.d.ts +3 -3
- package/lib/rest/messaging/v1/service.d.ts +1 -1
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
- package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
- package/lib/rest/microvisor/v1/accountConfig.js +25 -0
- package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
- package/lib/rest/microvisor/v1/accountSecret.js +25 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
- package/lib/rest/notify/v1/credential.d.ts +1 -1
- package/lib/rest/notify/v1/service/binding.d.ts +1 -1
- package/lib/rest/notify/v1/service/notification.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
- package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
- package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
- package/lib/rest/proxy/v1/service/session.d.ts +2 -2
- package/lib/rest/proxy/v1/service.d.ts +2 -2
- package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
- package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
- package/lib/rest/serverless/v1/service/build.d.ts +2 -2
- package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
- package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
- package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
- package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
- package/lib/rest/studio/v1/flow.d.ts +1 -1
- package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
- package/lib/rest/studio/v2/flow.d.ts +1 -1
- package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
- package/lib/rest/supersim/v1/esimProfile.d.ts +1 -1
- package/lib/rest/supersim/v1/fleet.d.ts +1 -1
- package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
- package/lib/rest/supersim/v1/sim.d.ts +2 -2
- package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
- package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +4 -4
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +1 -1
- package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
- package/lib/rest/trunking/v1/trunk.d.ts +2 -2
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +1 -1
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +1 -1
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +1 -1
- package/lib/rest/trusthub/v1/trustProducts.d.ts +1 -1
- package/lib/rest/verify/v2/form.d.ts +1 -1
- package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
- package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
- package/lib/rest/verify/v2/service/verification.d.ts +2 -2
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
- package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
- package/lib/rest/video/v1/composition.d.ts +2 -2
- package/lib/rest/video/v1/compositionHook.d.ts +1 -1
- package/lib/rest/video/v1/recording.d.ts +4 -4
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +1 -1
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +1 -1
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +1 -1
- package/lib/rest/video/v1/room/participant.d.ts +1 -1
- package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
- package/lib/rest/video/v1/room.d.ts +3 -3
- package/lib/rest/wireless/v1/command.d.ts +4 -4
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
- package/lib/rest/wireless/v1/sim.d.ts +2 -2
- package/lib/rest/wireless/v1/usageRecord.d.ts +1 -1
- 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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
*/
|