twilio 4.7.1 → 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/content/V1.d.ts +5 -0
- package/lib/rest/content/V1.js +7 -0
- package/lib/rest/content/v1/legacyContent.d.ts +202 -0
- package/lib/rest/content/v1/legacyContent.js +138 -0
- 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.d.ts +15 -0
- package/lib/rest/flexApi/V1.js +22 -0
- 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/insightsAssessmentsComment.d.ts +255 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +198 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +357 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.js +280 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +111 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +68 -1
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +135 -6
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +80 -13
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +341 -0
- package/lib/rest/flexApi/v1/insightsSegments.js +223 -0
- package/lib/rest/flexApi/v1/insightsSession.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsSession.js +2 -2
- package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsUserRoles.js +2 -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 +13 -1
- package/lib/rest/lookups/v2/phoneNumber.js +4 -0
- 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.d.ts +10 -0
- package/lib/rest/microvisor/V1.js +14 -0
- package/lib/rest/microvisor/v1/accountConfig.d.ts +263 -0
- package/lib/rest/microvisor/v1/accountConfig.js +246 -0
- package/lib/rest/microvisor/v1/accountSecret.d.ts +257 -0
- package/lib/rest/microvisor/v1/accountSecret.js +244 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +271 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.js +254 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +265 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.js +252 -0
- package/lib/rest/microvisor/v1/device.d.ts +16 -0
- package/lib/rest/microvisor/v1/device.js +26 -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 +5 -5
- 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
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
|
+
import Response from "../../../http/response";
|
|
5
|
+
import V1 from "../V1";
|
|
6
|
+
/**
|
|
7
|
+
* Options to pass to fetch a InsightsSegmentsInstance
|
|
8
|
+
*/
|
|
9
|
+
export interface InsightsSegmentsContextFetchOptions {
|
|
10
|
+
/** The Token HTTP request header */
|
|
11
|
+
token?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Options to pass to each
|
|
15
|
+
*/
|
|
16
|
+
export interface InsightsSegmentsListInstanceEachOptions {
|
|
17
|
+
/** The Token HTTP request header */
|
|
18
|
+
token?: string;
|
|
19
|
+
/** The list of reservation Ids */
|
|
20
|
+
reservationId?: Array<string>;
|
|
21
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
24
|
+
callback?: (item: InsightsSegmentsInstance, done: (err?: Error) => void) => void;
|
|
25
|
+
/** Function to be called upon completion of streaming */
|
|
26
|
+
done?: Function;
|
|
27
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
28
|
+
limit?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Options to pass to list
|
|
32
|
+
*/
|
|
33
|
+
export interface InsightsSegmentsListInstanceOptions {
|
|
34
|
+
/** The Token HTTP request header */
|
|
35
|
+
token?: string;
|
|
36
|
+
/** The list of reservation Ids */
|
|
37
|
+
reservationId?: Array<string>;
|
|
38
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
39
|
+
pageSize?: number;
|
|
40
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
41
|
+
limit?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Options to pass to page
|
|
45
|
+
*/
|
|
46
|
+
export interface InsightsSegmentsListInstancePageOptions {
|
|
47
|
+
/** The Token HTTP request header */
|
|
48
|
+
token?: string;
|
|
49
|
+
/** The list of reservation Ids */
|
|
50
|
+
reservationId?: Array<string>;
|
|
51
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
/** Page Number, this value is simply for client state */
|
|
54
|
+
pageNumber?: number;
|
|
55
|
+
/** PageToken provided by the API */
|
|
56
|
+
pageToken?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface InsightsSegmentsContext {
|
|
59
|
+
/**
|
|
60
|
+
* Fetch a InsightsSegmentsInstance
|
|
61
|
+
*
|
|
62
|
+
* @param callback - Callback to handle processed record
|
|
63
|
+
*
|
|
64
|
+
* @returns Resolves to processed InsightsSegmentsInstance
|
|
65
|
+
*/
|
|
66
|
+
fetch(callback?: (error: Error | null, item?: InsightsSegmentsInstance) => any): Promise<InsightsSegmentsInstance>;
|
|
67
|
+
/**
|
|
68
|
+
* Fetch a InsightsSegmentsInstance
|
|
69
|
+
*
|
|
70
|
+
* @param params - Parameter for request
|
|
71
|
+
* @param callback - Callback to handle processed record
|
|
72
|
+
*
|
|
73
|
+
* @returns Resolves to processed InsightsSegmentsInstance
|
|
74
|
+
*/
|
|
75
|
+
fetch(params: InsightsSegmentsContextFetchOptions, callback?: (error: Error | null, item?: InsightsSegmentsInstance) => any): Promise<InsightsSegmentsInstance>;
|
|
76
|
+
/**
|
|
77
|
+
* Provide a user-friendly representation
|
|
78
|
+
*/
|
|
79
|
+
toJSON(): any;
|
|
80
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
81
|
+
}
|
|
82
|
+
export interface InsightsSegmentsContextSolution {
|
|
83
|
+
segmentId: string;
|
|
84
|
+
}
|
|
85
|
+
export declare class InsightsSegmentsContextImpl implements InsightsSegmentsContext {
|
|
86
|
+
protected _version: V1;
|
|
87
|
+
protected _solution: InsightsSegmentsContextSolution;
|
|
88
|
+
protected _uri: string;
|
|
89
|
+
constructor(_version: V1, segmentId: string);
|
|
90
|
+
fetch(params?: InsightsSegmentsContextFetchOptions | ((error: Error | null, item?: InsightsSegmentsInstance) => any), callback?: (error: Error | null, item?: InsightsSegmentsInstance) => any): Promise<InsightsSegmentsInstance>;
|
|
91
|
+
/**
|
|
92
|
+
* Provide a user-friendly representation
|
|
93
|
+
*
|
|
94
|
+
* @returns Object
|
|
95
|
+
*/
|
|
96
|
+
toJSON(): InsightsSegmentsContextSolution;
|
|
97
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
98
|
+
}
|
|
99
|
+
interface InsightsSegmentsPayload extends TwilioResponsePayload {
|
|
100
|
+
segments: InsightsSegmentsResource[];
|
|
101
|
+
}
|
|
102
|
+
interface InsightsSegmentsResource {
|
|
103
|
+
segment_id: string;
|
|
104
|
+
external_id: string;
|
|
105
|
+
queue: string;
|
|
106
|
+
external_contact: string;
|
|
107
|
+
external_segment_link_id: string;
|
|
108
|
+
date: string;
|
|
109
|
+
account_id: string;
|
|
110
|
+
external_segment_link: string;
|
|
111
|
+
agent_id: string;
|
|
112
|
+
agent_phone: string;
|
|
113
|
+
agent_name: string;
|
|
114
|
+
agent_team_name: string;
|
|
115
|
+
agent_team_name_in_hierarchy: string;
|
|
116
|
+
agent_link: string;
|
|
117
|
+
customer_phone: string;
|
|
118
|
+
customer_name: string;
|
|
119
|
+
customer_link: string;
|
|
120
|
+
segment_recording_offset: string;
|
|
121
|
+
media: any;
|
|
122
|
+
assessment_type: any;
|
|
123
|
+
assessment_percentage: any;
|
|
124
|
+
url: string;
|
|
125
|
+
}
|
|
126
|
+
export declare class InsightsSegmentsInstance {
|
|
127
|
+
protected _version: V1;
|
|
128
|
+
protected _solution: InsightsSegmentsContextSolution;
|
|
129
|
+
protected _context?: InsightsSegmentsContext;
|
|
130
|
+
constructor(_version: V1, payload: InsightsSegmentsResource, segmentId?: string);
|
|
131
|
+
/**
|
|
132
|
+
* To unique id of the segment
|
|
133
|
+
*/
|
|
134
|
+
segmentId: string;
|
|
135
|
+
/**
|
|
136
|
+
* The unique id for the conversation.
|
|
137
|
+
*/
|
|
138
|
+
externalId: string;
|
|
139
|
+
queue: string;
|
|
140
|
+
externalContact: string;
|
|
141
|
+
/**
|
|
142
|
+
* The uuid for the external_segment_link.
|
|
143
|
+
*/
|
|
144
|
+
externalSegmentLinkId: string;
|
|
145
|
+
/**
|
|
146
|
+
* The date of the conversation.
|
|
147
|
+
*/
|
|
148
|
+
date: string;
|
|
149
|
+
/**
|
|
150
|
+
* The unique id for the account.
|
|
151
|
+
*/
|
|
152
|
+
accountId: string;
|
|
153
|
+
/**
|
|
154
|
+
* The hyperlink to recording of the task event.
|
|
155
|
+
*/
|
|
156
|
+
externalSegmentLink: string;
|
|
157
|
+
/**
|
|
158
|
+
* The unique id for the agent.
|
|
159
|
+
*/
|
|
160
|
+
agentId: string;
|
|
161
|
+
/**
|
|
162
|
+
* The phone number of the agent.
|
|
163
|
+
*/
|
|
164
|
+
agentPhone: string;
|
|
165
|
+
/**
|
|
166
|
+
* The name of the agent.
|
|
167
|
+
*/
|
|
168
|
+
agentName: string;
|
|
169
|
+
/**
|
|
170
|
+
* The team name to which agent belongs.
|
|
171
|
+
*/
|
|
172
|
+
agentTeamName: string;
|
|
173
|
+
/**
|
|
174
|
+
* he team name to which agent belongs.
|
|
175
|
+
*/
|
|
176
|
+
agentTeamNameInHierarchy: string;
|
|
177
|
+
/**
|
|
178
|
+
* The link to the agent conversation.
|
|
179
|
+
*/
|
|
180
|
+
agentLink: string;
|
|
181
|
+
/**
|
|
182
|
+
* The phone number of the customer.
|
|
183
|
+
*/
|
|
184
|
+
customerPhone: string;
|
|
185
|
+
/**
|
|
186
|
+
* The name of the customer.
|
|
187
|
+
*/
|
|
188
|
+
customerName: string;
|
|
189
|
+
/**
|
|
190
|
+
* The link to the customer conversation.
|
|
191
|
+
*/
|
|
192
|
+
customerLink: string;
|
|
193
|
+
/**
|
|
194
|
+
* The offset value for the recording.
|
|
195
|
+
*/
|
|
196
|
+
segmentRecordingOffset: string;
|
|
197
|
+
/**
|
|
198
|
+
* The media identifiers of the conversation.
|
|
199
|
+
*/
|
|
200
|
+
media: any;
|
|
201
|
+
/**
|
|
202
|
+
* The type of the assessment.
|
|
203
|
+
*/
|
|
204
|
+
assessmentType: any;
|
|
205
|
+
/**
|
|
206
|
+
* The percentage scored on the Assessments.
|
|
207
|
+
*/
|
|
208
|
+
assessmentPercentage: any;
|
|
209
|
+
url: string;
|
|
210
|
+
private get _proxy();
|
|
211
|
+
/**
|
|
212
|
+
* Fetch a InsightsSegmentsInstance
|
|
213
|
+
*
|
|
214
|
+
* @param callback - Callback to handle processed record
|
|
215
|
+
*
|
|
216
|
+
* @returns Resolves to processed InsightsSegmentsInstance
|
|
217
|
+
*/
|
|
218
|
+
fetch(callback?: (error: Error | null, item?: InsightsSegmentsInstance) => any): Promise<InsightsSegmentsInstance>;
|
|
219
|
+
/**
|
|
220
|
+
* Fetch a InsightsSegmentsInstance
|
|
221
|
+
*
|
|
222
|
+
* @param params - Parameter for request
|
|
223
|
+
* @param callback - Callback to handle processed record
|
|
224
|
+
*
|
|
225
|
+
* @returns Resolves to processed InsightsSegmentsInstance
|
|
226
|
+
*/
|
|
227
|
+
fetch(params: InsightsSegmentsContextFetchOptions, callback?: (error: Error | null, item?: InsightsSegmentsInstance) => any): Promise<InsightsSegmentsInstance>;
|
|
228
|
+
/**
|
|
229
|
+
* Provide a user-friendly representation
|
|
230
|
+
*
|
|
231
|
+
* @returns Object
|
|
232
|
+
*/
|
|
233
|
+
toJSON(): {
|
|
234
|
+
segmentId: string;
|
|
235
|
+
externalId: string;
|
|
236
|
+
queue: string;
|
|
237
|
+
externalContact: string;
|
|
238
|
+
externalSegmentLinkId: string;
|
|
239
|
+
date: string;
|
|
240
|
+
accountId: string;
|
|
241
|
+
externalSegmentLink: string;
|
|
242
|
+
agentId: string;
|
|
243
|
+
agentPhone: string;
|
|
244
|
+
agentName: string;
|
|
245
|
+
agentTeamName: string;
|
|
246
|
+
agentTeamNameInHierarchy: string;
|
|
247
|
+
agentLink: string;
|
|
248
|
+
customerPhone: string;
|
|
249
|
+
customerName: string;
|
|
250
|
+
customerLink: string;
|
|
251
|
+
segmentRecordingOffset: string;
|
|
252
|
+
media: any;
|
|
253
|
+
assessmentType: any;
|
|
254
|
+
assessmentPercentage: any;
|
|
255
|
+
url: string;
|
|
256
|
+
};
|
|
257
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
258
|
+
}
|
|
259
|
+
export interface InsightsSegmentsSolution {
|
|
260
|
+
}
|
|
261
|
+
export interface InsightsSegmentsListInstance {
|
|
262
|
+
_version: V1;
|
|
263
|
+
_solution: InsightsSegmentsSolution;
|
|
264
|
+
_uri: string;
|
|
265
|
+
(segmentId: string): InsightsSegmentsContext;
|
|
266
|
+
get(segmentId: string): InsightsSegmentsContext;
|
|
267
|
+
/**
|
|
268
|
+
* Streams InsightsSegmentsInstance records from the API.
|
|
269
|
+
*
|
|
270
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
271
|
+
* is reached.
|
|
272
|
+
*
|
|
273
|
+
* The results are passed into the callback function, so this operation is memory
|
|
274
|
+
* efficient.
|
|
275
|
+
*
|
|
276
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
277
|
+
* function.
|
|
278
|
+
*
|
|
279
|
+
* @param { InsightsSegmentsListInstanceEachOptions } [params] - Options for request
|
|
280
|
+
* @param { function } [callback] - Function to process each record
|
|
281
|
+
*/
|
|
282
|
+
each(callback?: (item: InsightsSegmentsInstance, done: (err?: Error) => void) => void): void;
|
|
283
|
+
each(params: InsightsSegmentsListInstanceEachOptions, callback?: (item: InsightsSegmentsInstance, done: (err?: Error) => void) => void): void;
|
|
284
|
+
/**
|
|
285
|
+
* Retrieve a single target page of InsightsSegmentsInstance records from the API.
|
|
286
|
+
*
|
|
287
|
+
* The request is executed immediately.
|
|
288
|
+
*
|
|
289
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
290
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
291
|
+
*/
|
|
292
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: InsightsSegmentsPage) => any): Promise<InsightsSegmentsPage>;
|
|
293
|
+
/**
|
|
294
|
+
* Lists InsightsSegmentsInstance records from the API as a list.
|
|
295
|
+
*
|
|
296
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
297
|
+
* function.
|
|
298
|
+
*
|
|
299
|
+
* @param { InsightsSegmentsListInstanceOptions } [params] - Options for request
|
|
300
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
301
|
+
*/
|
|
302
|
+
list(callback?: (error: Error | null, items: InsightsSegmentsInstance[]) => any): Promise<InsightsSegmentsInstance[]>;
|
|
303
|
+
list(params: InsightsSegmentsListInstanceOptions, callback?: (error: Error | null, items: InsightsSegmentsInstance[]) => any): Promise<InsightsSegmentsInstance[]>;
|
|
304
|
+
/**
|
|
305
|
+
* Retrieve a single page of InsightsSegmentsInstance records from the API.
|
|
306
|
+
*
|
|
307
|
+
* The request is executed immediately.
|
|
308
|
+
*
|
|
309
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
310
|
+
* function.
|
|
311
|
+
*
|
|
312
|
+
* @param { InsightsSegmentsListInstancePageOptions } [params] - Options for request
|
|
313
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
314
|
+
*/
|
|
315
|
+
page(callback?: (error: Error | null, items: InsightsSegmentsPage) => any): Promise<InsightsSegmentsPage>;
|
|
316
|
+
page(params: InsightsSegmentsListInstancePageOptions, callback?: (error: Error | null, items: InsightsSegmentsPage) => any): Promise<InsightsSegmentsPage>;
|
|
317
|
+
/**
|
|
318
|
+
* Provide a user-friendly representation
|
|
319
|
+
*/
|
|
320
|
+
toJSON(): any;
|
|
321
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
322
|
+
}
|
|
323
|
+
export declare function InsightsSegmentsListInstance(version: V1): InsightsSegmentsListInstance;
|
|
324
|
+
export declare class InsightsSegmentsPage extends Page<V1, InsightsSegmentsPayload, InsightsSegmentsResource, InsightsSegmentsInstance> {
|
|
325
|
+
/**
|
|
326
|
+
* Initialize the InsightsSegmentsPage
|
|
327
|
+
*
|
|
328
|
+
* @param version - Version of the resource
|
|
329
|
+
* @param response - Response from the API
|
|
330
|
+
* @param solution - Path solution
|
|
331
|
+
*/
|
|
332
|
+
constructor(version: V1, response: Response<string>, solution: InsightsSegmentsSolution);
|
|
333
|
+
/**
|
|
334
|
+
* Build an instance of InsightsSegmentsInstance
|
|
335
|
+
*
|
|
336
|
+
* @param payload - Payload response from the API
|
|
337
|
+
*/
|
|
338
|
+
getInstance(payload: InsightsSegmentsResource): InsightsSegmentsInstance;
|
|
339
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
340
|
+
}
|
|
341
|
+
export {};
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Flex
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.InsightsSegmentsPage = exports.InsightsSegmentsListInstance = exports.InsightsSegmentsInstance = exports.InsightsSegmentsContextImpl = void 0;
|
|
20
|
+
const util_1 = require("util");
|
|
21
|
+
const Page_1 = __importDefault(require("../../../base/Page"));
|
|
22
|
+
const deserialize = require("../../../base/deserialize");
|
|
23
|
+
const serialize = require("../../../base/serialize");
|
|
24
|
+
const utility_1 = require("../../../base/utility");
|
|
25
|
+
class InsightsSegmentsContextImpl {
|
|
26
|
+
constructor(_version, segmentId) {
|
|
27
|
+
this._version = _version;
|
|
28
|
+
if (!(0, utility_1.isValidPathParam)(segmentId)) {
|
|
29
|
+
throw new Error("Parameter 'segmentId' is not valid.");
|
|
30
|
+
}
|
|
31
|
+
this._solution = { segmentId };
|
|
32
|
+
this._uri = `/Insights/Segments/${segmentId}`;
|
|
33
|
+
}
|
|
34
|
+
fetch(params, callback) {
|
|
35
|
+
if (params instanceof Function) {
|
|
36
|
+
callback = params;
|
|
37
|
+
params = {};
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
params = params || {};
|
|
41
|
+
}
|
|
42
|
+
let data = {};
|
|
43
|
+
const headers = {};
|
|
44
|
+
if (params["token"] !== undefined)
|
|
45
|
+
headers["Token"] = params["token"];
|
|
46
|
+
const instance = this;
|
|
47
|
+
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
48
|
+
uri: instance._uri,
|
|
49
|
+
method: "get",
|
|
50
|
+
params: data,
|
|
51
|
+
headers,
|
|
52
|
+
});
|
|
53
|
+
operationPromise = operationPromise.then((payload) => new InsightsSegmentsInstance(operationVersion, payload, instance._solution.segmentId));
|
|
54
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
55
|
+
return operationPromise;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Provide a user-friendly representation
|
|
59
|
+
*
|
|
60
|
+
* @returns Object
|
|
61
|
+
*/
|
|
62
|
+
toJSON() {
|
|
63
|
+
return this._solution;
|
|
64
|
+
}
|
|
65
|
+
[util_1.inspect.custom](_depth, options) {
|
|
66
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.InsightsSegmentsContextImpl = InsightsSegmentsContextImpl;
|
|
70
|
+
class InsightsSegmentsInstance {
|
|
71
|
+
constructor(_version, payload, segmentId) {
|
|
72
|
+
this._version = _version;
|
|
73
|
+
this.segmentId = payload.segment_id;
|
|
74
|
+
this.externalId = payload.external_id;
|
|
75
|
+
this.queue = payload.queue;
|
|
76
|
+
this.externalContact = payload.external_contact;
|
|
77
|
+
this.externalSegmentLinkId = payload.external_segment_link_id;
|
|
78
|
+
this.date = payload.date;
|
|
79
|
+
this.accountId = payload.account_id;
|
|
80
|
+
this.externalSegmentLink = payload.external_segment_link;
|
|
81
|
+
this.agentId = payload.agent_id;
|
|
82
|
+
this.agentPhone = payload.agent_phone;
|
|
83
|
+
this.agentName = payload.agent_name;
|
|
84
|
+
this.agentTeamName = payload.agent_team_name;
|
|
85
|
+
this.agentTeamNameInHierarchy = payload.agent_team_name_in_hierarchy;
|
|
86
|
+
this.agentLink = payload.agent_link;
|
|
87
|
+
this.customerPhone = payload.customer_phone;
|
|
88
|
+
this.customerName = payload.customer_name;
|
|
89
|
+
this.customerLink = payload.customer_link;
|
|
90
|
+
this.segmentRecordingOffset = payload.segment_recording_offset;
|
|
91
|
+
this.media = payload.media;
|
|
92
|
+
this.assessmentType = payload.assessment_type;
|
|
93
|
+
this.assessmentPercentage = payload.assessment_percentage;
|
|
94
|
+
this.url = payload.url;
|
|
95
|
+
this._solution = { segmentId: segmentId || this.segmentId };
|
|
96
|
+
}
|
|
97
|
+
get _proxy() {
|
|
98
|
+
this._context =
|
|
99
|
+
this._context ||
|
|
100
|
+
new InsightsSegmentsContextImpl(this._version, this._solution.segmentId);
|
|
101
|
+
return this._context;
|
|
102
|
+
}
|
|
103
|
+
fetch(params, callback) {
|
|
104
|
+
return this._proxy.fetch(params, callback);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Provide a user-friendly representation
|
|
108
|
+
*
|
|
109
|
+
* @returns Object
|
|
110
|
+
*/
|
|
111
|
+
toJSON() {
|
|
112
|
+
return {
|
|
113
|
+
segmentId: this.segmentId,
|
|
114
|
+
externalId: this.externalId,
|
|
115
|
+
queue: this.queue,
|
|
116
|
+
externalContact: this.externalContact,
|
|
117
|
+
externalSegmentLinkId: this.externalSegmentLinkId,
|
|
118
|
+
date: this.date,
|
|
119
|
+
accountId: this.accountId,
|
|
120
|
+
externalSegmentLink: this.externalSegmentLink,
|
|
121
|
+
agentId: this.agentId,
|
|
122
|
+
agentPhone: this.agentPhone,
|
|
123
|
+
agentName: this.agentName,
|
|
124
|
+
agentTeamName: this.agentTeamName,
|
|
125
|
+
agentTeamNameInHierarchy: this.agentTeamNameInHierarchy,
|
|
126
|
+
agentLink: this.agentLink,
|
|
127
|
+
customerPhone: this.customerPhone,
|
|
128
|
+
customerName: this.customerName,
|
|
129
|
+
customerLink: this.customerLink,
|
|
130
|
+
segmentRecordingOffset: this.segmentRecordingOffset,
|
|
131
|
+
media: this.media,
|
|
132
|
+
assessmentType: this.assessmentType,
|
|
133
|
+
assessmentPercentage: this.assessmentPercentage,
|
|
134
|
+
url: this.url,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
[util_1.inspect.custom](_depth, options) {
|
|
138
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.InsightsSegmentsInstance = InsightsSegmentsInstance;
|
|
142
|
+
function InsightsSegmentsListInstance(version) {
|
|
143
|
+
const instance = ((segmentId) => instance.get(segmentId));
|
|
144
|
+
instance.get = function get(segmentId) {
|
|
145
|
+
return new InsightsSegmentsContextImpl(version, segmentId);
|
|
146
|
+
};
|
|
147
|
+
instance._version = version;
|
|
148
|
+
instance._solution = {};
|
|
149
|
+
instance._uri = `/Insights/Segments`;
|
|
150
|
+
instance.page = function page(params, callback) {
|
|
151
|
+
if (params instanceof Function) {
|
|
152
|
+
callback = params;
|
|
153
|
+
params = {};
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
params = params || {};
|
|
157
|
+
}
|
|
158
|
+
let data = {};
|
|
159
|
+
if (params["reservationId"] !== undefined)
|
|
160
|
+
data["ReservationId"] = serialize.map(params["reservationId"], (e) => e);
|
|
161
|
+
if (params["pageSize"] !== undefined)
|
|
162
|
+
data["PageSize"] = params["pageSize"];
|
|
163
|
+
if (params.pageNumber !== undefined)
|
|
164
|
+
data["Page"] = params.pageNumber;
|
|
165
|
+
if (params.pageToken !== undefined)
|
|
166
|
+
data["PageToken"] = params.pageToken;
|
|
167
|
+
const headers = {};
|
|
168
|
+
if (params["token"] !== undefined)
|
|
169
|
+
headers["Token"] = params["token"];
|
|
170
|
+
let operationVersion = version, operationPromise = operationVersion.page({
|
|
171
|
+
uri: instance._uri,
|
|
172
|
+
method: "get",
|
|
173
|
+
params: data,
|
|
174
|
+
headers,
|
|
175
|
+
});
|
|
176
|
+
operationPromise = operationPromise.then((payload) => new InsightsSegmentsPage(operationVersion, payload, instance._solution));
|
|
177
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
178
|
+
return operationPromise;
|
|
179
|
+
};
|
|
180
|
+
instance.each = instance._version.each;
|
|
181
|
+
instance.list = instance._version.list;
|
|
182
|
+
instance.getPage = function getPage(targetUrl, callback) {
|
|
183
|
+
const operationPromise = instance._version._domain.twilio.request({
|
|
184
|
+
method: "get",
|
|
185
|
+
uri: targetUrl,
|
|
186
|
+
});
|
|
187
|
+
let pagePromise = operationPromise.then((payload) => new InsightsSegmentsPage(instance._version, payload, instance._solution));
|
|
188
|
+
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
189
|
+
return pagePromise;
|
|
190
|
+
};
|
|
191
|
+
instance.toJSON = function toJSON() {
|
|
192
|
+
return instance._solution;
|
|
193
|
+
};
|
|
194
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
195
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
196
|
+
};
|
|
197
|
+
return instance;
|
|
198
|
+
}
|
|
199
|
+
exports.InsightsSegmentsListInstance = InsightsSegmentsListInstance;
|
|
200
|
+
class InsightsSegmentsPage extends Page_1.default {
|
|
201
|
+
/**
|
|
202
|
+
* Initialize the InsightsSegmentsPage
|
|
203
|
+
*
|
|
204
|
+
* @param version - Version of the resource
|
|
205
|
+
* @param response - Response from the API
|
|
206
|
+
* @param solution - Path solution
|
|
207
|
+
*/
|
|
208
|
+
constructor(version, response, solution) {
|
|
209
|
+
super(version, response, solution);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Build an instance of InsightsSegmentsInstance
|
|
213
|
+
*
|
|
214
|
+
* @param payload - Payload response from the API
|
|
215
|
+
*/
|
|
216
|
+
getInstance(payload) {
|
|
217
|
+
return new InsightsSegmentsInstance(this._version, payload);
|
|
218
|
+
}
|
|
219
|
+
[util_1.inspect.custom](depth, options) {
|
|
220
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
exports.InsightsSegmentsPage = InsightsSegmentsPage;
|
|
@@ -5,8 +5,8 @@ import V1 from "../V1";
|
|
|
5
5
|
* Options to pass to create a InsightsSessionInstance
|
|
6
6
|
*/
|
|
7
7
|
export interface InsightsSessionContextCreateOptions {
|
|
8
|
-
/** The
|
|
9
|
-
|
|
8
|
+
/** The Authorization HTTP request header */
|
|
9
|
+
authorization?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface InsightsSessionContext {
|
|
12
12
|
/**
|
|
@@ -33,8 +33,8 @@ class InsightsSessionContextImpl {
|
|
|
33
33
|
}
|
|
34
34
|
let data = {};
|
|
35
35
|
const headers = {};
|
|
36
|
-
if (params["
|
|
37
|
-
headers["
|
|
36
|
+
if (params["authorization"] !== undefined)
|
|
37
|
+
headers["Authorization"] = params["authorization"];
|
|
38
38
|
const instance = this;
|
|
39
39
|
let operationVersion = instance._version, operationPromise = operationVersion.create({
|
|
40
40
|
uri: instance._uri,
|
|
@@ -5,8 +5,8 @@ import V1 from "../V1";
|
|
|
5
5
|
* Options to pass to fetch a InsightsUserRolesInstance
|
|
6
6
|
*/
|
|
7
7
|
export interface InsightsUserRolesContextFetchOptions {
|
|
8
|
-
/** The
|
|
9
|
-
|
|
8
|
+
/** The Authorization HTTP request header */
|
|
9
|
+
authorization?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface InsightsUserRolesContext {
|
|
12
12
|
/**
|
|
@@ -33,8 +33,8 @@ class InsightsUserRolesContextImpl {
|
|
|
33
33
|
}
|
|
34
34
|
let data = {};
|
|
35
35
|
const headers = {};
|
|
36
|
-
if (params["
|
|
37
|
-
headers["
|
|
36
|
+
if (params["authorization"] !== undefined)
|
|
37
|
+
headers["Authorization"] = params["authorization"];
|
|
38
38
|
const instance = this;
|
|
39
39
|
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
40
40
|
uri: instance._uri,
|
package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts
CHANGED
|
@@ -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 InteractionChannelParticipantStatus = "closed" | "wrapup";
|
|
7
|
-
type InteractionChannelParticipantType = "supervisor" | "customer" | "external" | "agent" | "unknown";
|
|
6
|
+
export type InteractionChannelParticipantStatus = "closed" | "wrapup";
|
|
7
|
+
export type InteractionChannelParticipantType = "supervisor" | "customer" | "external" | "agent" | "unknown";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to update a InteractionChannelParticipantInstance
|
|
10
10
|
*/
|
|
@@ -5,9 +5,9 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { InteractionChannelInviteListInstance } from "./interactionChannel/interactionChannelInvite";
|
|
7
7
|
import { InteractionChannelParticipantListInstance } from "./interactionChannel/interactionChannelParticipant";
|
|
8
|
-
type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed";
|
|
9
|
-
type InteractionChannelStatus = "closed" | "wrapup";
|
|
10
|
-
type InteractionChannelType = "voice" | "sms" | "email" | "web" | "whatsapp" | "chat" | "messenger" | "gbm";
|
|
8
|
+
export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed";
|
|
9
|
+
export type InteractionChannelStatus = "closed" | "wrapup";
|
|
10
|
+
export type InteractionChannelType = "voice" | "sms" | "email" | "web" | "whatsapp" | "chat" | "messenger" | "gbm";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a InteractionChannelInstance
|
|
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 WebChannelChatStatus = "inactive";
|
|
6
|
+
export type WebChannelChatStatus = "inactive";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a WebChannelInstance
|
|
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 UserStateType = "active" | "deactivated";
|
|
4
|
+
export type UserStateType = "active" | "deactivated";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to update a UserInstance
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../V1";
|
|
4
|
-
type AnnotationAnsweredBy = "unknown_answered_by" | "human" | "machine";
|
|
5
|
-
type AnnotationConnectivityIssue = "unknown_connectivity_issue" | "no_connectivity_issue" | "invalid_number" | "caller_id" | "dropped_call" | "number_reachability";
|
|
4
|
+
export type AnnotationAnsweredBy = "unknown_answered_by" | "human" | "machine";
|
|
5
|
+
export type AnnotationConnectivityIssue = "unknown_connectivity_issue" | "no_connectivity_issue" | "invalid_number" | "caller_id" | "dropped_call" | "number_reachability";
|
|
6
6
|
/**
|
|
7
7
|
* Options to pass to update a AnnotationInstance
|
|
8
8
|
*/
|