twilio 5.7.0 → 5.7.2

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 (258) hide show
  1. package/lib/rest/Twilio.d.ts +0 -10
  2. package/lib/rest/Twilio.js +0 -11
  3. package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
  4. package/lib/rest/accounts/v1/bulkConsents.js +1 -1
  5. package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
  6. package/lib/rest/accounts/v1/bulkContacts.js +1 -1
  7. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -10
  8. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -2
  9. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +3 -0
  10. package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
  11. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  12. package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
  13. package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
  14. package/lib/rest/api/v2010/account/connectApp.d.ts +3 -0
  15. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +3 -0
  17. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +3 -0
  18. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +3 -0
  19. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +3 -0
  20. package/lib/rest/api/v2010/account/recording.d.ts +4 -4
  21. package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -0
  22. package/lib/rest/bulkexports/v1/export/day.d.ts +3 -3
  23. package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
  24. package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
  25. package/lib/rest/chat/v1/credential.d.ts +3 -0
  26. package/lib/rest/chat/v1/service/channel.d.ts +3 -0
  27. package/lib/rest/chat/v1/service/role.d.ts +3 -0
  28. package/lib/rest/chat/v1/service/user/userChannel.d.ts +3 -0
  29. package/lib/rest/chat/v1/service.d.ts +9 -9
  30. package/lib/rest/chat/v2/credential.d.ts +3 -0
  31. package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
  32. package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
  33. package/lib/rest/chat/v2/service/channel.d.ts +3 -0
  34. package/lib/rest/chat/v2/service/role.d.ts +3 -0
  35. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
  36. package/lib/rest/chat/v2/service.d.ts +9 -9
  37. package/lib/rest/chat/v3/channel.d.ts +3 -0
  38. package/lib/rest/content/v2/content.d.ts +6 -6
  39. package/lib/rest/content/v2/contentAndApprovals.d.ts +9 -9
  40. package/lib/rest/conversations/v1/addressConfiguration.d.ts +7 -7
  41. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +6 -3
  42. package/lib/rest/conversations/v1/conversation/message.d.ts +9 -9
  43. package/lib/rest/conversations/v1/conversation/participant.d.ts +6 -6
  44. package/lib/rest/conversations/v1/conversation/webhook.d.ts +7 -7
  45. package/lib/rest/conversations/v1/conversation.d.ts +9 -9
  46. package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
  47. package/lib/rest/conversations/v1/credential.d.ts +6 -3
  48. package/lib/rest/conversations/v1/participantConversation.d.ts +12 -9
  49. package/lib/rest/conversations/v1/role.d.ts +6 -3
  50. package/lib/rest/conversations/v1/service/binding.d.ts +3 -3
  51. package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
  52. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +6 -3
  53. package/lib/rest/conversations/v1/service/conversation/message.d.ts +9 -9
  54. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +6 -6
  55. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +7 -7
  56. package/lib/rest/conversations/v1/service/conversation.d.ts +9 -9
  57. package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
  58. package/lib/rest/conversations/v1/service/participantConversation.d.ts +12 -9
  59. package/lib/rest/conversations/v1/service/role.d.ts +6 -3
  60. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -6
  61. package/lib/rest/conversations/v1/service/user.d.ts +3 -3
  62. package/lib/rest/conversations/v1/service.d.ts +3 -3
  63. package/lib/rest/conversations/v1/user/userConversation.d.ts +9 -6
  64. package/lib/rest/conversations/v1/user.d.ts +3 -3
  65. package/lib/rest/events/v1/sink.d.ts +4 -4
  66. package/lib/rest/events/v1/subscription.d.ts +1 -1
  67. package/lib/rest/events/v1/subscription.js +1 -1
  68. package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
  69. package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
  70. package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
  71. package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
  72. package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
  73. package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
  74. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
  75. package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
  76. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
  77. package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
  78. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
  79. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
  80. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +6 -0
  81. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +4 -1
  82. package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
  83. package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
  84. package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
  85. package/lib/rest/frontlineApi/v1/user.d.ts +3 -0
  86. package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
  87. package/lib/rest/intelligence/v2/operator.d.ts +3 -3
  88. package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
  89. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
  90. package/lib/rest/intelligence/v2/service.d.ts +3 -0
  91. package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
  92. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
  93. package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
  94. package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
  95. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
  96. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
  97. package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
  98. package/lib/rest/lookups/V2.d.ts +20 -0
  99. package/lib/rest/lookups/V2.js +25 -0
  100. package/lib/rest/lookups/v2/bucket.d.ts +205 -0
  101. package/lib/rest/lookups/v2/bucket.js +187 -0
  102. package/lib/rest/lookups/v2/lookupOverride.d.ts +264 -0
  103. package/lib/rest/lookups/v2/lookupOverride.js +225 -0
  104. package/lib/rest/lookups/v2/phoneNumber.d.ts +3 -0
  105. package/lib/rest/lookups/v2/query.d.ts +175 -0
  106. package/lib/rest/lookups/v2/query.js +123 -0
  107. package/lib/rest/lookups/v2/rateLimit.d.ts +83 -0
  108. package/lib/rest/lookups/v2/rateLimit.js +82 -0
  109. package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +6 -0
  110. package/lib/rest/messaging/v1/service/destinationAlphaSender.js +2 -0
  111. package/lib/rest/messaging/v1/service.d.ts +3 -3
  112. package/lib/rest/messaging/v2/channelsSender.d.ts +49 -4
  113. package/lib/rest/messaging/v2/channelsSender.js +14 -2
  114. package/lib/rest/monitor/v1/event.d.ts +3 -3
  115. package/lib/rest/notify/v1/credential.d.ts +3 -0
  116. package/lib/rest/notify/v1/service/notification.d.ts +28 -28
  117. package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
  118. package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
  119. package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
  120. package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
  121. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
  122. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
  123. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
  124. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
  125. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
  126. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
  127. package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
  128. package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
  129. package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
  130. package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
  131. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
  132. package/lib/rest/proxy/v1/service/session.d.ts +1 -1
  133. package/lib/rest/proxy/v1/service/session.js +1 -1
  134. package/lib/rest/proxy/v1/service.d.ts +0 -8
  135. package/lib/rest/proxy/v1/service.js +0 -13
  136. package/lib/rest/serverless/v1/service/build.d.ts +9 -9
  137. package/lib/rest/serverless/v1/service/environment/log.d.ts +6 -7
  138. package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
  139. package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
  140. package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
  141. package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
  142. package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
  143. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  144. package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
  145. package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
  146. package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
  147. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  148. package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
  149. package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
  150. package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
  151. package/lib/rest/studio/v2/flow.d.ts +11 -11
  152. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  153. package/lib/rest/supersim/v1/network.d.ts +3 -3
  154. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
  155. package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
  156. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +3 -0
  157. package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
  158. package/lib/rest/sync/v1/service/document/documentPermission.d.ts +3 -3
  159. package/lib/rest/sync/v1/service/document.d.ts +3 -3
  160. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +3 -3
  161. package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +3 -3
  162. package/lib/rest/sync/v1/service/syncList.d.ts +3 -3
  163. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +3 -3
  164. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +3 -3
  165. package/lib/rest/sync/v1/service/syncMap.d.ts +3 -3
  166. package/lib/rest/sync/v1/service/syncStream.d.ts +3 -3
  167. package/lib/rest/sync/v1/service.d.ts +3 -3
  168. package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
  169. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +3 -0
  170. package/lib/rest/taskrouter/v1/workspace/task.d.ts +4 -1
  171. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
  172. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
  173. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
  174. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
  175. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
  176. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -0
  177. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
  178. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
  179. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
  180. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
  181. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
  182. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
  183. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
  184. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
  185. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
  186. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
  187. package/lib/rest/taskrouter/v1/workspace.d.ts +3 -0
  188. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +3 -0
  189. package/lib/rest/trunking/v1/trunk/recording.d.ts +6 -0
  190. package/lib/rest/trunking/v1/trunk.d.ts +12 -3
  191. package/lib/rest/trunking/v1/trunk.js +2 -0
  192. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
  193. package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
  194. package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
  195. package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
  196. package/lib/rest/trusthub/v1/policies.d.ts +3 -3
  197. package/lib/rest/trusthub/v1/supportingDocument.d.ts +5 -5
  198. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
  199. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
  200. package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
  201. package/lib/rest/verify/v2/form.d.ts +9 -6
  202. package/lib/rest/verify/v2/service/accessToken.d.ts +3 -0
  203. package/lib/rest/verify/v2/service/entity/challenge.d.ts +21 -12
  204. package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
  205. package/lib/rest/verify/v2/service/entity/factor.d.ts +12 -6
  206. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +16 -10
  207. package/lib/rest/verify/v2/service/verification.d.ts +11 -11
  208. package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
  209. package/lib/rest/verify/v2/service/webhook.d.ts +3 -0
  210. package/lib/rest/verify/v2/service.d.ts +9 -9
  211. package/lib/rest/verify/v2/template.d.ts +3 -3
  212. package/lib/rest/verify/v2/verificationAttempt.d.ts +13 -10
  213. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
  214. package/lib/rest/video/v1/composition.d.ts +3 -3
  215. package/lib/rest/video/v1/recording.d.ts +3 -3
  216. package/lib/rest/video/v1/room/transcriptions.d.ts +316 -0
  217. package/lib/rest/{proxy/v1/service/shortCode.js → video/v1/room/transcriptions.js} +61 -78
  218. package/lib/rest/video/v1/room.d.ts +8 -0
  219. package/lib/rest/video/v1/room.js +13 -0
  220. package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
  221. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
  222. package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
  223. package/lib/twiml/VoiceResponse.d.ts +32 -1
  224. package/lib/twiml/VoiceResponse.js +18 -0
  225. package/package.json +1 -1
  226. package/lib/rest/Knowledge.d.ts +0 -4
  227. package/lib/rest/Knowledge.js +0 -8
  228. package/lib/rest/KnowledgeBase.d.ts +0 -13
  229. package/lib/rest/KnowledgeBase.js +0 -31
  230. package/lib/rest/Microvisor.d.ts +0 -14
  231. package/lib/rest/Microvisor.js +0 -22
  232. package/lib/rest/MicrovisorBase.d.ts +0 -13
  233. package/lib/rest/MicrovisorBase.js +0 -31
  234. package/lib/rest/knowledge/V1.d.ts +0 -15
  235. package/lib/rest/knowledge/V1.js +0 -36
  236. package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +0 -167
  237. package/lib/rest/knowledge/v1/knowledge/chunk.js +0 -131
  238. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +0 -101
  239. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +0 -118
  240. package/lib/rest/knowledge/v1/knowledge.d.ts +0 -406
  241. package/lib/rest/knowledge/v1/knowledge.js +0 -300
  242. package/lib/rest/microvisor/V1.d.ts +0 -30
  243. package/lib/rest/microvisor/V1.js +0 -56
  244. package/lib/rest/microvisor/v1/accountConfig.d.ts +0 -263
  245. package/lib/rest/microvisor/v1/accountConfig.js +0 -254
  246. package/lib/rest/microvisor/v1/accountSecret.d.ts +0 -257
  247. package/lib/rest/microvisor/v1/accountSecret.js +0 -252
  248. package/lib/rest/microvisor/v1/app/appManifest.d.ts +0 -101
  249. package/lib/rest/microvisor/v1/app/appManifest.js +0 -118
  250. package/lib/rest/microvisor/v1/app.d.ts +0 -251
  251. package/lib/rest/microvisor/v1/app.js +0 -222
  252. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +0 -271
  253. package/lib/rest/microvisor/v1/device/deviceConfig.js +0 -262
  254. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +0 -265
  255. package/lib/rest/microvisor/v1/device/deviceSecret.js +0 -260
  256. package/lib/rest/microvisor/v1/device.d.ts +0 -299
  257. package/lib/rest/microvisor/v1/device.js +0 -250
  258. package/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Lookups
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.LookupOverrideListInstance = exports.LookupOverrideInstance = exports.LookupOverrideContextImpl = exports.OverridesRequest = 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
+ class OverridesRequest {
22
+ }
23
+ exports.OverridesRequest = OverridesRequest;
24
+ class LookupOverrideContextImpl {
25
+ constructor(_version, field, phoneNumber) {
26
+ this._version = _version;
27
+ if (!(0, utility_1.isValidPathParam)(field)) {
28
+ throw new Error("Parameter 'field' is not valid.");
29
+ }
30
+ if (!(0, utility_1.isValidPathParam)(phoneNumber)) {
31
+ throw new Error("Parameter 'phoneNumber' is not valid.");
32
+ }
33
+ this._solution = { field, phoneNumber };
34
+ this._uri = `/PhoneNumbers/${phoneNumber}/Overrides/${field}`;
35
+ }
36
+ create(params, headers, callback) {
37
+ if (params instanceof Function) {
38
+ callback = params;
39
+ params = {};
40
+ }
41
+ else {
42
+ params = params || {};
43
+ }
44
+ let data = {};
45
+ data = params;
46
+ if (headers === null || headers === undefined) {
47
+ headers = {};
48
+ }
49
+ headers["Content-Type"] = "application/json";
50
+ headers["Accept"] = "application/json";
51
+ const instance = this;
52
+ let operationVersion = instance._version, operationPromise = operationVersion.create({
53
+ uri: instance._uri,
54
+ method: "post",
55
+ data,
56
+ headers,
57
+ });
58
+ operationPromise = operationPromise.then((payload) => new LookupOverrideInstance(operationVersion, payload, instance._solution.field, instance._solution.phoneNumber));
59
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
60
+ return operationPromise;
61
+ }
62
+ remove(callback) {
63
+ const headers = {};
64
+ const instance = this;
65
+ let operationVersion = instance._version, operationPromise = operationVersion.remove({
66
+ uri: instance._uri,
67
+ method: "delete",
68
+ headers,
69
+ });
70
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
71
+ return operationPromise;
72
+ }
73
+ fetch(callback) {
74
+ const headers = {};
75
+ headers["Accept"] = "application/json";
76
+ const instance = this;
77
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
78
+ uri: instance._uri,
79
+ method: "get",
80
+ headers,
81
+ });
82
+ operationPromise = operationPromise.then((payload) => new LookupOverrideInstance(operationVersion, payload, instance._solution.field, instance._solution.phoneNumber));
83
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
84
+ return operationPromise;
85
+ }
86
+ update(params, headers, callback) {
87
+ if (params instanceof Function) {
88
+ callback = params;
89
+ params = {};
90
+ }
91
+ else {
92
+ params = params || {};
93
+ }
94
+ let data = {};
95
+ data = params;
96
+ if (headers === null || headers === undefined) {
97
+ headers = {};
98
+ }
99
+ headers["Content-Type"] = "application/json";
100
+ headers["Accept"] = "application/json";
101
+ const instance = this;
102
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
103
+ uri: instance._uri,
104
+ method: "put",
105
+ data,
106
+ headers,
107
+ });
108
+ operationPromise = operationPromise.then((payload) => new LookupOverrideInstance(operationVersion, payload, instance._solution.field, instance._solution.phoneNumber));
109
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
110
+ return operationPromise;
111
+ }
112
+ /**
113
+ * Provide a user-friendly representation
114
+ *
115
+ * @returns Object
116
+ */
117
+ toJSON() {
118
+ return this._solution;
119
+ }
120
+ [util_1.inspect.custom](_depth, options) {
121
+ return (0, util_1.inspect)(this.toJSON(), options);
122
+ }
123
+ }
124
+ exports.LookupOverrideContextImpl = LookupOverrideContextImpl;
125
+ class LookupOverrideInstance {
126
+ constructor(_version, payload, field, phoneNumber) {
127
+ this._version = _version;
128
+ this.phoneNumber = payload.phone_number;
129
+ this.originalLineType = payload.original_line_type;
130
+ this.overriddenLineType = payload.overridden_line_type;
131
+ this.overrideReason = payload.override_reason;
132
+ this.overrideTimestamp = deserialize.iso8601DateTime(payload.override_timestamp);
133
+ this.overriddenByAccountSid = payload.overridden_by_account_sid;
134
+ this.code = payload.code;
135
+ this.message = payload.message;
136
+ this.moreInfo = payload.more_info;
137
+ this.status = payload.status;
138
+ this.field = payload.field;
139
+ this.limit = payload.limit;
140
+ this.bucket = payload.bucket;
141
+ this.owner = payload.owner;
142
+ this.ttl = payload.ttl;
143
+ this._solution = {
144
+ field: field || this.field,
145
+ phoneNumber: phoneNumber || this.phoneNumber,
146
+ };
147
+ }
148
+ get _proxy() {
149
+ this._context =
150
+ this._context ||
151
+ new LookupOverrideContextImpl(this._version, this._solution.field, this._solution.phoneNumber);
152
+ return this._context;
153
+ }
154
+ create(params, callback) {
155
+ return this._proxy.create(params, callback);
156
+ }
157
+ /**
158
+ * Remove a LookupOverrideInstance
159
+ *
160
+ * @param callback - Callback to handle processed record
161
+ *
162
+ * @returns Resolves to processed boolean
163
+ */
164
+ remove(callback) {
165
+ return this._proxy.remove(callback);
166
+ }
167
+ /**
168
+ * Fetch a LookupOverrideInstance
169
+ *
170
+ * @param callback - Callback to handle processed record
171
+ *
172
+ * @returns Resolves to processed LookupOverrideInstance
173
+ */
174
+ fetch(callback) {
175
+ return this._proxy.fetch(callback);
176
+ }
177
+ update(params, callback) {
178
+ return this._proxy.update(params, callback);
179
+ }
180
+ /**
181
+ * Provide a user-friendly representation
182
+ *
183
+ * @returns Object
184
+ */
185
+ toJSON() {
186
+ return {
187
+ phoneNumber: this.phoneNumber,
188
+ originalLineType: this.originalLineType,
189
+ overriddenLineType: this.overriddenLineType,
190
+ overrideReason: this.overrideReason,
191
+ overrideTimestamp: this.overrideTimestamp,
192
+ overriddenByAccountSid: this.overriddenByAccountSid,
193
+ code: this.code,
194
+ message: this.message,
195
+ moreInfo: this.moreInfo,
196
+ status: this.status,
197
+ field: this.field,
198
+ limit: this.limit,
199
+ bucket: this.bucket,
200
+ owner: this.owner,
201
+ ttl: this.ttl,
202
+ };
203
+ }
204
+ [util_1.inspect.custom](_depth, options) {
205
+ return (0, util_1.inspect)(this.toJSON(), options);
206
+ }
207
+ }
208
+ exports.LookupOverrideInstance = LookupOverrideInstance;
209
+ function LookupOverrideListInstance(version) {
210
+ const instance = ((field, phoneNumber) => instance.get(field, phoneNumber));
211
+ instance.get = function get(field, phoneNumber) {
212
+ return new LookupOverrideContextImpl(version, field, phoneNumber);
213
+ };
214
+ instance._version = version;
215
+ instance._solution = {};
216
+ instance._uri = ``;
217
+ instance.toJSON = function toJSON() {
218
+ return instance._solution;
219
+ };
220
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
221
+ return (0, util_1.inspect)(instance.toJSON(), options);
222
+ };
223
+ return instance;
224
+ }
225
+ exports.LookupOverrideListInstance = LookupOverrideListInstance;
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V2 from "../V2";
4
+ /**
5
+ * Contains reasons why a phone number is invalid. Possible values: TOO_SHORT, TOO_LONG, INVALID_BUT_POSSIBLE, INVALID_COUNTRY_CODE, INVALID_LENGTH, NOT_A_NUMBER.
6
+ */
4
7
  export type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT_POSSIBLE" | "INVALID_COUNTRY_CODE" | "INVALID_LENGTH" | "NOT_A_NUMBER";
