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
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../V2";
|
|
4
|
-
type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT_POSSIBLE" | "INVALID_COUNTRY_CODE" | "INVALID_LENGTH" | "NOT_A_NUMBER";
|
|
4
|
+
export type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT_POSSIBLE" | "INVALID_COUNTRY_CODE" | "INVALID_LENGTH" | "NOT_A_NUMBER";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to fetch a PhoneNumberInstance
|
|
7
7
|
*/
|
|
@@ -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 MediaProcessorOrder = "asc" | "desc";
|
|
7
|
-
type MediaProcessorStatus = "failed" | "started" | "ended";
|
|
8
|
-
type MediaProcessorUpdateStatus = "ended";
|
|
6
|
+
export type MediaProcessorOrder = "asc" | "desc";
|
|
7
|
+
export type MediaProcessorStatus = "failed" | "started" | "ended";
|
|
8
|
+
export type MediaProcessorUpdateStatus = "ended";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a MediaProcessorInstance
|
|
11
11
|
*/
|
|
@@ -117,7 +117,6 @@ export declare class MediaProcessorContextImpl implements MediaProcessorContext
|
|
|
117
117
|
toJSON(): MediaProcessorContextSolution;
|
|
118
118
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
119
119
|
}
|
|
120
|
-
export type MediaProcessorStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
121
120
|
interface MediaProcessorPayload extends TwilioResponsePayload {
|
|
122
121
|
media_processors: MediaProcessorResource[];
|
|
123
122
|
}
|
|
@@ -132,7 +131,7 @@ interface MediaProcessorResource {
|
|
|
132
131
|
url: string;
|
|
133
132
|
ended_reason: string;
|
|
134
133
|
status_callback: string;
|
|
135
|
-
status_callback_method:
|
|
134
|
+
status_callback_method: string;
|
|
136
135
|
max_duration: number;
|
|
137
136
|
}
|
|
138
137
|
export declare class MediaProcessorInstance {
|
|
@@ -180,7 +179,7 @@ export declare class MediaProcessorInstance {
|
|
|
180
179
|
/**
|
|
181
180
|
* The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
|
|
182
181
|
*/
|
|
183
|
-
statusCallbackMethod:
|
|
182
|
+
statusCallbackMethod: string;
|
|
184
183
|
/**
|
|
185
184
|
* The maximum time, in seconds, that the MediaProcessor can run before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the MediaProcessor, regardless of whether media is still streaming.
|
|
186
185
|
*/
|
|
@@ -219,7 +218,7 @@ export declare class MediaProcessorInstance {
|
|
|
219
218
|
url: string;
|
|
220
219
|
endedReason: string;
|
|
221
220
|
statusCallback: string;
|
|
222
|
-
statusCallbackMethod:
|
|
221
|
+
statusCallbackMethod: string;
|
|
223
222
|
maxDuration: number;
|
|
224
223
|
};
|
|
225
224
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -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 MediaRecordingFormat = "mp4" | "webm";
|
|
7
|
-
type MediaRecordingOrder = "asc" | "desc";
|
|
8
|
-
type MediaRecordingStatus = "processing" | "completed" | "deleted" | "failed";
|
|
6
|
+
export type MediaRecordingFormat = "mp4" | "webm";
|
|
7
|
+
export type MediaRecordingOrder = "asc" | "desc";
|
|
8
|
+
export type MediaRecordingStatus = "processing" | "completed" | "deleted" | "failed";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to each
|
|
11
11
|
*/
|
|
@@ -104,7 +104,6 @@ export declare class MediaRecordingContextImpl implements MediaRecordingContext
|
|
|
104
104
|
toJSON(): MediaRecordingContextSolution;
|
|
105
105
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
106
106
|
}
|
|
107
|
-
export type MediaRecordingStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
108
107
|
interface MediaRecordingPayload extends TwilioResponsePayload {
|
|
109
108
|
media_recordings: MediaRecordingResource[];
|
|
110
109
|
}
|
|
@@ -122,7 +121,7 @@ interface MediaRecordingResource {
|
|
|
122
121
|
media_size: number;
|
|
123
122
|
status: MediaRecordingStatus;
|
|
124
123
|
status_callback: string;
|
|
125
|
-
status_callback_method:
|
|
124
|
+
status_callback_method: string;
|
|
126
125
|
url: string;
|
|
127
126
|
}
|
|
128
127
|
export declare class MediaRecordingInstance {
|
|
@@ -179,7 +178,7 @@ export declare class MediaRecordingInstance {
|
|
|
179
178
|
/**
|
|
180
179
|
* The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
|
|
181
180
|
*/
|
|
182
|
-
statusCallbackMethod:
|
|
181
|
+
statusCallbackMethod: string;
|
|
183
182
|
/**
|
|
184
183
|
* The absolute URL of the resource.
|
|
185
184
|
*/
|
|
@@ -220,7 +219,7 @@ export declare class MediaRecordingInstance {
|
|
|
220
219
|
mediaSize: number;
|
|
221
220
|
status: MediaRecordingStatus;
|
|
222
221
|
statusCallback: string;
|
|
223
|
-
statusCallbackMethod:
|
|
222
|
+
statusCallbackMethod: string;
|
|
224
223
|
url: string;
|
|
225
224
|
};
|
|
226
225
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
import { PlaybackGrantListInstance } from "./playerStreamer/playbackGrant";
|
|
7
|
-
type PlayerStreamerEndedReason = "ended-via-api" | "max-duration-exceeded" | "stream-disconnected-by-source" | "unexpected-failure";
|
|
8
|
-
type PlayerStreamerOrder = "asc" | "desc";
|
|
9
|
-
type PlayerStreamerStatus = "created" | "started" | "ended" | "failed";
|
|
10
|
-
type PlayerStreamerUpdateStatus = "ended";
|
|
7
|
+
export type PlayerStreamerEndedReason = "ended-via-api" | "max-duration-exceeded" | "stream-disconnected-by-source" | "unexpected-failure";
|
|
8
|
+
export type PlayerStreamerOrder = "asc" | "desc";
|
|
9
|
+
export type PlayerStreamerStatus = "created" | "started" | "ended" | "failed";
|
|
10
|
+
export type PlayerStreamerUpdateStatus = "ended";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a PlayerStreamerInstance
|
|
13
13
|
*/
|
|
@@ -118,7 +118,6 @@ export declare class PlayerStreamerContextImpl implements PlayerStreamerContext
|
|
|
118
118
|
toJSON(): PlayerStreamerContextSolution;
|
|
119
119
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
120
120
|
}
|
|
121
|
-
export type PlayerStreamerStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
122
121
|
interface PlayerStreamerPayload extends TwilioResponsePayload {
|
|
123
122
|
player_streamers: PlayerStreamerResource[];
|
|
124
123
|
}
|
|
@@ -132,7 +131,7 @@ interface PlayerStreamerResource {
|
|
|
132
131
|
status: PlayerStreamerStatus;
|
|
133
132
|
url: string;
|
|
134
133
|
status_callback: string;
|
|
135
|
-
status_callback_method:
|
|
134
|
+
status_callback_method: string;
|
|
136
135
|
ended_reason: PlayerStreamerEndedReason;
|
|
137
136
|
max_duration: number;
|
|
138
137
|
}
|
|
@@ -177,7 +176,7 @@ export declare class PlayerStreamerInstance {
|
|
|
177
176
|
/**
|
|
178
177
|
* The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
|
|
179
178
|
*/
|
|
180
|
-
statusCallbackMethod:
|
|
179
|
+
statusCallbackMethod: string;
|
|
181
180
|
endedReason: PlayerStreamerEndedReason;
|
|
182
181
|
/**
|
|
183
182
|
* The maximum time, in seconds, that the PlayerStreamer is active (`created` or `started`) before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the PlayerStreamer, regardless of whether media is still streaming.
|
|
@@ -220,7 +219,7 @@ export declare class PlayerStreamerInstance {
|
|
|
220
219
|
status: PlayerStreamerStatus;
|
|
221
220
|
url: string;
|
|
222
221
|
statusCallback: string;
|
|
223
|
-
statusCallbackMethod:
|
|
222
|
+
statusCallbackMethod: string;
|
|
224
223
|
endedReason: PlayerStreamerEndedReason;
|
|
225
224
|
maxDuration: number;
|
|
226
225
|
};
|
|
@@ -4,7 +4,9 @@ import { BrandRegistrationListInstance } from "./v1/brandRegistration";
|
|
|
4
4
|
import { DeactivationsListInstance } from "./v1/deactivations";
|
|
5
5
|
import { DomainCertsListInstance } from "./v1/domainCerts";
|
|
6
6
|
import { DomainConfigListInstance } from "./v1/domainConfig";
|
|
7
|
+
import { DomainConfigMessagingServiceListInstance } from "./v1/domainConfigMessagingService";
|
|
7
8
|
import { ExternalCampaignListInstance } from "./v1/externalCampaign";
|
|
9
|
+
import { LinkshorteningMessagingServiceListInstance } from "./v1/linkshorteningMessagingService";
|
|
8
10
|
import { ServiceListInstance } from "./v1/service";
|
|
9
11
|
import { TollfreeVerificationListInstance } from "./v1/tollfreeVerification";
|
|
10
12
|
import { UsecaseListInstance } from "./v1/usecase";
|
|
@@ -23,8 +25,12 @@ export default class V1 extends Version {
|
|
|
23
25
|
protected _domainCerts?: DomainCertsListInstance;
|
|
24
26
|
/** domainConfig - { Twilio.Messaging.V1.DomainConfigListInstance } resource */
|
|
25
27
|
protected _domainConfig?: DomainConfigListInstance;
|
|
28
|
+
/** domainConfigMessagingService - { Twilio.Messaging.V1.DomainConfigMessagingServiceListInstance } resource */
|
|
29
|
+
protected _domainConfigMessagingService?: DomainConfigMessagingServiceListInstance;
|
|
26
30
|
/** externalCampaign - { Twilio.Messaging.V1.ExternalCampaignListInstance } resource */
|
|
27
31
|
protected _externalCampaign?: ExternalCampaignListInstance;
|
|
32
|
+
/** linkshorteningMessagingService - { Twilio.Messaging.V1.LinkshorteningMessagingServiceListInstance } resource */
|
|
33
|
+
protected _linkshorteningMessagingService?: LinkshorteningMessagingServiceListInstance;
|
|
28
34
|
/** services - { Twilio.Messaging.V1.ServiceListInstance } resource */
|
|
29
35
|
protected _services?: ServiceListInstance;
|
|
30
36
|
/** tollfreeVerifications - { Twilio.Messaging.V1.TollfreeVerificationListInstance } resource */
|
|
@@ -39,8 +45,12 @@ export default class V1 extends Version {
|
|
|
39
45
|
get domainCerts(): DomainCertsListInstance;
|
|
40
46
|
/** Getter for domainConfig resource */
|
|
41
47
|
get domainConfig(): DomainConfigListInstance;
|
|
48
|
+
/** Getter for domainConfigMessagingService resource */
|
|
49
|
+
get domainConfigMessagingService(): DomainConfigMessagingServiceListInstance;
|
|
42
50
|
/** Getter for externalCampaign resource */
|
|
43
51
|
get externalCampaign(): ExternalCampaignListInstance;
|
|
52
|
+
/** Getter for linkshorteningMessagingService resource */
|
|
53
|
+
get linkshorteningMessagingService(): LinkshorteningMessagingServiceListInstance;
|
|
44
54
|
/** Getter for services resource */
|
|
45
55
|
get services(): ServiceListInstance;
|
|
46
56
|
/** Getter for tollfreeVerifications resource */
|
package/lib/rest/messaging/V1.js
CHANGED
|
@@ -21,7 +21,9 @@ const brandRegistration_1 = require("./v1/brandRegistration");
|
|
|
21
21
|
const deactivations_1 = require("./v1/deactivations");
|
|
22
22
|
const domainCerts_1 = require("./v1/domainCerts");
|
|
23
23
|
const domainConfig_1 = require("./v1/domainConfig");
|
|
24
|
+
const domainConfigMessagingService_1 = require("./v1/domainConfigMessagingService");
|
|
24
25
|
const externalCampaign_1 = require("./v1/externalCampaign");
|
|
26
|
+
const linkshorteningMessagingService_1 = require("./v1/linkshorteningMessagingService");
|
|
25
27
|
const service_1 = require("./v1/service");
|
|
26
28
|
const tollfreeVerification_1 = require("./v1/tollfreeVerification");
|
|
27
29
|
const usecase_1 = require("./v1/usecase");
|
|
@@ -56,12 +58,26 @@ class V1 extends Version_1.default {
|
|
|
56
58
|
this._domainConfig = this._domainConfig || (0, domainConfig_1.DomainConfigListInstance)(this);
|
|
57
59
|
return this._domainConfig;
|
|
58
60
|
}
|
|
61
|
+
/** Getter for domainConfigMessagingService resource */
|
|
62
|
+
get domainConfigMessagingService() {
|
|
63
|
+
this._domainConfigMessagingService =
|
|
64
|
+
this._domainConfigMessagingService ||
|
|
65
|
+
(0, domainConfigMessagingService_1.DomainConfigMessagingServiceListInstance)(this);
|
|
66
|
+
return this._domainConfigMessagingService;
|
|
67
|
+
}
|
|
59
68
|
/** Getter for externalCampaign resource */
|
|
60
69
|
get externalCampaign() {
|
|
61
70
|
this._externalCampaign =
|
|
62
71
|
this._externalCampaign || (0, externalCampaign_1.ExternalCampaignListInstance)(this);
|
|
63
72
|
return this._externalCampaign;
|
|
64
73
|
}
|
|
74
|
+
/** Getter for linkshorteningMessagingService resource */
|
|
75
|
+
get linkshorteningMessagingService() {
|
|
76
|
+
this._linkshorteningMessagingService =
|
|
77
|
+
this._linkshorteningMessagingService ||
|
|
78
|
+
(0, linkshorteningMessagingService_1.LinkshorteningMessagingServiceListInstance)(this);
|
|
79
|
+
return this._linkshorteningMessagingService;
|
|
80
|
+
}
|
|
65
81
|
/** Getter for services resource */
|
|
66
82
|
get services() {
|
|
67
83
|
this._services = this._services || (0, service_1.ServiceListInstance)(this);
|
|
@@ -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 BrandVettingVettingProvider = "campaign-verify";
|
|
6
|
+
export type BrandVettingVettingProvider = "campaign-verify";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to create a BrandVettingInstance
|
|
9
9
|
*/
|
|
@@ -4,9 +4,9 @@ import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
import { BrandVettingListInstance } from "./brandRegistration/brandVetting";
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
7
|
+
export type BrandRegistrationBrandFeedback = "TAX_ID" | "STOCK_SYMBOL" | "NONPROFIT" | "GOVERNMENT_ENTITY" | "OTHERS";
|
|
8
|
+
export type BrandRegistrationIdentityStatus = "SELF_DECLARED" | "UNVERIFIED" | "VERIFIED" | "VETTED_VERIFIED";
|
|
9
|
+
export type BrandRegistrationStatus = "PENDING" | "APPROVED" | "FAILED" | "IN_REVIEW" | "DELETED";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to create a BrandRegistrationInstance
|
|
12
12
|
*/
|
|
@@ -110,13 +110,13 @@ interface BrandRegistrationResource {
|
|
|
110
110
|
date_created: Date;
|
|
111
111
|
date_updated: Date;
|
|
112
112
|
brand_type: string;
|
|
113
|
-
status:
|
|
113
|
+
status: BrandRegistrationStatus;
|
|
114
114
|
tcr_id: string;
|
|
115
115
|
failure_reason: string;
|
|
116
116
|
url: string;
|
|
117
117
|
brand_score: number;
|
|
118
|
-
brand_feedback: Array<
|
|
119
|
-
identity_status:
|
|
118
|
+
brand_feedback: Array<BrandRegistrationBrandFeedback>;
|
|
119
|
+
identity_status: BrandRegistrationIdentityStatus;
|
|
120
120
|
russell_3000: boolean;
|
|
121
121
|
government_entity: boolean;
|
|
122
122
|
tax_exempt_status: string;
|
|
@@ -157,7 +157,7 @@ export declare class BrandRegistrationInstance {
|
|
|
157
157
|
* Type of brand. One of: \"STANDARD\", \"STARTER\". STARTER is for the low volume, STARTER campaign use case. There can only be one STARTER campaign created per STARTER brand. STANDARD is for all other campaign use cases. Multiple campaign use cases can be created per STANDARD brand.
|
|
158
158
|
*/
|
|
159
159
|
brandType: string;
|
|
160
|
-
status:
|
|
160
|
+
status: BrandRegistrationStatus;
|
|
161
161
|
/**
|
|
162
162
|
* Campaign Registry (TCR) Brand ID. Assigned only after successful brand registration.
|
|
163
163
|
*/
|
|
@@ -177,8 +177,8 @@ export declare class BrandRegistrationInstance {
|
|
|
177
177
|
/**
|
|
178
178
|
* Feedback on how to improve brand score
|
|
179
179
|
*/
|
|
180
|
-
brandFeedback: Array<
|
|
181
|
-
identityStatus:
|
|
180
|
+
brandFeedback: Array<BrandRegistrationBrandFeedback>;
|
|
181
|
+
identityStatus: BrandRegistrationIdentityStatus;
|
|
182
182
|
/**
|
|
183
183
|
* Publicly traded company identified in the Russell 3000 Index
|
|
184
184
|
*/
|
|
@@ -234,13 +234,13 @@ export declare class BrandRegistrationInstance {
|
|
|
234
234
|
dateCreated: Date;
|
|
235
235
|
dateUpdated: Date;
|
|
236
236
|
brandType: string;
|
|
237
|
-
status:
|
|
237
|
+
status: BrandRegistrationStatus;
|
|
238
238
|
tcrId: string;
|
|
239
239
|
failureReason: string;
|
|
240
240
|
url: string;
|
|
241
241
|
brandScore: number;
|
|
242
|
-
brandFeedback:
|
|
243
|
-
identityStatus:
|
|
242
|
+
brandFeedback: BrandRegistrationBrandFeedback[];
|
|
243
|
+
identityStatus: BrandRegistrationIdentityStatus;
|
|
244
244
|
russell3000: boolean;
|
|
245
245
|
governmentEntity: boolean;
|
|
246
246
|
taxExemptStatus: string;
|
|
@@ -67,7 +67,7 @@ interface DomainCertsResource {
|
|
|
67
67
|
domain_name: string;
|
|
68
68
|
certificate_sid: string;
|
|
69
69
|
url: string;
|
|
70
|
-
|
|
70
|
+
cert_in_validation: any;
|
|
71
71
|
}
|
|
72
72
|
export declare class DomainCertsInstance {
|
|
73
73
|
protected _version: V1;
|
|
@@ -100,9 +100,9 @@ export declare class DomainCertsInstance {
|
|
|
100
100
|
certificateSid: string;
|
|
101
101
|
url: string;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Optional JSON field describing the status and upload date of a new certificate in the process of validation
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
certInValidation: any;
|
|
106
106
|
private get _proxy();
|
|
107
107
|
/**
|
|
108
108
|
* Remove a DomainCertsInstance
|
|
@@ -142,7 +142,7 @@ export declare class DomainCertsInstance {
|
|
|
142
142
|
domainName: string;
|
|
143
143
|
certificateSid: string;
|
|
144
144
|
url: string;
|
|
145
|
-
|
|
145
|
+
certInValidation: any;
|
|
146
146
|
};
|
|
147
147
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
148
148
|
}
|
|
@@ -91,7 +91,7 @@ class DomainCertsInstance {
|
|
|
91
91
|
this.domainName = payload.domain_name;
|
|
92
92
|
this.certificateSid = payload.certificate_sid;
|
|
93
93
|
this.url = payload.url;
|
|
94
|
-
this.
|
|
94
|
+
this.certInValidation = payload.cert_in_validation;
|
|
95
95
|
this._solution = { domainSid: domainSid || this.domainSid };
|
|
96
96
|
}
|
|
97
97
|
get _proxy() {
|
|
@@ -137,7 +137,7 @@ class DomainCertsInstance {
|
|
|
137
137
|
domainName: this.domainName,
|
|
138
138
|
certificateSid: this.certificateSid,
|
|
139
139
|
url: this.url,
|
|
140
|
-
|
|
140
|
+
certInValidation: this.certInValidation,
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V1 from "../V1";
|
|
4
|
+
export interface DomainConfigMessagingServiceContext {
|
|
5
|
+
/**
|
|
6
|
+
* Fetch a DomainConfigMessagingServiceInstance
|
|
7
|
+
*
|
|
8
|
+
* @param callback - Callback to handle processed record
|
|
9
|
+
*
|
|
10
|
+
* @returns Resolves to processed DomainConfigMessagingServiceInstance
|
|
11
|
+
*/
|
|
12
|
+
fetch(callback?: (error: Error | null, item?: DomainConfigMessagingServiceInstance) => any): Promise<DomainConfigMessagingServiceInstance>;
|
|
13
|
+
/**
|
|
14
|
+
* Provide a user-friendly representation
|
|
15
|
+
*/
|
|
16
|
+
toJSON(): any;
|
|
17
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
18
|
+
}
|
|
19
|
+
export interface DomainConfigMessagingServiceContextSolution {
|
|
20
|
+
messagingServiceSid: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class DomainConfigMessagingServiceContextImpl implements DomainConfigMessagingServiceContext {
|
|
23
|
+
protected _version: V1;
|
|
24
|
+
protected _solution: DomainConfigMessagingServiceContextSolution;
|
|
25
|
+
protected _uri: string;
|
|
26
|
+
constructor(_version: V1, messagingServiceSid: string);
|
|
27
|
+
fetch(callback?: (error: Error | null, item?: DomainConfigMessagingServiceInstance) => any): Promise<DomainConfigMessagingServiceInstance>;
|
|
28
|
+
/**
|
|
29
|
+
* Provide a user-friendly representation
|
|
30
|
+
*
|
|
31
|
+
* @returns Object
|
|
32
|
+
*/
|
|
33
|
+
toJSON(): DomainConfigMessagingServiceContextSolution;
|
|
34
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
35
|
+
}
|
|
36
|
+
interface DomainConfigMessagingServiceResource {
|
|
37
|
+
domain_sid: string;
|
|
38
|
+
config_sid: string;
|
|
39
|
+
messaging_service_sid: string;
|
|
40
|
+
fallback_url: string;
|
|
41
|
+
callback_url: string;
|
|
42
|
+
date_created: Date;
|
|
43
|
+
date_updated: Date;
|
|
44
|
+
url: string;
|
|
45
|
+
}
|
|
46
|
+
export declare class DomainConfigMessagingServiceInstance {
|
|
47
|
+
protected _version: V1;
|
|
48
|
+
protected _solution: DomainConfigMessagingServiceContextSolution;
|
|
49
|
+
protected _context?: DomainConfigMessagingServiceContext;
|
|
50
|
+
constructor(_version: V1, payload: DomainConfigMessagingServiceResource, messagingServiceSid?: string);
|
|
51
|
+
/**
|
|
52
|
+
* The unique string that we created to identify the Domain resource.
|
|
53
|
+
*/
|
|
54
|
+
domainSid: string;
|
|
55
|
+
/**
|
|
56
|
+
* The unique string that we created to identify the Domain config (prefix ZK).
|
|
57
|
+
*/
|
|
58
|
+
configSid: string;
|
|
59
|
+
/**
|
|
60
|
+
* The unique string that identifies the messaging service
|
|
61
|
+
*/
|
|
62
|
+
messagingServiceSid: string;
|
|
63
|
+
/**
|
|
64
|
+
* Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
|
|
65
|
+
*/
|
|
66
|
+
fallbackUrl: string;
|
|
67
|
+
/**
|
|
68
|
+
* URL to receive click events to your webhook whenever the recipients click on the shortened links.
|
|
69
|
+
*/
|
|
70
|
+
callbackUrl: string;
|
|
71
|
+
/**
|
|
72
|
+
* Date this Domain Config was created.
|
|
73
|
+
*/
|
|
74
|
+
dateCreated: Date;
|
|
75
|
+
/**
|
|
76
|
+
* Date that this Domain Config was last updated.
|
|
77
|
+
*/
|
|
78
|
+
dateUpdated: Date;
|
|
79
|
+
url: string;
|
|
80
|
+
private get _proxy();
|
|
81
|
+
/**
|
|
82
|
+
* Fetch a DomainConfigMessagingServiceInstance
|
|
83
|
+
*
|
|
84
|
+
* @param callback - Callback to handle processed record
|
|
85
|
+
*
|
|
86
|
+
* @returns Resolves to processed DomainConfigMessagingServiceInstance
|
|
87
|
+
*/
|
|
88
|
+
fetch(callback?: (error: Error | null, item?: DomainConfigMessagingServiceInstance) => any): Promise<DomainConfigMessagingServiceInstance>;
|
|
89
|
+
/**
|
|
90
|
+
* Provide a user-friendly representation
|
|
91
|
+
*
|
|
92
|
+
* @returns Object
|
|
93
|
+
*/
|
|
94
|
+
toJSON(): {
|
|
95
|
+
domainSid: string;
|
|
96
|
+
configSid: string;
|
|
97
|
+
messagingServiceSid: string;
|
|
98
|
+
fallbackUrl: string;
|
|
99
|
+
callbackUrl: string;
|
|
100
|
+
dateCreated: Date;
|
|
101
|
+
dateUpdated: Date;
|
|
102
|
+
url: string;
|
|
103
|
+
};
|
|
104
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
105
|
+
}
|
|
106
|
+
export interface DomainConfigMessagingServiceSolution {
|
|
107
|
+
}
|
|
108
|
+
export interface DomainConfigMessagingServiceListInstance {
|
|
109
|
+
_version: V1;
|
|
110
|
+
_solution: DomainConfigMessagingServiceSolution;
|
|
111
|
+
_uri: string;
|
|
112
|
+
(messagingServiceSid: string): DomainConfigMessagingServiceContext;
|
|
113
|
+
get(messagingServiceSid: string): DomainConfigMessagingServiceContext;
|
|
114
|
+
/**
|
|
115
|
+
* Provide a user-friendly representation
|
|
116
|
+
*/
|
|
117
|
+
toJSON(): any;
|
|
118
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
119
|
+
}
|
|
120
|
+
export declare function DomainConfigMessagingServiceListInstance(version: V1): DomainConfigMessagingServiceListInstance;
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Messaging
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DomainConfigMessagingServiceListInstance = exports.DomainConfigMessagingServiceInstance = exports.DomainConfigMessagingServiceContextImpl = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../base/serialize");
|
|
20
|
+
const utility_1 = require("../../../base/utility");
|
|
21
|
+
class DomainConfigMessagingServiceContextImpl {
|
|
22
|
+
constructor(_version, messagingServiceSid) {
|
|
23
|
+
this._version = _version;
|
|
24
|
+
if (!(0, utility_1.isValidPathParam)(messagingServiceSid)) {
|
|
25
|
+
throw new Error("Parameter 'messagingServiceSid' is not valid.");
|
|
26
|
+
}
|
|
27
|
+
this._solution = { messagingServiceSid };
|
|
28
|
+
this._uri = `/LinkShortening/MessagingService/${messagingServiceSid}/DomainConfig`;
|
|
29
|
+
}
|
|
30
|
+
fetch(callback) {
|
|
31
|
+
const instance = this;
|
|
32
|
+
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
33
|
+
uri: instance._uri,
|
|
34
|
+
method: "get",
|
|
35
|
+
});
|
|
36
|
+
operationPromise = operationPromise.then((payload) => new DomainConfigMessagingServiceInstance(operationVersion, payload, instance._solution.messagingServiceSid));
|
|
37
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
38
|
+
return operationPromise;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Provide a user-friendly representation
|
|
42
|
+
*
|
|
43
|
+
* @returns Object
|
|
44
|
+
*/
|
|
45
|
+
toJSON() {
|
|
46
|
+
return this._solution;
|
|
47
|
+
}
|
|
48
|
+
[util_1.inspect.custom](_depth, options) {
|
|
49
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.DomainConfigMessagingServiceContextImpl = DomainConfigMessagingServiceContextImpl;
|
|
53
|
+
class DomainConfigMessagingServiceInstance {
|
|
54
|
+
constructor(_version, payload, messagingServiceSid) {
|
|
55
|
+
this._version = _version;
|
|
56
|
+
this.domainSid = payload.domain_sid;
|
|
57
|
+
this.configSid = payload.config_sid;
|
|
58
|
+
this.messagingServiceSid = payload.messaging_service_sid;
|
|
59
|
+
this.fallbackUrl = payload.fallback_url;
|
|
60
|
+
this.callbackUrl = payload.callback_url;
|
|
61
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
62
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
63
|
+
this.url = payload.url;
|
|
64
|
+
this._solution = {
|
|
65
|
+
messagingServiceSid: messagingServiceSid || this.messagingServiceSid,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
get _proxy() {
|
|
69
|
+
this._context =
|
|
70
|
+
this._context ||
|
|
71
|
+
new DomainConfigMessagingServiceContextImpl(this._version, this._solution.messagingServiceSid);
|
|
72
|
+
return this._context;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Fetch a DomainConfigMessagingServiceInstance
|
|
76
|
+
*
|
|
77
|
+
* @param callback - Callback to handle processed record
|
|
78
|
+
*
|
|
79
|
+
* @returns Resolves to processed DomainConfigMessagingServiceInstance
|
|
80
|
+
*/
|
|
81
|
+
fetch(callback) {
|
|
82
|
+
return this._proxy.fetch(callback);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Provide a user-friendly representation
|
|
86
|
+
*
|
|
87
|
+
* @returns Object
|
|
88
|
+
*/
|
|
89
|
+
toJSON() {
|
|
90
|
+
return {
|
|
91
|
+
domainSid: this.domainSid,
|
|
92
|
+
configSid: this.configSid,
|
|
93
|
+
messagingServiceSid: this.messagingServiceSid,
|
|
94
|
+
fallbackUrl: this.fallbackUrl,
|
|
95
|
+
callbackUrl: this.callbackUrl,
|
|
96
|
+
dateCreated: this.dateCreated,
|
|
97
|
+
dateUpdated: this.dateUpdated,
|
|
98
|
+
url: this.url,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
[util_1.inspect.custom](_depth, options) {
|
|
102
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.DomainConfigMessagingServiceInstance = DomainConfigMessagingServiceInstance;
|
|
106
|
+
function DomainConfigMessagingServiceListInstance(version) {
|
|
107
|
+
const instance = ((messagingServiceSid) => instance.get(messagingServiceSid));
|
|
108
|
+
instance.get = function get(messagingServiceSid) {
|
|
109
|
+
return new DomainConfigMessagingServiceContextImpl(version, messagingServiceSid);
|
|
110
|
+
};
|
|
111
|
+
instance._version = version;
|
|
112
|
+
instance._solution = {};
|
|
113
|
+
instance._uri = ``;
|
|
114
|
+
instance.toJSON = function toJSON() {
|
|
115
|
+
return instance._solution;
|
|
116
|
+
};
|
|
117
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
118
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
119
|
+
};
|
|
120
|
+
return instance;
|
|
121
|
+
}
|
|
122
|
+
exports.DomainConfigMessagingServiceListInstance = DomainConfigMessagingServiceListInstance;
|