twilio 5.2.1 → 5.2.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.
Files changed (52) hide show
  1. package/lib/rest/Twilio.d.ts +0 -5
  2. package/lib/rest/Twilio.js +0 -6
  3. package/lib/rest/api/v2010/account/call/transcription.d.ts +4 -400
  4. package/lib/rest/api/v2010/account/call/transcription.js +0 -396
  5. package/lib/rest/api/v2010/account/message.d.ts +2 -2
  6. package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.d.ts +89 -0
  7. package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.js +127 -0
  8. package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +8 -0
  9. package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +13 -0
  10. package/lib/rest/content/v1/content.d.ts +22 -0
  11. package/lib/rest/content/v1/content.js +13 -1
  12. package/lib/rest/flexApi/v2/flexUser.d.ts +64 -0
  13. package/lib/rest/flexApi/v2/flexUser.js +41 -0
  14. package/lib/rest/insights/v1/callSummaries.d.ts +57 -9
  15. package/lib/rest/insights/v1/callSummaries.js +18 -2
  16. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +12 -0
  17. package/lib/rest/intelligence/v2/transcript/sentence.js +4 -0
  18. package/lib/rest/marketplace/V1.d.ts +5 -0
  19. package/lib/rest/marketplace/V1.js +7 -0
  20. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +15 -15
  21. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +7 -7
  22. package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +29 -0
  23. package/lib/rest/marketplace/v1/moduleDataManagement.js +4 -0
  24. package/lib/rest/marketplace/v1/referralConversion.d.ts +90 -0
  25. package/lib/rest/marketplace/v1/referralConversion.js +106 -0
  26. package/lib/rest/messaging/v1/externalCampaign.d.ts +2 -0
  27. package/lib/rest/messaging/v1/externalCampaign.js +2 -0
  28. package/lib/rest/messaging/v1/service/channelSender.d.ts +33 -0
  29. package/lib/rest/messaging/v1/service/channelSender.js +40 -0
  30. package/lib/rest/numbers/V2.d.ts +5 -0
  31. package/lib/rest/numbers/V2.js +6 -0
  32. package/lib/rest/numbers/v1/portingPortIn.d.ts +7 -10
  33. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +25 -16
  34. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +2 -0
  35. package/lib/rest/numbers/v1/portingPortability.d.ts +5 -5
  36. package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +3 -3
  37. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +3 -3
  38. package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +117 -0
  39. package/lib/rest/numbers/v1/signingRequestConfiguration.js +70 -1
  40. package/lib/rest/numbers/v2/bundleClone.d.ts +153 -0
  41. package/lib/rest/numbers/v2/bundleClone.js +136 -0
  42. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +2 -0
  43. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +2 -0
  44. package/lib/rest/taskrouter/v1/workspace/task.d.ts +2 -2
  45. package/lib/rest/trusthub/v1/complianceInquiries.d.ts +4 -0
  46. package/lib/rest/trusthub/v1/complianceInquiries.js +4 -0
  47. package/lib/rest/verify/v2/service.d.ts +3 -3
  48. package/package.json +1 -1
  49. package/lib/rest/PreviewIam.d.ts +0 -4
  50. package/lib/rest/PreviewIam.js +0 -8
  51. package/lib/rest/PreviewIamBase.d.ts +0 -10
  52. package/lib/rest/PreviewIamBase.js +0 -26
@@ -3,6 +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 V2010 from "../../../../V2010";
6
+ import { DataListInstance } from "./payload/data";
6
7
  /**
7
8
  * Options to pass to each
8
9
  */
@@ -37,6 +38,7 @@ export interface PayloadListInstancePageOptions {
37
38
  pageToken?: string;
38
39
  }