5
8
  /**
6
9
  * Options to pass to fetch a PhoneNumberInstance
@@ -0,0 +1,175 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V2 from "../V2";
4
+ export declare class CallForwarding {
5
+ "call_forwarding_enabled"?: boolean;
6
+ "error_code"?: number;
7
+ }
8
+ export declare class CallerName {
9
+ "caller_name"?: string;
10
+ "caller_type"?: string;
11
+ "error_code"?: number;
12
+ }
13
+ export declare class IdentityMatch {
14
+ "first_name_match"?: string;
15
+ "last_name_match"?: string;
16
+ "address_line_match"?: string;
17
+ "city_match"?: string;
18
+ "state_match"?: string;
19
+ "postal_code_match"?: string;
20
+ "country_code_match"?: string;
21
+ "national_id_match"?: string;
22
+ "date_of_birth_match"?: string;
23
+ "summary_score"?: number;
24
+ "error_code"?: number;
25
+ "error_message"?: string;
26
+ }
27
+ export declare class IdentityMatchParameters {
28
+ "first_name"?: string;
29
+ "last_name"?: string;
30
+ "address_line1"?: string;
31
+ "address_line2"?: string;
32
+ "city"?: string;
33
+ "state"?: string;
34
+ "postal_code"?: string;
35
+ "address_country_code"?: string;
36
+ "national_id"?: string;
37
+ "date_of_birth"?: string;
38
+ }
39
+ export declare class LastSimSwap {
40
+ "last_sim_swap_date"?: Date;
41
+ "swapped_period"?: string;
42
+ "swapped_in_period"?: boolean;
43
+ }
44
+ export declare class LineStatus {
45
+ "status"?: string;
46
+ "error_code"?: number;
47
+ }
48
+ export declare class LineTypeIntelligence {
49
+ "type"?: string;
50
+ "carrier_name"?: string;
51
+ "mobile_country_code"?: string;
52
+ "mobile_network_code"?: string;
53
+ "error_code"?: number;
54
+ }
55
+ export declare class LookupRequest1 {
56
+ "phone_numbers"?: Array<LookupRequestWithCorId>;
57
+ }
58
+ export declare class LookupRequestWithCorId {
59
+ /**
60
+ * Unique identifier used to match request with response
61
+ */
62
+ "correlation_id"?: string;
63
+ "phone_number": string;
64
+ "fields"?: Array<string>;
65
+ "country_code"?: string;
66
+ "identity_match"?: IdentityMatchParameters;
67
+ "reassigned_number"?: ReassignedNumberRequest;
68
+ "sms_pumping_risk"?: SmsPumpingRiskParameters;
69
+ }
70
+ export declare class LookupResponseWithCorId {
71
+ /**
72
+ * Unique identifier used to match request with response
73
+ */
74
+ "correlation_id"?: string;
75
+ /**
76
+ * Twilio error code in case that the request to downstream fails
77
+ */
78
+ "twilio_error_code"?: number;
79
+ "calling_country_code"?: string;
80
+ "country_code"?: string;
81
+ "phone_number"?: string;
82
+ "national_format"?: string;
83
+ "valid"?: boolean;
84
+ "validation_errors"?: Array<string>;
85
+ "caller_name"?: CallerName;
86
+ "sim_swap"?: SimSwap;
87
+ "call_forwarding"?: CallForwarding;
88
+ "line_type_intelligence"?: LineTypeIntelligence;
89
+ "line_status"?: LineStatus;
90
+ "identity_match"?: IdentityMatch;
91
+ "reassigned_number"?: ReassignedNumberResponse;
92
+ "sms_pumping_risk"?: SmsPumpingRisk;
93
+ }
94
+ export declare class ReassignedNumberRequest {
95
+ "last_verified_date"?: string;
96
+ }
97
+ export declare class ReassignedNumberResponse {
98
+ "last_verified_date"?: string;
99
+ "is_number_reassigned"?: string;
100
+ "error_code"?: string;
101
+ }
102
+ export declare class SimSwap {
103
+ "last_sim_swap"?: LastSimSwap;
104
+ "carrier_name"?: string;
105
+ "mobile_country_code"?: string;
106
+ "mobile_network_code"?: string;
107
+ "error_code"?: number;
108
+ }
109
+ export declare class SmsPumpingRisk {
110
+ "carrier_risk_category"?: string;
111
+ "number_blocked"?: boolean;
112
+ "number_blocked_date"?: Date;
113
+ "number_blocked_last_3_months"?: boolean;
114
+ "sms_pumping_risk_score"?: number;
115
+ "error_code"?: number;
116
+ }
117
+ export declare class SmsPumpingRiskParameters {
118
+ "partner_sub_id"?: string;
119
+ }
120
+ /**
121
+ * Options to pass to create a QueryInstance
122
+ */
123
+ export interface QueryListInstanceCreateOptions {
124
+ /** */
125
+ lookupRequest1?: LookupRequest1;
126
+ }
127
+ export interface QuerySolution {
128
+ }
129
+ export interface QueryListInstance {
130
+ _version: V2;
131
+ _solution: QuerySolution;
132
+ _uri: string;
133
+ /**
134
+ * Create a QueryInstance
135
+ *
136
+ * @param callback - Callback to handle processed record
137
+ *
138
+ * @returns Resolves to processed QueryInstance
139
+ */
140
+ create(callback?: (error: Error | null, item?: QueryInstance) => any): Promise<QueryInstance>;
141
+ /**
142
+ * Create a QueryInstance
143
+ *
144
+ * @param params - Body for request
145
+ * @param headers - header params for request
146
+ * @param callback - Callback to handle processed record
147
+ *
148
+ * @returns Resolves to processed QueryInstance
149
+ */
150
+ create(params: LookupRequest1, headers?: any, callback?: (error: Error | null, item?: QueryInstance) => any): Promise<QueryInstance>;
151
+ /**
152
+ * Provide a user-friendly representation
153
+ */
154
+ toJSON(): any;
155
+ [inspect.custom](_depth: any, options: InspectOptions): any;
156
+ }
157
+ export declare function QueryListInstance(version: V2): QueryListInstance;
158
+ interface QueryResource {
159
+ phone_numbers: Array<LookupResponseWithCorId>;
160
+ }
161
+ export declare class QueryInstance {
162
+ protected _version: V2;
163
+ constructor(_version: V2, payload: QueryResource);
164
+ phoneNumbers: Array<LookupResponseWithCorId>;
165
+ /**
166
+ * Provide a user-friendly representation
167
+ *
168
+ * @returns Object
169
+ */
170
+ toJSON(): {
171
+ phoneNumbers: LookupResponseWithCorId[];
172
+ };
173
+ [inspect.custom](_depth: any, options: InspectOptions): string;
174
+ }
175
+ export {};
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Lookups
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.QueryInstance = exports.QueryListInstance = exports.SmsPumpingRiskParameters = exports.SmsPumpingRisk = exports.SimSwap = exports.ReassignedNumberResponse = exports.ReassignedNumberRequest = exports.LookupResponseWithCorId = exports.LookupRequestWithCorId = exports.LookupRequest1 = exports.LineTypeIntelligence = exports.LineStatus = exports.LastSimSwap = exports.IdentityMatchParameters = exports.IdentityMatch = exports.CallerName = exports.CallForwarding = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../base/deserialize");
19
+ const serialize = require("../../../base/serialize");
20
+ class CallForwarding {
21
+ }
22
+ exports.CallForwarding = CallForwarding;
23
+ class CallerName {
24
+ }
25
+ exports.CallerName = CallerName;
26
+ class IdentityMatch {
27
+ }
28
+ exports.IdentityMatch = IdentityMatch;
29
+ class IdentityMatchParameters {
30
+ }
31
+ exports.IdentityMatchParameters = IdentityMatchParameters;
32
+ class LastSimSwap {
33
+ }
34
+ exports.LastSimSwap = LastSimSwap;
35
+ class LineStatus {
36
+ }
37
+ exports.LineStatus = LineStatus;
38
+ class LineTypeIntelligence {
39
+ }
40
+ exports.LineTypeIntelligence = LineTypeIntelligence;
41
+ class LookupRequest1 {
42
+ }
43
+ exports.LookupRequest1 = LookupRequest1;
44
+ class LookupRequestWithCorId {
45
+ }
46
+ exports.LookupRequestWithCorId = LookupRequestWithCorId;
47
+ class LookupResponseWithCorId {
48
+ }
49
+ exports.LookupResponseWithCorId = LookupResponseWithCorId;
50
+ class ReassignedNumberRequest {
51
+ }
52
+ exports.ReassignedNumberRequest = ReassignedNumberRequest;
53
+ class ReassignedNumberResponse {
54
+ }
55
+ exports.ReassignedNumberResponse = ReassignedNumberResponse;
56
+ class SimSwap {
57
+ }
58
+ exports.SimSwap = SimSwap;
59
+ class SmsPumpingRisk {
60
+ }
61
+ exports.SmsPumpingRisk = SmsPumpingRisk;
62
+ class SmsPumpingRiskParameters {
63
+ }
64
+ exports.SmsPumpingRiskParameters = SmsPumpingRiskParameters;
65
+ function QueryListInstance(version) {
66
+ const instance = {};
67
+ instance._version = version;
68
+ instance._solution = {};
69
+ instance._uri = `/batch/query`;
70
+ instance.create = function create(params, headers, callback) {
71
+ if (params instanceof Function) {
72
+ callback = params;
73
+ params = {};
74
+ }
75
+ else {
76
+ params = params || {};
77
+ }
78
+ let data = {};
79
+ data = params;
80
+ if (headers === null || headers === undefined) {
81
+ headers = {};
82
+ }
83
+ headers["Content-Type"] = "application/json";
84
+ headers["Accept"] = "application/json";
85
+ let operationVersion = version, operationPromise = operationVersion.create({
86
+ uri: instance._uri,
87
+ method: "post",
88
+ data,
89
+ headers,
90
+ });
91
+ operationPromise = operationPromise.then((payload) => new QueryInstance(operationVersion, payload));
92
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
93
+ return operationPromise;
94
+ };
95
+ instance.toJSON = function toJSON() {
96
+ return instance._solution;
97
+ };
98
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
99
+ return (0, util_1.inspect)(instance.toJSON(), options);
100
+ };
101
+ return instance;
102
+ }
103
+ exports.QueryListInstance = QueryListInstance;
104
+ class QueryInstance {
105
+ constructor(_version, payload) {
106
+ this._version = _version;
107
+ this.phoneNumbers = payload.phone_numbers;
108
+ }
109
+ /**
110
+ * Provide a user-friendly representation
111
+ *
112
+ * @returns Object
113
+ */
114
+ toJSON() {
115
+ return {
116
+ phoneNumbers: this.phoneNumbers,
117
+ };
118
+ }
119
+ [util_1.inspect.custom](_depth, options) {
120
+ return (0, util_1.inspect)(this.toJSON(), options);
121
+ }
122
+ }
123
+ exports.QueryInstance = QueryInstance;
@@ -0,0 +1,83 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V2 from "../V2";
4
+ /**
5
+ * Rate limit response schema
6
+ */
7
+ export declare class RateLimitResponse {
8
+ /**
9
+ * Limit of requests for the bucket
10
+ */
11
+ "field"?: string;
12
+ /**
13
+ * Limit of requests for the bucket
14
+ */
15
+ "limit"?: number;
16
+ /**
17
+ * Name of the bucket
18
+ */
19
+ "bucket"?: string;
20
+ /**
21
+ * Owner of the rule
22
+ */
23
+ "owner"?: string;
24
+ /**
25
+ * Time to live of the rule
26
+ */
27
+ "ttl"?: number;
28
+ }
29
+ /**
30
+ * Options to pass to fetch a RateLimitInstance
31
+ */
32
+ export interface RateLimitListInstanceFetchOptions {
33
+ /** */
34
+ fields?: Array<string>;
35
+ }
36
+ export interface RateLimitSolution {
37
+ }
38
+ export interface RateLimitListInstance {
39
+ _version: V2;
40
+ _solution: RateLimitSolution;
41
+ _uri: string;
42
+ /**
43
+ * Fetch a RateLimitInstance
44
+ *
45
+ * @param callback - Callback to handle processed record
46
+ *
47
+ * @returns Resolves to processed RateLimitInstance
48
+ */
49
+ fetch(callback?: (error: Error | null, item?: RateLimitInstance) => any): Promise<RateLimitInstance>;
50
+ /**
51
+ * Fetch a RateLimitInstance
52
+ *
53
+ * @param params - Parameter for request
54
+ * @param callback - Callback to handle processed record
55
+ *
56
+ * @returns Resolves to processed RateLimitInstance
57
+ */
58
+ fetch(params: RateLimitListInstanceFetchOptions, callback?: (error: Error | null, item?: RateLimitInstance) => any): Promise<RateLimitInstance>;
59
+ /**
60
+ * Provide a user-friendly representation
61
+ */
62
+ toJSON(): any;
63
+ [inspect.custom](_depth: any, options: InspectOptions): any;
64
+ }
65
+ export declare function RateLimitListInstance(version: V2): RateLimitListInstance;
66
+ interface RateLimitResource {
67
+ rate_limits: Array<RateLimitResponse>;
68
+ }
69
+ export declare class RateLimitInstance {
70
+ protected _version: V2;
71
+ constructor(_version: V2, payload: RateLimitResource);
72
+ rateLimits: Array<RateLimitResponse>;
73
+ /**
74
+ * Provide a user-friendly representation
75
+ *
76
+ * @returns Object
77
+ */
78
+ toJSON(): {
79
+ rateLimits: RateLimitResponse[];
80
+ };
81
+ [inspect.custom](_depth: any, options: InspectOptions): string;
82
+ }
83
+ export {};
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Lookups
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.RateLimitInstance = exports.RateLimitListInstance = exports.RateLimitResponse = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../base/deserialize");
19
+ const serialize = require("../../../base/serialize");
20
+ /**
21
+ * Rate limit response schema
22
+ */
23
+ class RateLimitResponse {
24
+ }
25
+ exports.RateLimitResponse = RateLimitResponse;
26
+ function RateLimitListInstance(version) {
27
+ const instance = {};
28
+ instance._version = version;
29
+ instance._solution = {};
30
+ instance._uri = `/RateLimits`;
31
+ instance.fetch = function fetch(params, callback) {
32
+ if (params instanceof Function) {
33
+ callback = params;
34
+ params = {};
35
+ }
36
+ else {
37
+ params = params || {};
38
+ }
39
+ let data = {};
40
+ if (params["fields"] !== undefined)
41
+ data["Fields"] = serialize.map(params["fields"], (e) => e);
42
+ const headers = {};
43
+ headers["Accept"] = "application/json";
44
+ let operationVersion = version, operationPromise = operationVersion.fetch({
45
+ uri: instance._uri,
46
+ method: "get",
47
+ params: data,
48
+ headers,
49
+ });
50
+ operationPromise = operationPromise.then((payload) => new RateLimitInstance(operationVersion, payload));
51
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
52
+ return operationPromise;
53
+ };
54
+ instance.toJSON = function toJSON() {
55
+ return instance._solution;
56
+ };
57
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
58
+ return (0, util_1.inspect)(instance.toJSON(), options);
59
+ };
60
+ return instance;
61
+ }
62
+ exports.RateLimitListInstance = RateLimitListInstance;
63
+ class RateLimitInstance {
64
+ constructor(_version, payload) {
65
+ this._version = _version;
66
+ this.rateLimits = payload.rate_limits;
67
+ }
68
+ /**
69
+ * Provide a user-friendly representation
70
+ *
71
+ * @returns Object
72
+ */
73
+ toJSON() {
74
+ return {
75
+ rateLimits: this.rateLimits,
76
+ };
77
+ }
78
+ [util_1.inspect.custom](_depth, options) {
79
+ return (0, util_1.inspect)(this.toJSON(), options);
80
+ }
81
+ }
82
+ exports.RateLimitInstance = RateLimitInstance;