twilio 4.8.0 → 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/jwt/AccessToken.d.ts +168 -173
- package/lib/jwt/AccessToken.js +180 -185
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -20
- package/lib/rest/api/v2010/account/application.d.ts +15 -20
- 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/conference/recording.d.ts +9 -9
- package/lib/rest/api/v2010/account/connectApp.d.ts +3 -4
- 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 +15 -20
- package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
- 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/shortCode.d.ts +6 -8
- package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
- 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 -1
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
- 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/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/flexApi/V1.d.ts +5 -0
- package/lib/rest/flexApi/V1.js +7 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +117 -0
- package/lib/rest/flexApi/v1/assessments.js +70 -1
- 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 +2 -2
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -4
- package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
- 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/v2/service/channel/webhook.d.ts +5 -5
- package/lib/rest/media/v1/mediaProcessor.d.ts +3 -4
- package/lib/rest/media/v1/mediaRecording.d.ts +3 -4
- package/lib/rest/media/v1/playerStreamer.d.ts +3 -4
- package/lib/rest/messaging/V1.d.ts +10 -0
- package/lib/rest/messaging/V1.js +16 -0
- 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 +6 -8
- 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/monitor/v1/alert.d.ts +3 -4
- package/lib/rest/preview/wireless/sim.d.ts +12 -16
- package/lib/rest/supersim/v1/esimProfile.d.ts +14 -0
- package/lib/rest/supersim/v1/esimProfile.js +6 -0
- package/lib/rest/supersim/v1/fleet.d.ts +6 -8
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +15 -20
- package/lib/rest/trunking/v1/trunk.d.ts +3 -4
- 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/trustProducts/trustProductsEvaluations.d.ts +4 -4
- package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/video/v1/composition.d.ts +3 -4
- package/lib/rest/video/v1/compositionHook.d.ts +3 -4
- package/lib/rest/video/v1/recording.d.ts +3 -4
- 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.d.ts +3 -4
- package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
- package/lib/rest/wireless/v1/sim.d.ts +15 -20
- package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../V1";
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
4
|
+
export type CallSummaryAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
|
|
5
|
+
export type CallSummaryCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
|
|
6
|
+
export type CallSummaryCallType = "carrier" | "sip" | "trunking" | "client";
|
|
7
|
+
export type CallSummaryProcessingState = "complete" | "partial";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to fetch a CallSummaryInstance
|
|
10
10
|
*/
|
|
11
11
|
export interface CallSummaryContextFetchOptions {
|
|
12
12
|
/** */
|
|
13
|
-
processingState?:
|
|
13
|
+
processingState?: CallSummaryProcessingState;
|
|
14
14
|
}
|
|
15
15
|
export interface CallSummaryContext {
|
|
16
16
|
/**
|
|
@@ -56,10 +56,10 @@ export declare class CallSummaryContextImpl implements CallSummaryContext {
|
|
|
56
56
|
interface CallSummaryResource {
|
|
57
57
|
account_sid: string;
|
|
58
58
|
call_sid: string;
|
|
59
|
-
call_type:
|
|
60
|
-
call_state:
|
|
61
|
-
answered_by:
|
|
62
|
-
processing_state:
|
|
59
|
+
call_type: CallSummaryCallType;
|
|
60
|
+
call_state: CallSummaryCallState;
|
|
61
|
+
answered_by: CallSummaryAnsweredBy;
|
|
62
|
+
processing_state: CallSummaryProcessingState;
|
|
63
63
|
created_time: Date;
|
|
64
64
|
start_time: Date;
|
|
65
65
|
end_time: Date;
|
|
@@ -85,10 +85,10 @@ export declare class CallSummaryInstance {
|
|
|
85
85
|
constructor(_version: V1, payload: CallSummaryResource, callSid: string);
|
|
86
86
|
accountSid: string;
|
|
87
87
|
callSid: string;
|
|
88
|
-
callType:
|
|
89
|
-
callState:
|
|
90
|
-
answeredBy:
|
|
91
|
-
processingState:
|
|
88
|
+
callType: CallSummaryCallType;
|
|
89
|
+
callState: CallSummaryCallState;
|
|
90
|
+
answeredBy: CallSummaryAnsweredBy;
|
|
91
|
+
processingState: CallSummaryProcessingState;
|
|
92
92
|
createdTime: Date;
|
|
93
93
|
startTime: Date;
|
|
94
94
|
endTime: Date;
|
|
@@ -132,10 +132,10 @@ export declare class CallSummaryInstance {
|
|
|
132
132
|
toJSON(): {
|
|
133
133
|
accountSid: string;
|
|
134
134
|
callSid: string;
|
|
135
|
-
callType:
|
|
136
|
-
callState:
|
|
137
|
-
answeredBy:
|
|
138
|
-
processingState:
|
|
135
|
+
callType: CallSummaryCallType;
|
|
136
|
+
callState: CallSummaryCallState;
|
|
137
|
+
answeredBy: CallSummaryAnsweredBy;
|
|
138
|
+
processingState: CallSummaryProcessingState;
|
|
139
139
|
createdTime: Date;
|
|
140
140
|
startTime: Date;
|
|
141
141
|
endTime: Date;
|
|
@@ -3,10 +3,10 @@ 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
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
6
|
+
export type ParticipantCodec = "VP8" | "H264" | "VP9";
|
|
7
|
+
export type ParticipantEdgeLocation = "ashburn" | "dublin" | "frankfurt" | "singapore" | "sydney" | "sao_paulo" | "roaming" | "umatilla" | "tokyo";
|
|
8
|
+
export type ParticipantRoomStatus = "in_progress" | "completed";
|
|
9
|
+
export type ParticipantTwilioRealm = "us1" | "us2" | "au1" | "br1" | "ie1" | "jp1" | "sg1" | "in1" | "de1" | "gll";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to each
|
|
12
12
|
*/
|
|
@@ -84,14 +84,14 @@ interface ParticipantResource {
|
|
|
84
84
|
duration_sec: number;
|
|
85
85
|
account_sid: string;
|
|
86
86
|
room_sid: string;
|
|
87
|
-
status:
|
|
88
|
-
codecs: Array<
|
|
87
|
+
status: ParticipantRoomStatus;
|
|
88
|
+
codecs: Array<ParticipantCodec>;
|
|
89
89
|
end_reason: string;
|
|
90
90
|
error_code: number;
|
|
91
91
|
error_code_url: string;
|
|
92
|
-
media_region:
|
|
92
|
+
media_region: ParticipantTwilioRealm;
|
|
93
93
|
properties: any;
|
|
94
|
-
edge_location:
|
|
94
|
+
edge_location: ParticipantEdgeLocation;
|
|
95
95
|
publisher_info: any;
|
|
96
96
|
url: string;
|
|
97
97
|
}
|
|
@@ -128,11 +128,11 @@ export declare class ParticipantInstance {
|
|
|
128
128
|
* Unique identifier for the room.
|
|
129
129
|
*/
|
|
130
130
|
roomSid: string;
|
|
131
|
-
status:
|
|
131
|
+
status: ParticipantRoomStatus;
|
|
132
132
|
/**
|
|
133
133
|
* Codecs detected from the participant. Can be `VP8`, `H264`, or `VP9`.
|
|
134
134
|
*/
|
|
135
|
-
codecs: Array<
|
|
135
|
+
codecs: Array<ParticipantCodec>;
|
|
136
136
|
/**
|
|
137
137
|
* Reason the participant left the room. See [the list of possible values here](https://www.twilio.com/docs/video/video-log-analyzer/video-log-analyzer-api#end_reason).
|
|
138
138
|
*/
|
|
@@ -145,12 +145,12 @@ export declare class ParticipantInstance {
|
|
|
145
145
|
* Twilio error code dictionary link.
|
|
146
146
|
*/
|
|
147
147
|
errorCodeUrl: string;
|
|
148
|
-
mediaRegion:
|
|
148
|
+
mediaRegion: ParticipantTwilioRealm;
|
|
149
149
|
/**
|
|
150
150
|
* Object containing information about the participant\'s data from the room. See [below](https://www.twilio.com/docs/video/video-log-analyzer/video-log-analyzer-api#properties) for more information.
|
|
151
151
|
*/
|
|
152
152
|
properties: any;
|
|
153
|
-
edgeLocation:
|
|
153
|
+
edgeLocation: ParticipantEdgeLocation;
|
|
154
154
|
/**
|
|
155
155
|
* Object containing information about the SDK name and version. See [below](https://www.twilio.com/docs/video/video-log-analyzer/video-log-analyzer-api#publisher_info) for more information.
|
|
156
156
|
*/
|
|
@@ -181,14 +181,14 @@ export declare class ParticipantInstance {
|
|
|
181
181
|
durationSec: number;
|
|
182
182
|
accountSid: string;
|
|
183
183
|
roomSid: string;
|
|
184
|
-
status:
|
|
185
|
-
codecs:
|
|
184
|
+
status: ParticipantRoomStatus;
|
|
185
|
+
codecs: ParticipantCodec[];
|
|
186
186
|
endReason: string;
|
|
187
187
|
errorCode: number;
|
|
188
188
|
errorCodeUrl: string;
|
|
189
|
-
mediaRegion:
|
|
189
|
+
mediaRegion: ParticipantTwilioRealm;
|
|
190
190
|
properties: any;
|
|
191
|
-
edgeLocation:
|
|
191
|
+
edgeLocation: ParticipantEdgeLocation;
|
|
192
192
|
publisherInfo: any;
|
|
193
193
|
url: string;
|
|
194
194
|
};
|
|
@@ -4,22 +4,22 @@ import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
import { ParticipantListInstance } from "./room/participant";
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
14
|
-
export type
|
|
7
|
+
export type RoomCodec = "VP8" | "H264" | "VP9";
|
|
8
|
+
export type RoomCreatedMethod = "sdk" | "ad_hoc" | "api";
|
|
9
|
+
export type RoomEdgeLocation = "ashburn" | "dublin" | "frankfurt" | "singapore" | "sydney" | "sao_paulo" | "roaming" | "umatilla" | "tokyo";
|
|
10
|
+
export type RoomEndReason = "room_ended_via_api" | "timeout";
|
|
11
|
+
export type RoomProcessingState = "complete" | "in_progress";
|
|
12
|
+
export type RoomRoomStatus = "in_progress" | "completed";
|
|
13
|
+
export type RoomRoomType = "go" | "peer_to_peer" | "group" | "group_small";
|
|
14
|
+
export type RoomTwilioRealm = "us1" | "us2" | "au1" | "br1" | "ie1" | "jp1" | "sg1" | "in1" | "de1" | "gll";
|
|
15
15
|
/**
|
|
16
16
|
* Options to pass to each
|
|
17
17
|
*/
|
|
18
18
|
export interface RoomListInstanceEachOptions {
|
|
19
19
|
/** Type of room. Can be `go`, `peer_to_peer`, `group`, or `group_small`. */
|
|
20
|
-
roomType?: Array<
|
|
20
|
+
roomType?: Array<RoomRoomType>;
|
|
21
21
|
/** Codecs used by participants in the room. Can be `VP8`, `H264`, or `VP9`. */
|
|
22
|
-
codec?: Array<
|
|
22
|
+
codec?: Array<RoomCodec>;
|
|
23
23
|
/** Room friendly name. */
|
|
24
24
|
roomName?: string;
|
|
25
25
|
/** Only read rooms that started on or after this ISO 8601 timestamp. */
|
|
@@ -40,9 +40,9 @@ export interface RoomListInstanceEachOptions {
|
|
|
40
40
|
*/
|
|
41
41
|
export interface RoomListInstanceOptions {
|
|
42
42
|
/** Type of room. Can be `go`, `peer_to_peer`, `group`, or `group_small`. */
|
|
43
|
-
roomType?: Array<
|
|
43
|
+
roomType?: Array<RoomRoomType>;
|
|
44
44
|
/** Codecs used by participants in the room. Can be `VP8`, `H264`, or `VP9`. */
|
|
45
|
-
codec?: Array<
|
|
45
|
+
codec?: Array<RoomCodec>;
|
|
46
46
|
/** Room friendly name. */
|
|
47
47
|
roomName?: string;
|
|
48
48
|
/** Only read rooms that started on or after this ISO 8601 timestamp. */
|
|
@@ -59,9 +59,9 @@ export interface RoomListInstanceOptions {
|
|
|
59
59
|
*/
|
|
60
60
|
export interface RoomListInstancePageOptions {
|
|
61
61
|
/** Type of room. Can be `go`, `peer_to_peer`, `group`, or `group_small`. */
|
|
62
|
-
roomType?: Array<
|
|
62
|
+
roomType?: Array<RoomRoomType>;
|
|
63
63
|
/** Codecs used by participants in the room. Can be `VP8`, `H264`, or `VP9`. */
|
|
64
|
-
codec?: Array<
|
|
64
|
+
codec?: Array<RoomCodec>;
|
|
65
65
|
/** Room friendly name. */
|
|
66
66
|
roomName?: string;
|
|
67
67
|
/** Only read rooms that started on or after this ISO 8601 timestamp. */
|
|
@@ -110,7 +110,6 @@ export declare class RoomContextImpl implements RoomContext {
|
|
|
110
110
|
toJSON(): RoomContextSolution;
|
|
111
111
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
112
112
|
}
|
|
113
|
-
export type RoomStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
114
113
|
interface RoomPayload extends TwilioResponsePayload {
|
|
115
114
|
rooms: RoomResource[];
|
|
116
115
|
}
|
|
@@ -120,25 +119,25 @@ interface RoomResource {
|
|
|
120
119
|
room_name: string;
|
|
121
120
|
create_time: Date;
|
|
122
121
|
end_time: Date;
|
|
123
|
-
room_type:
|
|
124
|
-
room_status:
|
|
122
|
+
room_type: RoomRoomType;
|
|
123
|
+
room_status: RoomRoomStatus;
|
|
125
124
|
status_callback: string;
|
|
126
|
-
status_callback_method:
|
|
127
|
-
created_method:
|
|
128
|
-
end_reason:
|
|
125
|
+
status_callback_method: string;
|
|
126
|
+
created_method: RoomCreatedMethod;
|
|
127
|
+
end_reason: RoomEndReason;
|
|
129
128
|
max_participants: number;
|
|
130
129
|
unique_participants: number;
|
|
131
130
|
unique_participant_identities: number;
|
|
132
131
|
concurrent_participants: number;
|
|
133
132
|
max_concurrent_participants: number;
|
|
134
|
-
codecs: Array<
|
|
135
|
-
media_region:
|
|
133
|
+
codecs: Array<RoomCodec>;
|
|
134
|
+
media_region: RoomTwilioRealm;
|
|
136
135
|
duration_sec: number;
|
|
137
136
|
total_participant_duration_sec: number;
|
|
138
137
|
total_recording_duration_sec: number;
|
|
139
|
-
processing_state:
|
|
138
|
+
processing_state: RoomProcessingState;
|
|
140
139
|
recording_enabled: boolean;
|
|
141
|
-
edge_location:
|
|
140
|
+
edge_location: RoomEdgeLocation;
|
|
142
141
|
url: string;
|
|
143
142
|
links: Record<string, string>;
|
|
144
143
|
}
|
|
@@ -167,8 +166,8 @@ export declare class RoomInstance {
|
|
|
167
166
|
* End time for the room.
|
|
168
167
|
*/
|
|
169
168
|
endTime: Date;
|
|
170
|
-
roomType:
|
|
171
|
-
roomStatus:
|
|
169
|
+
roomType: RoomRoomType;
|
|
170
|
+
roomStatus: RoomRoomStatus;
|
|
172
171
|
/**
|
|
173
172
|
* Webhook provided for status callbacks.
|
|
174
173
|
*/
|
|
@@ -176,9 +175,9 @@ export declare class RoomInstance {
|
|
|
176
175
|
/**
|
|
177
176
|
* HTTP method provided for status callback URL.
|
|
178
177
|
*/
|
|
179
|
-
statusCallbackMethod:
|
|
180
|
-
createdMethod:
|
|
181
|
-
endReason:
|
|
178
|
+
statusCallbackMethod: string;
|
|
179
|
+
createdMethod: RoomCreatedMethod;
|
|
180
|
+
endReason: RoomEndReason;
|
|
182
181
|
/**
|
|
183
182
|
* Max number of total participants allowed by the application settings.
|
|
184
183
|
*/
|
|
@@ -202,8 +201,8 @@ export declare class RoomInstance {
|
|
|
202
201
|
/**
|
|
203
202
|
* Codecs used by participants in the room. Can be `VP8`, `H264`, or `VP9`.
|
|
204
203
|
*/
|
|
205
|
-
codecs: Array<
|
|
206
|
-
mediaRegion:
|
|
204
|
+
codecs: Array<RoomCodec>;
|
|
205
|
+
mediaRegion: RoomTwilioRealm;
|
|
207
206
|
/**
|
|
208
207
|
* Total room duration from create time to end time.
|
|
209
208
|
*/
|
|
@@ -216,12 +215,12 @@ export declare class RoomInstance {
|
|
|
216
215
|
* Combined amount of recorded seconds for participants in the room.
|
|
217
216
|
*/
|
|
218
217
|
totalRecordingDurationSec: number;
|
|
219
|
-
processingState:
|
|
218
|
+
processingState: RoomProcessingState;
|
|
220
219
|
/**
|
|
221
220
|
* Boolean indicating if recording is enabled for the room.
|
|
222
221
|
*/
|
|
223
222
|
recordingEnabled: boolean;
|
|
224
|
-
edgeLocation:
|
|
223
|
+
edgeLocation: RoomEdgeLocation;
|
|
225
224
|
/**
|
|
226
225
|
* URL for the room resource.
|
|
227
226
|
*/
|
|
@@ -254,25 +253,25 @@ export declare class RoomInstance {
|
|
|
254
253
|
roomName: string;
|
|
255
254
|
createTime: Date;
|
|
256
255
|
endTime: Date;
|
|
257
|
-
roomType:
|
|
258
|
-
roomStatus:
|
|
256
|
+
roomType: RoomRoomType;
|
|
257
|
+
roomStatus: RoomRoomStatus;
|
|
259
258
|
statusCallback: string;
|
|
260
|
-
statusCallbackMethod:
|
|
261
|
-
createdMethod:
|
|
262
|
-
endReason:
|
|
259
|
+
statusCallbackMethod: string;
|
|
260
|
+
createdMethod: RoomCreatedMethod;
|
|
261
|
+
endReason: RoomEndReason;
|
|
263
262
|
maxParticipants: number;
|
|
264
263
|
uniqueParticipants: number;
|
|
265
264
|
uniqueParticipantIdentities: number;
|
|
266
265
|
concurrentParticipants: number;
|
|
267
266
|
maxConcurrentParticipants: number;
|
|
268
|
-
codecs:
|
|
269
|
-
mediaRegion:
|
|
267
|
+
codecs: RoomCodec[];
|
|
268
|
+
mediaRegion: RoomTwilioRealm;
|
|
270
269
|
durationSec: number;
|
|
271
270
|
totalParticipantDurationSec: number;
|
|
272
271
|
totalRecordingDurationSec: number;
|
|
273
|
-
processingState:
|
|
272
|
+
processingState: RoomProcessingState;
|
|
274
273
|
recordingEnabled: boolean;
|
|
275
|
-
edgeLocation:
|
|
274
|
+
edgeLocation: RoomEdgeLocation;
|
|
276
275
|
url: string;
|
|
277
276
|
links: Record<string, string>;
|
|
278
277
|
};
|
|
@@ -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 V2 from "../../../V2";
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
6
|
+
export type WebhookMethod = "GET" | "POST";
|
|
7
|
+
export type WebhookType = "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
|
/** */
|
|
13
13
|
"configuration.url"?: string;
|
|
14
14
|
/** */
|
|
15
|
-
"configuration.method"?:
|
|
15
|
+
"configuration.method"?: WebhookMethod;
|
|
16
16
|
/** */
|
|
17
17
|
"configuration.filters"?: Array<string>;
|
|
18
18
|
/** */
|
|
@@ -27,11 +27,11 @@ export interface WebhookContextUpdateOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface WebhookListInstanceCreateOptions {
|
|
29
29
|
/** */
|
|
30
|
-
type:
|
|
30
|
+
type: WebhookType;
|
|
31
31
|
/** */
|
|
32
32
|
"configuration.url"?: string;
|
|
33
33
|
/** */
|
|
34
|
-
"configuration.method"?:
|
|
34
|
+
"configuration.method"?: WebhookMethod;
|
|
35
35
|
/** */
|
|
36
36
|
"configuration.filters"?: Array<string>;
|
|
37
37
|
/** */
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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);
|
|
@@ -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
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export 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
|
}
|