39
40
  export interface PayloadContext {
41
+ data: DataListInstance;
40
42
  /**
41
43
  * Remove a PayloadInstance
42
44
  *
@@ -69,7 +71,9 @@ export declare class PayloadContextImpl implements PayloadContext {
69
71
  protected _version: V2010;
70
72
  protected _solution: PayloadContextSolution;
71
73
  protected _uri: string;
74
+ protected _data?: DataListInstance;
72
75
  constructor(_version: V2010, accountSid: string, referenceSid: string, addOnResultSid: string, sid: string);
76
+ get data(): DataListInstance;
73
77
  remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
74
78
  fetch(callback?: (error: Error | null, item?: PayloadInstance) => any): Promise<PayloadInstance>;
75
79
  /**
@@ -162,6 +166,10 @@ export declare class PayloadInstance {
162
166
  * @returns Resolves to processed PayloadInstance
163
167
  */
164
168
  fetch(callback?: (error: Error | null, item?: PayloadInstance) => any): Promise<PayloadInstance>;
169
+ /**
170
+ * Access the data.
171
+ */
172
+ data(): DataListInstance;
165
173
  /**
166
174
  * Provide a user-friendly representation
167
175
  *
@@ -22,6 +22,7 @@ const Page_1 = __importDefault(require("../../../../../../base/Page"));
22
22
  const deserialize = require("../../../../../../base/deserialize");
23
23
  const serialize = require("../../../../../../base/serialize");
24
24
  const utility_1 = require("../../../../../../base/utility");
25
+ const data_1 = require("./payload/data");
25
26
  class PayloadContextImpl {
26
27
  constructor(_version, accountSid, referenceSid, addOnResultSid, sid) {
27
28
  this._version = _version;
@@ -40,6 +41,12 @@ class PayloadContextImpl {
40
41
  this._solution = { accountSid, referenceSid, addOnResultSid, sid };
41
42
  this._uri = `/Accounts/${accountSid}/Recordings/${referenceSid}/AddOnResults/${addOnResultSid}/Payloads/${sid}.json`;
42
43
  }
44
+ get data() {
45
+ this._data =
46
+ this._data ||
47
+ (0, data_1.DataListInstance)(this._version, this._solution.accountSid, this._solution.referenceSid, this._solution.addOnResultSid, this._solution.sid);
48
+ return this._data;
49
+ }
43
50
  remove(callback) {
44
51
  const instance = this;
45
52
  let operationVersion = instance._version, operationPromise = operationVersion.remove({
@@ -119,6 +126,12 @@ class PayloadInstance {
119
126
  fetch(callback) {
120
127
  return this._proxy.fetch(callback);
121
128
  }
129
+ /**
130
+ * Access the data.
131
+ */
132
+ data() {
133
+ return this._proxy.data;
134
+ }
122
135
  /**
123
136
  * Provide a user-friendly representation
124
137
  *
@@ -26,6 +26,20 @@ export declare class CardAction {
26
26
  "id"?: string;
27
27
  }
28
28
  export type CardActionType = "URL" | "PHONE_NUMBER" | "QUICK_REPLY";
29
+ export declare class CarouselAction {
30
+ "type": CarouselActionType;
31
+ "title": string;
32
+ "url"?: string;
33
+ "phone"?: string;
34
+ "id"?: string;
35
+ }
36
+ export type CarouselActionType = "URL" | "PHONE_NUMBER" | "QUICK_REPLY";
37
+ export declare class CarouselCard {
38
+ "title"?: string;
39
+ "body"?: string;
40
+ "media"?: string;
41
+ "actions"?: Array<CarouselAction>;
42
+ }
29
43
  export declare class CatalogItem {
30
44
  "id"?: string;
31
45
  "sectionTitle"?: string;
@@ -81,6 +95,13 @@ export declare class TwilioCard {
81
95
  "media"?: Array<string>;
82
96
  "actions"?: Array<CardAction>;
83
97
  }
98
+ /**
99
+ * twilio/carousel templates allow you to send a single text message accompanied by a set of up to 10 carousel cards in a horizontally scrollable view
100
+ */
101
+ export declare class TwilioCarousel {
102
+ "body": string;
103
+ "cards": Array<CarouselCard>;
104
+ }
84
105
  /**
85
106
  * twilio/catalog type lets recipients view list of catalog products, ask questions about products, order products.
86
107
  */
@@ -140,6 +161,7 @@ export declare class Types {
140
161
  "twilioQuickReply"?: TwilioQuickReply | null;
141
162
  "twilioCard"?: TwilioCard | null;
142
163
  "twilioCatalog"?: TwilioCatalog | null;
164
+ "twilioCarousel"?: TwilioCarousel | null;
143
165
  "whatsappCard"?: WhatsappCard | null;
144
166
  "whatsappAuthentication"?: WhatsappAuthentication | null;
145
167
  }
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ContentPage = exports.ContentListInstance = exports.ContentInstance = exports.ContentContextImpl = exports.WhatsappCard = exports.WhatsappAuthentication = exports.Types = exports.TwilioText = exports.TwilioQuickReply = exports.TwilioMedia = exports.TwilioLocation = exports.TwilioListPicker = exports.TwilioCatalog = exports.TwilioCard = exports.TwilioCallToAction = exports.QuickReplyAction = exports.ListItem = exports.ContentCreateRequest = exports.CatalogItem = exports.CardAction = exports.CallToActionAction = exports.AuthenticationAction = void 0;
19
+ exports.ContentPage = exports.ContentListInstance = exports.ContentInstance = exports.ContentContextImpl = exports.WhatsappCard = exports.WhatsappAuthentication = exports.Types = exports.TwilioText = exports.TwilioQuickReply = exports.TwilioMedia = exports.TwilioLocation = exports.TwilioListPicker = exports.TwilioCatalog = exports.TwilioCarousel = exports.TwilioCard = exports.TwilioCallToAction = exports.QuickReplyAction = exports.ListItem = exports.ContentCreateRequest = exports.CatalogItem = exports.CarouselCard = exports.CarouselAction = exports.CardAction = exports.CallToActionAction = exports.AuthenticationAction = void 0;
20
20
  const util_1 = require("util");
21
21
  const Page_1 = __importDefault(require("../../../base/Page"));
22
22
  const deserialize = require("../../../base/deserialize");
@@ -33,6 +33,12 @@ exports.CallToActionAction = CallToActionAction;
33
33
  class CardAction {
34
34
  }
35
35
  exports.CardAction = CardAction;
36
+ class CarouselAction {
37
+ }
38
+ exports.CarouselAction = CarouselAction;
39
+ class CarouselCard {
40
+ }
41
+ exports.CarouselCard = CarouselCard;
36
42
  class CatalogItem {
37
43
  }
38
44
  exports.CatalogItem = CatalogItem;
@@ -60,6 +66,12 @@ exports.TwilioCallToAction = TwilioCallToAction;
60
66
  class TwilioCard {
61
67
  }
62
68
  exports.TwilioCard = TwilioCard;
69
+ /**
70
+ * twilio/carousel templates allow you to send a single text message accompanied by a set of up to 10 carousel cards in a horizontally scrollable view
71
+ */
72
+ class TwilioCarousel {
73
+ }
74
+ exports.TwilioCarousel = TwilioCarousel;
63
75
  /**
64
76
  * twilio/catalog type lets recipients view list of catalog products, ask questions about products, order products.
65
77
  */
@@ -1,6 +1,23 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../V2";
4
+ /**
5
+ * Options to pass to update a FlexUserInstance
6
+ */
7
+ export interface FlexUserContextUpdateOptions {
8
+ /** First name of the User. */
9
+ firstName?: string;
10
+ /** Last name of the User. */
11
+ lastName?: string;
12
+ /** Email of the User. */
13
+ email?: string;
14
+ /** Friendly name of the User. */
15
+ friendlyName?: string;
16
+ /** The unique SID identifier of the Twilio Unified User. */
17
+ userSid?: string;
18
+ /** The locale preference of the user. */
19
+ locale?: string;
20
+ }
4
21
  export interface FlexUserContext {
5
22
  /**
6
23
  * Fetch a FlexUserInstance
@@ -10,6 +27,23 @@ export interface FlexUserContext {
10
27
  * @returns Resolves to processed FlexUserInstance
11
28
  */
12
29
  fetch(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
30
+ /**
31
+ * Update a FlexUserInstance
32
+ *
33
+ * @param callback - Callback to handle processed record
34
+ *
35
+ * @returns Resolves to processed FlexUserInstance
36
+ */
37
+ update(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
38
+ /**
39
+ * Update a FlexUserInstance
40
+ *
41
+ * @param params - Parameter for request
42
+ * @param callback - Callback to handle processed record
43
+ *
44
+ * @returns Resolves to processed FlexUserInstance
45
+ */
46
+ update(params: FlexUserContextUpdateOptions, callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
13
47
  /**
14
48
  * Provide a user-friendly representation
15
49
  */
@@ -26,6 +60,7 @@ export declare class FlexUserContextImpl implements FlexUserContext {
26
60
  protected _uri: string;
27
61
  constructor(_version: V2, instanceSid: string, flexUserSid: string);
28
62
  fetch(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
63
+ update(params?: FlexUserContextUpdateOptions | ((error: Error | null, item?: FlexUserInstance) => any), callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
29
64
  /**
30
65
  * Provide a user-friendly representation
31
66
  *
@@ -47,6 +82,8 @@ interface FlexUserResource {
47
82
  username: string;
48
83
  email: string;
49
84
  friendly_name: string;
85
+ locale: string;
86
+ roles: Array<string>;
50
87
  created_date: Date;
51
88
  updated_date: Date;
52
89
  version: number;
@@ -105,6 +142,14 @@ export declare class FlexUserInstance {
105
142
  * Friendly name of the User.
106
143
  */
107
144
  friendlyName: string;
145
+ /**
146
+ * The locale preference of the user.
147
+ */
148
+ locale: string;
149
+ /**
150
+ * The roles of the user.
151
+ */
152
+ roles: Array<string>;
108
153
  /**
109
154
  * The date that this user was created, given in ISO 8601 format.
110
155
  */
@@ -127,6 +172,23 @@ export declare class FlexUserInstance {
127
172
  * @returns Resolves to processed FlexUserInstance
128
173
  */
129
174
  fetch(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
175
+ /**
176
+ * Update a FlexUserInstance
177
+ *
178
+ * @param callback - Callback to handle processed record
179
+ *
180
+ * @returns Resolves to processed FlexUserInstance
181
+ */
182
+ update(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
183
+ /**
184
+ * Update a FlexUserInstance
185
+ *
186
+ * @param params - Parameter for request
187
+ * @param callback - Callback to handle processed record
188
+ *
189
+ * @returns Resolves to processed FlexUserInstance
190
+ */
191
+ update(params: FlexUserContextUpdateOptions, callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
130
192
  /**
131
193
  * Provide a user-friendly representation
132
194
  *
@@ -145,6 +207,8 @@ export declare class FlexUserInstance {
145
207
  username: string;
146
208
  email: string;
147
209
  friendlyName: string;
210
+ locale: string;
211
+ roles: string[];
148
212
  createdDate: Date;
149
213
  updatedDate: Date;
150
214
  version: number;
@@ -40,6 +40,40 @@ class FlexUserContextImpl {
40
40
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
41
41
  return operationPromise;
42
42
  }
43
+ update(params, callback) {
44
+ if (params instanceof Function) {
45
+ callback = params;
46
+ params = {};
47
+ }
48
+ else {
49
+ params = params || {};
50
+ }
51
+ let data = {};
52
+ if (params["firstName"] !== undefined)
53
+ data["FirstName"] = params["firstName"];
54
+ if (params["lastName"] !== undefined)
55
+ data["LastName"] = params["lastName"];
56
+ if (params["email"] !== undefined)
57
+ data["Email"] = params["email"];
58
+ if (params["friendlyName"] !== undefined)
59
+ data["FriendlyName"] = params["friendlyName"];
60
+ if (params["userSid"] !== undefined)
61
+ data["UserSid"] = params["userSid"];
62
+ if (params["locale"] !== undefined)
63
+ data["Locale"] = params["locale"];
64
+ const headers = {};
65
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
66
+ const instance = this;
67
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
68
+ uri: instance._uri,
69
+ method: "post",
70
+ data,
71
+ headers,
72
+ });
73
+ operationPromise = operationPromise.then((payload) => new FlexUserInstance(operationVersion, payload, instance._solution.instanceSid, instance._solution.flexUserSid));
74
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
75
+ return operationPromise;
76
+ }
43
77
  /**
44
78
  * Provide a user-friendly representation
45
79
  *
@@ -68,6 +102,8 @@ class FlexUserInstance {
68
102
  this.username = payload.username;
69
103
  this.email = payload.email;
70
104
  this.friendlyName = payload.friendly_name;
105
+ this.locale = payload.locale;
106
+ this.roles = payload.roles;
71
107
  this.createdDate = deserialize.iso8601DateTime(payload.created_date);
72
108
  this.updatedDate = deserialize.iso8601DateTime(payload.updated_date);
73
109
  this.version = deserialize.integer(payload.version);
@@ -93,6 +129,9 @@ class FlexUserInstance {
93
129
  fetch(callback) {
94
130
  return this._proxy.fetch(callback);
95
131
  }
132
+ update(params, callback) {
133
+ return this._proxy.update(params, callback);
134
+ }
96
135
  /**
97
136
  * Provide a user-friendly representation
98
137
  *
@@ -112,6 +151,8 @@ class FlexUserInstance {
112
151
  username: this.username,
113
152
  email: this.email,
114
153
  friendlyName: this.friendlyName,
154
+ locale: this.locale,
155
+ roles: this.roles,
115
156
  createdDate: this.createdDate,
116
157
  updatedDate: this.updatedDate,
117
158
  version: this.version,
@@ -25,9 +25,7 @@ export interface CallSummariesListInstanceEachOptions {
25
25
  fromCountryCode?: string;
26
26
  /** A destination country code. Based on phone number in To. */
27
27
  toCountryCode?: string;
28
- /** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
29
- branded?: boolean;
30
- /** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
28
+ /** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of \'true\' or \'false\'. */
31
29
  verifiedCaller?: boolean;
32
30
  /** A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). */
33
31
  hasTag?: boolean;
@@ -61,6 +59,24 @@ export interface CallSummariesListInstanceEachOptions {
61
59
  spamAnnotation?: boolean;
62
60
  /** A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
63
61
  callScoreAnnotation?: string;
62
+ /** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of \'true\' or \'false\' */
63
+ brandedEnabled?: boolean;
64
+ /** A boolean flag indicating whether or not the phone number had voice integrity enabled.One of \'true\' or \'false\' */
65
+ voiceIntegrityEnabled?: boolean;
66
+ /** A unique SID identifier of the Branded Call. */
67
+ brandedBundleSid?: string;
68
+ /** A unique SID identifier of the Voice Integrity Profile. */
69
+ voiceIntegrityBundleSid?: string;
70
+ /** A Voice Integrity Use Case . Is of type enum. One of \'abandoned_cart\', \'appointment_reminders\', \'appointment_scheduling\', \'asset_management\', \'automated_support\', \'call_tracking\', \'click_to_call\', \'contact_tracing\', \'contactless_delivery\', \'customer_support\', \'dating/social\', \'delivery_notifications\', \'distance_learning\', \'emergency_notifications\', \'employee_notifications\', \'exam_proctoring\', \'field_notifications\', \'first_responder\', \'fraud_alerts\', \'group_messaging\', \'identify_&_verification\', \'intelligent_routing\', \'lead_alerts\', \'lead_distribution\', \'lead_generation\', \'lead_management\', \'lead_nurturing\', \'marketing_events\', \'mass_alerts\', \'meetings/collaboration\', \'order_notifications\', \'outbound_dialer\', \'pharmacy\', \'phone_system\', \'purchase_confirmation\', \'remote_appointments\', \'rewards_program\', \'self-service\', \'service_alerts\', \'shift_management\', \'survey/research\', \'telehealth\', \'telemarketing\', \'therapy_(individual+group)\'. */
71
+ voiceIntegrityUseCase?: string;
72
+ /** A Business Identity of the calls. Is of type enum. One of \'direct_customer\', \'isv_reseller_or_partner\'. */
73
+ businessProfileIdentity?: string;
74
+ /** A Business Industry of the calls. Is of type enum. One of \'automotive\', \'agriculture\', \'banking\', \'consumer\', \'construction\', \'education\', \'engineering\', \'energy\', \'oil_and_gas\', \'fast_moving_consumer_goods\', \'financial\', \'fintech\', \'food_and_beverage\', \'government\', \'healthcare\', \'hospitality\', \'insurance\', \'legal\', \'manufacturing\', \'media\', \'online\', \'professional_services\', \'raw_materials\', \'real_estate\', \'religion\', \'retail\', \'jewelry\', \'technology\', \'telecommunications\', \'transportation\', \'travel\', \'electronics\', \'not_for_profit\' */
75
+ businessProfileIndustry?: string;
76
+ /** A unique SID identifier of the Business Profile. */
77
+ businessProfileBundleSid?: string;
78
+ /** A Business Profile Type of the calls. Is of type enum. One of \'primary\', \'secondary\'. */
79
+ businessProfileType?: string;
64
80
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
65
81
  pageSize?: number;
66
82
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -86,9 +102,7 @@ export interface CallSummariesListInstanceOptions {
86
102
  fromCountryCode?: string;
87
103
  /** A destination country code. Based on phone number in To. */
88
104
  toCountryCode?: string;
89
- /** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
90
- branded?: boolean;
91
- /** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
105
+ /** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of \'true\' or \'false\'. */
92
106
  verifiedCaller?: boolean;
93
107
  /** A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). */
94
108
  hasTag?: boolean;
@@ -122,6 +136,24 @@ export interface CallSummariesListInstanceOptions {
122
136
  spamAnnotation?: boolean;
123
137
  /** A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
124
138
  callScoreAnnotation?: string;
139
+ /** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of \'true\' or \'false\' */
140
+ brandedEnabled?: boolean;
141
+ /** A boolean flag indicating whether or not the phone number had voice integrity enabled.One of \'true\' or \'false\' */
142
+ voiceIntegrityEnabled?: boolean;
143
+ /** A unique SID identifier of the Branded Call. */
144
+ brandedBundleSid?: string;
145
+ /** A unique SID identifier of the Voice Integrity Profile. */
146
+ voiceIntegrityBundleSid?: string;
147
+ /** A Voice Integrity Use Case . Is of type enum. One of \'abandoned_cart\', \'appointment_reminders\', \'appointment_scheduling\', \'asset_management\', \'automated_support\', \'call_tracking\', \'click_to_call\', \'contact_tracing\', \'contactless_delivery\', \'customer_support\', \'dating/social\', \'delivery_notifications\', \'distance_learning\', \'emergency_notifications\', \'employee_notifications\', \'exam_proctoring\', \'field_notifications\', \'first_responder\', \'fraud_alerts\', \'group_messaging\', \'identify_&_verification\', \'intelligent_routing\', \'lead_alerts\', \'lead_distribution\', \'lead_generation\', \'lead_management\', \'lead_nurturing\', \'marketing_events\', \'mass_alerts\', \'meetings/collaboration\', \'order_notifications\', \'outbound_dialer\', \'pharmacy\', \'phone_system\', \'purchase_confirmation\', \'remote_appointments\', \'rewards_program\', \'self-service\', \'service_alerts\', \'shift_management\', \'survey/research\', \'telehealth\', \'telemarketing\', \'therapy_(individual+group)\'. */
148
+ voiceIntegrityUseCase?: string;
149
+ /** A Business Identity of the calls. Is of type enum. One of \'direct_customer\', \'isv_reseller_or_partner\'. */
150
+ businessProfileIdentity?: string;
151
+ /** A Business Industry of the calls. Is of type enum. One of \'automotive\', \'agriculture\', \'banking\', \'consumer\', \'construction\', \'education\', \'engineering\', \'energy\', \'oil_and_gas\', \'fast_moving_consumer_goods\', \'financial\', \'fintech\', \'food_and_beverage\', \'government\', \'healthcare\', \'hospitality\', \'insurance\', \'legal\', \'manufacturing\', \'media\', \'online\', \'professional_services\', \'raw_materials\', \'real_estate\', \'religion\', \'retail\', \'jewelry\', \'technology\', \'telecommunications\', \'transportation\', \'travel\', \'electronics\', \'not_for_profit\' */
152
+ businessProfileIndustry?: string;
153
+ /** A unique SID identifier of the Business Profile. */
154
+ businessProfileBundleSid?: string;
155
+ /** A Business Profile Type of the calls. Is of type enum. One of \'primary\', \'secondary\'. */
156
+ businessProfileType?: string;
125
157
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
126
158
  pageSize?: number;
127
159
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -143,9 +175,7 @@ export interface CallSummariesListInstancePageOptions {
143
175
  fromCountryCode?: string;
144
176
  /** A destination country code. Based on phone number in To. */
145
177
  toCountryCode?: string;
146
- /** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
147
- branded?: boolean;
148
- /** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
178
+ /** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of \'true\' or \'false\'. */
149
179
  verifiedCaller?: boolean;
150
180
  /** A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). */
151
181
  hasTag?: boolean;
@@ -179,6 +209,24 @@ export interface CallSummariesListInstancePageOptions {
179
209
  spamAnnotation?: boolean;
180
210
  /** A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
181
211
  callScoreAnnotation?: string;
212
+ /** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of \'true\' or \'false\' */
213
+ brandedEnabled?: boolean;
214
+ /** A boolean flag indicating whether or not the phone number had voice integrity enabled.One of \'true\' or \'false\' */
215
+ voiceIntegrityEnabled?: boolean;
216
+ /** A unique SID identifier of the Branded Call. */
217
+ brandedBundleSid?: string;
218
+ /** A unique SID identifier of the Voice Integrity Profile. */
219
+ voiceIntegrityBundleSid?: string;
220
+ /** A Voice Integrity Use Case . Is of type enum. One of \'abandoned_cart\', \'appointment_reminders\', \'appointment_scheduling\', \'asset_management\', \'automated_support\', \'call_tracking\', \'click_to_call\', \'contact_tracing\', \'contactless_delivery\', \'customer_support\', \'dating/social\', \'delivery_notifications\', \'distance_learning\', \'emergency_notifications\', \'employee_notifications\', \'exam_proctoring\', \'field_notifications\', \'first_responder\', \'fraud_alerts\', \'group_messaging\', \'identify_&_verification\', \'intelligent_routing\', \'lead_alerts\', \'lead_distribution\', \'lead_generation\', \'lead_management\', \'lead_nurturing\', \'marketing_events\', \'mass_alerts\', \'meetings/collaboration\', \'order_notifications\', \'outbound_dialer\', \'pharmacy\', \'phone_system\', \'purchase_confirmation\', \'remote_appointments\', \'rewards_program\', \'self-service\', \'service_alerts\', \'shift_management\', \'survey/research\', \'telehealth\', \'telemarketing\', \'therapy_(individual+group)\'. */
221
+ voiceIntegrityUseCase?: string;
222
+ /** A Business Identity of the calls. Is of type enum. One of \'direct_customer\', \'isv_reseller_or_partner\'. */
223
+ businessProfileIdentity?: string;
224
+ /** A Business Industry of the calls. Is of type enum. One of \'automotive\', \'agriculture\', \'banking\', \'consumer\', \'construction\', \'education\', \'engineering\', \'energy\', \'oil_and_gas\', \'fast_moving_consumer_goods\', \'financial\', \'fintech\', \'food_and_beverage\', \'government\', \'healthcare\', \'hospitality\', \'insurance\', \'legal\', \'manufacturing\', \'media\', \'online\', \'professional_services\', \'raw_materials\', \'real_estate\', \'religion\', \'retail\', \'jewelry\', \'technology\', \'telecommunications\', \'transportation\', \'travel\', \'electronics\', \'not_for_profit\' */
225
+ businessProfileIndustry?: string;
226
+ /** A unique SID identifier of the Business Profile. */
227
+ businessProfileBundleSid?: string;
228
+ /** A Business Profile Type of the calls. Is of type enum. One of \'primary\', \'secondary\'. */
229
+ businessProfileType?: string;
182
230
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
183
231
  pageSize?: number;
184
232
  /** Page Number, this value is simply for client state */
@@ -47,8 +47,6 @@ function CallSummariesListInstance(version) {
47
47
  data["FromCountryCode"] = params["fromCountryCode"];
48
48
  if (params["toCountryCode"] !== undefined)
49
49
  data["ToCountryCode"] = params["toCountryCode"];
50
- if (params["branded"] !== undefined)
51
- data["Branded"] = serialize.bool(params["branded"]);
52
50
  if (params["verifiedCaller"] !== undefined)
53
51
  data["VerifiedCaller"] = serialize.bool(params["verifiedCaller"]);
54
52
  if (params["hasTag"] !== undefined)
@@ -84,6 +82,24 @@ function CallSummariesListInstance(version) {
84
82
  data["SpamAnnotation"] = serialize.bool(params["spamAnnotation"]);
85
83
  if (params["callScoreAnnotation"] !== undefined)
86
84
  data["CallScoreAnnotation"] = params["callScoreAnnotation"];
85
+ if (params["brandedEnabled"] !== undefined)
86
+ data["BrandedEnabled"] = serialize.bool(params["brandedEnabled"]);
87
+ if (params["voiceIntegrityEnabled"] !== undefined)
88
+ data["VoiceIntegrityEnabled"] = serialize.bool(params["voiceIntegrityEnabled"]);
89
+ if (params["brandedBundleSid"] !== undefined)
90
+ data["BrandedBundleSid"] = params["brandedBundleSid"];
91
+ if (params["voiceIntegrityBundleSid"] !== undefined)
92
+ data["VoiceIntegrityBundleSid"] = params["voiceIntegrityBundleSid"];
93
+ if (params["voiceIntegrityUseCase"] !== undefined)
94
+ data["VoiceIntegrityUseCase"] = params["voiceIntegrityUseCase"];
95
+ if (params["businessProfileIdentity"] !== undefined)
96
+ data["BusinessProfileIdentity"] = params["businessProfileIdentity"];
97
+ if (params["businessProfileIndustry"] !== undefined)
98
+ data["BusinessProfileIndustry"] = params["businessProfileIndustry"];
99
+ if (params["businessProfileBundleSid"] !== undefined)
100
+ data["BusinessProfileBundleSid"] = params["businessProfileBundleSid"];
101
+ if (params["businessProfileType"] !== undefined)
102
+ data["BusinessProfileType"] = params["businessProfileType"];
87
103
  if (params["pageSize"] !== undefined)
88
104
  data["PageSize"] = params["pageSize"];
89
105
  if (params.pageNumber !== undefined)
@@ -9,6 +9,8 @@ import V2 from "../../V2";
9
9
  export interface SentenceListInstanceEachOptions {
10
10
  /** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
11
11
  redacted?: boolean;
12
+ /** Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. */
13
+ wordTimestamps?: boolean;
12
14
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
13
15
  pageSize?: number;
14
16
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -24,6 +26,8 @@ export interface SentenceListInstanceEachOptions {
24
26
  export interface SentenceListInstanceOptions {
25
27
  /** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
26
28
  redacted?: boolean;
29
+ /** Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. */
30
+ wordTimestamps?: boolean;
27
31
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
28
32
  pageSize?: number;
29
33
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -35,6 +39,8 @@ export interface SentenceListInstanceOptions {
35
39
  export interface SentenceListInstancePageOptions {
36
40
  /** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
37
41
  redacted?: boolean;
42
+ /** Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. */
43
+ wordTimestamps?: boolean;
38
44
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
39
45
  pageSize?: number;
40
46
  /** Page Number, this value is simply for client state */
@@ -117,6 +123,7 @@ interface SentenceResource {
117
123
  transcript: string;
118
124
  sid: string;
119
125
  confidence: number;
126
+ words: Array<any>;
120
127
  }
121
128
  export declare class SentenceInstance {
122
129
  protected _version: V2;
@@ -146,6 +153,10 @@ export declare class SentenceInstance {
146
153
  */
147
154
  sid: string;
148
155
  confidence: number;
156
+ /**
157
+ * Detailed information for each of the words of the given Sentence.
158
+ */
159
+ words: Array<any>;
149
160
  /**
150
161
  * Provide a user-friendly representation
151
162
  *
@@ -159,6 +170,7 @@ export declare class SentenceInstance {
159
170
  transcript: string;
160
171
  sid: string;
161
172
  confidence: number;
173
+ words: any[];
162
174
  };
163
175
  [inspect.custom](_depth: any, options: InspectOptions): string;
164
176
  }
@@ -41,6 +41,8 @@ function SentenceListInstance(version, transcriptSid) {
41
41
  let data = {};
42
42
  if (params["redacted"] !== undefined)
43
43
  data["Redacted"] = serialize.bool(params["redacted"]);
44
+ if (params["wordTimestamps"] !== undefined)
45
+ data["WordTimestamps"] = serialize.bool(params["wordTimestamps"]);
44
46
  if (params["pageSize"] !== undefined)
45
47
  data["PageSize"] = params["pageSize"];
46
48
  if (params.pageNumber !== undefined)
@@ -88,6 +90,7 @@ class SentenceInstance {
88
90
  this.transcript = payload.transcript;
89
91
  this.sid = payload.sid;
90
92
  this.confidence = payload.confidence;
93
+ this.words = payload.words;
91
94
  }
92
95
  /**
93
96
  * Provide a user-friendly representation
@@ -103,6 +106,7 @@ class SentenceInstance {
103
106
  transcript: this.transcript,
104
107
  sid: this.sid,
105
108
  confidence: this.confidence,
109
+ words: this.words,
106
110
  };
107
111
  }
108
112
  [util_1.inspect.custom](_depth, options) {
@@ -3,6 +3,7 @@ import Version from "../../base/Version";
3
3
  import { AvailableAddOnListInstance } from "./v1/availableAddOn";
4
4
  import { InstalledAddOnListInstance } from "./v1/installedAddOn";
5
5
  import { ModuleDataManagementListInstance } from "./v1/moduleDataManagement";
6
+ import { ReferralConversionListInstance } from "./v1/referralConversion";
6
7
  export default class V1 extends Version {
7
8
  /**
8
9
  * Initialize the V1 version of Marketplace
@@ -16,10 +17,14 @@ export default class V1 extends Version {
16
17
  protected _installedAddOns?: InstalledAddOnListInstance;
17
18
  /** moduleDataManagement - { Twilio.Marketplace.V1.ModuleDataManagementListInstance } resource */
18
19
  protected _moduleDataManagement?: ModuleDataManagementListInstance;
20
+ /** referralConversion - { Twilio.Marketplace.V1.ReferralConversionListInstance } resource */
21
+ protected _referralConversion?: ReferralConversionListInstance;
19
22
  /** Getter for availableAddOns resource */
20
23
  get availableAddOns(): AvailableAddOnListInstance;
21
24
  /** Getter for installedAddOns resource */
22
25
  get installedAddOns(): InstalledAddOnListInstance;
23
26
  /** Getter for moduleDataManagement resource */
24
27
  get moduleDataManagement(): ModuleDataManagementListInstance;
28
+ /** Getter for referralConversion resource */
29
+ get referralConversion(): ReferralConversionListInstance;
25
30
  }
@@ -20,6 +20,7 @@ const Version_1 = __importDefault(require("../../base/Version"));
20
20
  const availableAddOn_1 = require("./v1/availableAddOn");
21
21
  const installedAddOn_1 = require("./v1/installedAddOn");
22
22
  const moduleDataManagement_1 = require("./v1/moduleDataManagement");
23
+ const referralConversion_1 = require("./v1/referralConversion");
23
24
  class V1 extends Version_1.default {
24
25
  /**
25
26
  * Initialize the V1 version of Marketplace
@@ -47,5 +48,11 @@ class V1 extends Version_1.default {
47
48
  this._moduleDataManagement || (0, moduleDataManagement_1.ModuleDataManagementListInstance)(this);
48
49
  return this._moduleDataManagement;
49
50
  }
51
+ /** Getter for referralConversion resource */
52
+ get referralConversion() {
53
+ this._referralConversion =
54
+ this._referralConversion || (0, referralConversion_1.ReferralConversionListInstance)(this);
55
+ return this._referralConversion;
56
+ }
50
57
  }
51
58
  exports.default = V1;
@@ -1,19 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../V1";
4
- export declare class CreateBillingUsageRequest {
5
- "billableItems"?: Array<CreateBillingUsageRequestBillableItems>;
6
- }
7
- export declare class CreateBillingUsageRequestBillableItems {
8
- /**
9
- *
10
- */
11
- "quantity": number;
12
- /**
13
- *
14
- */
15
- "sid": string;
16
- }
17
4
  export declare class MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems {
18
5
  /**
19
6
  *
@@ -28,12 +15,25 @@ export declare class MarketplaceV1InstalledAddOnBillingUsageResponseBillableItem
28
15
  */
29
16
  "submitted"?: boolean;
30
17
  }
18
+ export declare class MarketplaceV1InstalledAddOnInstalledAddOnUsage {
19
+ "billableItems": Array<MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>;
20
+ }
21
+ export declare class MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems {
22
+ /**
23
+ * Any floating number greater than 0.
24
+ */
25
+ "quantity": number;
26
+ /**
27
+ * BillingSid to use for billing.
28
+ */
29
+ "sid": string;
30
+ }
31
31
  /**
32
32
  * Options to pass to create a InstalledAddOnUsageInstance
33
33
  */
34
34
  export interface InstalledAddOnUsageListInstanceCreateOptions {
35
35
  /** */
36
- createBillingUsageRequest: CreateBillingUsageRequest;
36
+ marketplaceV1InstalledAddOnInstalledAddOnUsage: MarketplaceV1InstalledAddOnInstalledAddOnUsage;
37
37
  }
38
38
  export interface InstalledAddOnUsageSolution {
39
39
  installedAddOnSid: string;
@@ -50,7 +50,7 @@ export interface InstalledAddOnUsageListInstance {
50
50
  *
51
51
  * @returns Resolves to processed InstalledAddOnUsageInstance
52
52
  */
53
- create(params: CreateBillingUsageRequest, callback?: (error: Error | null, item?: InstalledAddOnUsageInstance) => any): Promise<InstalledAddOnUsageInstance>;
53
+ create(params: MarketplaceV1InstalledAddOnInstalledAddOnUsage, callback?: (error: Error | null, item?: InstalledAddOnUsageInstance) => any): Promise<InstalledAddOnUsageInstance>;
54
54
  /**
55
55
  * Provide a user-friendly representation
56
56
  */