twilio 5.4.4 → 5.5.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/base/Page.js +1 -1
- package/lib/jwt/ClientCapability.js +1 -1
- package/lib/jwt/taskrouter/TaskRouterCapability.js +1 -1
- package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkConsents.js +1 -1
- package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkContacts.js +1 -1
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +3 -3
- package/lib/rest/api/v2010/account/address.d.ts +6 -0
- package/lib/rest/api/v2010/account/address.js +2 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
- package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
- package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
- package/lib/rest/api/v2010/account/recording.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
- package/lib/rest/chat/v1/service.d.ts +9 -9
- package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/chat/v2/service.d.ts +9 -9
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation/message.d.ts +6 -6
- package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation.d.ts +6 -6
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/participantConversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +3 -3
- package/lib/rest/conversations/v1/user/userConversation.d.ts +3 -3
- package/lib/rest/events/v1/sink.d.ts +5 -5
- package/lib/rest/events/v1/subscription.d.ts +1 -1
- package/lib/rest/events/v1/subscription.js +1 -1
- package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
- package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
- package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +232 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.js +203 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +9 -1
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +13 -0
- package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
- package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
- package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
- package/lib/rest/iam/v1/apiKey.d.ts +3 -3
- package/lib/rest/iam/v1/newApiKey.d.ts +3 -3
- package/lib/rest/insights/v1/call/callSummary.d.ts +30 -30
- package/lib/rest/insights/v1/call/event.d.ts +12 -12
- package/lib/rest/insights/v1/call/metric.d.ts +12 -12
- package/lib/rest/insights/v1/callSummaries.d.ts +30 -30
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +10 -10
- package/lib/rest/insights/v1/conference.d.ts +7 -7
- package/lib/rest/insights/v1/room/participant.d.ts +6 -6
- package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
- package/lib/rest/intelligence/v2/operator.d.ts +3 -3
- package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
- package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
- package/lib/rest/lookups/v1/phoneNumber.d.ts +9 -9
- package/lib/rest/lookups/v2/phoneNumber.d.ts +30 -30
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +2 -2
- package/lib/rest/messaging/v1/brandRegistration.d.ts +4 -4
- package/lib/rest/messaging/v1/domainCerts.d.ts +3 -3
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +6 -6
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +3 -3
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +7 -7
- package/lib/rest/messaging/v1/usecase.d.ts +3 -3
- package/lib/rest/microvisor/v1/device.d.ts +6 -6
- package/lib/rest/monitor/v1/event.d.ts +3 -3
- package/lib/rest/notify/v1/service/notification.d.ts +28 -28
- package/lib/rest/numbers/V1.d.ts +5 -5
- package/lib/rest/numbers/V1.js +6 -8
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
- package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.d.ts → webhook.d.ts} +10 -10
- package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.js → webhook.js} +6 -6
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
- package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
- package/lib/rest/preview/sync/service/document.d.ts +5 -5
- package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +5 -5
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +5 -5
- package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
- package/lib/rest/proxy/v1/service/session.d.ts +1 -1
- package/lib/rest/proxy/v1/service/session.js +1 -1
- package/lib/rest/serverless/v1/service/build.d.ts +9 -9
- package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
- package/lib/rest/studio/v2/flow.d.ts +11 -11
- package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
- package/lib/rest/supersim/v1/network.d.ts +3 -3
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
- package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
- package/lib/rest/sync/v1/service/document.d.ts +5 -5
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +5 -5
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +5 -5
- package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +4 -4
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
- package/lib/rest/trunking/v1/trunk.d.ts +3 -3
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
- package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
- package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
- package/lib/rest/trusthub/v1/policies.d.ts +3 -3
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +6 -6
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
- package/lib/rest/verify/v2/form.d.ts +6 -6
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +12 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -6
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -10
- package/lib/rest/verify/v2/service/verification.d.ts +11 -11
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
- package/lib/rest/verify/v2/service.d.ts +9 -9
- package/lib/rest/verify/v2/template.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +6 -6
- package/lib/rest/video/v1/composition.d.ts +4 -4
- package/lib/rest/video/v1/compositionHook.d.ts +5 -5
- package/lib/rest/video/v1/recording.d.ts +3 -3
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -1
- package/lib/rest/video/v1/room/recordingRules.d.ts +1 -1
- package/lib/rest/video/v1/room/roomRecording.d.ts +3 -3
- package/lib/rest/video/v1/room.d.ts +1 -1
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
- package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
- package/lib/twiml/VoiceResponse.d.ts +1 -2
- package/package.json +3 -3
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V1 from "../../../V1";
|
|
4
|
+
export type InteractionTransferTransferStatus = "active" | "failed" | "completed";
|
|
5
|
+
export type InteractionTransferTransferType = "warm" | "cold" | "external";
|
|
6
|
+
/**
|
|
7
|
+
* Options to pass to update a InteractionTransferInstance
|
|
8
|
+
*/
|
|
9
|
+
export interface InteractionTransferContextUpdateOptions {
|
|
10
|
+
/** */
|
|
11
|
+
body?: object;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Options to pass to create a InteractionTransferInstance
|
|
15
|
+
*/
|
|
16
|
+
export interface InteractionTransferListInstanceCreateOptions {
|
|
17
|
+
/** */
|
|
18
|
+
body?: object;
|
|
19
|
+
}
|
|
20
|
+
export interface InteractionTransferContext {
|
|
21
|
+
/**
|
|
22
|
+
* Fetch a InteractionTransferInstance
|
|
23
|
+
*
|
|
24
|
+
* @param callback - Callback to handle processed record
|
|
25
|
+
*
|
|
26
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
27
|
+
*/
|
|
28
|
+
fetch(callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
29
|
+
/**
|
|
30
|
+
* Update a InteractionTransferInstance
|
|
31
|
+
*
|
|
32
|
+
* @param callback - Callback to handle processed record
|
|
33
|
+
*
|
|
34
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
35
|
+
*/
|
|
36
|
+
update(callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
37
|
+
/**
|
|
38
|
+
* Update a InteractionTransferInstance
|
|
39
|
+
*
|
|
40
|
+
* @param params - Body for request
|
|
41
|
+
* @param headers - header params for request
|
|
42
|
+
* @param callback - Callback to handle processed record
|
|
43
|
+
*
|
|
44
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
45
|
+
*/
|
|
46
|
+
update(params: object, headers?: any, callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
47
|
+
/**
|
|
48
|
+
* Provide a user-friendly representation
|
|
49
|
+
*/
|
|
50
|
+
toJSON(): any;
|
|
51
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
52
|
+
}
|
|
53
|
+
export interface InteractionTransferContextSolution {
|
|
54
|
+
interactionSid: string;
|
|
55
|
+
channelSid: string;
|
|
56
|
+
sid: string;
|
|
57
|
+
}
|
|
58
|
+
export declare class InteractionTransferContextImpl implements InteractionTransferContext {
|
|
59
|
+
protected _version: V1;
|
|
60
|
+
protected _solution: InteractionTransferContextSolution;
|
|
61
|
+
protected _uri: string;
|
|
62
|
+
constructor(_version: V1, interactionSid: string, channelSid: string, sid: string);
|
|
63
|
+
fetch(callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
64
|
+
update(params?: object | ((error: Error | null, item?: InteractionTransferInstance) => any), headers?: any, callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
65
|
+
/**
|
|
66
|
+
* Provide a user-friendly representation
|
|
67
|
+
*
|
|
68
|
+
* @returns Object
|
|
69
|
+
*/
|
|
70
|
+
toJSON(): InteractionTransferContextSolution;
|
|
71
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
72
|
+
}
|
|
73
|
+
interface InteractionTransferResource {
|
|
74
|
+
sid: string;
|
|
75
|
+
instance_sid: string;
|
|
76
|
+
account_sid: string;
|
|
77
|
+
interaction_sid: string;
|
|
78
|
+
channel_sid: string;
|
|
79
|
+
execution_sid: string;
|
|
80
|
+
type: InteractionTransferTransferType;
|
|
81
|
+
status: InteractionTransferTransferStatus;
|
|
82
|
+
from: string;
|
|
83
|
+
to: string;
|
|
84
|
+
note_sid: string;
|
|
85
|
+
summary_sid: string;
|
|
86
|
+
date_created: Date;
|
|
87
|
+
date_updated: Date;
|
|
88
|
+
url: string;
|
|
89
|
+
}
|
|
90
|
+
export declare class InteractionTransferInstance {
|
|
91
|
+
protected _version: V1;
|
|
92
|
+
protected _solution: InteractionTransferContextSolution;
|
|
93
|
+
protected _context?: InteractionTransferContext;
|
|
94
|
+
constructor(_version: V1, payload: InteractionTransferResource, interactionSid: string, channelSid: string, sid?: string);
|
|
95
|
+
/**
|
|
96
|
+
* The unique string created by Twilio to identify an Interaction Transfer resource.
|
|
97
|
+
*/
|
|
98
|
+
sid: string;
|
|
99
|
+
/**
|
|
100
|
+
* The SID of the Instance associated with the Transfer.
|
|
101
|
+
*/
|
|
102
|
+
instanceSid: string;
|
|
103
|
+
/**
|
|
104
|
+
* The SID of the Account that created the Transfer.
|
|
105
|
+
*/
|
|
106
|
+
accountSid: string;
|
|
107
|
+
/**
|
|
108
|
+
* The Interaction Sid for this channel.
|
|
109
|
+
*/
|
|
110
|
+
interactionSid: string;
|
|
111
|
+
/**
|
|
112
|
+
* The Channel Sid for this Transfer.
|
|
113
|
+
*/
|
|
114
|
+
channelSid: string;
|
|
115
|
+
/**
|
|
116
|
+
* The Execution SID associated with the Transfer.
|
|
117
|
+
*/
|
|
118
|
+
executionSid: string;
|
|
119
|
+
type: InteractionTransferTransferType;
|
|
120
|
+
status: InteractionTransferTransferStatus;
|
|
121
|
+
/**
|
|
122
|
+
* The SID of the Participant initiating the Transfer.
|
|
123
|
+
*/
|
|
124
|
+
from: string;
|
|
125
|
+
/**
|
|
126
|
+
* The SID of the Participant receiving the Transfer.
|
|
127
|
+
*/
|
|
128
|
+
to: string;
|
|
129
|
+
/**
|
|
130
|
+
* The SID of the Note associated with the Transfer.
|
|
131
|
+
*/
|
|
132
|
+
noteSid: string;
|
|
133
|
+
/**
|
|
134
|
+
* The SID of the Summary associated with the Transfer.
|
|
135
|
+
*/
|
|
136
|
+
summarySid: string;
|
|
137
|
+
/**
|
|
138
|
+
* The date and time when the Transfer was created.
|
|
139
|
+
*/
|
|
140
|
+
dateCreated: Date;
|
|
141
|
+
/**
|
|
142
|
+
* The date and time when the Transfer was last updated.
|
|
143
|
+
*/
|
|
144
|
+
dateUpdated: Date;
|
|
145
|
+
url: string;
|
|
146
|
+
private get _proxy();
|
|
147
|
+
/**
|
|
148
|
+
* Fetch a InteractionTransferInstance
|
|
149
|
+
*
|
|
150
|
+
* @param callback - Callback to handle processed record
|
|
151
|
+
*
|
|
152
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
153
|
+
*/
|
|
154
|
+
fetch(callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
155
|
+
/**
|
|
156
|
+
* Update a InteractionTransferInstance
|
|
157
|
+
*
|
|
158
|
+
* @param callback - Callback to handle processed record
|
|
159
|
+
*
|
|
160
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
161
|
+
*/
|
|
162
|
+
update(callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
163
|
+
/**
|
|
164
|
+
* Update a InteractionTransferInstance
|
|
165
|
+
*
|
|
166
|
+
* @param params - Body for request
|
|
167
|
+
* @param headers - header params for request
|
|
168
|
+
* @param callback - Callback to handle processed record
|
|
169
|
+
*
|
|
170
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
171
|
+
*/
|
|
172
|
+
update(params: object, headers?: any, callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
173
|
+
/**
|
|
174
|
+
* Provide a user-friendly representation
|
|
175
|
+
*
|
|
176
|
+
* @returns Object
|
|
177
|
+
*/
|
|
178
|
+
toJSON(): {
|
|
179
|
+
sid: string;
|
|
180
|
+
instanceSid: string;
|
|
181
|
+
accountSid: string;
|
|
182
|
+
interactionSid: string;
|
|
183
|
+
channelSid: string;
|
|
184
|
+
executionSid: string;
|
|
185
|
+
type: InteractionTransferTransferType;
|
|
186
|
+
status: InteractionTransferTransferStatus;
|
|
187
|
+
from: string;
|
|
188
|
+
to: string;
|
|
189
|
+
noteSid: string;
|
|
190
|
+
summarySid: string;
|
|
191
|
+
dateCreated: Date;
|
|
192
|
+
dateUpdated: Date;
|
|
193
|
+
url: string;
|
|
194
|
+
};
|
|
195
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
196
|
+
}
|
|
197
|
+
export interface InteractionTransferSolution {
|
|
198
|
+
interactionSid: string;
|
|
199
|
+
channelSid: string;
|
|
200
|
+
}
|
|
201
|
+
export interface InteractionTransferListInstance {
|
|
202
|
+
_version: V1;
|
|
203
|
+
_solution: InteractionTransferSolution;
|
|
204
|
+
_uri: string;
|
|
205
|
+
(sid: string): InteractionTransferContext;
|
|
206
|
+
get(sid: string): InteractionTransferContext;
|
|
207
|
+
/**
|
|
208
|
+
* Create a InteractionTransferInstance
|
|
209
|
+
*
|
|
210
|
+
* @param callback - Callback to handle processed record
|
|
211
|
+
*
|
|
212
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
213
|
+
*/
|
|
214
|
+
create(callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
215
|
+
/**
|
|
216
|
+
* Create a InteractionTransferInstance
|
|
217
|
+
*
|
|
218
|
+
* @param params - Body for request
|
|
219
|
+
* @param headers - header params for request
|
|
220
|
+
* @param callback - Callback to handle processed record
|
|
221
|
+
*
|
|
222
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
223
|
+
*/
|
|
224
|
+
create(params: object, headers?: any, callback?: (error: Error | null, item?: InteractionTransferInstance) => any): Promise<InteractionTransferInstance>;
|
|
225
|
+
/**
|
|
226
|
+
* Provide a user-friendly representation
|
|
227
|
+
*/
|
|
228
|
+
toJSON(): any;
|
|
229
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
230
|
+
}
|
|
231
|
+
export declare function InteractionTransferListInstance(version: V1, interactionSid: string, channelSid: string): InteractionTransferListInstance;
|
|
232
|
+
export {};
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.InteractionTransferListInstance = exports.InteractionTransferInstance = exports.InteractionTransferContextImpl = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../../../base/serialize");
|
|
20
|
+
const utility_1 = require("../../../../../base/utility");
|
|
21
|
+
class InteractionTransferContextImpl {
|
|
22
|
+
constructor(_version, interactionSid, channelSid, sid) {
|
|
23
|
+
this._version = _version;
|
|
24
|
+
if (!(0, utility_1.isValidPathParam)(interactionSid)) {
|
|
25
|
+
throw new Error("Parameter 'interactionSid' is not valid.");
|
|
26
|
+
}
|
|
27
|
+
if (!(0, utility_1.isValidPathParam)(channelSid)) {
|
|
28
|
+
throw new Error("Parameter 'channelSid' is not valid.");
|
|
29
|
+
}
|
|
30
|
+
if (!(0, utility_1.isValidPathParam)(sid)) {
|
|
31
|
+
throw new Error("Parameter 'sid' is not valid.");
|
|
32
|
+
}
|
|
33
|
+
this._solution = { interactionSid, channelSid, sid };
|
|
34
|
+
this._uri = `/Interactions/${interactionSid}/Channels/${channelSid}/Transfers/${sid}`;
|
|
35
|
+
}
|
|
36
|
+
fetch(callback) {
|
|
37
|
+
const headers = {};
|
|
38
|
+
headers["Accept"] = "application/json";
|
|
39
|
+
const instance = this;
|
|
40
|
+
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
41
|
+
uri: instance._uri,
|
|
42
|
+
method: "get",
|
|
43
|
+
headers,
|
|
44
|
+
});
|
|
45
|
+
operationPromise = operationPromise.then((payload) => new InteractionTransferInstance(operationVersion, payload, instance._solution.interactionSid, instance._solution.channelSid, instance._solution.sid));
|
|
46
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
47
|
+
return operationPromise;
|
|
48
|
+
}
|
|
49
|
+
update(params, headers, callback) {
|
|
50
|
+
if (params instanceof Function) {
|
|
51
|
+
callback = params;
|
|
52
|
+
params = {};
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
params = params || {};
|
|
56
|
+
}
|
|
57
|
+
let data = {};
|
|
58
|
+
data = params;
|
|
59
|
+
if (headers === null || headers === undefined) {
|
|
60
|
+
headers = {};
|
|
61
|
+
}
|
|
62
|
+
headers["Content-Type"] = "application/json";
|
|
63
|
+
headers["Accept"] = "application/json";
|
|
64
|
+
const instance = this;
|
|
65
|
+
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
66
|
+
uri: instance._uri,
|
|
67
|
+
method: "post",
|
|
68
|
+
data,
|
|
69
|
+
headers,
|
|
70
|
+
});
|
|
71
|
+
operationPromise = operationPromise.then((payload) => new InteractionTransferInstance(operationVersion, payload, instance._solution.interactionSid, instance._solution.channelSid, instance._solution.sid));
|
|
72
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
73
|
+
return operationPromise;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Provide a user-friendly representation
|
|
77
|
+
*
|
|
78
|
+
* @returns Object
|
|
79
|
+
*/
|
|
80
|
+
toJSON() {
|
|
81
|
+
return this._solution;
|
|
82
|
+
}
|
|
83
|
+
[util_1.inspect.custom](_depth, options) {
|
|
84
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.InteractionTransferContextImpl = InteractionTransferContextImpl;
|
|
88
|
+
class InteractionTransferInstance {
|
|
89
|
+
constructor(_version, payload, interactionSid, channelSid, sid) {
|
|
90
|
+
this._version = _version;
|
|
91
|
+
this.sid = payload.sid;
|
|
92
|
+
this.instanceSid = payload.instance_sid;
|
|
93
|
+
this.accountSid = payload.account_sid;
|
|
94
|
+
this.interactionSid = payload.interaction_sid;
|
|
95
|
+
this.channelSid = payload.channel_sid;
|
|
96
|
+
this.executionSid = payload.execution_sid;
|
|
97
|
+
this.type = payload.type;
|
|
98
|
+
this.status = payload.status;
|
|
99
|
+
this.from = payload.from;
|
|
100
|
+
this.to = payload.to;
|
|
101
|
+
this.noteSid = payload.note_sid;
|
|
102
|
+
this.summarySid = payload.summary_sid;
|
|
103
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
104
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
105
|
+
this.url = payload.url;
|
|
106
|
+
this._solution = { interactionSid, channelSid, sid: sid || this.sid };
|
|
107
|
+
}
|
|
108
|
+
get _proxy() {
|
|
109
|
+
this._context =
|
|
110
|
+
this._context ||
|
|
111
|
+
new InteractionTransferContextImpl(this._version, this._solution.interactionSid, this._solution.channelSid, this._solution.sid);
|
|
112
|
+
return this._context;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Fetch a InteractionTransferInstance
|
|
116
|
+
*
|
|
117
|
+
* @param callback - Callback to handle processed record
|
|
118
|
+
*
|
|
119
|
+
* @returns Resolves to processed InteractionTransferInstance
|
|
120
|
+
*/
|
|
121
|
+
fetch(callback) {
|
|
122
|
+
return this._proxy.fetch(callback);
|
|
123
|
+
}
|
|
124
|
+
update(params, callback) {
|
|
125
|
+
return this._proxy.update(params, callback);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Provide a user-friendly representation
|
|
129
|
+
*
|
|
130
|
+
* @returns Object
|
|
131
|
+
*/
|
|
132
|
+
toJSON() {
|
|
133
|
+
return {
|
|
134
|
+
sid: this.sid,
|
|
135
|
+
instanceSid: this.instanceSid,
|
|
136
|
+
accountSid: this.accountSid,
|
|
137
|
+
interactionSid: this.interactionSid,
|
|
138
|
+
channelSid: this.channelSid,
|
|
139
|
+
executionSid: this.executionSid,
|
|
140
|
+
type: this.type,
|
|
141
|
+
status: this.status,
|
|
142
|
+
from: this.from,
|
|
143
|
+
to: this.to,
|
|
144
|
+
noteSid: this.noteSid,
|
|
145
|
+
summarySid: this.summarySid,
|
|
146
|
+
dateCreated: this.dateCreated,
|
|
147
|
+
dateUpdated: this.dateUpdated,
|
|
148
|
+
url: this.url,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
[util_1.inspect.custom](_depth, options) {
|
|
152
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.InteractionTransferInstance = InteractionTransferInstance;
|
|
156
|
+
function InteractionTransferListInstance(version, interactionSid, channelSid) {
|
|
157
|
+
if (!(0, utility_1.isValidPathParam)(interactionSid)) {
|
|
158
|
+
throw new Error("Parameter 'interactionSid' is not valid.");
|
|
159
|
+
}
|
|
160
|
+
if (!(0, utility_1.isValidPathParam)(channelSid)) {
|
|
161
|
+
throw new Error("Parameter 'channelSid' is not valid.");
|
|
162
|
+
}
|
|
163
|
+
const instance = ((sid) => instance.get(sid));
|
|
164
|
+
instance.get = function get(sid) {
|
|
165
|
+
return new InteractionTransferContextImpl(version, interactionSid, channelSid, sid);
|
|
166
|
+
};
|
|
167
|
+
instance._version = version;
|
|
168
|
+
instance._solution = { interactionSid, channelSid };
|
|
169
|
+
instance._uri = `/Interactions/${interactionSid}/Channels/${channelSid}/Transfers`;
|
|
170
|
+
instance.create = function create(params, headers, callback) {
|
|
171
|
+
if (params instanceof Function) {
|
|
172
|
+
callback = params;
|
|
173
|
+
params = {};
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
params = params || {};
|
|
177
|
+
}
|
|
178
|
+
let data = {};
|
|
179
|
+
data = params;
|
|
180
|
+
if (headers === null || headers === undefined) {
|
|
181
|
+
headers = {};
|
|
182
|
+
}
|
|
183
|
+
headers["Content-Type"] = "application/json";
|
|
184
|
+
headers["Accept"] = "application/json";
|
|
185
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
186
|
+
uri: instance._uri,
|
|
187
|
+
method: "post",
|
|
188
|
+
data,
|
|
189
|
+
headers,
|
|
190
|
+
});
|
|
191
|
+
operationPromise = operationPromise.then((payload) => new InteractionTransferInstance(operationVersion, payload, instance._solution.interactionSid, instance._solution.channelSid));
|
|
192
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
193
|
+
return operationPromise;
|
|
194
|
+
};
|
|
195
|
+
instance.toJSON = function toJSON() {
|
|
196
|
+
return instance._solution;
|
|
197
|
+
};
|
|
198
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
199
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
200
|
+
};
|
|
201
|
+
return instance;
|
|
202
|
+
}
|
|
203
|
+
exports.InteractionTransferListInstance = InteractionTransferListInstance;
|
|
@@ -5,6 +5,7 @@ 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
|
+
import { InteractionTransferListInstance } from "./interactionChannel/interactionTransfer";
|
|
8
9
|
export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed" | "inactive";
|
|
9
10
|
export type InteractionChannelType = "voice" | "sms" | "email" | "web" | "whatsapp" | "chat" | "messenger" | "gbm";
|
|
10
11
|
export type InteractionChannelUpdateChannelStatus = "closed" | "inactive";
|
|
@@ -15,7 +16,7 @@ export interface InteractionChannelContextUpdateOptions {
|
|
|
15
16
|
/** */
|
|
16
17
|
status: InteractionChannelUpdateChannelStatus;
|
|
17
18
|
/** It changes the state of associated tasks. Routing status is required, When the channel status is set to `inactive`. Allowed Value for routing status is `closed`. Otherwise Optional, if not specified, all tasks will be set to `wrapping`. */
|
|
18
|
-
routing?:
|
|
19
|
+
routing?: object;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Options to pass to each
|
|
@@ -53,6 +54,7 @@ export interface InteractionChannelListInstancePageOptions {
|
|
|
53
54
|
export interface InteractionChannelContext {
|
|
54
55
|
invites: InteractionChannelInviteListInstance;
|
|
55
56
|
participants: InteractionChannelParticipantListInstance;
|
|
57
|
+
transfers: InteractionTransferListInstance;
|
|
56
58
|
/**
|
|
57
59
|
* Fetch a InteractionChannelInstance
|
|
58
60
|
*
|
|
@@ -86,9 +88,11 @@ export declare class InteractionChannelContextImpl implements InteractionChannel
|
|
|
86
88
|
protected _uri: string;
|
|
87
89
|
protected _invites?: InteractionChannelInviteListInstance;
|
|
88
90
|
protected _participants?: InteractionChannelParticipantListInstance;
|
|
91
|
+
protected _transfers?: InteractionTransferListInstance;
|
|
89
92
|
constructor(_version: V1, interactionSid: string, sid: string);
|
|
90
93
|
get invites(): InteractionChannelInviteListInstance;
|
|
91
94
|
get participants(): InteractionChannelParticipantListInstance;
|
|
95
|
+
get transfers(): InteractionTransferListInstance;
|
|
92
96
|
fetch(callback?: (error: Error | null, item?: InteractionChannelInstance) => any): Promise<InteractionChannelInstance>;
|
|
93
97
|
update(params: InteractionChannelContextUpdateOptions, callback?: (error: Error | null, item?: InteractionChannelInstance) => any): Promise<InteractionChannelInstance>;
|
|
94
98
|
/**
|
|
@@ -163,6 +167,10 @@ export declare class InteractionChannelInstance {
|
|
|
163
167
|
* Access the participants.
|
|
164
168
|
*/
|
|
165
169
|
participants(): InteractionChannelParticipantListInstance;
|
|
170
|
+
/**
|
|
171
|
+
* Access the transfers.
|
|
172
|
+
*/
|
|
173
|
+
transfers(): InteractionTransferListInstance;
|
|
166
174
|
/**
|
|
167
175
|
* Provide a user-friendly representation
|
|
168
176
|
*
|
|
@@ -24,6 +24,7 @@ const serialize = require("../../../../base/serialize");
|
|
|
24
24
|
const utility_1 = require("../../../../base/utility");
|
|
25
25
|
const interactionChannelInvite_1 = require("./interactionChannel/interactionChannelInvite");
|
|
26
26
|
const interactionChannelParticipant_1 = require("./interactionChannel/interactionChannelParticipant");
|
|
27
|
+
const interactionTransfer_1 = require("./interactionChannel/interactionTransfer");
|
|
27
28
|
class InteractionChannelContextImpl {
|
|
28
29
|
constructor(_version, interactionSid, sid) {
|
|
29
30
|
this._version = _version;
|
|
@@ -48,6 +49,12 @@ class InteractionChannelContextImpl {
|
|
|
48
49
|
(0, interactionChannelParticipant_1.InteractionChannelParticipantListInstance)(this._version, this._solution.interactionSid, this._solution.sid);
|
|
49
50
|
return this._participants;
|
|
50
51
|
}
|
|
52
|
+
get transfers() {
|
|
53
|
+
this._transfers =
|
|
54
|
+
this._transfers ||
|
|
55
|
+
(0, interactionTransfer_1.InteractionTransferListInstance)(this._version, this._solution.interactionSid, this._solution.sid);
|
|
56
|
+
return this._transfers;
|
|
57
|
+
}
|
|
51
58
|
fetch(callback) {
|
|
52
59
|
const headers = {};
|
|
53
60
|
headers["Accept"] = "application/json";
|
|
@@ -143,6 +150,12 @@ class InteractionChannelInstance {
|
|
|
143
150
|
participants() {
|
|
144
151
|
return this._proxy.participants;
|
|
145
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Access the transfers.
|
|
155
|
+
*/
|
|
156
|
+
transfers() {
|
|
157
|
+
return this._proxy.transfers;
|
|
158
|
+
}
|
|
146
159
|
/**
|
|
147
160
|
* Provide a user-friendly representation
|
|
148
161
|
*
|
|
@@ -7,9 +7,9 @@ import { InteractionChannelListInstance } from "./interaction/interactionChannel
|
|
|
7
7
|
*/
|
|
8
8
|
export interface InteractionListInstanceCreateOptions {
|
|
9
9
|
/** The Interaction\\\'s channel. */
|
|
10
|
-
channel:
|
|
10
|
+
channel: object;
|
|
11
11
|
/** The Interaction\\\'s routing logic. */
|
|
12
|
-
routing?:
|
|
12
|
+
routing?: object;
|
|
13
13
|
/** The Interaction context sid is used for adding a context lookup sid */
|
|
14
14
|
interactionContextSid?: string;
|
|
15
15
|
}
|
|
@@ -50,8 +50,8 @@ export declare class InteractionContextImpl implements InteractionContext {
|
|
|
50
50
|
}
|
|
51
51
|
interface InteractionResource {
|
|
52
52
|
sid: string;
|
|
53
|
-
channel:
|
|
54
|
-
routing:
|
|
53
|
+
channel: Record<string, object>;
|
|
54
|
+
routing: Record<string, object>;
|
|
55
55
|
url: string;
|
|
56
56
|
links: Record<string, string>;
|
|
57
57
|
interaction_context_sid: string;
|
|
@@ -68,11 +68,11 @@ export declare class InteractionInstance {
|
|
|
68
68
|
/**
|
|
69
69
|
* A JSON object that defines the Interaction’s communication channel and includes details about the channel. See the [Outbound SMS](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) and [inbound (API-initiated)](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#api-initiated-contact) Channel object examples.
|
|
70
70
|
*/
|
|
71
|
-
channel:
|
|
71
|
+
channel: Record<string, object>;
|
|
72
72
|
/**
|
|
73
73
|
* A JSON Object representing the routing rules for the Interaction Channel. See [Outbound SMS Example](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see [Known Task Attributes](https://www.twilio.com/docs/flex/developer/conversations/interactions-api#task-attributes).
|
|
74
74
|
*/
|
|
75
|
-
routing:
|
|
75
|
+
routing: Record<string, object>;
|
|
76
76
|
url: string;
|
|
77
77
|
links: Record<string, string>;
|
|
78
78
|
interactionContextSid: string;
|
|
@@ -96,8 +96,8 @@ export declare class InteractionInstance {
|
|
|
96
96
|
*/
|
|
97
97
|
toJSON(): {
|
|
98
98
|
sid: string;
|
|
99
|
-
channel:
|
|
100
|
-
routing:
|
|
99
|
+
channel: Record<string, object>;
|
|
100
|
+
routing: Record<string, object>;
|
|
101
101
|
url: string;
|
|
102
102
|
links: Record<string, string>;
|
|
103
103
|
interactionContextSid: string;
|
|
@@ -20,7 +20,7 @@ export interface PluginConfigurationListInstanceCreateOptions {
|
|
|
20
20
|
/** The Flex-Metadata HTTP request header */
|
|
21
21
|
flexMetadata?: string;
|
|
22
22
|
/** A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version. */
|
|
23
|
-
plugins?: Array<
|
|
23
|
+
plugins?: Array<object>;
|
|
24
24
|
/** The Flex Plugin Configuration\\\'s description. */
|
|
25
25
|
description?: string;
|
|
26
26
|
}
|
|
@@ -143,7 +143,7 @@ function PluginConfigurationListInstance(version) {
|
|
|
143
143
|
let data = {};
|
|
144
144
|
data["Name"] = params["name"];
|
|
145
145
|
if (params["plugins"] !== undefined)
|
|
146
|
-
data["Plugins"] = serialize.map(params["plugins"], (e) =>
|
|
146
|
+
data["Plugins"] = serialize.map(params["plugins"], (e) => e);
|
|
147
147
|
if (params["description"] !== undefined)
|
|
148
148
|
data["Description"] = params["description"];
|
|
149
149
|
const headers = {};
|
|
@@ -74,7 +74,7 @@ interface ApiKeyResource {
|
|
|
74
74
|
friendly_name: string;
|
|
75
75
|
date_created: Date;
|
|
76
76
|
date_updated: Date;
|
|
77
|
-
policy:
|
|
77
|
+
policy: Record<string, object>;
|
|
78
78
|
}
|
|
79
79
|
export declare class ApiKeyInstance {
|
|
80
80
|
protected _version: V1;
|
|
@@ -100,7 +100,7 @@ export declare class ApiKeyInstance {
|
|
|
100
100
|
/**
|
|
101
101
|
* The \\`Policy\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
|
102
102
|
*/
|
|
103
|
-
policy:
|
|
103
|
+
policy: Record<string, object>;
|
|
104
104
|
private get _proxy();
|
|
105
105
|
/**
|
|
106
106
|
* Remove a ApiKeyInstance
|
|
@@ -145,7 +145,7 @@ export declare class ApiKeyInstance {
|
|
|
145
145
|
friendlyName: string;
|
|
146
146
|
dateCreated: Date;
|
|
147
147
|
dateUpdated: Date;
|
|
148
|
-
policy:
|
|
148
|
+
policy: Record<string, object>;
|
|
149
149
|
};
|
|
150
150
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
151
151
|
}
|
|
@@ -43,7 +43,7 @@ interface NewApiKeyResource {
|
|
|
43
43
|
date_created: Date;
|
|
44
44
|
date_updated: Date;
|
|
45
45
|
secret: string;
|
|
46
|
-
policy:
|
|
46
|
+
policy: Record<string, object>;
|
|
47
47
|
}
|
|
48
48
|
export declare class NewApiKeyInstance {
|
|
49
49
|
protected _version: V1;
|
|
@@ -71,7 +71,7 @@ export declare class NewApiKeyInstance {
|
|
|
71
71
|
/**
|
|
72
72
|
* Collection of allow assertions.
|
|
73
73
|
*/
|
|
74
|
-
policy:
|
|
74
|
+
policy: Record<string, object>;
|
|
75
75
|
/**
|
|
76
76
|
* Provide a user-friendly representation
|
|
77
77
|
*
|
|
@@ -83,7 +83,7 @@ export declare class NewApiKeyInstance {
|
|
|
83
83
|
dateCreated: Date;
|
|
84
84
|
dateUpdated: Date;
|
|
85
85
|
secret: string;
|
|
86
|
-
policy:
|
|
86
|
+
policy: Record<string, object>;
|
|
87
87
|
};
|
|
88
88
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
89
89
|
}
|