twilio 5.2.3 → 5.3.1

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/Assistants.d.ts +4 -0
  2. package/lib/rest/Assistants.js +8 -0
  3. package/lib/rest/AssistantsBase.d.ts +13 -0
  4. package/lib/rest/AssistantsBase.js +31 -0
  5. package/lib/rest/Iam.d.ts +4 -0
  6. package/lib/rest/Iam.js +8 -0
  7. package/lib/rest/IamBase.d.ts +13 -0
  8. package/lib/rest/IamBase.js +31 -0
  9. package/lib/rest/Twilio.d.ts +10 -0
  10. package/lib/rest/Twilio.js +11 -0
  11. package/lib/rest/assistants/V1.d.ts +35 -0
  12. package/lib/rest/assistants/V1.js +60 -0
  13. package/lib/rest/assistants/v1/assistant/feedback.d.ts +231 -0
  14. package/lib/rest/assistants/v1/assistant/feedback.js +161 -0
  15. package/lib/rest/assistants/v1/assistant.d.ts +466 -0
  16. package/lib/rest/assistants/v1/assistant.js +284 -0
  17. package/lib/rest/assistants/v1/knowledge/chunk.d.ts +167 -0
  18. package/lib/rest/assistants/v1/knowledge/chunk.js +130 -0
  19. package/lib/rest/assistants/v1/knowledge.d.ts +385 -0
  20. package/lib/rest/assistants/v1/knowledge.js +273 -0
  21. package/lib/rest/assistants/v1/policy.d.ts +202 -0
  22. package/lib/rest/assistants/v1/policy.js +138 -0
  23. package/lib/rest/assistants/v1/session/message.d.ts +197 -0
  24. package/lib/rest/assistants/v1/session/message.js +140 -0
  25. package/lib/rest/assistants/v1/session.d.ts +231 -0
  26. package/lib/rest/assistants/v1/session.js +194 -0
  27. package/lib/rest/assistants/v1/tool.d.ts +378 -0
  28. package/lib/rest/assistants/v1/tool.js +242 -0
  29. package/lib/rest/content/v1/content/approvalFetch.d.ts +5 -5
  30. package/lib/rest/content/v1/content/approvalFetch.js +14 -14
  31. package/lib/rest/content/v1/content.d.ts +33 -3
  32. package/lib/rest/content/v1/content.js +16 -1
  33. package/lib/rest/iam/V1.d.ts +25 -0
  34. package/lib/rest/iam/V1.js +48 -0
  35. package/lib/rest/iam/v1/apiKey.d.ts +167 -0
  36. package/lib/rest/iam/v1/apiKey.js +161 -0
  37. package/lib/rest/iam/v1/getApiKeys.d.ts +163 -0
  38. package/lib/rest/iam/v1/getApiKeys.js +124 -0
  39. package/lib/rest/iam/v1/newApiKey.d.ts +90 -0
  40. package/lib/rest/iam/v1/newApiKey.js +90 -0
  41. package/lib/rest/intelligence/v2/operatorType.d.ts +1 -1
  42. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +12 -18
  43. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +3 -6
  44. package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +14 -6
  45. package/lib/rest/marketplace/v1/moduleDataManagement.js +4 -0
  46. package/lib/rest/numbers/v1/portingPortIn.js +1 -1
  47. package/lib/rest/numbers/v2/bundleClone.d.ts +1 -1
  48. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  49. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +6 -0
  50. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +2 -0
  51. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +1 -1
  52. package/package.json +2 -2
