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
|
@@ -7,8 +7,8 @@ import { InviteListInstance } from "./channel/invite";
|
|
|
7
7
|
import { MemberListInstance } from "./channel/member";
|
|
8
8
|
import { MessageListInstance } from "./channel/message";
|
|
9
9
|
import { WebhookListInstance } from "./channel/webhook";
|
|
10
|
-
type ChannelChannelType = "public" | "private";
|
|
11
|
-
type ChannelWebhookEnabledType = "true" | "false";
|
|
10
|
+
export type ChannelChannelType = "public" | "private";
|
|
11
|
+
export type ChannelWebhookEnabledType = "true" | "false";
|
|
12
12
|
/**
|
|
13
13
|
* Options to pass to remove a ChannelInstance
|
|
14
14
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V2 from "../../V2";
|
|
6
|
-
type RoleRoleType = "channel" | "deployment";
|
|
6
|
+
export type RoleRoleType = "channel" | "deployment";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a RoleInstance
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2 from "../../../V2";
|
|
6
|
-
type UserBindingBindingType = "gcm" | "apn" | "fcm";
|
|
6
|
+
export type UserBindingBindingType = "gcm" | "apn" | "fcm";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2 from "../../../V2";
|
|
6
|
-
type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
|
|
7
|
-
type UserChannelNotificationLevel = "default" | "muted";
|
|
8
|
-
type UserChannelWebhookEnabledType = "true" | "false";
|
|
6
|
+
export type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
|
|
7
|
+
export type UserChannelNotificationLevel = "default" | "muted";
|
|
8
|
+
export type UserChannelWebhookEnabledType = "true" | "false";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to remove a UserChannelInstance
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V2 from "../../V2";
|
|
6
6
|
import { UserBindingListInstance } from "./user/userBinding";
|
|
7
7
|
import { UserChannelListInstance } from "./user/userChannel";
|
|
8
|
-
type UserWebhookEnabledType = "true" | "false";
|
|
8
|
+
export type UserWebhookEnabledType = "true" | "false";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a UserInstance
|
|
11
11
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V3 from "../V3";
|
|
4
|
-
type ChannelChannelType = "public" | "private";
|
|
5
|
-
type ChannelWebhookEnabledType = "true" | "false";
|
|
4
|
+
export type ChannelChannelType = "public" | "private";
|
|
5
|
+
export type ChannelWebhookEnabledType = "true" | "false";
|
|
6
6
|
/**
|
|
7
7
|
* Options to pass to update a ChannelInstance
|
|
8
8
|
*/
|
package/lib/rest/content/V1.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ContentBase from "../ContentBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { ContentListInstance } from "./v1/content";
|
|
4
|
+
import { LegacyContentListInstance } from "./v1/legacyContent";
|
|
4
5
|
export default class V1 extends Version {
|
|
5
6
|
/**
|
|
6
7
|
* Initialize the V1 version of Content
|
|
@@ -10,6 +11,10 @@ export default class V1 extends Version {
|
|
|
10
11
|
constructor(domain: ContentBase);
|
|
11
12
|
/** contents - { Twilio.Content.V1.ContentListInstance } resource */
|
|
12
13
|
protected _contents?: ContentListInstance;
|
|
14
|
+
/** legacyContents - { Twilio.Content.V1.LegacyContentListInstance } resource */
|
|
15
|
+
protected _legacyContents?: LegacyContentListInstance;
|
|
13
16
|
/** Getter for contents resource */
|
|
14
17
|
get contents(): ContentListInstance;
|
|
18
|
+
/** Getter for legacyContents resource */
|
|
19
|
+
get legacyContents(): LegacyContentListInstance;
|
|
15
20
|
}
|
package/lib/rest/content/V1.js
CHANGED
|
@@ -18,6 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const content_1 = require("./v1/content");
|
|
21
|
+
const legacyContent_1 = require("./v1/legacyContent");
|
|
21
22
|
class V1 extends Version_1.default {
|
|
22
23
|
/**
|
|
23
24
|
* Initialize the V1 version of Content
|
|
@@ -32,5 +33,11 @@ class V1 extends Version_1.default {
|
|
|
32
33
|
this._contents = this._contents || (0, content_1.ContentListInstance)(this);
|
|
33
34
|
return this._contents;
|
|
34
35
|
}
|
|
36
|
+
/** Getter for legacyContents resource */
|
|
37
|
+
get legacyContents() {
|
|
38
|
+
this._legacyContents =
|
|
39
|
+
this._legacyContents || (0, legacyContent_1.LegacyContentListInstance)(this);
|
|
40
|
+
return this._legacyContents;
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
exports.default = V1;
|
|
@@ -0,0 +1,202 @@
|
|
|
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 each
|
|
8
|
+
*/
|
|
9
|
+
export interface LegacyContentListInstanceEachOptions {
|
|
10
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
13
|
+
callback?: (item: LegacyContentInstance, done: (err?: Error) => void) => void;
|
|
14
|
+
/** Function to be called upon completion of streaming */
|
|
15
|
+
done?: Function;
|
|
16
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Options to pass to list
|
|
21
|
+
*/
|
|
22
|
+
export interface LegacyContentListInstanceOptions {
|
|
23
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
26
|
+
limit?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Options to pass to page
|
|
30
|
+
*/
|
|
31
|
+
export interface LegacyContentListInstancePageOptions {
|
|
32
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
/** Page Number, this value is simply for client state */
|
|
35
|
+
pageNumber?: number;
|
|
36
|
+
/** PageToken provided by the API */
|
|
37
|
+
pageToken?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface LegacyContentSolution {
|
|
40
|
+
}
|
|
41
|
+
export interface LegacyContentListInstance {
|
|
42
|
+
_version: V1;
|
|
43
|
+
_solution: LegacyContentSolution;
|
|
44
|
+
_uri: string;
|
|
45
|
+
/**
|
|
46
|
+
* Streams LegacyContentInstance records from the API.
|
|
47
|
+
*
|
|
48
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
49
|
+
* is reached.
|
|
50
|
+
*
|
|
51
|
+
* The results are passed into the callback function, so this operation is memory
|
|
52
|
+
* efficient.
|
|
53
|
+
*
|
|
54
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
55
|
+
* function.
|
|
56
|
+
*
|
|
57
|
+
* @param { LegacyContentListInstanceEachOptions } [params] - Options for request
|
|
58
|
+
* @param { function } [callback] - Function to process each record
|
|
59
|
+
*/
|
|
60
|
+
each(callback?: (item: LegacyContentInstance, done: (err?: Error) => void) => void): void;
|
|
61
|
+
each(params: LegacyContentListInstanceEachOptions, callback?: (item: LegacyContentInstance, done: (err?: Error) => void) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve a single target page of LegacyContentInstance records from the API.
|
|
64
|
+
*
|
|
65
|
+
* The request is executed immediately.
|
|
66
|
+
*
|
|
67
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
68
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
69
|
+
*/
|
|
70
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: LegacyContentPage) => any): Promise<LegacyContentPage>;
|
|
71
|
+
/**
|
|
72
|
+
* Lists LegacyContentInstance records from the API as a list.
|
|
73
|
+
*
|
|
74
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
75
|
+
* function.
|
|
76
|
+
*
|
|
77
|
+
* @param { LegacyContentListInstanceOptions } [params] - Options for request
|
|
78
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
79
|
+
*/
|
|
80
|
+
list(callback?: (error: Error | null, items: LegacyContentInstance[]) => any): Promise<LegacyContentInstance[]>;
|
|
81
|
+
list(params: LegacyContentListInstanceOptions, callback?: (error: Error | null, items: LegacyContentInstance[]) => any): Promise<LegacyContentInstance[]>;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieve a single page of LegacyContentInstance records from the API.
|
|
84
|
+
*
|
|
85
|
+
* The request is executed immediately.
|
|
86
|
+
*
|
|
87
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
88
|
+
* function.
|
|
89
|
+
*
|
|
90
|
+
* @param { LegacyContentListInstancePageOptions } [params] - Options for request
|
|
91
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
92
|
+
*/
|
|
93
|
+
page(callback?: (error: Error | null, items: LegacyContentPage) => any): Promise<LegacyContentPage>;
|
|
94
|
+
page(params: LegacyContentListInstancePageOptions, callback?: (error: Error | null, items: LegacyContentPage) => any): Promise<LegacyContentPage>;
|
|
95
|
+
/**
|
|
96
|
+
* Provide a user-friendly representation
|
|
97
|
+
*/
|
|
98
|
+
toJSON(): any;
|
|
99
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
100
|
+
}
|
|
101
|
+
export declare function LegacyContentListInstance(version: V1): LegacyContentListInstance;
|
|
102
|
+
interface LegacyContentPayload extends TwilioResponsePayload {
|
|
103
|
+
contents: LegacyContentResource[];
|
|
104
|
+
}
|
|
105
|
+
interface LegacyContentResource {
|
|
106
|
+
date_created: Date;
|
|
107
|
+
date_updated: Date;
|
|
108
|
+
sid: string;
|
|
109
|
+
account_sid: string;
|
|
110
|
+
friendly_name: string;
|
|
111
|
+
language: string;
|
|
112
|
+
variables: any;
|
|
113
|
+
types: any;
|
|
114
|
+
legacy_template_name: string;
|
|
115
|
+
legacy_body: string;
|
|
116
|
+
url: string;
|
|
117
|
+
}
|
|
118
|
+
export declare class LegacyContentInstance {
|
|
119
|
+
protected _version: V1;
|
|
120
|
+
constructor(_version: V1, payload: LegacyContentResource);
|
|
121
|
+
/**
|
|
122
|
+
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
123
|
+
*/
|
|
124
|
+
dateCreated: Date;
|
|
125
|
+
/**
|
|
126
|
+
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
127
|
+
*/
|
|
128
|
+
dateUpdated: Date;
|
|
129
|
+
/**
|
|
130
|
+
* The unique string that that we created to identify the Content resource.
|
|
131
|
+
*/
|
|
132
|
+
sid: string;
|
|
133
|
+
/**
|
|
134
|
+
* The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
|
|
135
|
+
*/
|
|
136
|
+
accountSid: string;
|
|
137
|
+
/**
|
|
138
|
+
* A string name used to describe the Content resource. Not visible to the end recipient.
|
|
139
|
+
*/
|
|
140
|
+
friendlyName: string;
|
|
141
|
+
/**
|
|
142
|
+
* Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
|
|
143
|
+
*/
|
|
144
|
+
language: string;
|
|
145
|
+
/**
|
|
146
|
+
* Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
|
|
147
|
+
*/
|
|
148
|
+
variables: any;
|
|
149
|
+
/**
|
|
150
|
+
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
151
|
+
*/
|
|
152
|
+
types: any;
|
|
153
|
+
/**
|
|
154
|
+
* The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed
|
|
155
|
+
*/
|
|
156
|
+
legacyTemplateName: string;
|
|
157
|
+
/**
|
|
158
|
+
* The string body field of the legacy content template associated with this Content resource
|
|
159
|
+
*/
|
|
160
|
+
legacyBody: string;
|
|
161
|
+
/**
|
|
162
|
+
* The URL of the resource, relative to `https://content.twilio.com`.
|
|
163
|
+
*/
|
|
164
|
+
url: string;
|
|
165
|
+
/**
|
|
166
|
+
* Provide a user-friendly representation
|
|
167
|
+
*
|
|
168
|
+
* @returns Object
|
|
169
|
+
*/
|
|
170
|
+
toJSON(): {
|
|
171
|
+
dateCreated: Date;
|
|
172
|
+
dateUpdated: Date;
|
|
173
|
+
sid: string;
|
|
174
|
+
accountSid: string;
|
|
175
|
+
friendlyName: string;
|
|
176
|
+
language: string;
|
|
177
|
+
variables: any;
|
|
178
|
+
types: any;
|
|
179
|
+
legacyTemplateName: string;
|
|
180
|
+
legacyBody: string;
|
|
181
|
+
url: string;
|
|
182
|
+
};
|
|
183
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
184
|
+
}
|
|
185
|
+
export declare class LegacyContentPage extends Page<V1, LegacyContentPayload, LegacyContentResource, LegacyContentInstance> {
|
|
186
|
+
/**
|
|
187
|
+
* Initialize the LegacyContentPage
|
|
188
|
+
*
|
|
189
|
+
* @param version - Version of the resource
|
|
190
|
+
* @param response - Response from the API
|
|
191
|
+
* @param solution - Path solution
|
|
192
|
+
*/
|
|
193
|
+
constructor(version: V1, response: Response<string>, solution: LegacyContentSolution);
|
|
194
|
+
/**
|
|
195
|
+
* Build an instance of LegacyContentInstance
|
|
196
|
+
*
|
|
197
|
+
* @param payload - Payload response from the API
|
|
198
|
+
*/
|
|
199
|
+
getInstance(payload: LegacyContentResource): LegacyContentInstance;
|
|
200
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
201
|
+
}
|
|
202
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Content
|
|
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.LegacyContentPage = exports.LegacyContentInstance = exports.LegacyContentListInstance = 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
|
+
function LegacyContentListInstance(version) {
|
|
25
|
+
const instance = {};
|
|
26
|
+
instance._version = version;
|
|
27
|
+
instance._solution = {};
|
|
28
|
+
instance._uri = `/LegacyContent`;
|
|
29
|
+
instance.page = function page(params, callback) {
|
|
30
|
+
if (params instanceof Function) {
|
|
31
|
+
callback = params;
|
|
32
|
+
params = {};
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
params = params || {};
|
|
36
|
+
}
|
|
37
|
+
let data = {};
|
|
38
|
+
if (params["pageSize"] !== undefined)
|
|
39
|
+
data["PageSize"] = params["pageSize"];
|
|
40
|
+
if (params.pageNumber !== undefined)
|
|
41
|
+
data["Page"] = params.pageNumber;
|
|
42
|
+
if (params.pageToken !== undefined)
|
|
43
|
+
data["PageToken"] = params.pageToken;
|
|
44
|
+
const headers = {};
|
|
45
|
+
let operationVersion = version, operationPromise = operationVersion.page({
|
|
46
|
+
uri: instance._uri,
|
|
47
|
+
method: "get",
|
|
48
|
+
params: data,
|
|
49
|
+
headers,
|
|
50
|
+
});
|
|
51
|
+
operationPromise = operationPromise.then((payload) => new LegacyContentPage(operationVersion, payload, instance._solution));
|
|
52
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
53
|
+
return operationPromise;
|
|
54
|
+
};
|
|
55
|
+
instance.each = instance._version.each;
|
|
56
|
+
instance.list = instance._version.list;
|
|
57
|
+
instance.getPage = function getPage(targetUrl, callback) {
|
|
58
|
+
const operationPromise = instance._version._domain.twilio.request({
|
|
59
|
+
method: "get",
|
|
60
|
+
uri: targetUrl,
|
|
61
|
+
});
|
|
62
|
+
let pagePromise = operationPromise.then((payload) => new LegacyContentPage(instance._version, payload, instance._solution));
|
|
63
|
+
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
64
|
+
return pagePromise;
|
|
65
|
+
};
|
|
66
|
+
instance.toJSON = function toJSON() {
|
|
67
|
+
return instance._solution;
|
|
68
|
+
};
|
|
69
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
70
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
71
|
+
};
|
|
72
|
+
return instance;
|
|
73
|
+
}
|
|
74
|
+
exports.LegacyContentListInstance = LegacyContentListInstance;
|
|
75
|
+
class LegacyContentInstance {
|
|
76
|
+
constructor(_version, payload) {
|
|
77
|
+
this._version = _version;
|
|
78
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
79
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
80
|
+
this.sid = payload.sid;
|
|
81
|
+
this.accountSid = payload.account_sid;
|
|
82
|
+
this.friendlyName = payload.friendly_name;
|
|
83
|
+
this.language = payload.language;
|
|
84
|
+
this.variables = payload.variables;
|
|
85
|
+
this.types = payload.types;
|
|
86
|
+
this.legacyTemplateName = payload.legacy_template_name;
|
|
87
|
+
this.legacyBody = payload.legacy_body;
|
|
88
|
+
this.url = payload.url;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Provide a user-friendly representation
|
|
92
|
+
*
|
|
93
|
+
* @returns Object
|
|
94
|
+
*/
|
|
95
|
+
toJSON() {
|
|
96
|
+
return {
|
|
97
|
+
dateCreated: this.dateCreated,
|
|
98
|
+
dateUpdated: this.dateUpdated,
|
|
99
|
+
sid: this.sid,
|
|
100
|
+
accountSid: this.accountSid,
|
|
101
|
+
friendlyName: this.friendlyName,
|
|
102
|
+
language: this.language,
|
|
103
|
+
variables: this.variables,
|
|
104
|
+
types: this.types,
|
|
105
|
+
legacyTemplateName: this.legacyTemplateName,
|
|
106
|
+
legacyBody: this.legacyBody,
|
|
107
|
+
url: this.url,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
[util_1.inspect.custom](_depth, options) {
|
|
111
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.LegacyContentInstance = LegacyContentInstance;
|
|
115
|
+
class LegacyContentPage extends Page_1.default {
|
|
116
|
+
/**
|
|
117
|
+
* Initialize the LegacyContentPage
|
|
118
|
+
*
|
|
119
|
+
* @param version - Version of the resource
|
|
120
|
+
* @param response - Response from the API
|
|
121
|
+
* @param solution - Path solution
|
|
122
|
+
*/
|
|
123
|
+
constructor(version, response, solution) {
|
|
124
|
+
super(version, response, solution);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Build an instance of LegacyContentInstance
|
|
128
|
+
*
|
|
129
|
+
* @param payload - Payload response from the API
|
|
130
|
+
*/
|
|
131
|
+
getInstance(payload) {
|
|
132
|
+
return new LegacyContentInstance(this._version, payload);
|
|
133
|
+
}
|
|
134
|
+
[util_1.inspect.custom](depth, options) {
|
|
135
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.LegacyContentPage = LegacyContentPage;
|
|
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type ConfigurationAddressAutoCreationType = "webhook" | "studio" | "default";
|
|
7
|
-
type ConfigurationAddressMethod = "GET" | "POST";
|
|
8
|
-
type ConfigurationAddressType = "sms" | "whatsapp" | "messenger" | "gbm";
|
|
6
|
+
export type ConfigurationAddressAutoCreationType = "webhook" | "studio" | "default";
|
|
7
|
+
export type ConfigurationAddressMethod = "GET" | "POST";
|
|
8
|
+
export type ConfigurationAddressType = "sms" | "whatsapp" | "messenger" | "gbm";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a AddressConfigurationInstance
|
|
11
11
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../V1";
|
|
4
|
-
type ConfigurationWebhookMethod = "GET" | "POST";
|
|
5
|
-
type ConfigurationWebhookTarget = "webhook" | "flex";
|
|
4
|
+
export type ConfigurationWebhookMethod = "GET" | "POST";
|
|
5
|
+
export type ConfigurationWebhookTarget = "webhook" | "flex";
|
|
6
6
|
/**
|
|
7
7
|
* Options to pass to update a WebhookInstance
|
|
8
8
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type ConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
|
|
6
|
+
export type ConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -4,8 +4,8 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { DeliveryReceiptListInstance } from "./message/deliveryReceipt";
|
|
7
|
-
type ConversationMessageOrderType = "asc" | "desc";
|
|
8
|
-
type ConversationMessageWebhookEnabledType = "true" | "false";
|
|
7
|
+
export type ConversationMessageOrderType = "asc" | "desc";
|
|
8
|
+
export type ConversationMessageWebhookEnabledType = "true" | "false";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to remove a MessageInstance
|
|
11
11
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
|
-
type ConversationParticipantWebhookEnabledType = "true" | "false";
|
|
6
|
+
export type ConversationParticipantWebhookEnabledType = "true" | "false";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to remove a ParticipantInstance
|
|
9
9
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
|
-
type ConversationScopedWebhookMethod = "GET" | "POST";
|
|
7
|
-
type ConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
|
|
6
|
+
export type ConversationScopedWebhookMethod = "GET" | "POST";
|
|
7
|
+
export type ConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to update a WebhookInstance
|
|
10
10
|
*/
|
|
@@ -6,8 +6,8 @@ import V1 from "../V1";
|
|
|
6
6
|
import { MessageListInstance } from "./conversation/message";
|
|
7
7
|
import { ParticipantListInstance } from "./conversation/participant";
|
|
8
8
|
import { WebhookListInstance } from "./conversation/webhook";
|
|
9
|
-
type ConversationState = "inactive" | "active" | "closed";
|
|
10
|
-
type ConversationWebhookEnabledType = "true" | "false";
|
|
9
|
+
export type ConversationState = "inactive" | "active" | "closed";
|
|
10
|
+
export type ConversationWebhookEnabledType = "true" | "false";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to remove a ConversationInstance
|
|
13
13
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type CredentialPushType = "apn" | "gcm" | "fcm";
|
|
6
|
+
export type CredentialPushType = "apn" | "gcm" | "fcm";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a CredentialInstance
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type ParticipantConversationState = "inactive" | "active" | "closed";
|
|
6
|
+
export type ParticipantConversationState = "inactive" | "active" | "closed";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type RoleRoleType = "conversation" | "service";
|
|
6
|
+
export type RoleRoleType = "conversation" | "service";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a RoleInstance
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
|
-
type ServiceBindingBindingType = "apn" | "gcm" | "fcm";
|
|
6
|
+
export type ServiceBindingBindingType = "apn" | "gcm" | "fcm";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../../V1";
|
|
4
|
-
type ServiceWebhookConfigurationMethod = "GET" | "POST";
|
|
4
|
+
export type ServiceWebhookConfigurationMethod = "GET" | "POST";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to update a WebhookInstance
|
|
7
7
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../../http/response";
|
|
5
5
|
import V1 from "../../../../V1";
|
|
6
|
-
type ServiceConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
|
|
6
|
+
export type ServiceConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -4,8 +4,8 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
6
|
import { DeliveryReceiptListInstance } from "./message/deliveryReceipt";
|
|
7
|
-
type ServiceConversationMessageOrderType = "asc" | "desc";
|
|
8
|
-
type ServiceConversationMessageWebhookEnabledType = "true" | "false";
|
|
7
|
+
export type ServiceConversationMessageOrderType = "asc" | "desc";
|
|
8
|
+
export type ServiceConversationMessageWebhookEnabledType = "true" | "false";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to remove a MessageInstance
|
|
11
11
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type ServiceConversationParticipantWebhookEnabledType = "true" | "false";
|
|
6
|
+
export type ServiceConversationParticipantWebhookEnabledType = "true" | "false";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to remove a ParticipantInstance
|
|
9
9
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type ServiceConversationScopedWebhookMethod = "GET" | "POST";
|
|
7
|
-
type ServiceConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
|
|
6
|
+
export type ServiceConversationScopedWebhookMethod = "GET" | "POST";
|
|
7
|
+
export type ServiceConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to update a WebhookInstance
|
|
10
10
|
*/
|
|
@@ -6,8 +6,8 @@ import V1 from "../../V1";
|
|
|
6
6
|
import { MessageListInstance } from "./conversation/message";
|
|
7
7
|
import { ParticipantListInstance } from "./conversation/participant";
|
|
8
8
|
import { WebhookListInstance } from "./conversation/webhook";
|
|
9
|
-
type ServiceConversationState = "inactive" | "active" | "closed";
|
|
10
|
-
type ServiceConversationWebhookEnabledType = "true" | "false";
|
|
9
|
+
export type ServiceConversationState = "inactive" | "active" | "closed";
|
|
10
|
+
export type ServiceConversationWebhookEnabledType = "true" | "false";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to remove a ConversationInstance
|
|
13
13
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
|
-
type ServiceParticipantConversationState = "inactive" | "active" | "closed";
|
|
6
|
+
export type ServiceParticipantConversationState = "inactive" | "active" | "closed";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|