twilio 5.0.3 → 5.1.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.
Files changed (79) hide show
  1. package/README.md +1 -0
  2. package/lib/rest/ContentBase.d.ts +3 -0
  3. package/lib/rest/ContentBase.js +5 -0
  4. package/lib/rest/Twilio.d.ts +0 -5
  5. package/lib/rest/Twilio.js +0 -6
  6. package/lib/rest/api/v2010/account/call/stream.d.ts +5 -5
  7. package/lib/rest/api/v2010/account/message.d.ts +1 -1
  8. package/lib/rest/content/V2.d.ts +20 -0
  9. package/lib/rest/content/V2.js +43 -0
  10. package/lib/rest/content/v2/content.d.ts +196 -0
  11. package/lib/rest/content/v2/content.js +136 -0
  12. package/lib/rest/content/v2/contentAndApprovals.d.ts +190 -0
  13. package/lib/rest/content/v2/contentAndApprovals.js +134 -0
  14. package/lib/rest/flexApi/V2.d.ts +5 -0
  15. package/lib/rest/flexApi/V2.js +6 -0
  16. package/lib/rest/flexApi/v1/interaction.d.ts +1 -1
  17. package/lib/rest/flexApi/v1/interaction.js +2 -4
  18. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +4 -1
  19. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +2 -0
  20. package/lib/rest/flexApi/v2/flexUser.d.ts +170 -0
  21. package/lib/rest/flexApi/v2/flexUser.js +142 -0
  22. package/lib/rest/flexApi/v2/webChannels.d.ts +2 -0
  23. package/lib/rest/flexApi/v2/webChannels.js +2 -0
  24. package/lib/rest/intelligence/V2.d.ts +30 -0
  25. package/lib/rest/intelligence/V2.js +40 -0
  26. package/lib/rest/intelligence/v2/customOperator.d.ts +330 -0
  27. package/lib/rest/intelligence/v2/customOperator.js +279 -0
  28. package/lib/rest/intelligence/v2/operator.d.ts +263 -0
  29. package/lib/rest/intelligence/v2/operator.js +197 -0
  30. package/lib/rest/intelligence/v2/operatorAttachment.d.ts +112 -0
  31. package/lib/rest/intelligence/v2/operatorAttachment.js +135 -0
  32. package/lib/rest/intelligence/v2/operatorAttachments.d.ts +94 -0
  33. package/lib/rest/intelligence/v2/operatorAttachments.js +110 -0
  34. package/lib/rest/intelligence/v2/operatorType.d.ts +259 -0
  35. package/lib/rest/intelligence/v2/operatorType.js +197 -0
  36. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +263 -0
  37. package/lib/rest/intelligence/v2/prebuiltOperator.js +197 -0
  38. package/lib/rest/intelligence/v2/service.d.ts +8 -4
  39. package/lib/rest/intelligence/v2/service.js +3 -2
  40. package/lib/rest/messaging/v1/service.d.ts +0 -6
  41. package/lib/rest/messaging/v1/service.js +0 -2
  42. package/lib/rest/numbers/V1.d.ts +20 -10
  43. package/lib/rest/numbers/V1.js +31 -14
  44. package/lib/rest/numbers/v1/portingPortIn.d.ts +133 -14
  45. package/lib/rest/numbers/v1/portingPortIn.js +116 -24
  46. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +175 -0
  47. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +157 -0
  48. package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +79 -0
  49. package/lib/rest/{previewMessaging/v1/broadcast.js → numbers/v1/portingWebhookConfiguration.js} +19 -32
  50. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +51 -0
  51. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +68 -0
  52. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +75 -0
  53. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.js +72 -0
  54. package/lib/rest/taskrouter/v1/workspace/task.d.ts +24 -0
  55. package/lib/rest/taskrouter/v1/workspace/task.js +12 -0
  56. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
  57. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
  58. package/lib/rest/trusthub/v1/customerProfiles.d.ts +6 -0
  59. package/lib/rest/trusthub/v1/customerProfiles.js +2 -0
  60. package/lib/rest/trusthub/v1/trustProducts.d.ts +6 -0
  61. package/lib/rest/trusthub/v1/trustProducts.js +2 -0
  62. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  63. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  64. package/lib/rest/verify/v2/service.d.ts +1 -1
  65. package/lib/webhooks/webhooks.js +9 -11
  66. package/package.json +4 -6
  67. package/lib/rest/PreviewMessaging.d.ts +0 -9
  68. package/lib/rest/PreviewMessaging.js +0 -15
  69. package/lib/rest/PreviewMessagingBase.d.ts +0 -13
  70. package/lib/rest/PreviewMessagingBase.js +0 -31
  71. package/lib/rest/numbers/v1/portingBulkPortability.d.ts +0 -120
  72. package/lib/rest/numbers/v1/portingBulkPortability.js +0 -136
  73. package/lib/rest/numbers/v1/portingPortInFetch.d.ts +0 -142
  74. package/lib/rest/numbers/v1/portingPortInFetch.js +0 -128
  75. package/lib/rest/previewMessaging/V1.d.ts +0 -20
  76. package/lib/rest/previewMessaging/V1.js +0 -42
  77. package/lib/rest/previewMessaging/v1/broadcast.d.ts +0 -108
  78. package/lib/rest/previewMessaging/v1/message.d.ts +0 -178
  79. package/lib/rest/previewMessaging/v1/message.js +0 -91
