twilio 5.7.1 → 5.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) 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 +3 -3
  8. package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
  9. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  10. package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
  11. package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
  12. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
  13. package/lib/rest/api/v2010/account/recording.d.ts +3 -3
  14. package/lib/rest/bulkexports/v1/export/day.d.ts +3 -3
  15. package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
  16. package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
  17. package/lib/rest/chat/v1/service.d.ts +9 -9
  18. package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
  19. package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
  20. package/lib/rest/chat/v2/service.d.ts +9 -9
  21. package/lib/rest/conversations/v1/addressConfiguration.d.ts +4 -4
  22. package/lib/rest/conversations/v1/conversation/message.d.ts +6 -6
  23. package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
  24. package/lib/rest/conversations/v1/conversation/webhook.d.ts +4 -4
  25. package/lib/rest/conversations/v1/conversation.d.ts +6 -6
  26. package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
  27. package/lib/rest/conversations/v1/participantConversation.d.ts +6 -6
  28. package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
  29. package/lib/rest/conversations/v1/service/conversation/message.d.ts +6 -6
  30. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
  31. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +4 -4
  32. package/lib/rest/conversations/v1/service/conversation.d.ts +6 -6
  33. package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
  34. package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -6
  35. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +3 -3
  36. package/lib/rest/conversations/v1/user/userConversation.d.ts +3 -3
  37. package/lib/rest/events/v1/sink.d.ts +4 -4
  38. package/lib/rest/events/v1/subscription.d.ts +1 -1
  39. package/lib/rest/events/v1/subscription.js +1 -1
  40. package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
  41. package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
  42. package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
  43. package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
  44. package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
  45. package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
  46. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
  47. package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
  48. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
  49. package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
  50. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
  51. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
  52. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
  53. package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
  54. package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
  55. package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
  56. package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
  57. package/lib/rest/intelligence/v2/operator.d.ts +3 -3
  58. package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
  59. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
  60. package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
  61. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
  62. package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
  63. package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
  64. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
  65. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
  66. package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
  67. package/lib/rest/lookups/V2.d.ts +20 -0
  68. package/lib/rest/lookups/V2.js +25 -0
  69. package/lib/rest/lookups/v2/bucket.d.ts +205 -0
  70. package/lib/rest/lookups/v2/bucket.js +187 -0
  71. package/lib/rest/lookups/v2/lookupOverride.d.ts +279 -0
  72. package/lib/rest/lookups/v2/lookupOverride.js +225 -0
  73. package/lib/rest/lookups/v2/query.d.ts +175 -0
  74. package/lib/rest/lookups/v2/query.js +123 -0
  75. package/lib/rest/lookups/v2/rateLimit.d.ts +83 -0
  76. package/lib/rest/lookups/v2/rateLimit.js +82 -0
  77. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +3 -3
  78. package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +3 -3
  79. package/lib/rest/messaging/v1/service.d.ts +3 -3
  80. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +3 -3
  81. package/lib/rest/messaging/v1/usecase.d.ts +3 -3
  82. package/lib/rest/messaging/v2/channelsSender.d.ts +49 -4
  83. package/lib/rest/messaging/v2/channelsSender.js +14 -2
  84. package/lib/rest/monitor/v1/event.d.ts +3 -3
  85. package/lib/rest/notify/v1/service/notification.d.ts +28 -28
  86. package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
  87. package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
  88. package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
  89. package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
  90. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
  91. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
  92. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
  93. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
  94. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
  95. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
  96. package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
  97. package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
  98. package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
  99. package/lib/rest/proxy/v1/service/session.d.ts +1 -1
  100. package/lib/rest/proxy/v1/service/session.js +1 -1
  101. package/lib/rest/proxy/v1/service.d.ts +0 -8
  102. package/lib/rest/proxy/v1/service.js +0 -13
  103. package/lib/rest/serverless/v1/service/build.d.ts +9 -9
  104. package/lib/rest/serverless/v1/service/environment/log.d.ts +6 -7
  105. package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
  106. package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
  107. package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
  108. package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
  109. package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
  110. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  111. package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
  112. package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
  113. package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
  114. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  115. package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
  116. package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
  117. package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
  118. package/lib/rest/studio/v2/flow.d.ts +11 -11
  119. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  120. package/lib/rest/supersim/v1/network.d.ts +3 -3
  121. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
  122. package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
  123. package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
  124. package/lib/rest/sync/v1/service/document.d.ts +2 -2
  125. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  126. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  127. package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +1 -1
  128. package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
  129. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  130. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
  131. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
  132. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
  133. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
  134. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
  135. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
  136. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
  137. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
  138. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
  139. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
  140. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
  141. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
  142. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
  143. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
  144. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
  145. package/lib/rest/trunking/v1/trunk.d.ts +9 -3
  146. package/lib/rest/trunking/v1/trunk.js +2 -0
  147. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
  148. package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
  149. package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
  150. package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
  151. package/lib/rest/trusthub/v1/policies.d.ts +3 -3
  152. package/lib/rest/trusthub/v1/supportingDocument.d.ts +5 -5
  153. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
  154. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
  155. package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
  156. package/lib/rest/verify/v2/form.d.ts +6 -6
  157. package/lib/rest/verify/v2/service/entity/challenge.d.ts +12 -12
  158. package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
  159. package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -6
  160. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -10
  161. package/lib/rest/verify/v2/service/verification.d.ts +11 -11
  162. package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
  163. package/lib/rest/verify/v2/service.d.ts +9 -9
  164. package/lib/rest/verify/v2/template.d.ts +3 -3
  165. package/lib/rest/verify/v2/verificationAttempt.d.ts +11 -11
  166. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
  167. package/lib/rest/video/v1/composition.d.ts +1 -1
  168. package/lib/rest/video/v1/compositionHook.d.ts +2 -2
  169. package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -1
  170. package/lib/rest/video/v1/room/recordingRules.d.ts +1 -1
  171. package/lib/rest/video/v1/room/transcriptions.d.ts +316 -0
  172. package/lib/rest/{proxy/v1/service/shortCode.js → video/v1/room/transcriptions.js} +61 -78
  173. package/lib/rest/video/v1/room.d.ts +9 -1
  174. package/lib/rest/video/v1/room.js +13 -0
  175. package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
  176. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
  177. package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
  178. package/lib/twiml/VoiceResponse.d.ts +31 -0
  179. package/lib/twiml/VoiceResponse.js +18 -0
  180. package/package.json +1 -1
  181. package/lib/rest/Knowledge.d.ts +0 -4
  182. package/lib/rest/Knowledge.js +0 -8
  183. package/lib/rest/KnowledgeBase.d.ts +0 -13
  184. package/lib/rest/KnowledgeBase.js +0 -31
  185. package/lib/rest/Microvisor.d.ts +0 -14
  186. package/lib/rest/Microvisor.js +0 -22
  187. package/lib/rest/MicrovisorBase.d.ts +0 -13
  188. package/lib/rest/MicrovisorBase.js +0 -31
  189. package/lib/rest/knowledge/V1.d.ts +0 -15
  190. package/lib/rest/knowledge/V1.js +0 -36
  191. package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +0 -167
  192. package/lib/rest/knowledge/v1/knowledge/chunk.js +0 -131
  193. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +0 -101
  194. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +0 -118
  195. package/lib/rest/knowledge/v1/knowledge.d.ts +0 -412
  196. package/lib/rest/knowledge/v1/knowledge.js +0 -302
  197. package/lib/rest/microvisor/V1.d.ts +0 -30
  198. package/lib/rest/microvisor/V1.js +0 -56
  199. package/lib/rest/microvisor/v1/accountConfig.d.ts +0 -263
  200. package/lib/rest/microvisor/v1/accountConfig.js +0 -254
  201. package/lib/rest/microvisor/v1/accountSecret.d.ts +0 -257
  202. package/lib/rest/microvisor/v1/accountSecret.js +0 -252
  203. package/lib/rest/microvisor/v1/app/appManifest.d.ts +0 -101
  204. package/lib/rest/microvisor/v1/app/appManifest.js +0 -118
  205. package/lib/rest/microvisor/v1/app.d.ts +0 -251
  206. package/lib/rest/microvisor/v1/app.js +0 -222
  207. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +0 -271
  208. package/lib/rest/microvisor/v1/device/deviceConfig.js +0 -262
  209. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +0 -265
  210. package/lib/rest/microvisor/v1/device/deviceSecret.js +0 -260
  211. package/lib/rest/microvisor/v1/device.d.ts +0 -299
  212. package/lib/rest/microvisor/v1/device.js +0 -250
  213. package/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
