twilio 4.7.2 → 4.9.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/BaseTwilio.d.ts +1 -0
- package/lib/index.d.ts +52 -36
- package/lib/index.js +32 -51
- package/lib/jwt/AccessToken.d.ts +168 -173
- package/lib/jwt/AccessToken.js +180 -185
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +17 -22
- package/lib/rest/api/v2010/account/application.d.ts +15 -20
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
- package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
- package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
- package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
- package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
- 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 +9 -9
- package/lib/rest/api/v2010/account/conference.d.ts +4 -4
- package/lib/rest/api/v2010/account/connectApp.d.ts +4 -5
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +19 -24
- package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
- package/lib/rest/api/v2010/account/message.d.ts +6 -6
- package/lib/rest/api/v2010/account/notification.d.ts +3 -4
- package/lib/rest/api/v2010/account/queue.d.ts +3 -3
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
- package/lib/rest/api/v2010/account/recording.d.ts +2 -2
- package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
- package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
- package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
- 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 +5 -5
- 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/contentAndApprovals.d.ts +190 -0
- package/lib/rest/content/v1/contentAndApprovals.js +134 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
- package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
- 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 +7 -7
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
- package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
- package/lib/rest/conversations/v1/service/role.d.ts +5 -5
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
- package/lib/rest/conversations/v1/service/user.d.ts +4 -4
- 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 +5 -0
- package/lib/rest/flexApi/V1.js +7 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +255 -10
- package/lib/rest/flexApi/v1/assessments.js +208 -23
- 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/insightsConversations.d.ts +172 -0
- package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +8 -2
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +4 -4
- 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 +17 -17
- 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 +16 -16
- package/lib/rest/insights/v1/room.d.ts +41 -42
- 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 +5 -5
- 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 +6 -7
- package/lib/rest/media/v1/mediaRecording.d.ts +6 -7
- package/lib/rest/media/v1/playerStreamer.d.ts +7 -8
- package/lib/rest/messaging/V1.d.ts +10 -0
- package/lib/rest/messaging/V1.js +16 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
- package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
- package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
- package/lib/rest/messaging/v1/domainCerts.js +2 -2
- package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
- package/lib/rest/messaging/v1/service.d.ts +7 -9
- 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/app/appManifest.d.ts +101 -0
- package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
- package/lib/rest/microvisor/v1/app.d.ts +11 -0
- package/lib/rest/microvisor/v1/app.js +15 -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/monitor/v1/alert.d.ts +3 -4
- 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/preview/wireless/sim.d.ts +12 -16
- 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 +15 -1
- package/lib/rest/supersim/v1/esimProfile.js +6 -0
- package/lib/rest/supersim/v1/fleet.d.ts +7 -9
- 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 +14 -14
- 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 +12 -12
- package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +16 -21
- package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
- package/lib/rest/trunking/v1/trunk.d.ts +5 -6
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
- package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
- 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 +3 -3
- 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 +5 -6
- package/lib/rest/video/v1/compositionHook.d.ts +4 -5
- package/lib/rest/video/v1/recording.d.ts +7 -8
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
- package/lib/rest/video/v1/room/participant.d.ts +8 -8
- package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
- package/lib/rest/video/v1/room.d.ts +6 -7
- package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
- 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 +17 -22
- package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
- package/package.json +2 -5
|
@@ -3,13 +3,13 @@ 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
|
|
6
|
+
export type BindingBindingType = "apn" | "gcm" | "fcm";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
10
10
|
export interface BindingListInstanceEachOptions {
|
|
11
11
|
/** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
|
|
12
|
-
bindingType?: Array<
|
|
12
|
+
bindingType?: Array<BindingBindingType>;
|
|
13
13
|
/** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
|
|
14
14
|
identity?: Array<string>;
|
|
15
15
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -26,7 +26,7 @@ export interface BindingListInstanceEachOptions {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface BindingListInstanceOptions {
|
|
28
28
|
/** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
|
|
29
|
-
bindingType?: Array<
|
|
29
|
+
bindingType?: Array<BindingBindingType>;
|
|
30
30
|
/** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
|
|
31
31
|
identity?: Array<string>;
|
|
32
32
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -39,7 +39,7 @@ export interface BindingListInstanceOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
export interface BindingListInstancePageOptions {
|
|
41
41
|
/** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
|
|
42
|
-
bindingType?: Array<
|
|
42
|
+
bindingType?: Array<BindingBindingType>;
|
|
43
43
|
/** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
|
|
44
44
|
identity?: Array<string>;
|
|
45
45
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -103,7 +103,7 @@ interface BindingResource {
|
|
|
103
103
|
date_updated: Date;
|
|
104
104
|
endpoint: string;
|
|
105
105
|
identity: string;
|
|
106
|
-
binding_type:
|
|
106
|
+
binding_type: BindingBindingType;
|
|
107
107
|
message_types: Array<string>;
|
|
108
108
|
url: string;
|
|
109
109
|
}
|
|
@@ -144,7 +144,7 @@ export declare class BindingInstance {
|
|
|
144
144
|
* The application-defined string that uniquely identifies the [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more info.
|
|
145
145
|
*/
|
|
146
146
|
identity: string;
|
|
147
|
-
bindingType:
|
|
147
|
+
bindingType: BindingBindingType;
|
|
148
148
|
/**
|
|
149
149
|
* The [Conversation message types](https://www.twilio.com/docs/chat/push-notification-configuration#push-types) the binding is subscribed to.
|
|
150
150
|
*/
|
|
@@ -184,7 +184,7 @@ export declare class BindingInstance {
|
|
|
184
184
|
dateUpdated: Date;
|
|
185
185
|
endpoint: string;
|
|
186
186
|
identity: string;
|
|
187
|
-
bindingType:
|
|
187
|
+
bindingType: BindingBindingType;
|
|
188
188
|
messageTypes: string[];
|
|
189
189
|
url: string;
|
|
190
190
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../../V1";
|
|
4
|
-
type
|
|
4
|
+
export type WebhookMethod = "GET" | "POST";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to update a WebhookInstance
|
|
7
7
|
*/
|
|
@@ -71,7 +71,7 @@ interface WebhookResource {
|
|
|
71
71
|
pre_webhook_url: string;
|
|
72
72
|
post_webhook_url: string;
|
|
73
73
|
filters: Array<string>;
|
|
74
|
-
method:
|
|
74
|
+
method: WebhookMethod;
|
|
75
75
|
url: string;
|
|
76
76
|
}
|
|
77
77
|
export declare class WebhookInstance {
|
|
@@ -99,7 +99,7 @@ export declare class WebhookInstance {
|
|
|
99
99
|
* The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
|
|
100
100
|
*/
|
|
101
101
|
filters: Array<string>;
|
|
102
|
-
method:
|
|
102
|
+
method: WebhookMethod;
|
|
103
103
|
/**
|
|
104
104
|
* An absolute API resource URL for this webhook.
|
|
105
105
|
*/
|
|
@@ -141,7 +141,7 @@ export declare class WebhookInstance {
|
|
|
141
141
|
preWebhookUrl: string;
|
|
142
142
|
postWebhookUrl: string;
|
|
143
143
|
filters: string[];
|
|
144
|
-
method:
|
|
144
|
+
method: WebhookMethod;
|
|
145
145
|
url: string;
|
|
146
146
|
};
|
|
147
147
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -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
|
|
6
|
+
export type DeliveryReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -83,7 +83,7 @@ interface DeliveryReceiptResource {
|
|
|
83
83
|
sid: string;
|
|
84
84
|
channel_message_sid: string;
|
|
85
85
|
participant_sid: string;
|
|
86
|
-
status:
|
|
86
|
+
status: DeliveryReceiptDeliveryStatus;
|
|
87
87
|
error_code: number;
|
|
88
88
|
date_created: Date;
|
|
89
89
|
date_updated: Date;
|
|
@@ -122,7 +122,7 @@ export declare class DeliveryReceiptInstance {
|
|
|
122
122
|
* The unique ID of the participant the delivery receipt belongs to.
|
|
123
123
|
*/
|
|
124
124
|
participantSid: string;
|
|
125
|
-
status:
|
|
125
|
+
status: DeliveryReceiptDeliveryStatus;
|
|
126
126
|
/**
|
|
127
127
|
* The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status,
|
|
128
128
|
*/
|
|
@@ -161,7 +161,7 @@ export declare class DeliveryReceiptInstance {
|
|
|
161
161
|
sid: string;
|
|
162
162
|
channelMessageSid: string;
|
|
163
163
|
participantSid: string;
|
|
164
|
-
status:
|
|
164
|
+
status: DeliveryReceiptDeliveryStatus;
|
|
165
165
|
errorCode: number;
|
|
166
166
|
dateCreated: Date;
|
|
167
167
|
dateUpdated: Date;
|
|
@@ -4,21 +4,21 @@ 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
|
|
8
|
-
type
|
|
7
|
+
export type MessageOrderType = "asc" | "desc";
|
|
8
|
+
export type MessageWebhookEnabledType = "true" | "false";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to remove a MessageInstance
|
|
11
11
|
*/
|
|
12
12
|
export interface MessageContextRemoveOptions {
|
|
13
13
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
14
|
-
xTwilioWebhookEnabled?:
|
|
14
|
+
xTwilioWebhookEnabled?: MessageWebhookEnabledType;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Options to pass to update a MessageInstance
|
|
18
18
|
*/
|
|
19
19
|
export interface MessageContextUpdateOptions {
|
|
20
20
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
21
|
-
xTwilioWebhookEnabled?:
|
|
21
|
+
xTwilioWebhookEnabled?: MessageWebhookEnabledType;
|
|
22
22
|
/** The channel specific identifier of the message\\\'s author. Defaults to `system`. */
|
|
23
23
|
author?: string;
|
|
24
24
|
/** The content of the message, can be up to 1,600 characters long. */
|
|
@@ -35,7 +35,7 @@ export interface MessageContextUpdateOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
export interface MessageListInstanceCreateOptions {
|
|
37
37
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
38
|
-
xTwilioWebhookEnabled?:
|
|
38
|
+
xTwilioWebhookEnabled?: MessageWebhookEnabledType;
|
|
39
39
|
/** The channel specific identifier of the message\\\'s author. Defaults to `system`. */
|
|
40
40
|
author?: string;
|
|
41
41
|
/** The content of the message, can be up to 1,600 characters long. */
|
|
@@ -58,7 +58,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
58
58
|
*/
|
|
59
59
|
export interface MessageListInstanceEachOptions {
|
|
60
60
|
/** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
|
|
61
|
-
order?:
|
|
61
|
+
order?: MessageOrderType;
|
|
62
62
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
63
63
|
pageSize?: number;
|
|
64
64
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -73,7 +73,7 @@ export interface MessageListInstanceEachOptions {
|
|
|
73
73
|
*/
|
|
74
74
|
export interface MessageListInstanceOptions {
|
|
75
75
|
/** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
|
|
76
|
-
order?:
|
|
76
|
+
order?: MessageOrderType;
|
|
77
77
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
78
78
|
pageSize?: number;
|
|
79
79
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -84,7 +84,7 @@ export interface MessageListInstanceOptions {
|
|
|
84
84
|
*/
|
|
85
85
|
export interface MessageListInstancePageOptions {
|
|
86
86
|
/** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
|
|
87
|
-
order?:
|
|
87
|
+
order?: MessageOrderType;
|
|
88
88
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
89
89
|
pageSize?: number;
|
|
90
90
|
/** Page Number, this value is simply for client state */
|
|
@@ -3,20 +3,20 @@ 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
|
|
6
|
+
export type ParticipantWebhookEnabledType = "true" | "false";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to remove a ParticipantInstance
|
|
9
9
|
*/
|
|
10
10
|
export interface ParticipantContextRemoveOptions {
|
|
11
11
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
12
|
-
xTwilioWebhookEnabled?:
|
|
12
|
+
xTwilioWebhookEnabled?: ParticipantWebhookEnabledType;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Options to pass to update a ParticipantInstance
|
|
16
16
|
*/
|
|
17
17
|
export interface ParticipantContextUpdateOptions {
|
|
18
18
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
19
|
-
xTwilioWebhookEnabled?:
|
|
19
|
+
xTwilioWebhookEnabled?: ParticipantWebhookEnabledType;
|
|
20
20
|
/** The date that this resource was created. */
|
|
21
21
|
dateCreated?: Date;
|
|
22
22
|
/** The date that this resource was last updated. */
|
|
@@ -41,7 +41,7 @@ export interface ParticipantContextUpdateOptions {
|
|
|
41
41
|
*/
|
|
42
42
|
export interface ParticipantListInstanceCreateOptions {
|
|
43
43
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
44
|
-
xTwilioWebhookEnabled?:
|
|
44
|
+
xTwilioWebhookEnabled?: ParticipantWebhookEnabledType;
|
|
45
45
|
/** A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. */
|
|
46
46
|
identity?: string;
|
|
47
47
|
/** The address of the participant\\\'s device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the \\\'identity\\\' field). */
|
|
@@ -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
|
|
7
|
-
type
|
|
6
|
+
export type WebhookMethod = "GET" | "POST";
|
|
7
|
+
export type WebhookTarget = "webhook" | "trigger" | "studio";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to update a WebhookInstance
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export interface WebhookContextUpdateOptions {
|
|
|
12
12
|
/** The absolute url the webhook request should be sent to. */
|
|
13
13
|
"configuration.url"?: string;
|
|
14
14
|
/** */
|
|
15
|
-
"configuration.method"?:
|
|
15
|
+
"configuration.method"?: WebhookMethod;
|
|
16
16
|
/** The list of events, firing webhook event for this Conversation. */
|
|
17
17
|
"configuration.filters"?: Array<string>;
|
|
18
18
|
/** The list of keywords, firing webhook event for this Conversation. */
|
|
@@ -25,11 +25,11 @@ export interface WebhookContextUpdateOptions {
|
|
|
25
25
|
*/
|
|
26
26
|
export interface WebhookListInstanceCreateOptions {
|
|
27
27
|
/** */
|
|
28
|
-
target:
|
|
28
|
+
target: WebhookTarget;
|
|
29
29
|
/** The absolute url the webhook request should be sent to. */
|
|
30
30
|
"configuration.url"?: string;
|
|
31
31
|
/** */
|
|
32
|
-
"configuration.method"?:
|
|
32
|
+
"configuration.method"?: WebhookMethod;
|
|
33
33
|
/** The list of events, firing webhook event for this Conversation. */
|
|
34
34
|
"configuration.filters"?: Array<string>;
|
|
35
35
|
/** The list of keywords, firing webhook event for this Conversation. */
|
|
@@ -6,21 +6,21 @@ 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
|
|
10
|
-
type
|
|
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
|
*/
|
|
14
14
|
export interface ConversationContextRemoveOptions {
|
|
15
15
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
16
|
-
xTwilioWebhookEnabled?:
|
|
16
|
+
xTwilioWebhookEnabled?: ConversationWebhookEnabledType;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Options to pass to update a ConversationInstance
|
|
20
20
|
*/
|
|
21
21
|
export interface ConversationContextUpdateOptions {
|
|
22
22
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
23
|
-
xTwilioWebhookEnabled?:
|
|
23
|
+
xTwilioWebhookEnabled?: ConversationWebhookEnabledType;
|
|
24
24
|
/** The human-readable name of this conversation, limited to 256 characters. Optional. */
|
|
25
25
|
friendlyName?: string;
|
|
26
26
|
/** The date that this resource was created. */
|
|
@@ -32,7 +32,7 @@ export interface ConversationContextUpdateOptions {
|
|
|
32
32
|
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. */
|
|
33
33
|
messagingServiceSid?: string;
|
|
34
34
|
/** */
|
|
35
|
-
state?:
|
|
35
|
+
state?: ConversationState;
|
|
36
36
|
/** ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. */
|
|
37
37
|
"timers.inactive"?: string;
|
|
38
38
|
/** ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. */
|
|
@@ -45,7 +45,7 @@ export interface ConversationContextUpdateOptions {
|
|
|
45
45
|
*/
|
|
46
46
|
export interface ConversationListInstanceCreateOptions {
|
|
47
47
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
48
|
-
xTwilioWebhookEnabled?:
|
|
48
|
+
xTwilioWebhookEnabled?: ConversationWebhookEnabledType;
|
|
49
49
|
/** The human-readable name of this conversation, limited to 256 characters. Optional. */
|
|
50
50
|
friendlyName?: string;
|
|
51
51
|
/** An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource\\\'s `sid` in the URL. */
|
|
@@ -59,7 +59,7 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
59
59
|
/** The date that this resource was last updated. */
|
|
60
60
|
dateUpdated?: Date;
|
|
61
61
|
/** */
|
|
62
|
-
state?:
|
|
62
|
+
state?: ConversationState;
|
|
63
63
|
/** ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. */
|
|
64
64
|
"timers.inactive"?: string;
|
|
65
65
|
/** ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. */
|
|
@@ -187,7 +187,7 @@ interface ConversationResource {
|
|
|
187
187
|
friendly_name: string;
|
|
188
188
|
unique_name: string;
|
|
189
189
|
attributes: string;
|
|
190
|
-
state:
|
|
190
|
+
state: ConversationState;
|
|
191
191
|
date_created: Date;
|
|
192
192
|
date_updated: Date;
|
|
193
193
|
timers: any;
|
|
@@ -228,7 +228,7 @@ export declare class ConversationInstance {
|
|
|
228
228
|
* An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned.
|
|
229
229
|
*/
|
|
230
230
|
attributes: string;
|
|
231
|
-
state:
|
|
231
|
+
state: ConversationState;
|
|
232
232
|
/**
|
|
233
233
|
* The date that this resource was created.
|
|
234
234
|
*/
|
|
@@ -318,7 +318,7 @@ export declare class ConversationInstance {
|
|
|
318
318
|
friendlyName: string;
|
|
319
319
|
uniqueName: string;
|
|
320
320
|
attributes: string;
|
|
321
|
-
state:
|
|
321
|
+
state: ConversationState;
|
|
322
322
|
dateCreated: Date;
|
|
323
323
|
dateUpdated: Date;
|
|
324
324
|
timers: any;
|
|
@@ -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
|
|
6
|
+
export type ParticipantConversationState = "inactive" | "active" | "closed";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -130,7 +130,7 @@ interface ParticipantConversationResource {
|
|
|
130
130
|
conversation_date_created: Date;
|
|
131
131
|
conversation_date_updated: Date;
|
|
132
132
|
conversation_created_by: string;
|
|
133
|
-
conversation_state:
|
|
133
|
+
conversation_state: ParticipantConversationState;
|
|
134
134
|
conversation_timers: any;
|
|
135
135
|
links: Record<string, string>;
|
|
136
136
|
}
|
|
@@ -189,7 +189,7 @@ export declare class ParticipantConversationInstance {
|
|
|
189
189
|
* Identity of the creator of this Conversation.
|
|
190
190
|
*/
|
|
191
191
|
conversationCreatedBy: string;
|
|
192
|
-
conversationState:
|
|
192
|
+
conversationState: ParticipantConversationState;
|
|
193
193
|
/**
|
|
194
194
|
* Timer date values representing state update for this conversation.
|
|
195
195
|
*/
|
|
@@ -217,7 +217,7 @@ export declare class ParticipantConversationInstance {
|
|
|
217
217
|
conversationDateCreated: Date;
|
|
218
218
|
conversationDateUpdated: Date;
|
|
219
219
|
conversationCreatedBy: string;
|
|
220
|
-
conversationState:
|
|
220
|
+
conversationState: ParticipantConversationState;
|
|
221
221
|
conversationTimers: any;
|
|
222
222
|
links: Record<string, string>;
|
|
223
223
|
};
|
|
@@ -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
|
|
6
|
+
export type RoleRoleType = "conversation" | "service";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a RoleInstance
|
|
9
9
|
*/
|
|
@@ -18,7 +18,7 @@ export interface RoleListInstanceCreateOptions {
|
|
|
18
18
|
/** A descriptive string that you create to describe the new resource. It can be up to 64 characters long. */
|
|
19
19
|
friendlyName: string;
|
|
20
20
|
/** */
|
|
21
|
-
type:
|
|
21
|
+
type: RoleRoleType;
|
|
22
22
|
/** A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role\\\'s `type`. */
|
|
23
23
|
permission: Array<string>;
|
|
24
24
|
}
|
|
@@ -115,7 +115,7 @@ interface RoleResource {
|
|
|
115
115
|
account_sid: string;
|
|
116
116
|
chat_service_sid: string;
|
|
117
117
|
friendly_name: string;
|
|
118
|
-
type:
|
|
118
|
+
type: RoleRoleType;
|
|
119
119
|
permissions: Array<string>;
|
|
120
120
|
date_created: Date;
|
|
121
121
|
date_updated: Date;
|
|
@@ -142,7 +142,7 @@ export declare class RoleInstance {
|
|
|
142
142
|
* The string that you assigned to describe the resource.
|
|
143
143
|
*/
|
|
144
144
|
friendlyName: string;
|
|
145
|
-
type:
|
|
145
|
+
type: RoleRoleType;
|
|
146
146
|
/**
|
|
147
147
|
* An array of the permissions the role has been granted.
|
|
148
148
|
*/
|
|
@@ -195,7 +195,7 @@ export declare class RoleInstance {
|
|
|
195
195
|
accountSid: string;
|
|
196
196
|
chatServiceSid: string;
|
|
197
197
|
friendlyName: string;
|
|
198
|
-
type:
|
|
198
|
+
type: RoleRoleType;
|
|
199
199
|
permissions: string[];
|
|
200
200
|
dateCreated: Date;
|
|
201
201
|
dateUpdated: Date;
|
|
@@ -3,14 +3,14 @@ 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
|
|
7
|
-
type
|
|
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
|
*/
|
|
11
11
|
export interface UserConversationContextUpdateOptions {
|
|
12
12
|
/** */
|
|
13
|
-
notificationLevel?:
|
|
13
|
+
notificationLevel?: UserConversationNotificationLevel;
|
|
14
14
|
/** The date of the last message read in conversation by the user, given in ISO 8601 format. */
|
|
15
15
|
lastReadTimestamp?: Date;
|
|
16
16
|
/** The index of the last Message in the Conversation that the Participant has read. */
|
|
@@ -122,13 +122,13 @@ interface UserConversationResource {
|
|
|
122
122
|
participant_sid: string;
|
|
123
123
|
user_sid: string;
|
|
124
124
|
friendly_name: string;
|
|
125
|
-
conversation_state:
|
|
125
|
+
conversation_state: UserConversationState;
|
|
126
126
|
timers: any;
|
|
127
127
|
attributes: string;
|
|
128
128
|
date_created: Date;
|
|
129
129
|
date_updated: Date;
|
|
130
130
|
created_by: string;
|
|
131
|
-
notification_level:
|
|
131
|
+
notification_level: UserConversationNotificationLevel;
|
|
132
132
|
unique_name: string;
|
|
133
133
|
url: string;
|
|
134
134
|
links: Record<string, string>;
|
|
@@ -170,7 +170,7 @@ export declare class UserConversationInstance {
|
|
|
170
170
|
* The human-readable name of this conversation, limited to 256 characters. Optional.
|
|
171
171
|
*/
|
|
172
172
|
friendlyName: string;
|
|
173
|
-
conversationState:
|
|
173
|
+
conversationState: UserConversationState;
|
|
174
174
|
/**
|
|
175
175
|
* Timer date values representing state update for this conversation.
|
|
176
176
|
*/
|
|
@@ -191,7 +191,7 @@ export declare class UserConversationInstance {
|
|
|
191
191
|
* Identity of the creator of this Conversation.
|
|
192
192
|
*/
|
|
193
193
|
createdBy: string;
|
|
194
|
-
notificationLevel:
|
|
194
|
+
notificationLevel: UserConversationNotificationLevel;
|
|
195
195
|
/**
|
|
196
196
|
* An application-defined string that uniquely identifies the Conversation resource. It can be used to address the resource in place of the resource\'s `conversation_sid` in the URL.
|
|
197
197
|
*/
|
|
@@ -249,13 +249,13 @@ export declare class UserConversationInstance {
|
|
|
249
249
|
participantSid: string;
|
|
250
250
|
userSid: string;
|
|
251
251
|
friendlyName: string;
|
|
252
|
-
conversationState:
|
|
252
|
+
conversationState: UserConversationState;
|
|
253
253
|
timers: any;
|
|
254
254
|
attributes: string;
|
|
255
255
|
dateCreated: Date;
|
|
256
256
|
dateUpdated: Date;
|
|
257
257
|
createdBy: string;
|
|
258
|
-
notificationLevel:
|
|
258
|
+
notificationLevel: UserConversationNotificationLevel;
|
|
259
259
|
uniqueName: string;
|
|
260
260
|
url: string;
|
|
261
261
|
links: Record<string, string>;
|
|
@@ -4,20 +4,20 @@ 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
|
|
7
|
+
export type UserWebhookEnabledType = "true" | "false";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to remove a UserInstance
|
|
10
10
|
*/
|
|
11
11
|
export interface UserContextRemoveOptions {
|
|
12
12
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
13
|
-
xTwilioWebhookEnabled?:
|
|
13
|
+
xTwilioWebhookEnabled?: UserWebhookEnabledType;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Options to pass to update a UserInstance
|
|
17
17
|
*/
|
|
18
18
|
export interface UserContextUpdateOptions {
|
|
19
19
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
20
|
-
xTwilioWebhookEnabled?:
|
|
20
|
+
xTwilioWebhookEnabled?: UserWebhookEnabledType;
|
|
21
21
|
/** The string that you assigned to describe the resource. */
|
|
22
22
|
friendlyName?: string;
|
|
23
23
|
/** The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. */
|
|
@@ -32,7 +32,7 @@ export interface UserListInstanceCreateOptions {
|
|
|
32
32
|
/** The application-defined string that uniquely identifies the resource\\\'s User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. */
|
|
33
33
|
identity: string;
|
|
34
34
|
/** The X-Twilio-Webhook-Enabled HTTP request header */
|
|
35
|
-
xTwilioWebhookEnabled?:
|
|
35
|
+
xTwilioWebhookEnabled?: UserWebhookEnabledType;
|
|
36
36
|
/** The string that you assigned to describe the resource. */
|
|
37
37
|
friendlyName?: string;
|
|
38
38
|
/** The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. */
|
|
@@ -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
|
*/
|
package/lib/rest/flexApi/V1.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ChannelListInstance } from "./v1/channel";
|
|
|
5
5
|
import { ConfigurationListInstance } from "./v1/configuration";
|
|
6
6
|
import { FlexFlowListInstance } from "./v1/flexFlow";
|
|
7
7
|
import { InsightsAssessmentsCommentListInstance } from "./v1/insightsAssessmentsComment";
|
|
8
|
+
import { InsightsConversationsListInstance } from "./v1/insightsConversations";
|
|
8
9
|
import { InsightsQuestionnairesListInstance } from "./v1/insightsQuestionnaires";
|
|
9
10
|
import { InsightsQuestionnairesCategoryListInstance } from "./v1/insightsQuestionnairesCategory";
|
|
10
11
|
import { InsightsQuestionnairesQuestionListInstance } from "./v1/insightsQuestionnairesQuestion";
|
|
@@ -32,6 +33,8 @@ export default class V1 extends Version {
|
|
|
32
33
|
protected _flexFlow?: FlexFlowListInstance;
|
|
33
34
|
/** insightsAssessmentsComment - { Twilio.FlexApi.V1.InsightsAssessmentsCommentListInstance } resource */
|
|
34
35
|
protected _insightsAssessmentsComment?: InsightsAssessmentsCommentListInstance;
|
|
36
|
+
/** insightsConversations - { Twilio.FlexApi.V1.InsightsConversationsListInstance } resource */
|
|
37
|
+
protected _insightsConversations?: InsightsConversationsListInstance;
|
|
35
38
|
/** insightsQuestionnaires - { Twilio.FlexApi.V1.InsightsQuestionnairesListInstance } resource */
|
|
36
39
|
protected _insightsQuestionnaires?: InsightsQuestionnairesListInstance;
|
|
37
40
|
/** insightsQuestionnairesCategory - { Twilio.FlexApi.V1.InsightsQuestionnairesCategoryListInstance } resource */
|
|
@@ -62,6 +65,8 @@ export default class V1 extends Version {
|
|
|
62
65
|
get flexFlow(): FlexFlowListInstance;
|
|
63
66
|
/** Getter for insightsAssessmentsComment resource */
|
|
64
67
|
get insightsAssessmentsComment(): InsightsAssessmentsCommentListInstance;
|
|
68
|
+
/** Getter for insightsConversations resource */
|
|
69
|
+
get insightsConversations(): InsightsConversationsListInstance;
|
|
65
70
|
/** Getter for insightsQuestionnaires resource */
|
|
66
71
|
get insightsQuestionnaires(): InsightsQuestionnairesListInstance;
|
|
67
72
|
/** Getter for insightsQuestionnairesCategory resource */
|
package/lib/rest/flexApi/V1.js
CHANGED
|
@@ -22,6 +22,7 @@ const channel_1 = require("./v1/channel");
|
|
|
22
22
|
const configuration_1 = require("./v1/configuration");
|
|
23
23
|
const flexFlow_1 = require("./v1/flexFlow");
|
|
24
24
|
const insightsAssessmentsComment_1 = require("./v1/insightsAssessmentsComment");
|
|
25
|
+
const insightsConversations_1 = require("./v1/insightsConversations");
|
|
25
26
|
const insightsQuestionnaires_1 = require("./v1/insightsQuestionnaires");
|
|
26
27
|
const insightsQuestionnairesCategory_1 = require("./v1/insightsQuestionnairesCategory");
|
|
27
28
|
const insightsQuestionnairesQuestion_1 = require("./v1/insightsQuestionnairesQuestion");
|
|
@@ -69,6 +70,12 @@ class V1 extends Version_1.default {
|
|
|
69
70
|
(0, insightsAssessmentsComment_1.InsightsAssessmentsCommentListInstance)(this);
|
|
70
71
|
return this._insightsAssessmentsComment;
|
|
71
72
|
}
|
|
73
|
+
/** Getter for insightsConversations resource */
|
|
74
|
+
get insightsConversations() {
|
|
75
|
+
this._insightsConversations =
|
|
76
|
+
this._insightsConversations || (0, insightsConversations_1.InsightsConversationsListInstance)(this);
|
|
77
|
+
return this._insightsConversations;
|
|
78
|
+
}
|
|
72
79
|
/** Getter for insightsQuestionnaires resource */
|
|
73
80
|
get insightsQuestionnaires() {
|
|
74
81
|
this._insightsQuestionnaires =
|