@@ -0,0 +1,190 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import Page, { TwilioResponsePayload } from "../../../base/Page";
4
+ import Response from "../../../http/response";
5
+ import V2 from "../V2";
6
+ /**
7
+ * Options to pass to each
8
+ */
9
+ export interface ContentAndApprovalsListInstanceEachOptions {
10
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
11
+ pageSize?: number;
12
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
13
+ callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void;
14
+ /** Function to be called upon completion of streaming */
15
+ done?: Function;
16
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
17
+ limit?: number;
18
+ }
19
+ /**
20
+ * Options to pass to list
21
+ */
22
+ export interface ContentAndApprovalsListInstanceOptions {
23
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
24
+ pageSize?: number;
25
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
26
+ limit?: number;
27
+ }
28
+ /**
29
+ * Options to pass to page
30
+ */
31
+ export interface ContentAndApprovalsListInstancePageOptions {
32
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
33
+ pageSize?: number;
34
+ /** Page Number, this value is simply for client state */
35
+ pageNumber?: number;
36
+ /** PageToken provided by the API */
37
+ pageToken?: string;
38
+ }
39
+ export interface ContentAndApprovalsSolution {
40
+ }
41
+ export interface ContentAndApprovalsListInstance {
42
+ _version: V2;
43
+ _solution: ContentAndApprovalsSolution;
44
+ _uri: string;
45
+ /**
46
+ * Streams ContentAndApprovalsInstance records from the API.
47
+ *
48
+ * This operation lazily loads records as efficiently as possible until the limit
49
+ * is reached.
50
+ *
51
+ * The results are passed into the callback function, so this operation is memory
52
+ * efficient.
53
+ *
54
+ * If a function is passed as the first argument, it will be used as the callback
55
+ * function.
56
+ *
57
+ * @param { ContentAndApprovalsListInstanceEachOptions } [params] - Options for request
58
+ * @param { function } [callback] - Function to process each record
59
+ */
60
+ each(callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void): void;
61
+ each(params: ContentAndApprovalsListInstanceEachOptions, callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void): void;
62
+ /**
63
+ * Retrieve a single target page of ContentAndApprovalsInstance records from the API.
64
+ *
65
+ * The request is executed immediately.
66
+ *
67
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
68
+ * @param { function } [callback] - Callback to handle list of records
69
+ */
70
+ getPage(targetUrl: string, callback?: (error: Error | null, items: ContentAndApprovalsPage) => any): Promise<ContentAndApprovalsPage>;
71
+ /**
72
+ * Lists ContentAndApprovalsInstance records from the API as a list.
73
+ *
74
+ * If a function is passed as the first argument, it will be used as the callback
75
+ * function.
76
+ *
77
+ * @param { ContentAndApprovalsListInstanceOptions } [params] - Options for request
78
+ * @param { function } [callback] - Callback to handle list of records
79
+ */
80
+ list(callback?: (error: Error | null, items: ContentAndApprovalsInstance[]) => any): Promise<ContentAndApprovalsInstance[]>;
81
+ list(params: ContentAndApprovalsListInstanceOptions, callback?: (error: Error | null, items: ContentAndApprovalsInstance[]) => any): Promise<ContentAndApprovalsInstance[]>;
82
+ /**
83
+ * Retrieve a single page of ContentAndApprovalsInstance records from the API.
84
+ *
85
+ * The request is executed immediately.
86
+ *
87
+ * If a function is passed as the first argument, it will be used as the callback
88
+ * function.
89
+ *
90
+ * @param { ContentAndApprovalsListInstancePageOptions } [params] - Options for request
91
+ * @param { function } [callback] - Callback to handle list of records
92
+ */
93
+ page(callback?: (error: Error | null, items: ContentAndApprovalsPage) => any): Promise<ContentAndApprovalsPage>;
94
+ page(params: ContentAndApprovalsListInstancePageOptions, callback?: (error: Error | null, items: ContentAndApprovalsPage) => any): Promise<ContentAndApprovalsPage>;
95
+ /**
96
+ * Provide a user-friendly representation
97
+ */
98
+ toJSON(): any;
99
+ [inspect.custom](_depth: any, options: InspectOptions): any;
100
+ }
101
+ export declare function ContentAndApprovalsListInstance(version: V2): ContentAndApprovalsListInstance;
102
+ interface ContentAndApprovalsPayload extends TwilioResponsePayload {
103
+ contents: ContentAndApprovalsResource[];
104
+ }
105
+ interface ContentAndApprovalsResource {
106
+ date_created: Date;
107
+ date_updated: Date;
108
+ sid: string;
109
+ account_sid: string;
110
+ friendly_name: string;
111
+ language: string;
112
+ variables: any;
113
+ types: any;
114
+ approval_requests: any;
115
+ }
116
+ export declare class ContentAndApprovalsInstance {
117
+ protected _version: V2;
118
+ constructor(_version: V2, payload: ContentAndApprovalsResource);
119
+ /**
120
+ * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
121
+ */
122
+ dateCreated: Date;
123
+ /**
124
+ * The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
125
+ */
126
+ dateUpdated: Date;
127
+ /**
128
+ * The unique string that that we created to identify the Content resource.
129
+ */
130
+ sid: string;
131
+ /**
132
+ * The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
133
+ */
134
+ accountSid: string;
135
+ /**
136
+ * A string name used to describe the Content resource. Not visible to the end recipient.
137
+ */
138
+ friendlyName: string;
139
+ /**
140
+ * Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
141
+ */
142
+ language: string;
143
+ /**
144
+ * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
145
+ */
146
+ variables: any;
147
+ /**
148
+ * The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
149
+ */
150
+ types: any;
151
+ /**
152
+ * The submitted information and approval request status of the Content resource.
153
+ */
154
+ approvalRequests: any;
155
+ /**
156
+ * Provide a user-friendly representation
157
+ *
158
+ * @returns Object
159
+ */
160
+ toJSON(): {
161
+ dateCreated: Date;
162
+ dateUpdated: Date;
163
+ sid: string;
164
+ accountSid: string;
165
+ friendlyName: string;
166
+ language: string;
167
+ variables: any;
168
+ types: any;
169
+ approvalRequests: any;
170
+ };
171
+ [inspect.custom](_depth: any, options: InspectOptions): string;
172
+ }
173
+ export declare class ContentAndApprovalsPage extends Page<V2, ContentAndApprovalsPayload, ContentAndApprovalsResource, ContentAndApprovalsInstance> {
174
+ /**
175
+ * Initialize the ContentAndApprovalsPage
176
+ *
177
+ * @param version - Version of the resource
178
+ * @param response - Response from the API
179
+ * @param solution - Path solution
180
+ */
181
+ constructor(version: V2, response: Response<string>, solution: ContentAndApprovalsSolution);
182
+ /**
183
+ * Build an instance of ContentAndApprovalsInstance
184
+ *
185
+ * @param payload - Payload response from the API
186
+ */
187
+ getInstance(payload: ContentAndApprovalsResource): ContentAndApprovalsInstance;
188
+ [inspect.custom](depth: any, options: InspectOptions): string;
189
+ }
190
+ export {};
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Content
9
+ * This is the public Twilio REST API.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.ContentAndApprovalsPage = exports.ContentAndApprovalsInstance = exports.ContentAndApprovalsListInstance = void 0;
20
+ const util_1 = require("util");
21
+ const Page_1 = __importDefault(require("../../../base/Page"));
22
+ const deserialize = require("../../../base/deserialize");
23
+ const serialize = require("../../../base/serialize");
24
+ function ContentAndApprovalsListInstance(version) {
25
+ const instance = {};
26
+ instance._version = version;
27
+ instance._solution = {};
28
+ instance._uri = `/ContentAndApprovals`;
29
+ instance.page = function page(params, callback) {
30
+ if (params instanceof Function) {
31
+ callback = params;
32
+ params = {};
33
+ }
34
+ else {
35
+ params = params || {};
36
+ }
37
+ let data = {};
38
+ if (params["pageSize"] !== undefined)
39
+ data["PageSize"] = params["pageSize"];
40
+ if (params.pageNumber !== undefined)
41
+ data["Page"] = params.pageNumber;
42
+ if (params.pageToken !== undefined)
43
+ data["PageToken"] = params.pageToken;
44
+ const headers = {};
45
+ let operationVersion = version, operationPromise = operationVersion.page({
46
+ uri: instance._uri,
47
+ method: "get",
48
+ params: data,
49
+ headers,
50
+ });
51
+ operationPromise = operationPromise.then((payload) => new ContentAndApprovalsPage(operationVersion, payload, instance._solution));
52
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
53
+ return operationPromise;
54
+ };
55
+ instance.each = instance._version.each;
56
+ instance.list = instance._version.list;
57
+ instance.getPage = function getPage(targetUrl, callback) {
58
+ const operationPromise = instance._version._domain.twilio.request({
59
+ method: "get",
60
+ uri: targetUrl,
61
+ });
62
+ let pagePromise = operationPromise.then((payload) => new ContentAndApprovalsPage(instance._version, payload, instance._solution));
63
+ pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
64
+ return pagePromise;
65
+ };
66
+ instance.toJSON = function toJSON() {
67
+ return instance._solution;
68
+ };
69
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
70
+ return (0, util_1.inspect)(instance.toJSON(), options);
71
+ };
72
+ return instance;
73
+ }
74
+ exports.ContentAndApprovalsListInstance = ContentAndApprovalsListInstance;
75
+ class ContentAndApprovalsInstance {
76
+ constructor(_version, payload) {
77
+ this._version = _version;
78
+ this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
79
+ this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
80
+ this.sid = payload.sid;
81
+ this.accountSid = payload.account_sid;
82
+ this.friendlyName = payload.friendly_name;
83
+ this.language = payload.language;
84
+ this.variables = payload.variables;
85
+ this.types = payload.types;
86
+ this.approvalRequests = payload.approval_requests;
87
+ }
88
+ /**
89
+ * Provide a user-friendly representation
90
+ *
91
+ * @returns Object
92
+ */
93
+ toJSON() {
94
+ return {
95
+ dateCreated: this.dateCreated,
96
+ dateUpdated: this.dateUpdated,
97
+ sid: this.sid,
98
+ accountSid: this.accountSid,
99
+ friendlyName: this.friendlyName,
100
+ language: this.language,
101
+ variables: this.variables,
102
+ types: this.types,
103
+ approvalRequests: this.approvalRequests,
104
+ };
105
+ }
106
+ [util_1.inspect.custom](_depth, options) {
107
+ return (0, util_1.inspect)(this.toJSON(), options);
108
+ }
109
+ }
110
+ exports.ContentAndApprovalsInstance = ContentAndApprovalsInstance;
111
+ class ContentAndApprovalsPage extends Page_1.default {
112
+ /**
113
+ * Initialize the ContentAndApprovalsPage
114
+ *
115
+ * @param version - Version of the resource
116
+ * @param response - Response from the API
117
+ * @param solution - Path solution
118
+ */
119
+ constructor(version, response, solution) {
120
+ super(version, response, solution);
121
+ }
122
+ /**
123
+ * Build an instance of ContentAndApprovalsInstance
124
+ *
125
+ * @param payload - Payload response from the API
126
+ */
127
+ getInstance(payload) {
128
+ return new ContentAndApprovalsInstance(this._version, payload);
129
+ }
130
+ [util_1.inspect.custom](depth, options) {
131
+ return (0, util_1.inspect)(this.toJSON(), options);
132
+ }
133
+ }
134
+ exports.ContentAndApprovalsPage = ContentAndApprovalsPage;
@@ -1,5 +1,6 @@
1
1
  import FlexApiBase from "../FlexApiBase";