@@ -1,316 +0,0 @@
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 V1 from "../../V1";
6
- import { PhoneNumberCapabilities } from "../../../../interfaces";
7
- /**
8
- * Options to pass to update a ShortCodeInstance
9
- */
10
- export interface ShortCodeContextUpdateOptions {
11
- /** Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. */
12
- isReserved?: boolean;
13
- }
14
- /**
15
- * Options to pass to create a ShortCodeInstance
16
- */
17
- export interface ShortCodeListInstanceCreateOptions {
18
- /** The SID of a Twilio [ShortCode](https://www.twilio.com/en-us/messaging/channels/sms/short-codes) resource that represents the short code you would like to assign to your Proxy Service. */
19
- sid: string;
20
- }
21
- /**
22
- * Options to pass to each
23
- */
24
- export interface ShortCodeListInstanceEachOptions {
25
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
26
- pageSize?: number;
27
- /** Function to process each record. If this and a positional callback are passed, this one will be used */
28
- callback?: (item: ShortCodeInstance, done: (err?: Error) => void) => void;
29
- /** Function to be called upon completion of streaming */
30
- done?: Function;
31
- /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
32
- limit?: number;
33
- }
34
- /**
35
- * Options to pass to list
36
- */
37
- export interface ShortCodeListInstanceOptions {
38
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
39
- pageSize?: number;
40
- /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
41
- limit?: number;
42
- }
43
- /**
44
- * Options to pass to page
45
- */
46
- export interface ShortCodeListInstancePageOptions {
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
48
- pageSize?: number;
49
- /** Page Number, this value is simply for client state */
50
- pageNumber?: number;
51
- /** PageToken provided by the API */
52
- pageToken?: string;
53
- }
54
- export interface ShortCodeContext {
55
- /**
56
- * Remove a ShortCodeInstance
57
- *
58
- * @param callback - Callback to handle processed record
59
- *
60
- * @returns Resolves to processed boolean
61
- */
62
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
63
- /**
64
- * Fetch a ShortCodeInstance
65
- *
66
- * @param callback - Callback to handle processed record
67
- *
68
- * @returns Resolves to processed ShortCodeInstance
69
- */
70
- fetch(callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
71
- /**
72
- * Update a ShortCodeInstance
73
- *
74
- * @param callback - Callback to handle processed record
75
- *
76
- * @returns Resolves to processed ShortCodeInstance
77
- */
78
- update(callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
79
- /**
80
- * Update a ShortCodeInstance
81
- *
82
- * @param params - Parameter for request
83
- * @param callback - Callback to handle processed record
84
- *
85
- * @returns Resolves to processed ShortCodeInstance
86
- */
87
- update(params: ShortCodeContextUpdateOptions, callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
88
- /**
89
- * Provide a user-friendly representation
90
- */
91
- toJSON(): any;
92
- [inspect.custom](_depth: any, options: InspectOptions): any;
93
- }
94
- export interface ShortCodeContextSolution {
95
- serviceSid: string;
96
- sid: string;
97
- }
98
- export declare class ShortCodeContextImpl implements ShortCodeContext {
99
- protected _version: V1;
100
- protected _solution: ShortCodeContextSolution;
101
- protected _uri: string;
102
- constructor(_version: V1, serviceSid: string, sid: string);
103
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
104
- fetch(callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
105
- update(params?: ShortCodeContextUpdateOptions | ((error: Error | null, item?: ShortCodeInstance) => any), callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
106
- /**
107
- * Provide a user-friendly representation
108
- *
109
- * @returns Object
110
- */
111
- toJSON(): ShortCodeContextSolution;
112
- [inspect.custom](_depth: any, options: InspectOptions): string;
113
- }
114
- interface ShortCodePayload extends TwilioResponsePayload {
115
- short_codes: ShortCodeResource[];
116
- }
117
- interface ShortCodeResource {
118
- sid: string;
119
- account_sid: string;
120
- service_sid: string;
121
- date_created: Date;
122
- date_updated: Date;
123
- short_code: string;
124
- iso_country: string;
125
- capabilities: PhoneNumberCapabilities;
126
- url: string;
127
- is_reserved: boolean;
128
- }
129
- export declare class ShortCodeInstance {
130
- protected _version: V1;
131
- protected _solution: ShortCodeContextSolution;
132
- protected _context?: ShortCodeContext;
133
- constructor(_version: V1, payload: ShortCodeResource, serviceSid: string, sid?: string);
134
- /**
135
- * The unique string that we created to identify the ShortCode resource.
136
- */
137
- sid: string;
138
- /**
139
- * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource.
140
- */
141
- accountSid: string;
142
- /**
143
- * The SID of the ShortCode resource\'s parent [Service](https://www.twilio.com/docs/proxy/api/service) resource.
144
- */
145
- serviceSid: string;
146
- /**
147
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was created.
148
- */
149
- dateCreated: Date;
150
- /**
151
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was last updated.
152
- */
153
- dateUpdated: Date;
154
- /**
155
- * The short code\'s number.
156
- */
157
- shortCode: string;
158
- /**
159
- * The ISO Country Code for the short code.
160
- */
161
- isoCountry: string;
162
- capabilities: PhoneNumberCapabilities;
163
- /**
164
- * The absolute URL of the ShortCode resource.
165
- */
166
- url: string;
167
- /**
168
- * Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information.
169
- */
170
- isReserved: boolean;
171
- private get _proxy();
172
- /**
173
- * Remove a ShortCodeInstance
174
- *
175
- * @param callback - Callback to handle processed record
176
- *
177
- * @returns Resolves to processed boolean
178
- */
179
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
180
- /**
181
- * Fetch a ShortCodeInstance
182
- *
183
- * @param callback - Callback to handle processed record
184
- *
185
- * @returns Resolves to processed ShortCodeInstance
186
- */
187
- fetch(callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
188
- /**
189
- * Update a ShortCodeInstance
190
- *
191
- * @param callback - Callback to handle processed record
192
- *
193
- * @returns Resolves to processed ShortCodeInstance
194
- */
195
- update(callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
196
- /**
197
- * Update a ShortCodeInstance
198
- *
199
- * @param params - Parameter for request
200
- * @param callback - Callback to handle processed record
201
- *
202
- * @returns Resolves to processed ShortCodeInstance
203
- */
204
- update(params: ShortCodeContextUpdateOptions, callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
205
- /**
206
- * Provide a user-friendly representation
207
- *
208
- * @returns Object
209
- */
210
- toJSON(): {
211
- sid: string;
212
- accountSid: string;
213
- serviceSid: string;
214
- dateCreated: Date;
215
- dateUpdated: Date;
216
- shortCode: string;
217
- isoCountry: string;
218
- capabilities: PhoneNumberCapabilities;
219
- url: string;
220
- isReserved: boolean;
221
- };
222
- [inspect.custom](_depth: any, options: InspectOptions): string;
223
- }
224
- export interface ShortCodeSolution {
225
- serviceSid: string;
226
- }
227
- export interface ShortCodeListInstance {
228
- _version: V1;
229
- _solution: ShortCodeSolution;
230
- _uri: string;
231
- (sid: string): ShortCodeContext;
232
- get(sid: string): ShortCodeContext;
233
- /**
234
- * Create a ShortCodeInstance
235
- *
236
- * @param params - Parameter for request
237
- * @param callback - Callback to handle processed record
238
- *
239
- * @returns Resolves to processed ShortCodeInstance
240
- */
241
- create(params: ShortCodeListInstanceCreateOptions, callback?: (error: Error | null, item?: ShortCodeInstance) => any): Promise<ShortCodeInstance>;
242
- /**
243
- * Streams ShortCodeInstance records from the API.
244
- *
245
- * This operation lazily loads records as efficiently as possible until the limit
246
- * is reached.
247
- *
248
- * The results are passed into the callback function, so this operation is memory
249
- * efficient.
250
- *
251
- * If a function is passed as the first argument, it will be used as the callback
252
- * function.
253
- *
254
- * @param { ShortCodeListInstanceEachOptions } [params] - Options for request
255
- * @param { function } [callback] - Function to process each record
256
- */
257
- each(callback?: (item: ShortCodeInstance, done: (err?: Error) => void) => void): void;
258
- each(params: ShortCodeListInstanceEachOptions, callback?: (item: ShortCodeInstance, done: (err?: Error) => void) => void): void;
259
- /**
260
- * Retrieve a single target page of ShortCodeInstance records from the API.
261
- *
262
- * The request is executed immediately.
263
- *
264
- * @param { string } [targetUrl] - API-generated URL for the requested results page
265
- * @param { function } [callback] - Callback to handle list of records
266
- */
267
- getPage(targetUrl: string, callback?: (error: Error | null, items: ShortCodePage) => any): Promise<ShortCodePage>;
268
- /**
269
- * Lists ShortCodeInstance records from the API as a list.
270
- *
271
- * If a function is passed as the first argument, it will be used as the callback
272
- * function.
273
- *
274
- * @param { ShortCodeListInstanceOptions } [params] - Options for request
275
- * @param { function } [callback] - Callback to handle list of records
276
- */
277
- list(callback?: (error: Error | null, items: ShortCodeInstance[]) => any): Promise<ShortCodeInstance[]>;
278
- list(params: ShortCodeListInstanceOptions, callback?: (error: Error | null, items: ShortCodeInstance[]) => any): Promise<ShortCodeInstance[]>;
279
- /**
280
- * Retrieve a single page of ShortCodeInstance records from the API.
281
- *
282
- * The request is executed immediately.
283
- *
284
- * If a function is passed as the first argument, it will be used as the callback
285
- * function.
286
- *
287
- * @param { ShortCodeListInstancePageOptions } [params] - Options for request
288
- * @param { function } [callback] - Callback to handle list of records
289
- */
290
- page(callback?: (error: Error | null, items: ShortCodePage) => any): Promise<ShortCodePage>;
291
- page(params: ShortCodeListInstancePageOptions, callback?: (error: Error | null, items: ShortCodePage) => any): Promise<ShortCodePage>;
292
- /**
293
- * Provide a user-friendly representation
294
- */
295
- toJSON(): any;
296
- [inspect.custom](_depth: any, options: InspectOptions): any;
297
- }
298
- export declare function ShortCodeListInstance(version: V1, serviceSid: string): ShortCodeListInstance;
299
- export declare class ShortCodePage extends Page<V1, ShortCodePayload, ShortCodeResource, ShortCodeInstance> {
300
- /**
301
- * Initialize the ShortCodePage
302
- *
303
- * @param version - Version of the resource
304
- * @param response - Response from the API
305
- * @param solution - Path solution
306
- */
307
- constructor(version: V1, response: Response<string>, solution: ShortCodeSolution);
308
- /**
309
- * Build an instance of ShortCodeInstance
310
- *
311
- * @param payload - Payload response from the API
312
- */
313
- getInstance(payload: ShortCodeResource): ShortCodeInstance;
314
- [inspect.custom](depth: any, options: InspectOptions): string;
315
- }
316
- export {};