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
package/lib/base/BaseTwilio.d.ts
CHANGED
package/lib/jwt/AccessToken.d.ts
CHANGED
|
@@ -1,171 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
key?: TKey;
|
|
3
|
-
constructor(opts?: TOptions);
|
|
4
|
-
abstract toPayload(): TPayload;
|
|
5
|
-
}
|
|
6
|
-
export interface TaskRouterGrantOptions {
|
|
7
|
-
workspaceSid?: string;
|
|
8
|
-
workerSid?: string;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TaskRouterGrantPayload {
|
|
12
|
-
workspace_sid?: string;
|
|
13
|
-
worker_sid?: string;
|
|
14
|
-
role?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ChatGrantOptions {
|
|
17
|
-
serviceSid?: string;
|
|
18
|
-
endpointId?: string;
|
|
19
|
-
deploymentRoleSid?: string;
|
|
20
|
-
pushCredentialSid?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ChatGrantPayload {
|
|
23
|
-
service_sid?: string;
|
|
24
|
-
endpoint_id?: string;
|
|
25
|
-
deployment_role_sid?: string;
|
|
26
|
-
push_credential_sid?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface VideoGrantOptions {
|
|
29
|
-
room?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface VideoGrantPayload {
|
|
32
|
-
room?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface SyncGrantOptions {
|
|
35
|
-
serviceSid?: string;
|
|
36
|
-
endpointId?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface SyncGrantPayload {
|
|
39
|
-
service_sid?: string;
|
|
40
|
-
endpoint_id?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface VoiceGrantOptions {
|
|
43
|
-
incomingAllow?: boolean;
|
|
44
|
-
outgoingApplicationSid?: string;
|
|
45
|
-
outgoingApplicationParams?: object;
|
|
46
|
-
pushCredentialSid?: string;
|
|
47
|
-
endpointId?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface VoiceGrantPayload {
|
|
50
|
-
incoming?: {
|
|
51
|
-
allow: boolean;
|
|
52
|
-
};
|
|
53
|
-
outgoing?: {
|
|
54
|
-
application_sid: string;
|
|
55
|
-
params?: object;
|
|
56
|
-
};
|
|
57
|
-
push_credential_sid?: string;
|
|
58
|
-
endpoint_id?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface PlaybackGrantOptions {
|
|
61
|
-
grant?: object;
|
|
62
|
-
}
|
|
63
|
-
export interface PlaybackGrantPayload {
|
|
64
|
-
grant?: object;
|
|
65
|
-
}
|
|
66
|
-
export interface AccessTokenOptions {
|
|
67
|
-
/**
|
|
68
|
-
* Time to live in seconds
|
|
69
|
-
*/
|
|
70
|
-
ttl?: number;
|
|
71
|
-
/**
|
|
72
|
-
* The identity of the first person. Required.
|
|
73
|
-
*/
|
|
74
|
-
identity: string;
|
|
75
|
-
/**
|
|
76
|
-
* Time from epoch in seconds for not before value
|
|
77
|
-
*/
|
|
78
|
-
nbf?: number;
|
|
79
|
-
/**
|
|
80
|
-
* The region value associated with this account
|
|
81
|
-
*/
|
|
82
|
-
region?: string;
|
|
83
|
-
}
|
|
84
|
-
type ALGORITHMS = "HS256" | "HS384" | "HS512";
|
|
85
|
-
declare class TaskRouterGrant extends Grant<TaskRouterGrantOptions, TaskRouterGrantPayload, "task_router"> implements TaskRouterGrantOptions {
|
|
86
|
-
workspaceSid?: string;
|
|
87
|
-
workerSid?: string;
|
|
88
|
-
role?: string;
|
|
89
|
-
/**
|
|
90
|
-
* @param options - ...
|
|
91
|
-
* @param options.workspaceSid - The workspace unique ID
|
|
92
|
-
* @param options.workerSid - The worker unique ID
|
|
93
|
-
* @param options.role - The role of the grant
|
|
94
|
-
*/
|
|
95
|
-
constructor(options?: TaskRouterGrantOptions);
|
|
96
|
-
toPayload(): TaskRouterGrantPayload;
|
|
97
|
-
}
|
|
98
|
-
export declare class ChatGrant extends Grant<ChatGrantOptions, ChatGrantPayload, "chat"> implements ChatGrantOptions {
|
|
99
|
-
serviceSid?: string;
|
|
100
|
-
endpointId?: string;
|
|
101
|
-
deploymentRoleSid?: string;
|
|
102
|
-
pushCredentialSid?: string;
|
|
103
|
-
/**
|
|
104
|
-
* @param options - ...
|
|
105
|
-
* @param options.serviceSid - The service unique ID
|
|
106
|
-
* @param options.endpointId - The endpoint ID
|
|
107
|
-
* @param options.deploymentRoleSid - SID of the deployment role to be
|
|
108
|
-
* assigned to the user
|
|
109
|
-
* @param options.pushCredentialSid - The Push Credentials SID
|
|
110
|
-
*/
|
|
111
|
-
constructor(options?: ChatGrantOptions);
|
|
112
|
-
toPayload(): ChatGrantPayload;
|
|
113
|
-
}
|
|
114
|
-
declare class VideoGrant extends Grant<VideoGrantOptions, VideoGrantPayload, "video"> implements VideoGrantOptions {
|
|
115
|
-
room?: string;
|
|
116
|
-
/**
|
|
117
|
-
* @param options - ...
|
|
118
|
-
* @param options.room - The Room name or Room sid.
|
|
119
|
-
*/
|
|
120
|
-
constructor(options?: VideoGrantOptions);
|
|
121
|
-
toPayload(): VideoGrantPayload;
|
|
122
|
-
}
|
|
123
|
-
declare class SyncGrant extends Grant<SyncGrantOptions, SyncGrantPayload, "data_sync"> implements SyncGrantOptions {
|
|
124
|
-
serviceSid?: string;
|
|
125
|
-
endpointId?: string;
|
|
126
|
-
/**
|
|
127
|
-
* @param options.serviceSid - The service unique ID
|
|
128
|
-
* @param options.endpointId - The endpoint ID
|
|
129
|
-
*/
|
|
130
|
-
constructor(options?: SyncGrantOptions);
|
|
131
|
-
toPayload(): SyncGrantPayload;
|
|
132
|
-
}
|
|
133
|
-
declare class VoiceGrant extends Grant<VoiceGrantOptions, VoiceGrantPayload, "voice"> implements VoiceGrantOptions {
|
|
134
|
-
incomingAllow?: boolean;
|
|
135
|
-
outgoingApplicationSid?: string;
|
|
136
|
-
outgoingApplicationParams?: object;
|
|
137
|
-
pushCredentialSid?: string;
|
|
138
|
-
endpointId?: string;
|
|
139
|
-
/**
|
|
140
|
-
* @param options - ...
|
|
141
|
-
* @param options.incomingAllow - Whether or not this endpoint is allowed to receive incoming calls as grants.identity
|
|
142
|
-
* @param options.outgoingApplicationSid - application sid to call when placing outgoing call
|
|
143
|
-
* @param options.outgoingApplicationParams - request params to pass to the application
|
|
144
|
-
* @param options.pushCredentialSid - Push Credential Sid to use when registering to receive incoming call notifications
|
|
145
|
-
* @param options.endpointId - Specify an endpoint identifier for this device, which will allow the developer
|
|
146
|
-
* to direct calls to a specific endpoint when multiple devices are associated with a single identity
|
|
147
|
-
*/
|
|
148
|
-
constructor(options?: VoiceGrantOptions);
|
|
149
|
-
toPayload(): VoiceGrantPayload;
|
|
150
|
-
}
|
|
151
|
-
declare class PlaybackGrant extends Grant<PlaybackGrantOptions, PlaybackGrantPayload, "player"> implements PlaybackGrantOptions {
|
|
152
|
-
grant?: object;
|
|
153
|
-
/**
|
|
154
|
-
* @param options - ...
|
|
155
|
-
* @param options.grant - The PlaybackGrant retrieved from Twilio's API
|
|
156
|
-
*/
|
|
157
|
-
constructor(options?: PlaybackGrantOptions);
|
|
158
|
-
toPayload(): PlaybackGrantPayload;
|
|
159
|
-
}
|
|
160
|
-
export default class AccessToken implements AccessTokenOptions {
|
|
1
|
+
declare class AccessToken implements AccessToken.AccessTokenOptions {
|
|
161
2
|
static DEFAULT_ALGORITHM: "HS256";
|
|
162
|
-
static ALGORITHMS:
|
|
163
|
-
static ChatGrant: typeof ChatGrant;
|
|
164
|
-
static VoiceGrant: typeof VoiceGrant;
|
|
165
|
-
static SyncGrant: typeof SyncGrant;
|
|
166
|
-
static VideoGrant: typeof VideoGrant;
|
|
167
|
-
static TaskRouterGrant: typeof TaskRouterGrant;
|
|
168
|
-
static PlaybackGrant: typeof PlaybackGrant;
|
|
3
|
+
static ALGORITHMS: string[];
|
|
169
4
|
accountSid: string;
|
|
170
5
|
keySid: string;
|
|
171
6
|
secret: string;
|
|
@@ -173,7 +8,7 @@ export default class AccessToken implements AccessTokenOptions {
|
|
|
173
8
|
identity: string;
|
|
174
9
|
nbf?: number;
|
|
175
10
|
region?: string;
|
|
176
|
-
grants: Grant<any, any, any>[];
|
|
11
|
+
grants: AccessToken.Grant<any, any, any>[];
|
|
177
12
|
/**
|
|
178
13
|
* @param accountSid - The account's unique ID to which access is scoped
|
|
179
14
|
* @param keySid - The signing key's unique ID
|
|
@@ -184,8 +19,168 @@ export default class AccessToken implements AccessTokenOptions {
|
|
|
184
19
|
* @param options.nbf - Time from epoch in seconds for not before value
|
|
185
20
|
* @param options.region - The region value associated with this account
|
|
186
21
|
*/
|
|
187
|
-
constructor(accountSid: string, keySid: string, secret: string, options: AccessTokenOptions);
|
|
188
|
-
addGrant<T extends Grant<any, any, any>>(grant: T): void;
|
|
189
|
-
toJwt(algorithm?:
|
|
190
|
-
}
|
|
191
|
-
|
|
22
|
+
constructor(accountSid: string, keySid: string, secret: string, options: AccessToken.AccessTokenOptions);
|
|
23
|
+
addGrant<T extends AccessToken.Grant<any, any, any>>(grant: T): void;
|
|
24
|
+
toJwt(algorithm?: "HS256" | "HS384" | "HS512"): string;
|
|
25
|
+
}
|
|
26
|
+
declare namespace AccessToken {
|
|
27
|
+
abstract class Grant<TOptions, TPayload, TKey> {
|
|
28
|
+
key: TKey;
|
|
29
|
+
protected constructor(key: TKey);
|
|
30
|
+
abstract toPayload(): TPayload;
|
|
31
|
+
}
|
|
32
|
+
interface TaskRouterGrantOptions {
|
|
33
|
+
workspaceSid?: string;
|
|
34
|
+
workerSid?: string;
|
|
35
|
+
role?: string;
|
|
36
|
+
}
|
|
37
|
+
interface TaskRouterGrantPayload {
|
|
38
|
+
workspace_sid?: string;
|
|
39
|
+
worker_sid?: string;
|
|
40
|
+
role?: string;
|
|
41
|
+
}
|
|
42
|
+
interface ChatGrantOptions {
|
|
43
|
+
serviceSid?: string;
|
|
44
|
+
endpointId?: string;
|
|
45
|
+
deploymentRoleSid?: string;
|
|
46
|
+
pushCredentialSid?: string;
|
|
47
|
+
}
|
|
48
|
+
interface ChatGrantPayload {
|
|
49
|
+
service_sid?: string;
|
|
50
|
+
endpoint_id?: string;
|
|
51
|
+
deployment_role_sid?: string;
|
|
52
|
+
push_credential_sid?: string;
|
|
53
|
+
}
|
|
54
|
+
interface VideoGrantOptions {
|
|
55
|
+
room?: string;
|
|
56
|
+
}
|
|
57
|
+
interface VideoGrantPayload {
|
|
58
|
+
room?: string;
|
|
59
|
+
}
|
|
60
|
+
interface SyncGrantOptions {
|
|
61
|
+
serviceSid?: string;
|
|
62
|
+
endpointId?: string;
|
|
63
|
+
}
|
|
64
|
+
interface SyncGrantPayload {
|
|
65
|
+
service_sid?: string;
|
|
66
|
+
endpoint_id?: string;
|
|
67
|
+
}
|
|
68
|
+
interface VoiceGrantOptions {
|
|
69
|
+
incomingAllow?: boolean;
|
|
70
|
+
outgoingApplicationSid?: string;
|
|
71
|
+
outgoingApplicationParams?: object;
|
|
72
|
+
pushCredentialSid?: string;
|
|
73
|
+
endpointId?: string;
|
|
74
|
+
}
|
|
75
|
+
interface VoiceGrantPayload {
|
|
76
|
+
incoming?: {
|
|
77
|
+
allow: boolean;
|
|
78
|
+
};
|
|
79
|
+
outgoing?: {
|
|
80
|
+
application_sid: string;
|
|
81
|
+
params?: object;
|
|
82
|
+
};
|
|
83
|
+
push_credential_sid?: string;
|
|
84
|
+
endpoint_id?: string;
|
|
85
|
+
}
|
|
86
|
+
interface PlaybackGrantOptions {
|
|
87
|
+
grant?: object;
|
|
88
|
+
}
|
|
89
|
+
interface PlaybackGrantPayload {
|
|
90
|
+
grant?: object;
|
|
91
|
+
}
|
|
92
|
+
interface AccessTokenOptions {
|
|
93
|
+
/**
|
|
94
|
+
* Time to live in seconds
|
|
95
|
+
*/
|
|
96
|
+
ttl?: number;
|
|
97
|
+
/**
|
|
98
|
+
* The identity of the first person. Required.
|
|
99
|
+
*/
|
|
100
|
+
identity: string;
|
|
101
|
+
/**
|
|
102
|
+
* Time from epoch in seconds for not before value
|
|
103
|
+
*/
|
|
104
|
+
nbf?: number;
|
|
105
|
+
/**
|
|
106
|
+
* The region value associated with this account
|
|
107
|
+
*/
|
|
108
|
+
region?: string;
|
|
109
|
+
}
|
|
110
|
+
class TaskRouterGrant extends Grant<TaskRouterGrantOptions, TaskRouterGrantPayload, "task_router"> implements TaskRouterGrantOptions {
|
|
111
|
+
workspaceSid?: string;
|
|
112
|
+
workerSid?: string;
|
|
113
|
+
role?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @param options - ...
|
|
116
|
+
* @param options.workspaceSid - The workspace unique ID
|
|
117
|
+
* @param options.workerSid - The worker unique ID
|
|
118
|
+
* @param options.role - The role of the grant
|
|
119
|
+
*/
|
|
120
|
+
constructor(options?: TaskRouterGrantOptions);
|
|
121
|
+
toPayload(): TaskRouterGrantPayload;
|
|
122
|
+
}
|
|
123
|
+
class ChatGrant extends Grant<ChatGrantOptions, ChatGrantPayload, "chat"> implements ChatGrantOptions {
|
|
124
|
+
serviceSid?: string;
|
|
125
|
+
endpointId?: string;
|
|
126
|
+
deploymentRoleSid?: string;
|
|
127
|
+
pushCredentialSid?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @param options - ...
|
|
130
|
+
* @param options.serviceSid - The service unique ID
|
|
131
|
+
* @param options.endpointId - The endpoint ID
|
|
132
|
+
* @param options.deploymentRoleSid - SID of the deployment role to be
|
|
133
|
+
* assigned to the user
|
|
134
|
+
* @param options.pushCredentialSid - The Push Credentials SID
|
|
135
|
+
*/
|
|
136
|
+
constructor(options?: ChatGrantOptions);
|
|
137
|
+
toPayload(): ChatGrantPayload;
|
|
138
|
+
}
|
|
139
|
+
class VideoGrant extends Grant<VideoGrantOptions, VideoGrantPayload, "video"> implements VideoGrantOptions {
|
|
140
|
+
room?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @param options - ...
|
|
143
|
+
* @param options.room - The Room name or Room sid.
|
|
144
|
+
*/
|
|
145
|
+
constructor(options?: VideoGrantOptions);
|
|
146
|
+
toPayload(): VideoGrantPayload;
|
|
147
|
+
}
|
|
148
|
+
class SyncGrant extends Grant<SyncGrantOptions, SyncGrantPayload, "data_sync"> implements SyncGrantOptions {
|
|
149
|
+
serviceSid?: string;
|
|
150
|
+
endpointId?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @param options.serviceSid - The service unique ID
|
|
153
|
+
* @param options.endpointId - The endpoint ID
|
|
154
|
+
*/
|
|
155
|
+
constructor(options?: SyncGrantOptions);
|
|
156
|
+
toPayload(): SyncGrantPayload;
|
|
157
|
+
}
|
|
158
|
+
class VoiceGrant extends Grant<VoiceGrantOptions, VoiceGrantPayload, "voice"> implements VoiceGrantOptions {
|
|
159
|
+
incomingAllow?: boolean;
|
|
160
|
+
outgoingApplicationSid?: string;
|
|
161
|
+
outgoingApplicationParams?: object;
|
|
162
|
+
pushCredentialSid?: string;
|
|
163
|
+
endpointId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* @param options - ...
|
|
166
|
+
* @param options.incomingAllow - Whether or not this endpoint is allowed to receive incoming calls as grants.identity
|
|
167
|
+
* @param options.outgoingApplicationSid - application sid to call when placing outgoing call
|
|
168
|
+
* @param options.outgoingApplicationParams - request params to pass to the application
|
|
169
|
+
* @param options.pushCredentialSid - Push Credential Sid to use when registering to receive incoming call notifications
|
|
170
|
+
* @param options.endpointId - Specify an endpoint identifier for this device, which will allow the developer
|
|
171
|
+
* to direct calls to a specific endpoint when multiple devices are associated with a single identity
|
|
172
|
+
*/
|
|
173
|
+
constructor(options?: VoiceGrantOptions);
|
|
174
|
+
toPayload(): VoiceGrantPayload;
|
|
175
|
+
}
|
|
176
|
+
class PlaybackGrant extends Grant<PlaybackGrantOptions, PlaybackGrantPayload, "player"> implements PlaybackGrantOptions {
|
|
177
|
+
grant?: object;
|
|
178
|
+
/**
|
|
179
|
+
* @param options - ...
|
|
180
|
+
* @param options.grant - The PlaybackGrant retrieved from Twilio's API
|
|
181
|
+
*/
|
|
182
|
+
constructor(options?: PlaybackGrantOptions);
|
|
183
|
+
toPayload(): PlaybackGrantPayload;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
export = AccessToken;
|