twilio 5.0.0-rc.1 → 5.0.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 (152) hide show
  1. package/README.md +13 -4
  2. package/lib/rest/Media.d.ts +0 -15
  3. package/lib/rest/Media.js +0 -21
  4. package/lib/rest/Preview.d.ts +0 -5
  5. package/lib/rest/Preview.js +0 -7
  6. package/lib/rest/PreviewBase.d.ts +0 -3
  7. package/lib/rest/PreviewBase.js +0 -5
  8. package/lib/rest/Twilio.d.ts +0 -5
  9. package/lib/rest/Twilio.js +0 -5
  10. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +0 -12
  11. package/lib/rest/api/v2010/account/authorizedConnectApp.js +0 -4
  12. package/lib/rest/api/v2010/account/call.d.ts +0 -11
  13. package/lib/rest/api/v2010/account/call.js +0 -22
  14. package/lib/rest/api/v2010/account/message.d.ts +2 -2
  15. package/lib/rest/content/v1/content/approvalCreate.d.ts +79 -0
  16. package/lib/rest/content/v1/content/approvalCreate.js +91 -0
  17. package/lib/rest/content/v1/content.d.ts +160 -0
  18. package/lib/rest/content/v1/content.js +113 -1
  19. package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
  20. package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
  21. package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +3 -3
  22. package/lib/rest/flexApi/V1.d.ts +30 -0
  23. package/lib/rest/flexApi/V1.js +42 -0
  24. package/lib/rest/flexApi/v1/configuration.d.ts +32 -1
  25. package/lib/rest/flexApi/v1/configuration.js +18 -10
  26. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +8 -0
  27. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +4 -0
  28. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +298 -0
  29. package/lib/rest/{preview/understand/assistant/task/field.js → flexApi/v1/plugin/pluginVersions.js} +78 -87
  30. package/lib/rest/flexApi/v1/plugin.d.ts +345 -0
  31. package/lib/rest/{preview/understand/assistant/fieldType.js → flexApi/v1/plugin.js} +78 -88
  32. package/lib/rest/flexApi/v1/pluginArchive.d.ts +155 -0
  33. package/lib/rest/{autopilot/v1/assistant/dialogue.js → flexApi/v1/pluginArchive.js} +52 -44
  34. package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.d.ts +310 -0
  35. package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.js +218 -0
  36. package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +287 -0
  37. package/lib/rest/{autopilot/v1/assistant/task/field.js → flexApi/v1/pluginConfiguration.js} +76 -86
  38. package/lib/rest/flexApi/v1/pluginConfigurationArchive.d.ts +143 -0
  39. package/lib/rest/{preview/understand/assistant/dialogue.js → flexApi/v1/pluginConfigurationArchive.js} +48 -44
  40. package/lib/rest/flexApi/v1/pluginRelease.d.ts +260 -0
  41. package/lib/rest/{preview/understand/assistant/fieldType/fieldValue.js → flexApi/v1/pluginRelease.js} +58 -96
  42. package/lib/rest/flexApi/v1/pluginVersionArchive.d.ts +162 -0
  43. package/lib/rest/{autopilot/v1/assistant/defaults.js → flexApi/v1/pluginVersionArchive.js} +48 -54
  44. package/lib/rest/intelligence/v2/service.d.ts +3 -3
  45. package/lib/rest/intelligence/v2/transcript.d.ts +1 -1
  46. package/lib/rest/lookups/v2/phoneNumber.d.ts +5 -5
  47. package/lib/rest/lookups/v2/phoneNumber.js +2 -2
  48. package/lib/rest/messaging/v1/brandRegistration.d.ts +8 -2
  49. package/lib/rest/messaging/v1/brandRegistration.js +2 -0
  50. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +62 -0
  51. package/lib/rest/messaging/v1/service/usAppToPerson.js +65 -0
  52. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +9 -3
  53. package/lib/rest/messaging/v1/tollfreeVerification.js +2 -0
  54. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  55. package/lib/rest/notify/v1/service.d.ts +3 -3
  56. package/lib/rest/numbers/V1.d.ts +5 -0
  57. package/lib/rest/numbers/V1.js +7 -0
  58. package/lib/rest/numbers/v1/bulkEligibility.d.ts +16 -0
  59. package/lib/rest/numbers/v1/bulkEligibility.js +14 -1
  60. package/lib/rest/numbers/v1/eligibility.d.ts +16 -0
  61. package/lib/rest/numbers/v1/eligibility.js +14 -1
  62. package/lib/rest/numbers/v1/portingPortIn.d.ts +17 -1
  63. package/lib/rest/numbers/v1/portingPortIn.js +14 -1
  64. package/lib/rest/numbers/v1/portingPortInFetch.d.ts +136 -0
  65. package/lib/rest/numbers/v1/portingPortInFetch.js +126 -0
  66. package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +16 -0
  67. package/lib/rest/numbers/v2/bulkHostedNumberOrder.js +14 -1
  68. package/lib/rest/supersim/v1/esimProfile.d.ts +4 -4
  69. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +2 -0
  70. package/lib/rest/taskrouter/v1/workspace/task/reservation.js +2 -0
  71. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +17 -1
  72. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.js +14 -1
  73. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +2 -0
  74. package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +2 -0
  75. package/lib/rest/trusthub/V1.d.ts +5 -0
  76. package/lib/rest/trusthub/V1.js +8 -0
  77. package/lib/rest/trusthub/v1/complianceInquiries.d.ts +2 -0
  78. package/lib/rest/trusthub/v1/complianceInquiries.js +2 -0
  79. package/lib/rest/trusthub/v1/complianceRegistrationInquiries.d.ts +149 -0
  80. package/lib/rest/trusthub/v1/complianceRegistrationInquiries.js +167 -0
  81. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +40 -1
  82. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +39 -0
  83. package/lib/rest/verify/v2/service.d.ts +10 -0
  84. package/lib/rest/verify/v2/service.js +7 -0
  85. package/lib/rest/video/v1/compositionSettings.d.ts +2 -2
  86. package/lib/rest/video/v1/recordingSettings.d.ts +2 -2
  87. package/lib/twiml/MessagingResponse.d.ts +1 -1
  88. package/lib/twiml/VoiceResponse.d.ts +2 -2
  89. package/package.json +1 -1
  90. package/lib/rest/Autopilot.d.ts +0 -14
  91. package/lib/rest/Autopilot.js +0 -22
  92. package/lib/rest/AutopilotBase.d.ts +0 -13
  93. package/lib/rest/AutopilotBase.js +0 -31
  94. package/lib/rest/api/v2010/account/call/feedback.d.ts +0 -160
  95. package/lib/rest/api/v2010/account/call/feedback.js +0 -154
  96. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +0 -201
  97. package/lib/rest/api/v2010/account/call/feedbackSummary.js +0 -189
  98. package/lib/rest/autopilot/V1.d.ts +0 -20
  99. package/lib/rest/autopilot/V1.js +0 -43
  100. package/lib/rest/autopilot/v1/assistant/defaults.d.ts +0 -143
  101. package/lib/rest/autopilot/v1/assistant/dialogue.d.ts +0 -108
  102. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +0 -288
  103. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +0 -249
  104. package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +0 -324
  105. package/lib/rest/autopilot/v1/assistant/fieldType.js +0 -277
  106. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +0 -326
  107. package/lib/rest/autopilot/v1/assistant/modelBuild.js +0 -266
  108. package/lib/rest/autopilot/v1/assistant/query.d.ts +0 -374
  109. package/lib/rest/autopilot/v1/assistant/query.js +0 -288
  110. package/lib/rest/autopilot/v1/assistant/styleSheet.d.ts +0 -143
  111. package/lib/rest/autopilot/v1/assistant/styleSheet.js +0 -142
  112. package/lib/rest/autopilot/v1/assistant/task/field.d.ts +0 -274
  113. package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +0 -334
  114. package/lib/rest/autopilot/v1/assistant/task/sample.js +0 -280
  115. package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +0 -151
  116. package/lib/rest/autopilot/v1/assistant/task/taskActions.js +0 -150
  117. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +0 -115
  118. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +0 -125
  119. package/lib/rest/autopilot/v1/assistant/task.d.ts +0 -362
  120. package/lib/rest/autopilot/v1/assistant/task.js +0 -326
  121. package/lib/rest/autopilot/v1/assistant/webhook.d.ts +0 -330
  122. package/lib/rest/autopilot/v1/assistant/webhook.js +0 -278
  123. package/lib/rest/autopilot/v1/assistant.d.ts +0 -438
  124. package/lib/rest/autopilot/v1/assistant.js +0 -392
  125. package/lib/rest/autopilot/v1/restoreAssistant.d.ts +0 -119
  126. package/lib/rest/autopilot/v1/restoreAssistant.js +0 -96
  127. package/lib/rest/preview/Understand.d.ts +0 -15
  128. package/lib/rest/preview/Understand.js +0 -36
  129. package/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts +0 -131
  130. package/lib/rest/preview/understand/assistant/assistantFallbackActions.js +0 -142
  131. package/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts +0 -131
  132. package/lib/rest/preview/understand/assistant/assistantInitiationActions.js +0 -142
  133. package/lib/rest/preview/understand/assistant/dialogue.d.ts +0 -105
  134. package/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts +0 -285
  135. package/lib/rest/preview/understand/assistant/fieldType.d.ts +0 -318
  136. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +0 -320
  137. package/lib/rest/preview/understand/assistant/modelBuild.js +0 -266
  138. package/lib/rest/preview/understand/assistant/query.d.ts +0 -361
  139. package/lib/rest/preview/understand/assistant/query.js +0 -286
  140. package/lib/rest/preview/understand/assistant/styleSheet.d.ts +0 -140
  141. package/lib/rest/preview/understand/assistant/styleSheet.js +0 -142
  142. package/lib/rest/preview/understand/assistant/task/field.d.ts +0 -271
  143. package/lib/rest/preview/understand/assistant/task/sample.d.ts +0 -331
  144. package/lib/rest/preview/understand/assistant/task/sample.js +0 -280
  145. package/lib/rest/preview/understand/assistant/task/taskActions.d.ts +0 -145
  146. package/lib/rest/preview/understand/assistant/task/taskActions.js +0 -150
  147. package/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts +0 -112
  148. package/lib/rest/preview/understand/assistant/task/taskStatistics.js +0 -125
  149. package/lib/rest/preview/understand/assistant/task.d.ts +0 -356
  150. package/lib/rest/preview/understand/assistant/task.js +0 -326
  151. package/lib/rest/preview/understand/assistant.d.ts +0 -422
  152. package/lib/rest/preview/understand/assistant.js +0 -392
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # twilio-node
2
2
 