@@ -8,7 +8,7 @@ export type BundleCloneStatus = "draft" | "pending-review" | "in-review" | "twil
8
8
  export interface BundleCloneContextCreateOptions {
9
9
  /** The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned. */
10
10
  targetAccountSid: string;
11
- /** This is to determine whether the cloned bundle needs to be in draft state or not. */
11
+ /** If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved */
12
12
  moveToDraft?: boolean;
13
13
  /** The string that you assigned to describe the cloned bundle. */
14
14
  friendlyName?: string;
@@ -40,7 +40,7 @@ export interface BundleListInstanceCreateOptions {
40
40
  isoCountry?: string;
41
41
  /** */
42
42
  endUserType?: BundleEndUserType;
43
- /** The type of phone number of the Bundle\\\'s ownership request. Can be `local`, `mobile`, `national`, or `toll free`. */
43
+ /** The type of phone number of the Bundle\\\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
44
44
  numberType?: string;
45
45
  /** Indicates that Bundle is a Test Bundle and will be Auto-Rejected */
46
46
  isTest?: boolean;
@@ -57,7 +57,7 @@ export interface BundleListInstanceEachOptions {
57
57
  regulationSid?: string;
58
58
  /** The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle\'s phone number country ownership request. */
59
59
  isoCountry?: string;
60
- /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `tollfree`. */
60
+ /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
61
61
  numberType?: string;
62
62
  /** Indicates that the Bundle is a valid Bundle until a specified expiration date. */
63
63
  hasValidUntilDate?: boolean;
@@ -92,7 +92,7 @@ export interface BundleListInstanceOptions {
92
92
  regulationSid?: string;
93
93
  /** The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle\'s phone number country ownership request. */
94
94
  isoCountry?: string;
95
- /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `tollfree`. */
95
+ /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
96
96
  numberType?: string;
97
97
  /** Indicates that the Bundle is a valid Bundle until a specified expiration date. */
98
98
  hasValidUntilDate?: boolean;
@@ -123,7 +123,7 @@ export interface BundleListInstancePageOptions {
123
123
  regulationSid?: string;
124
124
  /** The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle\'s phone number country ownership request. */
125
125
  isoCountry?: string;
126
- /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `tollfree`. */
126
+ /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
127
127
  numberType?: string;
128
128
  /** Indicates that the Bundle is a valid Bundle until a specified expiration date. */
129
129
  hasValidUntilDate?: boolean;
@@ -126,6 +126,7 @@ interface SupportingDocumentResource {
126
126
  mime_type: string;
127
127
  status: SupportingDocumentStatus;
128
128
  failure_reason: string;
129
+ errors: Array<any>;
129
130
  type: string;
130
131
  attributes: any;
131
132
  date_created: Date;
@@ -158,6 +159,10 @@ export declare class SupportingDocumentInstance {
158
159
  * The failure reason of the Supporting Document Resource.
159
160
  */
160
161
  failureReason: string;
162
+ /**
163
+ * A list of errors that occurred during the registering RC Bundle
164
+ */
165
+ errors: Array<any>;
161
166
  /**
162
167
  * The type of the Supporting Document.
163
168
  */
@@ -224,6 +229,7 @@ export declare class SupportingDocumentInstance {
224
229
  mimeType: string;
225
230
  status: SupportingDocumentStatus;
226
231
  failureReason: string;
232
+ errors: any[];
227
233
  type: string;
228
234
  attributes: any;
229
235
  dateCreated: Date;
@@ -98,6 +98,7 @@ class SupportingDocumentInstance {
98
98
  this.mimeType = payload.mime_type;
99
99
  this.status = payload.status;
100
100
  this.failureReason = payload.failure_reason;
101
+ this.errors = payload.errors;
101
102
  this.type = payload.type;
102
103
  this.attributes = payload.attributes;
103
104
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
@@ -147,6 +148,7 @@ class SupportingDocumentInstance {
147
148
  mimeType: this.mimeType,
148
149
  status: this.status,
149
150
  failureReason: this.failureReason,
151
+ errors: this.errors,
150
152
  type: this.type,
151
153
  attributes: this.attributes,
152
154
  dateCreated: this.dateCreated,
@@ -108,7 +108,7 @@ export declare class TaskQueueRealTimeStatisticsInstance {
108
108
  */
109
109
  tasksByStatus: any;
110
110
  /**
111
- * The total number of Workers available for Tasks in the TaskQueue.
111
+ * The total number of Workers in the TaskQueue with an `available` status. Workers with an `available` status may already have active interactions or may have none.
112
112
  */
113
113
  totalAvailableWorkers: number;
114
114
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "5.2.3",
4
+ "version": "5.3.1",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/twilio/twilio-node.git"
21
21
  },
22
22
  "dependencies": {
23
- "axios": "^1.6.8",
23
+ "axios": "^1.7.4",
24
24
  "dayjs": "^1.11.9",
25
25
  "https-proxy-agent": "^5.0.0",
26
26
  "jsonwebtoken": "^9.0.2",