twilio 5.7.2 → 5.7.3
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/rest/lookups/v2/lookupOverride.d.ts +16 -1
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +3 -3
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +3 -3
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +3 -3
- package/lib/rest/messaging/v1/usecase.d.ts +3 -3
- package/lib/rest/numbers/V1.d.ts +5 -5
- package/lib/rest/numbers/V1.js +8 -6
- package/lib/rest/numbers/v1/{webhook.d.ts → portingWebhookConfigurationFetch.d.ts} +10 -10
- package/lib/rest/numbers/v1/{webhook.js → portingWebhookConfigurationFetch.js} +6 -6
- package/lib/rest/sync/v1/service/document.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/sync/v1/service/syncStream/streamMessage.d.ts +1 -1
- package/lib/rest/video/v1/composition.d.ts +1 -1
- package/lib/rest/video/v1/compositionHook.d.ts +2 -2
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -1
- package/lib/rest/video/v1/room/recordingRules.d.ts +1 -1
- package/lib/rest/video/v1/room/transcriptions.d.ts +8 -8
- package/lib/rest/video/v1/room/transcriptions.js +2 -2
- package/lib/rest/video/v1/room.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../V2";
|
|
4
4
|
export declare class OverridesRequest {
|
|
5
|
+
/**
|
|
6
|
+
* The new line type to override the original line type
|
|
7
|
+
*/
|
|
5
8
|
"line_type"?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The reason for the override
|
|
11
|
+
*/
|
|
6
12
|
"reason"?: string;
|
|
7
13
|
}
|
|
8
14
|
/**
|
|
@@ -121,8 +127,17 @@ export declare class LookupOverrideInstance {
|
|
|
121
127
|
protected _solution: LookupOverrideContextSolution;
|
|
122
128
|
protected _context?: LookupOverrideContext;
|
|
123
129
|
constructor(_version: V2, payload: LookupOverrideResource, field?: string, phoneNumber?: string);
|
|
130
|
+
/**
|
|
131
|
+
* The phone number for which the override was created
|
|
132
|
+
*/
|
|
124
133
|
phoneNumber: string;
|
|
134
|
+
/**
|
|
135
|
+
* The original line type
|
|
136
|
+
*/
|
|
125
137
|
originalLineType: string;
|
|
138
|
+
/**
|
|
139
|
+
* The new line type after the override
|
|
140
|
+
*/
|
|
126
141
|
overriddenLineType: string;
|
|
127
142
|
/**
|
|
128
143
|
* The reason for the override
|
|
@@ -130,7 +145,7 @@ export declare class LookupOverrideInstance {
|
|
|
130
145
|
overrideReason: string;
|
|
131
146
|
overrideTimestamp: Date;
|
|
132
147
|
/**
|
|
133
|
-
* The user who
|
|
148
|
+
* The Account SID for the user who made the override
|
|
134
149
|
*/
|
|
135
150
|
overriddenByAccountSid: string;
|
|
136
151
|
/**
|
|
@@ -175,7 +175,7 @@ interface UsAppToPersonResource {
|
|
|
175
175
|
date_updated: Date;
|
|
176
176
|
url: string;
|
|
177
177
|
mock: boolean;
|
|
178
|
-
errors: Array<
|
|
178
|
+
errors: Array<any>;
|
|
179
179
|
}
|
|
180
180
|
export declare class UsAppToPersonInstance {
|
|
181
181
|
protected _version: V1;
|
|
@@ -293,7 +293,7 @@ export declare class UsAppToPersonInstance {
|
|
|
293
293
|
/**
|
|
294
294
|
* Details indicating why a campaign registration failed. These errors can indicate one or more fields that were incorrect or did not meet review requirements.
|
|
295
295
|
*/
|
|
296
|
-
errors: Array<
|
|
296
|
+
errors: Array<any>;
|
|
297
297
|
private get _proxy();
|
|
298
298
|
/**
|
|
299
299
|
* Remove a UsAppToPersonInstance
|
|
@@ -353,7 +353,7 @@ export declare class UsAppToPersonInstance {
|
|
|
353
353
|
dateUpdated: Date;
|
|
354
354
|
url: string;
|
|
355
355
|
mock: boolean;
|
|
356
|
-
errors:
|
|
356
|
+
errors: any[];
|
|
357
357
|
};
|
|
358
358
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
359
359
|
}
|
|
@@ -40,7 +40,7 @@ export interface UsAppToPersonUsecaseListInstance {
|
|
|
40
40
|
}
|
|
41
41
|
export declare function UsAppToPersonUsecaseListInstance(version: V1, messagingServiceSid: string): UsAppToPersonUsecaseListInstance;
|
|
42
42
|
interface UsAppToPersonUsecaseResource {
|
|
43
|
-
us_app_to_person_usecases: Array<
|
|
43
|
+
us_app_to_person_usecases: Array<any>;
|
|
44
44
|
}
|
|
45
45
|
export declare class UsAppToPersonUsecaseInstance {
|
|
46
46
|
protected _version: V1;
|
|
@@ -48,14 +48,14 @@ export declare class UsAppToPersonUsecaseInstance {
|
|
|
48
48
|
/**
|
|
49
49
|
* Human readable name, code, description and post_approval_required (indicates whether or not post approval is required for this Use Case) of A2P Campaign Use Cases.
|
|
50
50
|
*/
|
|
51
|
-
usAppToPersonUsecases: Array<
|
|
51
|
+
usAppToPersonUsecases: Array<any>;
|
|
52
52
|
/**
|
|
53
53
|
* Provide a user-friendly representation
|
|
54
54
|
*
|
|
55
55
|
* @returns Object
|
|
56
56
|
*/
|
|
57
57
|
toJSON(): {
|
|
58
|
-
usAppToPersonUsecases:
|
|
58
|
+
usAppToPersonUsecases: any[];
|
|
59
59
|
};
|
|
60
60
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
61
61
|
}
|
|
@@ -263,7 +263,7 @@ interface TollfreeVerificationResource {
|
|
|
263
263
|
error_code: number;
|
|
264
264
|
edit_expiration: Date;
|
|
265
265
|
edit_allowed: boolean;
|
|
266
|
-
rejection_reasons: Array<
|
|
266
|
+
rejection_reasons: Array<any>;
|
|
267
267
|
resource_links: Record<string, object>;
|
|
268
268
|
external_reference_id: string;
|
|
269
269
|
}
|
|
@@ -405,7 +405,7 @@ export declare class TollfreeVerificationInstance {
|
|
|
405
405
|
/**
|
|
406
406
|
* A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
|
|
407
407
|
*/
|
|
408
|
-
rejectionReasons: Array<
|
|
408
|
+
rejectionReasons: Array<any>;
|
|
409
409
|
/**
|
|
410
410
|
* The URLs of the documents associated with the Tollfree Verification resource.
|
|
411
411
|
*/
|
|
@@ -488,7 +488,7 @@ export declare class TollfreeVerificationInstance {
|
|
|
488
488
|
errorCode: number;
|
|
489
489
|
editExpiration: Date;
|
|
490
490
|
editAllowed: boolean;
|
|
491
|
-
rejectionReasons:
|
|
491
|
+
rejectionReasons: any[];
|
|
492
492
|
resourceLinks: Record<string, object>;
|
|
493
493
|
externalReferenceId: string;
|
|
494
494
|
};
|
|
@@ -23,7 +23,7 @@ export interface UsecaseListInstance {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function UsecaseListInstance(version: V1): UsecaseListInstance;
|
|
25
25
|
interface UsecaseResource {
|
|
26
|
-
usecases: Array<
|
|
26
|
+
usecases: Array<any>;
|
|
27
27
|
}
|
|
28
28
|
export declare class UsecaseInstance {
|
|
29
29
|
protected _version: V1;
|
|
@@ -31,14 +31,14 @@ export declare class UsecaseInstance {
|
|
|
31
31
|
/**
|
|
32
32
|
* Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases.
|
|
33
33
|
*/
|
|
34
|
-
usecases: Array<
|
|
34
|
+
usecases: Array<any>;
|
|
35
35
|
/**
|
|
36
36
|
* Provide a user-friendly representation
|
|
37
37
|
*
|
|
38
38
|
* @returns Object
|
|
39
39
|
*/
|
|
40
40
|
toJSON(): {
|
|
41
|
-
usecases:
|
|
41
|
+
usecases: any[];
|
|
42
42
|
};
|
|
43
43
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
44
44
|
}
|
package/lib/rest/numbers/V1.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNum
|
|
|
7
7
|
import { PortingPortabilityListInstance } from "./v1/portingPortability";
|
|
8
8
|
import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
|
|
9
9
|
import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
|
|
10
|
+
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
|
|
10
11
|
import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
|
|
11
|
-
import { WebhookListInstance } from "./v1/webhook";
|
|
12
12
|
export default class V1 extends Version {
|
|
13
13
|
/**
|
|
14
14
|
* Initialize the V1 version of Numbers
|
|
@@ -30,10 +30,10 @@ export default class V1 extends Version {
|
|
|
30
30
|
protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
|
|
31
31
|
/** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
|
|
32
32
|
protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
|
|
33
|
+
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
|
|
34
|
+
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
|
|
33
35
|
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
|
|
34
36
|
protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
|
|
35
|
-
/** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
|
|
36
|
-
protected _webhook?: WebhookListInstance;
|
|
37
37
|
/** Getter for bulkEligibilities resource */
|
|
38
38
|
get bulkEligibilities(): BulkEligibilityListInstance;
|
|
39
39
|
/** Getter for eligibilities resource */
|
|
@@ -48,8 +48,8 @@ export default class V1 extends Version {
|
|
|
48
48
|
get portingWebhookConfigurations(): PortingWebhookConfigurationListInstance;
|
|
49
49
|
/** Getter for portingWebhookConfigurationsDelete resource */
|
|
50
50
|
get portingWebhookConfigurationsDelete(): PortingWebhookConfigurationDeleteListInstance;
|
|
51
|
+
/** Getter for portingWebhookConfigurationFetch resource */
|
|
52
|
+
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance;
|
|
51
53
|
/** Getter for signingRequestConfigurations resource */
|
|
52
54
|
get signingRequestConfigurations(): SigningRequestConfigurationListInstance;
|
|
53
|
-
/** Getter for webhook resource */
|
|
54
|
-
get webhook(): WebhookListInstance;
|
|
55
55
|
}
|
package/lib/rest/numbers/V1.js
CHANGED
|
@@ -24,8 +24,8 @@ const portingPortInPhoneNumber_1 = require("./v1/portingPortInPhoneNumber");
|
|
|
24
24
|
const portingPortability_1 = require("./v1/portingPortability");
|
|
25
25
|
const portingWebhookConfiguration_1 = require("./v1/portingWebhookConfiguration");
|
|
26
26
|
const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
|
|
27
|
+
const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
|
|
27
28
|
const signingRequestConfiguration_1 = require("./v1/signingRequestConfiguration");
|
|
28
|
-
const webhook_1 = require("./v1/webhook");
|
|
29
29
|
class V1 extends Version_1.default {
|
|
30
30
|
/**
|
|
31
31
|
* Initialize the V1 version of Numbers
|
|
@@ -79,6 +79,13 @@ class V1 extends Version_1.default {
|
|
|
79
79
|
(0, portingWebhookConfigurationDelete_1.PortingWebhookConfigurationDeleteListInstance)(this);
|
|
80
80
|
return this._portingWebhookConfigurationsDelete;
|
|
81
81
|
}
|
|
82
|
+
/** Getter for portingWebhookConfigurationFetch resource */
|
|
83
|
+
get portingWebhookConfigurationFetch() {
|
|
84
|
+
this._portingWebhookConfigurationFetch =
|
|
85
|
+
this._portingWebhookConfigurationFetch ||
|
|
86
|
+
(0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
|
|
87
|
+
return this._portingWebhookConfigurationFetch;
|
|
88
|
+
}
|
|
82
89
|
/** Getter for signingRequestConfigurations resource */
|
|
83
90
|
get signingRequestConfigurations() {
|
|
84
91
|
this._signingRequestConfigurations =
|
|
@@ -86,10 +93,5 @@ class V1 extends Version_1.default {
|
|
|
86
93
|
(0, signingRequestConfiguration_1.SigningRequestConfigurationListInstance)(this);
|
|
87
94
|
return this._signingRequestConfigurations;
|
|
88
95
|
}
|
|
89
|
-
/** Getter for webhook resource */
|
|
90
|
-
get webhook() {
|
|
91
|
-
this._webhook = this._webhook || (0, webhook_1.WebhookListInstance)(this);
|
|
92
|
-
return this._webhook;
|
|
93
|
-
}
|
|
94
96
|
}
|
|
95
97
|
exports.default = V1;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../V1";
|
|
4
|
-
export interface
|
|
4
|
+
export interface PortingWebhookConfigurationFetchSolution {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface PortingWebhookConfigurationFetchListInstance {
|
|
7
7
|
_version: V1;
|
|
8
|
-
_solution:
|
|
8
|
+
_solution: PortingWebhookConfigurationFetchSolution;
|
|
9
9
|
_uri: string;
|
|
10
10
|
/**
|
|
11
|
-
* Fetch a
|
|
11
|
+
* Fetch a PortingWebhookConfigurationFetchInstance
|
|
12
12
|
*
|
|
13
13
|
* @param callback - Callback to handle processed record
|
|
14
14
|
*
|
|
15
|
-
* @returns Resolves to processed
|
|
15
|
+
* @returns Resolves to processed PortingWebhookConfigurationFetchInstance
|
|
16
16
|
*/
|
|
17
|
-
fetch(callback?: (error: Error | null, item?:
|
|
17
|
+
fetch(callback?: (error: Error | null, item?: PortingWebhookConfigurationFetchInstance) => any): Promise<PortingWebhookConfigurationFetchInstance>;
|
|
18
18
|
/**
|
|
19
19
|
* Provide a user-friendly representation
|
|
20
20
|
*/
|
|
21
21
|
toJSON(): any;
|
|
22
22
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
23
23
|
}
|
|
24
|
-
export declare function
|
|
25
|
-
interface
|
|
24
|
+
export declare function PortingWebhookConfigurationFetchListInstance(version: V1): PortingWebhookConfigurationFetchListInstance;
|
|
25
|
+
interface PortingWebhookConfigurationFetchResource {
|
|
26
26
|
url: string;
|
|
27
27
|
port_in_target_url: string;
|
|
28
28
|
port_out_target_url: string;
|
|
@@ -30,9 +30,9 @@ interface WebhookResource {
|
|
|
30
30
|
port_in_target_date_created: Date;
|
|
31
31
|
port_out_target_date_created: Date;
|
|
32
32
|
}
|
|
33
|
-
export declare class
|
|
33
|
+
export declare class PortingWebhookConfigurationFetchInstance {
|
|
34
34
|
protected _version: V1;
|
|
35
|
-
constructor(_version: V1, payload:
|
|
35
|
+
constructor(_version: V1, payload: PortingWebhookConfigurationFetchResource);
|
|
36
36
|
/**
|
|
37
37
|
* The URL of the webhook configuration request
|
|
38
38
|
*/
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.PortingWebhookConfigurationFetchInstance = exports.PortingWebhookConfigurationFetchListInstance = void 0;
|
|
17
17
|
const util_1 = require("util");
|
|
18
18
|
const deserialize = require("../../../base/deserialize");
|
|
19
19
|
const serialize = require("../../../base/serialize");
|
|
20
|
-
function
|
|
20
|
+
function PortingWebhookConfigurationFetchListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -30,7 +30,7 @@ function WebhookListInstance(version) {
|
|
|
30
30
|
method: "get",
|
|
31
31
|
headers,
|
|
32
32
|
});
|
|
33
|
-
operationPromise = operationPromise.then((payload) => new
|
|
33
|
+
operationPromise = operationPromise.then((payload) => new PortingWebhookConfigurationFetchInstance(operationVersion, payload));
|
|
34
34
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
35
35
|
return operationPromise;
|
|
36
36
|
};
|
|
@@ -42,8 +42,8 @@ function WebhookListInstance(version) {
|
|
|
42
42
|
};
|
|
43
43
|
return instance;
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
46
|
-
class
|
|
45
|
+
exports.PortingWebhookConfigurationFetchListInstance = PortingWebhookConfigurationFetchListInstance;
|
|
46
|
+
class PortingWebhookConfigurationFetchInstance {
|
|
47
47
|
constructor(_version, payload) {
|
|
48
48
|
this._version = _version;
|
|
49
49
|
this.url = payload.url;
|
|
@@ -72,4 +72,4 @@ class WebhookInstance {
|
|
|
72
72
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
75
|
+
exports.PortingWebhookConfigurationFetchInstance = PortingWebhookConfigurationFetchInstance;
|
|
@@ -11,7 +11,7 @@ export interface DocumentContextUpdateOptions {
|
|
|
11
11
|
/** The If-Match HTTP request header */
|
|
12
12
|
ifMatch?: string;
|
|
13
13
|
/** A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. */
|
|
14
|
-
data?:
|
|
14
|
+
data?: any;
|
|
15
15
|
/** How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync Document expires and is deleted (time-to-live). */
|
|
16
16
|
ttl?: number;
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ export interface DocumentListInstanceCreateOptions {
|
|
|
22
22
|
/** An application-defined string that uniquely identifies the Sync Document */
|
|
23
23
|
uniqueName?: string;
|
|
24
24
|
/** A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. */
|
|
25
|
-
data?:
|
|
25
|
+
data?: any;
|
|
26
26
|
/** How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Sync Document expires and is deleted (the Sync Document\\\'s time-to-live). */
|
|
27
27
|
ttl?: number;
|
|
28
28
|
}
|
|
@@ -19,7 +19,7 @@ export interface SyncListItemContextUpdateOptions {
|
|
|
19
19
|
/** If provided, applies this mutation if (and only if) the “revision” field of this [map item] matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match). */
|
|
20
20
|
ifMatch?: string;
|
|
21
21
|
/** A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. */
|
|
22
|
-
data?:
|
|
22
|
+
data?: any;
|
|
23
23
|
/** An alias for `item_ttl`. If both parameters are provided, this value is ignored. */
|
|
24
24
|
ttl?: number;
|
|
25
25
|
/** How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the List Item expires (time-to-live) and is deleted. */
|
|
@@ -32,7 +32,7 @@ export interface SyncListItemContextUpdateOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface SyncListItemListInstanceCreateOptions {
|
|
34
34
|
/** A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. */
|
|
35
|
-
data:
|
|
35
|
+
data: any;
|
|
36
36
|
/** An alias for `item_ttl`. If both parameters are provided, this value is ignored. */
|
|
37
37
|
ttl?: number;
|
|
38
38
|
/** How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the List Item expires (time-to-live) and is deleted. */
|
|
@@ -19,7 +19,7 @@ export interface SyncMapItemContextUpdateOptions {
|
|
|
19
19
|
/** If provided, applies this mutation if (and only if) the “revision” field of this [map item] matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match). */
|
|
20
20
|
ifMatch?: string;
|
|
21
21
|
/** A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. */
|
|
22
|
-
data?:
|
|
22
|
+
data?: any;
|
|
23
23
|
/** An alias for `item_ttl`. If both parameters are provided, this value is ignored. */
|
|
24
24
|
ttl?: number;
|
|
25
25
|
/** How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Map Item expires (time-to-live) and is deleted. */
|
|
@@ -34,7 +34,7 @@ export interface SyncMapItemListInstanceCreateOptions {
|
|
|
34
34
|
/** The unique, user-defined key for the Map Item. Can be up to 320 characters long. */
|
|
35
35
|
key: string;
|
|
36
36
|
/** A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. */
|
|
37
|
-
data:
|
|
37
|
+
data: any;
|
|
38
38
|
/** An alias for `item_ttl`. If both parameters are provided, this value is ignored. */
|
|
39
39
|
ttl?: number;
|
|
40
40
|
/** How long, [in seconds](https://www.twilio.com/docs/sync/limits#sync-payload-limits), before the Map Item expires (time-to-live) and is deleted. */
|
|
@@ -6,7 +6,7 @@ import V1 from "../../../V1";
|
|
|
6
6
|
*/
|
|
7
7
|
export interface StreamMessageListInstanceCreateOptions {
|
|
8
8
|
/** A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. */
|
|
9
|
-
data:
|
|
9
|
+
data: any;
|
|
10
10
|
}
|
|
11
11
|
export interface StreamMessageSolution {
|
|
12
12
|
serviceSid: string;
|
|
@@ -18,7 +18,7 @@ export interface CompositionListInstanceCreateOptions {
|
|
|
18
18
|
/** The SID of the Group Room with the media tracks to be used as composition sources. */
|
|
19
19
|
roomSid: string;
|
|
20
20
|
/** An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request */
|
|
21
|
-
videoLayout?:
|
|
21
|
+
videoLayout?: any;
|
|
22
22
|
/** An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request */
|
|
23
23
|
audioSources?: Array<string>;
|
|
24
24
|
/** An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. */
|
|
@@ -16,7 +16,7 @@ export interface CompositionHookContextUpdateOptions {
|
|
|
16
16
|
/** Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. */
|
|
17
17
|
enabled?: boolean;
|
|
18
18
|
/** A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. */
|
|
19
|
-
videoLayout?:
|
|
19
|
+
videoLayout?: any;
|
|
20
20
|
/** An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. */
|
|
21
21
|
audioSources?: Array<string>;
|
|
22
22
|
/** An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. */
|
|
@@ -41,7 +41,7 @@ export interface CompositionHookListInstanceCreateOptions {
|
|
|
41
41
|
/** Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. */
|
|
42
42
|
enabled?: boolean;
|
|
43
43
|
/** An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. */
|
|
44
|
-
videoLayout?:
|
|
44
|
+
videoLayout?: any;
|
|
45
45
|
/** An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. */
|
|
46
46
|
audioSources?: Array<string>;
|
|
47
47
|
/** An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. */
|
|
@@ -14,7 +14,7 @@ export declare class VideoV1RoomRoomParticipantRoomParticipantSubscribeRuleRules
|
|
|
14
14
|
*/
|
|
15
15
|
export interface SubscribeRulesListInstanceUpdateOptions {
|
|
16
16
|
/** A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. */
|
|
17
|
-
rules?:
|
|
17
|
+
rules?: any;
|
|
18
18
|
}
|
|
19
19
|
export interface SubscribeRulesSolution {
|
|
20
20
|
roomSid: string;
|
|
@@ -13,7 +13,7 @@ export declare class VideoV1RoomRoomRecordingRuleRules {
|
|
|
13
13
|
*/
|
|
14
14
|
export interface RecordingRulesListInstanceUpdateOptions {
|
|
15
15
|
/** A JSON-encoded array of recording rules. */
|
|
16
|
-
rules?:
|
|
16
|
+
rules?: any;
|
|
17
17
|
}
|
|
18
18
|
export interface RecordingRulesSolution {
|
|
19
19
|
roomSid: string;
|
|
@@ -6,7 +6,7 @@ import V1 from "../../V1";
|
|
|
6
6
|
/**
|
|
7
7
|
* The status of the transcriptions resource.
|
|
8
8
|
*/
|
|
9
|
-
export type TranscriptionsStatus = "
|
|
9
|
+
export type TranscriptionsStatus = "started" | "stopped" | "failed";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a TranscriptionsInstance
|
|
12
12
|
*/
|
|
@@ -106,20 +106,20 @@ export declare class TranscriptionsContextImpl implements TranscriptionsContext
|
|
|
106
106
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
107
107
|
}
|
|
108
108
|
interface TranscriptionsPayload extends TwilioResponsePayload {
|
|
109
|
-
|
|
109
|
+
transcriptions: TranscriptionsResource[];
|
|
110
110
|
}
|
|
111
111
|
interface TranscriptionsResource {
|
|
112
112
|
ttid: string;
|
|
113
113
|
account_sid: string;
|
|
114
114
|
room_sid: string;
|
|
115
115
|
status: TranscriptionsStatus;
|
|
116
|
-
identity: string;
|
|
117
116
|
date_created: Date;
|
|
118
117
|
date_updated: Date;
|
|
119
118
|
start_time: Date;
|
|
120
119
|
end_time: Date;
|
|
121
120
|
duration: number;
|
|
122
121
|
url: string;
|
|
122
|
+
configuration: Record<string, object>;
|
|
123
123
|
}
|
|
124
124
|
export declare class TranscriptionsInstance {
|
|
125
125
|
protected _version: V1;
|
|
@@ -139,10 +139,6 @@ export declare class TranscriptionsInstance {
|
|
|
139
139
|
*/
|
|
140
140
|
roomSid: string;
|
|
141
141
|
status: TranscriptionsStatus;
|
|
142
|
-
/**
|
|
143
|
-
* The application-defined string that uniquely identifies the resource\'s User within a Room. If a client joins with an existing Identity, the existing client is disconnected. See [access tokens](https://www.twilio.com/docs/video/tutorials/user-identity-access-tokens) and [limits](https://www.twilio.com/docs/video/programmable-video-limits) for more info.
|
|
144
|
-
*/
|
|
145
|
-
identity: string;
|
|
146
142
|
/**
|
|
147
143
|
* The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
148
144
|
*/
|
|
@@ -167,6 +163,10 @@ export declare class TranscriptionsInstance {
|
|
|
167
163
|
* The absolute URL of the resource.
|
|
168
164
|
*/
|
|
169
165
|
url: string;
|
|
166
|
+
/**
|
|
167
|
+
* An JSON object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
|
|
168
|
+
*/
|
|
169
|
+
configuration: Record<string, object>;
|
|
170
170
|
private get _proxy();
|
|
171
171
|
/**
|
|
172
172
|
* Fetch a TranscriptionsInstance
|
|
@@ -203,13 +203,13 @@ export declare class TranscriptionsInstance {
|
|
|
203
203
|
accountSid: string;
|
|
204
204
|
roomSid: string;
|
|
205
205
|
status: TranscriptionsStatus;
|
|
206
|
-
identity: string;
|
|
207
206
|
dateCreated: Date;
|
|
208
207
|
dateUpdated: Date;
|
|
209
208
|
startTime: Date;
|
|
210
209
|
endTime: Date;
|
|
211
210
|
duration: number;
|
|
212
211
|
url: string;
|
|
212
|
+
configuration: Record<string, object>;
|
|
213
213
|
};
|
|
214
214
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
215
215
|
}
|
|
@@ -92,13 +92,13 @@ class TranscriptionsInstance {
|
|
|
92
92
|
this.accountSid = payload.account_sid;
|
|
93
93
|
this.roomSid = payload.room_sid;
|
|
94
94
|
this.status = payload.status;
|
|
95
|
-
this.identity = payload.identity;
|
|
96
95
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
97
96
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
98
97
|
this.startTime = deserialize.iso8601DateTime(payload.start_time);
|
|
99
98
|
this.endTime = deserialize.iso8601DateTime(payload.end_time);
|
|
100
99
|
this.duration = deserialize.integer(payload.duration);
|
|
101
100
|
this.url = payload.url;
|
|
101
|
+
this.configuration = payload.configuration;
|
|
102
102
|
this._solution = { roomSid, ttid: ttid || this.ttid };
|
|
103
103
|
}
|
|
104
104
|
get _proxy() {
|
|
@@ -131,13 +131,13 @@ class TranscriptionsInstance {
|
|
|
131
131
|
accountSid: this.accountSid,
|
|
132
132
|
roomSid: this.roomSid,
|
|
133
133
|
status: this.status,
|
|
134
|
-
identity: this.identity,
|
|
135
134
|
dateCreated: this.dateCreated,
|
|
136
135
|
dateUpdated: this.dateUpdated,
|
|
137
136
|
startTime: this.startTime,
|
|
138
137
|
endTime: this.endTime,
|
|
139
138
|
duration: this.duration,
|
|
140
139
|
url: this.url,
|
|
140
|
+
configuration: this.configuration,
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -42,7 +42,7 @@ export interface RoomListInstanceCreateOptions {
|
|
|
42
42
|
/** The region for the Room\\\'s media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers). */
|
|
43
43
|
mediaRegion?: string;
|
|
44
44
|
/** A collection of Recording Rules that describe how to include or exclude matching tracks for recording */
|
|
45
|
-
recordingRules?:
|
|
45
|
+
recordingRules?: any;
|
|
46
46
|
/** A collection of properties that describe transcription behaviour. If TranscribeParticipantsOnConnect is set to true and TranscriptionsConfiguration is not provided, default settings will be used. */
|
|
47
47
|
transcriptionsConfiguration?: object;
|
|
48
48
|
/** When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. */
|