3
- [![NPM](https://nodei.co/npm/twilio.png?downloads=true&stars=true)](https://nodei.co/npm/twilio/)
4
-
5
- [![Tests](https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml)
6
- [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
3
+ [![][test-workflow-image]][test-workflow-url]
4
+ [![][npm-version-image]][npm-url]
5
+ [![][npm-install-size-image]][npm-install-size-url]
6
+ [![][npm-downloads-image]][npm-downloads-url]
7
7
 
8
8
  ## Documentation
9
9
 
@@ -294,3 +294,12 @@ npm run test:javascript -- -m .\*client.\*
294
294
 
295
295
  [apidocs]: https://www.twilio.com/docs/api
296
296
  [libdocs]: https://twilio.github.io/twilio-node
297
+
298
+ [test-workflow-image]: https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml/badge.svg
299
+ [test-workflow-url]: https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml
300
+ [npm-downloads-image]: https://img.shields.io/npm/dm/twilio.svg
301
+ [npm-downloads-url]: https://npmcharts.com/compare/twilio?minimal=true
302
+ [npm-install-size-image]: https://badgen.net/packagephobia/install/twilio
303
+ [npm-install-size-url]: https://packagephobia.com/result?p=twilio
304
+ [npm-url]: https://npmjs.org/package/twilio
305
+ [npm-version-image]: https://img.shields.io/npm/v/twilio.svg
@@ -1,19 +1,4 @@
1
- import { MediaProcessorListInstance } from "./media/v1/mediaProcessor";
2
- import { MediaRecordingListInstance } from "./media/v1/mediaRecording";
3
- import { PlayerStreamerListInstance } from "./media/v1/playerStreamer";
4
1
  import MediaBase from "./MediaBase";
5
2
  declare class Media extends MediaBase {
6
- /**
7
- * @deprecated - Use v1.mediaProcessor instead
8
- */
9
- get mediaProcessor(): MediaProcessorListInstance;
10
- /**
11
- * @deprecated - Use v1.mediaRecording instead
12
- */
13
- get mediaRecording(): MediaRecordingListInstance;
14
- /**
15
- * @deprecated - Use v1.playerStreamer instead
16
- */
17
- get playerStreamer(): PlayerStreamerListInstance;
18
3
  }
19
4
  export = Media;
package/lib/rest/Media.js CHANGED
@@ -4,26 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  const MediaBase_1 = __importDefault(require("./MediaBase"));
6
6
  class Media extends MediaBase_1.default {
7
- /**
8
- * @deprecated - Use v1.mediaProcessor instead
9
- */
10
- get mediaProcessor() {
11
- console.warn("mediaProcessor is deprecated. Use v1.mediaProcessor instead.");
12
- return this.v1.mediaProcessor;
13
- }
14
- /**
15
- * @deprecated - Use v1.mediaRecording instead
16
- */
17
- get mediaRecording() {
18
- console.warn("mediaRecording is deprecated. Use v1.mediaRecording instead.");
19
- return this.v1.mediaRecording;
20
- }
21
- /**
22
- * @deprecated - Use v1.playerStreamer instead
23
- */
24
- get playerStreamer() {
25
- console.warn("playerStreamer is deprecated. Use v1.playerStreamer instead.");
26
- return this.v1.playerStreamer;
27
- }
28
7
  }
29
8
  module.exports = Media;
@@ -4,7 +4,6 @@ import { HostedNumberOrderListInstance } from "./preview/hosted_numbers/hostedNu
4
4
  import { AvailableAddOnListInstance } from "./preview/marketplace/availableAddOn";
5
5
  import { InstalledAddOnListInstance } from "./preview/marketplace/installedAddOn";
6
6
  import { ServiceListInstance } from "./preview/sync/service";
7
- import { AssistantListInstance } from "./preview/understand/assistant";
8
7
  import { CommandListInstance } from "./preview/wireless/command";
9
8
  import { RatePlanListInstance } from "./preview/wireless/ratePlan";
10
9
  import { SimListInstance } from "./preview/wireless/sim";
@@ -34,10 +33,6 @@ declare class Preview extends PreviewBase {
34
33
  * @deprecated - Use sync.services instead
35
34
  */
36
35
  get services(): ServiceListInstance;
37
- /**
38
- * @deprecated - Use understand.assistants instead
39
- */
40
- get assistants(): AssistantListInstance;
41
36
  /**
42
37
  * @deprecated - Use wireless.commands instead
43
38
  */
@@ -46,13 +46,6 @@ class Preview extends PreviewBase_1.default {
46
46
  console.warn("services is deprecated. Use sync.services instead.");
47
47
  return this.sync.services;
48
48
  }
49
- /**
50
- * @deprecated - Use understand.assistants instead
51
- */
52
- get assistants() {
53
- console.warn("assistants is deprecated. Use understand.assistants instead.");
54
- return this.understand.assistants;
55
- }
56
49
  /**
57
50
  * @deprecated - Use wireless.commands instead
58
51
  */
@@ -3,14 +3,12 @@ import DeployedDevices from "./preview/DeployedDevices";
3
3
  import HostedNumbers from "./preview/HostedNumbers";
4
4
  import Sync from "./preview/Sync";
5
5
  import Marketplace from "./preview/Marketplace";
6
- import Understand from "./preview/Understand";
7
6
  import Wireless from "./preview/Wireless";
8
7
  declare class PreviewBase extends Domain {
9
8
  _deployed_devices?: DeployedDevices;
10
9
  _hosted_numbers?: HostedNumbers;
11
10
  _sync?: Sync;
12
11
  _marketplace?: Marketplace;
13
- _understand?: Understand;
14
12
  _wireless?: Wireless;
15
13
  /**
16
14
  * Initialize preview domain
@@ -22,7 +20,6 @@ declare class PreviewBase extends Domain {
22
20
  get hosted_numbers(): HostedNumbers;
23
21
  get sync(): Sync;
24
22
  get marketplace(): Marketplace;
25
- get understand(): Understand;
26
23
  get wireless(): Wireless;
27
24
  }
28
25
  export = PreviewBase;
@@ -17,7 +17,6 @@ const DeployedDevices_1 = __importDefault(require("./preview/DeployedDevices"));
17
17
  const HostedNumbers_1 = __importDefault(require("./preview/HostedNumbers"));
18
18
  const Sync_1 = __importDefault(require("./preview/Sync"));
19
19
  const Marketplace_1 = __importDefault(require("./preview/Marketplace"));
20
- const Understand_1 = __importDefault(require("./preview/Understand"));
21
20
  const Wireless_1 = __importDefault(require("./preview/Wireless"));
22
21
  class PreviewBase extends Domain_1.default {
23
22
  /**
@@ -45,10 +44,6 @@ class PreviewBase extends Domain_1.default {
45
44
  this._marketplace = this._marketplace || new Marketplace_1.default(this);
46
45
  return this._marketplace;
47
46
  }
48
- get understand() {
49
- this._understand = this._understand || new Understand_1.default(this);
50
- return this._understand;
51
- }
52
47
  get wireless() {
53
48
  this._wireless = this._wireless || new Wireless_1.default(this);
54
49
  return this._wireless;
@@ -1,7 +1,6 @@
1
1
  import { Client, ClientOpts, RequestOpts } from "../base/BaseTwilio";
2
2
  import Accounts from "./Accounts";
3
3
  import Api from "./Api";
4
- import Autopilot from "./Autopilot";
5
4
  import Bulkexports from "./Bulkexports";
6
5
  import Chat from "./Chat";
7
6
  import Content from "./Content";
@@ -67,8 +66,6 @@ declare class Twilio extends Client {
67
66
  _accounts?: Accounts;
68
67
  /** (Twilio.Api) - api domain */
69
68
  _api?: Api;
70
- /** (Twilio.Autopilot) - autopilot domain */
71
- _autopilot?: Autopilot;
72
69
  /** (Twilio.Bulkexports) - bulkexports domain */
73
70
  _bulkexports?: Bulkexports;
74
71
  /** (Twilio.Chat) - chat domain */
@@ -151,8 +148,6 @@ declare class Twilio extends Client {
151
148
  get accounts(): Accounts;
152
149
  /** Getter for (Twilio.Api) domain */
153
150
  get api(): Api;
154
- /** Getter for (Twilio.Autopilot) domain */
155
- get autopilot(): Autopilot;
156
151
  /** Getter for (Twilio.Bulkexports) domain */
157
152
  get bulkexports(): Bulkexports;
158
153
  /** Getter for (Twilio.Chat) domain */
@@ -34,7 +34,6 @@ class Twilio extends BaseTwilio_1.Client {
34
34
  if (this.opts?.lazyLoading === false) {
35
35
  this.accounts;
36
36
  this.api;
37
- this.autopilot;
38
37
  this.bulkexports;
39
38
  this.chat;
40
39
  this.content;
@@ -79,10 +78,6 @@ class Twilio extends BaseTwilio_1.Client {
79
78
  get api() {
80
79
  return this._api ?? (this._api = new (require("./Api"))(this));
81
80
  }
82
- /** Getter for (Twilio.Autopilot) domain */
83
- get autopilot() {
84
- return (this._autopilot ?? (this._autopilot = new (require("./Autopilot"))(this)));
85
- }
86
81
  /** Getter for (Twilio.Bulkexports) domain */
87
82
  get bulkexports() {
88
83
  return (this._bulkexports ??
@@ -80,8 +80,6 @@ interface AuthorizedConnectAppResource {
80
80
  connect_app_friendly_name: string;
81
81
  connect_app_homepage_url: string;
82
82
  connect_app_sid: string;
83
- date_created: Date;
84
- date_updated: Date;
85
83
  permissions: Array<AuthorizedConnectAppPermission>;
86
84
  uri: string;
87
85
  }
@@ -114,14 +112,6 @@ export declare class AuthorizedConnectAppInstance {
114
112
  * The SID that we assigned to the Connect App.
115
113
  */
116
114
  connectAppSid: string;
117
- /**
118
- * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
119
- */
120
- dateCreated: Date;
121
- /**
122
- * The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
123
- */
124
- dateUpdated: Date;
125
115
  /**
126
116
  * The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
127
117
  */
@@ -151,8 +141,6 @@ export declare class AuthorizedConnectAppInstance {
151
141
  connectAppFriendlyName: string;
152
142
  connectAppHomepageUrl: string;
153
143
  connectAppSid: string;
154
- dateCreated: Date;
155
- dateUpdated: Date;
156
144
  permissions: AuthorizedConnectAppPermission[];
157
145
  uri: string;
158
146
  };
@@ -66,8 +66,6 @@ class AuthorizedConnectAppInstance {
66
66
  this.connectAppFriendlyName = payload.connect_app_friendly_name;
67
67
  this.connectAppHomepageUrl = payload.connect_app_homepage_url;
68
68
  this.connectAppSid = payload.connect_app_sid;
69
- this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
70
- this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
71
69
  this.permissions = payload.permissions;
72
70
  this.uri = payload.uri;
73
71
  this._solution = {
@@ -104,8 +102,6 @@ class AuthorizedConnectAppInstance {
104
102
  connectAppFriendlyName: this.connectAppFriendlyName,
105
103
  connectAppHomepageUrl: this.connectAppHomepageUrl,
106
104
  connectAppSid: this.connectAppSid,
107
- dateCreated: this.dateCreated,
108
- dateUpdated: this.dateUpdated,
109
105
  permissions: this.permissions,
110
106
  uri: this.uri,
111
107
  };
@@ -4,8 +4,6 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V2010 from "../../V2010";
6
6
  import { EventListInstance } from "./call/event";
7
- import { FeedbackListInstance } from "./call/feedback";
8
- import { FeedbackSummaryListInstance } from "./call/feedbackSummary";
9
7
  import { NotificationListInstance } from "./call/notification";
10
8
  import { PaymentListInstance } from "./call/payment";
11
9
  import { RecordingListInstance } from "./call/recording";
@@ -185,7 +183,6 @@ export interface CallListInstancePageOptions {
185
183
  }
186
184
  export interface CallContext {
187
185
  events: EventListInstance;
188
- feedback: FeedbackListInstance;
189
186
  notifications: NotificationListInstance;
190
187
  payments: PaymentListInstance;
191
188
  recordings: RecordingListInstance;
@@ -241,7 +238,6 @@ export declare class CallContextImpl implements CallContext {
241
238
  protected _solution: CallContextSolution;
242
239
  protected _uri: string;
243
240
  protected _events?: EventListInstance;
244
- protected _feedback?: FeedbackListInstance;
245
241
  protected _notifications?: NotificationListInstance;
246
242
  protected _payments?: PaymentListInstance;
247
243
  protected _recordings?: RecordingListInstance;
@@ -251,7 +247,6 @@ export declare class CallContextImpl implements CallContext {
251
247
  protected _userDefinedMessageSubscriptions?: UserDefinedMessageSubscriptionListInstance;
252
248
  constructor(_version: V2010, accountSid: string, sid: string);
253
249
  get events(): EventListInstance;
254
- get feedback(): FeedbackListInstance;
255
250
  get notifications(): NotificationListInstance;
256
251
  get payments(): PaymentListInstance;
257
252
  get recordings(): RecordingListInstance;
@@ -445,10 +440,6 @@ export declare class CallInstance {
445
440
  * Access the events.
446
441
  */
447
442
  events(): EventListInstance;
448
- /**
449
- * Access the feedback.
450
- */
451
- feedback(): FeedbackListInstance;
452
443
  /**
453
444
  * Access the notifications.
454
445
  */
@@ -521,8 +512,6 @@ export interface CallListInstance {
521
512
  _uri: string;
522
513
  (sid: string): CallContext;
523
514
  get(sid: string): CallContext;
524
- _feedbackSummaries?: FeedbackSummaryListInstance;
525
- feedbackSummaries: FeedbackSummaryListInstance;
526
515
  /**
527
516
  * Create a CallInstance
528
517
  *
@@ -23,8 +23,6 @@ const deserialize = require("../../../../base/deserialize");
23
23
  const serialize = require("../../../../base/serialize");
24
24
  const utility_1 = require("../../../../base/utility");
25
25
  const event_1 = require("./call/event");
26
- const feedback_1 = require("./call/feedback");
27
- const feedbackSummary_1 = require("./call/feedbackSummary");
28
26
  const notification_1 = require("./call/notification");
29
27
  const payment_1 = require("./call/payment");
30
28
  const recording_1 = require("./call/recording");
@@ -50,12 +48,6 @@ class CallContextImpl {
50
48
  (0, event_1.EventListInstance)(this._version, this._solution.accountSid, this._solution.sid);
51
49
  return this._events;
52
50
  }
53
- get feedback() {
54
- this._feedback =
55
- this._feedback ||
56
- (0, feedback_1.FeedbackListInstance)(this._version, this._solution.accountSid, this._solution.sid);
57
- return this._feedback;
58
- }
59
51
  get notifications() {
60
52
  this._notifications =
61
53
  this._notifications ||
@@ -236,12 +228,6 @@ class CallInstance {
236
228
  events() {
237
229
  return this._proxy.events;
238
230
  }
239
- /**
240
- * Access the feedback.
241
- */
242
- feedback() {
243
- return this._proxy.feedback;
244
- }
245
231
  /**
246
232
  * Access the notifications.
247
233
  */
@@ -335,14 +321,6 @@ function CallListInstance(version, accountSid) {
335
321
  instance._version = version;
336
322
  instance._solution = { accountSid };
337
323
  instance._uri = `/Accounts/${accountSid}/Calls.json`;
338
- Object.defineProperty(instance, "feedbackSummaries", {
339
- get: function feedbackSummaries() {
340
- if (!instance._feedbackSummaries) {
341
- instance._feedbackSummaries = (0, feedbackSummary_1.FeedbackSummaryListInstance)(instance._version, instance._solution.accountSid);
342
- }
343
- return instance._feedbackSummaries;
344
- },
345
- });
346
324
  instance.create = function create(params, callback) {
347
325
  if (params === null || params === undefined) {
348
326
  throw new Error('Required parameter "params" missing.');
@@ -29,9 +29,9 @@ export interface MessageListInstanceCreateOptions {
29
29
  to: string;
30
30
  /** The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). */
31
31
  statusCallback?: string;
32
- /** The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App\\\'s `message_status_callback` URL. */
32
+ /** The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App\\\'s `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. */
33
33
  applicationSid?: string;
34
- /** The maximum price in US dollars that you are willing to pay for this Message\\\'s delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`. */
34
+ /** [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. */
35
35
  maxPrice?: number;
36
36
  /** Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. */
37
37
  provideFeedback?: boolean;
@@ -0,0 +1,79 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../../V1";
4
+ /**
5
+ * Content approval request body
6
+ */
7
+ export declare class ContentApprovalRequest {
8
+ /**
9
+ * Name of the template.
10
+ */
11
+ "name": string;
12
+ /**
13
+ * A WhatsApp recognized template category.
14
+ */
15
+ "category": string;
16
+ }
17
+ /**
18
+ * Options to pass to create a ApprovalCreateInstance
19
+ */
20
+ export interface ApprovalCreateListInstanceCreateOptions {
21
+ /** */
22
+ contentApprovalRequest: ContentApprovalRequest;
23
+ }
24
+ export interface ApprovalCreateSolution {
25
+ sid: string;
26
+ }
27
+ export interface ApprovalCreateListInstance {
28
+ _version: V1;
29
+ _solution: ApprovalCreateSolution;
30
+ _uri: string;
31
+ /**
32
+ * Create a ApprovalCreateInstance
33
+ *
34
+ * @param params - Body for request
35
+ * @param callback - Callback to handle processed record
36
+ *
37
+ * @returns Resolves to processed ApprovalCreateInstance
38
+ */
39
+ create(params: ContentApprovalRequest, callback?: (error: Error | null, item?: ApprovalCreateInstance) => any): Promise<ApprovalCreateInstance>;
40
+ /**
41
+ * Provide a user-friendly representation
42
+ */
43
+ toJSON(): any;
44
+ [inspect.custom](_depth: any, options: InspectOptions): any;
45
+ }
46
+ export declare function ApprovalCreateListInstance(version: V1, sid: string): ApprovalCreateListInstance;
47
+ interface ApprovalCreateResource {
48
+ name: string;
49
+ category: string;
50
+ content_type: string;
51
+ status: string;
52
+ rejection_reason: string;
53
+ allow_category_change: boolean;
54
+ }
55
+ export declare class ApprovalCreateInstance {
56
+ protected _version: V1;
57
+ constructor(_version: V1, payload: ApprovalCreateResource, sid: string);
58
+ name: string;
59
+ category: string;
60
+ contentType: string;
61
+ status: string;
62
+ rejectionReason: string;
63
+ allowCategoryChange: boolean;
64
+ /**
65
+ * Provide a user-friendly representation
66
+ *
67
+ * @returns Object
68
+ */
69
+ toJSON(): {
70
+ name: string;
71
+ category: string;
72
+ contentType: string;
73
+ status: string;
74
+ rejectionReason: string;
75
+ allowCategoryChange: boolean;
76
+ };
77
+ [inspect.custom](_depth: any, options: InspectOptions): string;
78
+ }
79
+ export {};
@@ -0,0 +1,91 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ApprovalCreateInstance = exports.ApprovalCreateListInstance = exports.ContentApprovalRequest = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../../base/deserialize");
19
+ const serialize = require("../../../../base/serialize");
20
+ const utility_1 = require("../../../../base/utility");
21
+ /**
22
+ * Content approval request body
23
+ */
24
+ class ContentApprovalRequest {
25
+ }
26
+ exports.ContentApprovalRequest = ContentApprovalRequest;
27
+ function ApprovalCreateListInstance(version, sid) {
28
+ if (!(0, utility_1.isValidPathParam)(sid)) {
29
+ throw new Error("Parameter 'sid' is not valid.");
30
+ }
31
+ const instance = {};
32
+ instance._version = version;
33
+ instance._solution = { sid };
34
+ instance._uri = `/Content/${sid}/ApprovalRequests/whatsapp`;
35
+ instance.create = function create(params, callback) {
36
+ if (params === null || params === undefined) {
37
+ throw new Error('Required parameter "params" missing.');
38
+ }
39
+ let data = {};
40
+ data = params;
41
+ const headers = {};
42
+ headers["Content-Type"] = "application/json";
43
+ let operationVersion = version, operationPromise = operationVersion.create({
44
+ uri: instance._uri,
45
+ method: "post",
46
+ data,
47
+ headers,
48
+ });
49
+ operationPromise = operationPromise.then((payload) => new ApprovalCreateInstance(operationVersion, payload, instance._solution.sid));
50
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
51
+ return operationPromise;
52
+ };
53
+ instance.toJSON = function toJSON() {
54
+ return instance._solution;
55
+ };
56
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
57
+ return (0, util_1.inspect)(instance.toJSON(), options);
58
+ };
59
+ return instance;
60
+ }
61
+ exports.ApprovalCreateListInstance = ApprovalCreateListInstance;
62
+ class ApprovalCreateInstance {
63
+ constructor(_version, payload, sid) {
64
+ this._version = _version;
65
+ this.name = payload.name;
66
+ this.category = payload.category;
67
+ this.contentType = payload.content_type;
68
+ this.status = payload.status;
69
+ this.rejectionReason = payload.rejection_reason;
70
+ this.allowCategoryChange = payload.allow_category_change;
71
+ }
72
+ /**
73
+ * Provide a user-friendly representation
74
+ *
75
+ * @returns Object
76
+ */
77
+ toJSON() {
78
+ return {
79
+ name: this.name,
80
+ category: this.category,
81
+ contentType: this.contentType,
82
+ status: this.status,
83
+ rejectionReason: this.rejectionReason,
84
+ allowCategoryChange: this.allowCategoryChange,
85
+ };
86
+ }
87
+ [util_1.inspect.custom](_depth, options) {
88
+ return (0, util_1.inspect)(this.toJSON(), options);
89
+ }
90
+ }
91
+ exports.ApprovalCreateInstance = ApprovalCreateInstance;