2
2
  import Version from "../../base/Version";
3
+ import { FlexUserListInstance } from "./v2/flexUser";
3
4
  import { WebChannelsListInstance } from "./v2/webChannels";
4
5
  export default class V2 extends Version {
5
6
  /**
@@ -8,8 +9,12 @@ export default class V2 extends Version {
8
9
  * @param domain - The Twilio (Twilio.FlexApi) domain
9
10
  */
10
11
  constructor(domain: FlexApiBase);
12
+ /** flexUser - { Twilio.FlexApi.V2.FlexUserListInstance } resource */
13
+ protected _flexUser?: FlexUserListInstance;
11
14
  /** webChannels - { Twilio.FlexApi.V2.WebChannelsListInstance } resource */
12
15
  protected _webChannels?: WebChannelsListInstance;
16
+ /** Getter for flexUser resource */
17
+ get flexUser(): FlexUserListInstance;
13
18
  /** Getter for webChannels resource */
14
19
  get webChannels(): WebChannelsListInstance;
15
20
  }
@@ -17,6 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  const Version_1 = __importDefault(require("../../base/Version"));
20
+ const flexUser_1 = require("./v2/flexUser");
20
21
  const webChannels_1 = require("./v2/webChannels");
21
22
  class V2 extends Version_1.default {
22
23
  /**
@@ -27,6 +28,11 @@ class V2 extends Version_1.default {
27
28
  constructor(domain) {
28
29
  super(domain, "v2");
29
30
  }
31
+ /** Getter for flexUser resource */
32
+ get flexUser() {
33
+ this._flexUser = this._flexUser || (0, flexUser_1.FlexUserListInstance)(this);
34
+ return this._flexUser;
35
+ }
30
36
  /** Getter for webChannels resource */
31
37
  get webChannels() {
32
38
  this._webChannels = this._webChannels || (0, webChannels_1.WebChannelsListInstance)(this);
@@ -9,7 +9,7 @@ export interface InteractionListInstanceCreateOptions {
9
9
  /** The Interaction\\\'s channel. */
10
10
  channel: any;
11
11
  /** The Interaction\\\'s routing logic. */
12
- routing: any;
12
+ routing?: any;
13
13
  /** The Interaction context sid is used for adding a context lookup sid */
14
14
  interactionContextSid?: string;
15
15
  }
@@ -125,12 +125,10 @@ function InteractionListInstance(version) {
125
125
  if (params["channel"] === null || params["channel"] === undefined) {
126
126
  throw new Error("Required parameter \"params['channel']\" missing.");
127
127
  }
128
- if (params["routing"] === null || params["routing"] === undefined) {
129
- throw new Error("Required parameter \"params['routing']\" missing.");
130
- }
131
128
  let data = {};
132
129
  data["Channel"] = serialize.object(params["channel"]);
133
- data["Routing"] = serialize.object(params["routing"]);
130
+ if (params["routing"] !== undefined)
131
+ data["Routing"] = serialize.object(params["routing"]);
134
132
  if (params["interactionContextSid"] !== undefined)
135
133
  data["InteractionContextSid"] = params["interactionContextSid"];
136
134
  const headers = {};
@@ -122,6 +122,7 @@ interface PluginVersionsResource {
122
122
  changelog: string;
123
123
  private: boolean;
124
124
  archived: boolean;
125
+ validated: boolean;
125
126
  date_created: Date;
126
127
  url: string;
127
128
  }
@@ -155,13 +156,14 @@ export declare class PluginVersionsInstance {
155
156
  */
156
157
  changelog: string;
157
158
  /**
158
- * Whether to inject credentials while accessing this Plugin Version. The default value is false.
159
+ * Whether the Flex Plugin Version is validated. The default value is false.
159
160
  */
160
161
  _private: boolean;
161
162
  /**
162
163
  * Whether the Flex Plugin Version is archived. The default value is false.
163
164
  */
164
165
  archived: boolean;
166
+ validated: boolean;
165
167
  /**
166
168
  * The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
167
169
  */
@@ -202,6 +204,7 @@ export declare class PluginVersionsInstance {
202
204
  changelog: string;
203
205
  _private: boolean;
204
206
  archived: boolean;
207
+ validated: boolean;
205
208
  dateCreated: Date;
206
209
  url: string;
207
210
  };
@@ -81,6 +81,7 @@ class PluginVersionsInstance {
81
81
  this.changelog = payload.changelog;
82
82
  this._private = payload.private;
83
83
  this.archived = payload.archived;
84
+ this.validated = payload.validated;
84
85
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
85
86
  this.url = payload.url;
86
87
  this._solution = { pluginSid, sid: sid || this.sid };
@@ -109,6 +110,7 @@ class PluginVersionsInstance {
109
110
  changelog: this.changelog,
110
111
  _private: this._private,
111
112
  archived: this.archived,
113
+ validated: this.validated,
112
114
  dateCreated: this.dateCreated,
113
115
  url: this.url,
114
116
  };
@@ -0,0 +1,170 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V2 from "../V2";
4
+ export interface FlexUserContext {
5
+ /**
6
+ * Fetch a FlexUserInstance
7
+ *
8
+ * @param callback - Callback to handle processed record
9
+ *
10
+ * @returns Resolves to processed FlexUserInstance
11
+ */
12
+ fetch(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
13
+ /**
14
+ * Provide a user-friendly representation
15
+ */
16
+ toJSON(): any;
17
+ [inspect.custom](_depth: any, options: InspectOptions): any;
18
+ }
19
+ export interface FlexUserContextSolution {
20
+ instanceSid: string;
21
+ flexUserSid: string;
22
+ }
23
+ export declare class FlexUserContextImpl implements FlexUserContext {
24
+ protected _version: V2;
25
+ protected _solution: FlexUserContextSolution;
26
+ protected _uri: string;
27
+ constructor(_version: V2, instanceSid: string, flexUserSid: string);
28
+ fetch(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
29
+ /**
30
+ * Provide a user-friendly representation
31
+ *
32
+ * @returns Object
33
+ */
34
+ toJSON(): FlexUserContextSolution;
35
+ [inspect.custom](_depth: any, options: InspectOptions): string;
36
+ }
37
+ interface FlexUserResource {
38
+ account_sid: string;
39
+ instance_sid: string;
40
+ user_sid: string;
41
+ flex_user_sid: string;
42
+ worker_sid: string;
43
+ workspace_sid: string;
44
+ flex_team_sid: string;
45
+ first_name: string;
46
+ last_name: string;
47
+ username: string;
48
+ email: string;
49
+ friendly_name: string;
50
+ created_date: Date;
51
+ updated_date: Date;
52
+ version: number;
53
+ url: string;
54
+ }
55
+ export declare class FlexUserInstance {
56
+ protected _version: V2;
57
+ protected _solution: FlexUserContextSolution;
58
+ protected _context?: FlexUserContext;
59
+ constructor(_version: V2, payload: FlexUserResource, instanceSid?: string, flexUserSid?: string);
60
+ /**
61
+ * The unique SID of the account that created the resource.
62
+ */
63
+ accountSid: string;
64
+ /**
65
+ * The unique ID created by Twilio to identify a Flex instance.
66
+ */
67
+ instanceSid: string;
68
+ /**
69
+ * The unique SID identifier of the Twilio Unified User.
70
+ */
71
+ userSid: string;
72
+ /**
73
+ * The unique SID identifier of the Flex User.
74
+ */
75
+ flexUserSid: string;
76
+ /**
77
+ * The unique SID identifier of the worker.
78
+ */
79
+ workerSid: string;
80
+ /**
81
+ * The unique SID identifier of the workspace.
82
+ */
83
+ workspaceSid: string;
84
+ /**
85
+ * The unique SID identifier of the Flex Team.
86
+ */
87
+ flexTeamSid: string;
88
+ /**
89
+ * First name of the User.
90
+ */
91
+ firstName: string;
92
+ /**
93
+ * Last name of the User.
94
+ */
95
+ lastName: string;
96
+ /**
97
+ * Username of the User.
98
+ */
99
+ username: string;
100
+ /**
101
+ * Email of the User.
102
+ */
103
+ email: string;
104
+ /**
105
+ * Friendly name of the User.
106
+ */
107
+ friendlyName: string;
108
+ /**
109
+ * The date that this user was created, given in ISO 8601 format.
110
+ */
111
+ createdDate: Date;
112
+ /**
113
+ * The date that this user was updated, given in ISO 8601 format.
114
+ */
115
+ updatedDate: Date;
116
+ /**
117
+ * The current version of the user.
118
+ */
119
+ version: number;
120
+ url: string;
121
+ private get _proxy();
122
+ /**
123
+ * Fetch a FlexUserInstance
124
+ *
125
+ * @param callback - Callback to handle processed record
126
+ *
127
+ * @returns Resolves to processed FlexUserInstance
128
+ */
129
+ fetch(callback?: (error: Error | null, item?: FlexUserInstance) => any): Promise<FlexUserInstance>;
130
+ /**
131
+ * Provide a user-friendly representation
132
+ *
133
+ * @returns Object
134
+ */
135
+ toJSON(): {
136
+ accountSid: string;
137
+ instanceSid: string;
138
+ userSid: string;
139
+ flexUserSid: string;
140
+ workerSid: string;
141
+ workspaceSid: string;
142
+ flexTeamSid: string;
143
+ firstName: string;
144
+ lastName: string;
145
+ username: string;
146
+ email: string;
147
+ friendlyName: string;
148
+ createdDate: Date;
149
+ updatedDate: Date;
150
+ version: number;
151
+ url: string;
152
+ };
153
+ [inspect.custom](_depth: any, options: InspectOptions): string;
154
+ }
155
+ export interface FlexUserSolution {
156
+ }
157
+ export interface FlexUserListInstance {
158
+ _version: V2;
159
+ _solution: FlexUserSolution;
160
+ _uri: string;
161
+ (instanceSid: string, flexUserSid: string): FlexUserContext;
162
+ get(instanceSid: string, flexUserSid: string): FlexUserContext;
163
+ /**
164
+ * Provide a user-friendly representation
165
+ */
166
+ toJSON(): any;
167
+ [inspect.custom](_depth: any, options: InspectOptions): any;
168
+ }
169
+ export declare function FlexUserListInstance(version: V2): FlexUserListInstance;
170
+ export {};