twilio 4.7.2 → 4.9.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 (243) hide show
  1. package/lib/base/BaseTwilio.d.ts +1 -0
  2. package/lib/index.d.ts +52 -36
  3. package/lib/index.js +32 -51
  4. package/lib/jwt/AccessToken.d.ts +168 -173
  5. package/lib/jwt/AccessToken.js +180 -185
  6. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +17 -22
  7. package/lib/rest/api/v2010/account/application.d.ts +15 -20
  8. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
  9. package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
  10. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
  11. package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
  12. package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
  13. package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
  14. package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
  15. package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
  16. package/lib/rest/api/v2010/account/call.d.ts +2 -2
  17. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  18. package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -9
  19. package/lib/rest/api/v2010/account/conference.d.ts +4 -4
  20. package/lib/rest/api/v2010/account/connectApp.d.ts +4 -5
  21. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
  22. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
  23. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
  24. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +19 -24
  25. package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
  26. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  27. package/lib/rest/api/v2010/account/notification.d.ts +3 -4
  28. package/lib/rest/api/v2010/account/queue.d.ts +3 -3
  29. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
  30. package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
  31. package/lib/rest/api/v2010/account/recording.d.ts +2 -2
  32. package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
  33. package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
  34. package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
  35. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
  36. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
  37. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
  38. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
  39. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
  40. package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
  41. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
  42. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
  43. package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
  44. package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
  45. package/lib/rest/api/v2010/account/usage.d.ts +1 -0
  46. package/lib/rest/api/v2010/account.d.ts +2 -2
  47. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
  48. package/lib/rest/chat/v1/credential.d.ts +1 -1
  49. package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
  50. package/lib/rest/chat/v1/service/channel.d.ts +1 -1
  51. package/lib/rest/chat/v1/service/role.d.ts +1 -1
  52. package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
  53. package/lib/rest/chat/v2/credential.d.ts +1 -1
  54. package/lib/rest/chat/v2/service/binding.d.ts +1 -1
  55. package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
  56. package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
  57. package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
  58. package/lib/rest/chat/v2/service/channel.d.ts +2 -2
  59. package/lib/rest/chat/v2/service/role.d.ts +1 -1
  60. package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
  61. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
  62. package/lib/rest/chat/v2/service/user.d.ts +1 -1
  63. package/lib/rest/chat/v3/channel.d.ts +2 -2
  64. package/lib/rest/content/V1.d.ts +5 -0
  65. package/lib/rest/content/V1.js +7 -0
  66. package/lib/rest/content/v1/contentAndApprovals.d.ts +190 -0
  67. package/lib/rest/content/v1/contentAndApprovals.js +134 -0
  68. package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
  69. package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
  70. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
  71. package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
  72. package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
  73. package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
  74. package/lib/rest/conversations/v1/conversation.d.ts +2 -2
  75. package/lib/rest/conversations/v1/credential.d.ts +1 -1
  76. package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
  77. package/lib/rest/conversations/v1/role.d.ts +1 -1
  78. package/lib/rest/conversations/v1/service/binding.d.ts +7 -7
  79. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
  80. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
  81. package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
  82. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
  83. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
  84. package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
  85. package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
  86. package/lib/rest/conversations/v1/service/role.d.ts +5 -5
  87. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
  88. package/lib/rest/conversations/v1/service/user.d.ts +4 -4
  89. package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
  90. package/lib/rest/conversations/v1/user.d.ts +1 -1
  91. package/lib/rest/events/v1/sink.d.ts +2 -2
  92. package/lib/rest/flexApi/V1.d.ts +5 -0
  93. package/lib/rest/flexApi/V1.js +7 -0
  94. package/lib/rest/flexApi/v1/assessments.d.ts +255 -10
  95. package/lib/rest/flexApi/v1/assessments.js +208 -23
  96. package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
  97. package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
  98. package/lib/rest/flexApi/v1/insightsConversations.d.ts +172 -0
  99. package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
  100. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +8 -2
  101. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +4 -4
  102. package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
  103. package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
  104. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
  105. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
  106. package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
  107. package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
  108. package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
  109. package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
  110. package/lib/rest/insights/v1/call/event.d.ts +2 -2
  111. package/lib/rest/insights/v1/call/metric.d.ts +2 -2
  112. package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
  113. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
  114. package/lib/rest/insights/v1/conference.d.ts +5 -5
  115. package/lib/rest/insights/v1/room/participant.d.ts +16 -16
  116. package/lib/rest/insights/v1/room.d.ts +41 -42
  117. package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
  118. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
  119. package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
  120. package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
  121. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
  122. package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
  123. package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
  124. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
  125. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
  126. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +5 -5
  127. package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
  128. package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
  129. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
  130. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
  131. package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
  132. package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
  133. package/lib/rest/media/v1/mediaProcessor.d.ts +6 -7
  134. package/lib/rest/media/v1/mediaRecording.d.ts +6 -7
  135. package/lib/rest/media/v1/playerStreamer.d.ts +7 -8
  136. package/lib/rest/messaging/V1.d.ts +10 -0
  137. package/lib/rest/messaging/V1.js +16 -0
  138. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
  139. package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
  140. package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
  141. package/lib/rest/messaging/v1/domainCerts.js +2 -2
  142. package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
  143. package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
  144. package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
  145. package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
  146. package/lib/rest/messaging/v1/service.d.ts +7 -9
  147. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
  148. package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
  149. package/lib/rest/microvisor/v1/accountConfig.js +25 -0
  150. package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
  151. package/lib/rest/microvisor/v1/accountSecret.js +25 -0
  152. package/lib/rest/microvisor/v1/app/appManifest.d.ts +101 -0
  153. package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
  154. package/lib/rest/microvisor/v1/app.d.ts +11 -0
  155. package/lib/rest/microvisor/v1/app.js +15 -0
  156. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
  157. package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
  158. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
  159. package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
  160. package/lib/rest/monitor/v1/alert.d.ts +3 -4
  161. package/lib/rest/notify/v1/credential.d.ts +1 -1
  162. package/lib/rest/notify/v1/service/binding.d.ts +1 -1
  163. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  164. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
  165. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
  166. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
  167. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  168. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
  169. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
  170. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
  171. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
  172. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
  173. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
  174. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
  175. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
  176. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
  177. package/lib/rest/preview/wireless/sim.d.ts +12 -16
  178. package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
  179. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
  180. package/lib/rest/proxy/v1/service/session.d.ts +2 -2
  181. package/lib/rest/proxy/v1/service.d.ts +2 -2
  182. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
  183. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
  184. package/lib/rest/serverless/v1/service/build.d.ts +2 -2
  185. package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
  186. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
  187. package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
  188. package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
  189. package/lib/rest/studio/v1/flow.d.ts +1 -1
  190. package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
  191. package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
  192. package/lib/rest/studio/v2/flow.d.ts +1 -1
  193. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  194. package/lib/rest/supersim/v1/esimProfile.d.ts +15 -1
  195. package/lib/rest/supersim/v1/esimProfile.js +6 -0
  196. package/lib/rest/supersim/v1/fleet.d.ts +7 -9
  197. package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
  198. package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
  199. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
  200. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
  201. package/lib/rest/supersim/v1/sim.d.ts +2 -2
  202. package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
  203. package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
  204. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  205. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  206. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
  207. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  208. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
  209. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
  210. package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
  211. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +16 -21
  212. package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
  213. package/lib/rest/trunking/v1/trunk.d.ts +5 -6
  214. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
  215. package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
  216. package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
  217. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
  218. package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
  219. package/lib/rest/verify/v2/form.d.ts +1 -1
  220. package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
  221. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
  222. package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
  223. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
  224. package/lib/rest/verify/v2/service/verification.d.ts +3 -3
  225. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  226. package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
  227. package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
  228. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
  229. package/lib/rest/video/v1/composition.d.ts +5 -6
  230. package/lib/rest/video/v1/compositionHook.d.ts +4 -5
  231. package/lib/rest/video/v1/recording.d.ts +7 -8
  232. package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
  233. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
  234. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
  235. package/lib/rest/video/v1/room/participant.d.ts +8 -8
  236. package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
  237. package/lib/rest/video/v1/room.d.ts +6 -7
  238. package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
  239. package/lib/rest/wireless/v1/command.d.ts +4 -4
  240. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
  241. package/lib/rest/wireless/v1/sim.d.ts +17 -22
  242. package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
  243. package/package.json +2 -5
@@ -0,0 +1,190 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import Page, { TwilioResponsePayload } from "../../../base/Page";
4
+ import Response from "../../../http/response";
5
+ import V1 from "../V1";
6
+ /**
7
+ * Options to pass to each
8
+ */
9
+ export interface ContentAndApprovalsListInstanceEachOptions {
10
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
11
+ pageSize?: number;
12
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
13
+ callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void;
14
+ /** Function to be called upon completion of streaming */
15
+ done?: Function;
16
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
17
+ limit?: number;
18
+ }
19
+ /**
20
+ * Options to pass to list
21
+ */
22
+ export interface ContentAndApprovalsListInstanceOptions {
23
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
24
+ pageSize?: number;
25
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
26
+ limit?: number;
27
+ }
28
+ /**
29
+ * Options to pass to page
30
+ */
31
+ export interface ContentAndApprovalsListInstancePageOptions {
32
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
33
+ pageSize?: number;
34
+ /** Page Number, this value is simply for client state */
35
+ pageNumber?: number;
36
+ /** PageToken provided by the API */
37
+ pageToken?: string;
38
+ }
39
+ export interface ContentAndApprovalsSolution {
40
+ }
41
+ export interface ContentAndApprovalsListInstance {
42
+ _version: V1;
43
+ _solution: ContentAndApprovalsSolution;
44
+ _uri: string;
45
+ /**
46
+ * Streams ContentAndApprovalsInstance records from the API.
47
+ *
48
+ * This operation lazily loads records as efficiently as possible until the limit
49
+ * is reached.
50
+ *
51
+ * The results are passed into the callback function, so this operation is memory
52
+ * efficient.
53
+ *
54
+ * If a function is passed as the first argument, it will be used as the callback
55
+ * function.
56
+ *
57
+ * @param { ContentAndApprovalsListInstanceEachOptions } [params] - Options for request
58
+ * @param { function } [callback] - Function to process each record
59
+ */
60
+ each(callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void): void;
61
+ each(params: ContentAndApprovalsListInstanceEachOptions, callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void): void;
62
+ /**
63
+ * Retrieve a single target page of ContentAndApprovalsInstance records from the API.
64
+ *
65
+ * The request is executed immediately.
66
+ *
67
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
68
+ * @param { function } [callback] - Callback to handle list of records
69
+ */
70
+ getPage(targetUrl: string, callback?: (error: Error | null, items: ContentAndApprovalsPage) => any): Promise<ContentAndApprovalsPage>;
71
+ /**
72
+ * Lists ContentAndApprovalsInstance records from the API as a list.
73
+ *
74
+ * If a function is passed as the first argument, it will be used as the callback
75
+ * function.
76
+ *
77
+ * @param { ContentAndApprovalsListInstanceOptions } [params] - Options for request
78
+ * @param { function } [callback] - Callback to handle list of records
79
+ */
80
+ list(callback?: (error: Error | null, items: ContentAndApprovalsInstance[]) => any): Promise<ContentAndApprovalsInstance[]>;
81
+ list(params: ContentAndApprovalsListInstanceOptions, callback?: (error: Error | null, items: ContentAndApprovalsInstance[]) => any): Promise<ContentAndApprovalsInstance[]>;
82
+ /**
83
+ * Retrieve a single page of ContentAndApprovalsInstance records from the API.
84
+ *
85
+ * The request is executed immediately.
86
+ *
87
+ * If a function is passed as the first argument, it will be used as the callback
88
+ * function.
89
+ *
90
+ * @param { ContentAndApprovalsListInstancePageOptions } [params] - Options for request
91
+ * @param { function } [callback] - Callback to handle list of records
92
+ */
93
+ page(callback?: (error: Error | null, items: ContentAndApprovalsPage) => any): Promise<ContentAndApprovalsPage>;
94
+ page(params: ContentAndApprovalsListInstancePageOptions, callback?: (error: Error | null, items: ContentAndApprovalsPage) => any): Promise<ContentAndApprovalsPage>;
95
+ /**
96
+ * Provide a user-friendly representation
97
+ */
98
+ toJSON(): any;
99
+ [inspect.custom](_depth: any, options: InspectOptions): any;
100
+ }
101
+ export declare function ContentAndApprovalsListInstance(version: V1): ContentAndApprovalsListInstance;
102
+ interface ContentAndApprovalsPayload extends TwilioResponsePayload {
103
+ contents: ContentAndApprovalsResource[];
104
+ }
105
+ interface ContentAndApprovalsResource {
106
+ date_created: Date;
107
+ date_updated: Date;
108
+ sid: string;
109
+ account_sid: string;
110
+ friendly_name: string;
111
+ language: string;
112
+ variables: any;
113
+ types: any;
114
+ approval_requests: any;
115
+ }
116
+ export declare class ContentAndApprovalsInstance {
117
+ protected _version: V1;
118
+ constructor(_version: V1, payload: ContentAndApprovalsResource);
119
+ /**
120
+ * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
121
+ */
122
+ dateCreated: Date;
123
+ /**
124
+ * The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
125
+ */
126
+ dateUpdated: Date;
127
+ /**
128
+ * The unique string that that we created to identify the Content resource.
129
+ */
130
+ sid: string;
131
+ /**
132
+ * The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
133
+ */
134
+ accountSid: string;
135
+ /**
136
+ * A string name used to describe the Content resource. Not visible to the end recipient.
137
+ */
138
+ friendlyName: string;
139
+ /**
140
+ * Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
141
+ */
142
+ language: string;
143
+ /**
144
+ * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
145
+ */
146
+ variables: any;
147
+ /**
148
+ * The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
149
+ */
150
+ types: any;
151
+ /**
152
+ * The submitted information and approval request status of the Content resource.
153
+ */
154
+ approvalRequests: any;
155
+ /**
156
+ * Provide a user-friendly representation
157
+ *
158
+ * @returns Object
159
+ */
160
+ toJSON(): {
161
+ dateCreated: Date;
162
+ dateUpdated: Date;
163
+ sid: string;
164
+ accountSid: string;
165
+ friendlyName: string;
166
+ language: string;
167
+ variables: any;
168
+ types: any;
169
+ approvalRequests: any;
170
+ };
171
+ [inspect.custom](_depth: any, options: InspectOptions): string;
172
+ }
173
+ export declare class ContentAndApprovalsPage extends Page<V1, ContentAndApprovalsPayload, ContentAndApprovalsResource, ContentAndApprovalsInstance> {
174
+ /**
175
+ * Initialize the ContentAndApprovalsPage
176
+ *
177
+ * @param version - Version of the resource
178
+ * @param response - Response from the API
179
+ * @param solution - Path solution
180
+ */
181
+ constructor(version: V1, response: Response<string>, solution: ContentAndApprovalsSolution);
182
+ /**
183
+ * Build an instance of ContentAndApprovalsInstance
184
+ *
185
+ * @param payload - Payload response from the API
186
+ */
187
+ getInstance(payload: ContentAndApprovalsResource): ContentAndApprovalsInstance;
188
+ [inspect.custom](depth: any, options: InspectOptions): string;
189
+ }
190
+ export {};
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Content
9
+ * This is the public Twilio REST API.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.ContentAndApprovalsPage = exports.ContentAndApprovalsInstance = exports.ContentAndApprovalsListInstance = void 0;
20
+ const util_1 = require("util");
21
+ const Page_1 = __importDefault(require("../../../base/Page"));
22
+ const deserialize = require("../../../base/deserialize");
23
+ const serialize = require("../../../base/serialize");
24
+ function ContentAndApprovalsListInstance(version) {
25
+ const instance = {};
26
+ instance._version = version;
27
+ instance._solution = {};
28
+ instance._uri = `/ContentAndApprovals`;
29
+ instance.page = function page(params, callback) {
30
+ if (params instanceof Function) {
31
+ callback = params;
32
+ params = {};
33
+ }
34
+ else {
35
+ params = params || {};
36
+ }
37
+ let data = {};
38
+ if (params["pageSize"] !== undefined)
39
+ data["PageSize"] = params["pageSize"];
40
+ if (params.pageNumber !== undefined)
41
+ data["Page"] = params.pageNumber;
42
+ if (params.pageToken !== undefined)
43
+ data["PageToken"] = params.pageToken;
44
+ const headers = {};
45
+ let operationVersion = version, operationPromise = operationVersion.page({
46
+ uri: instance._uri,
47
+ method: "get",
48
+ params: data,
49
+ headers,
50
+ });
51
+ operationPromise = operationPromise.then((payload) => new ContentAndApprovalsPage(operationVersion, payload, instance._solution));
52
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
53
+ return operationPromise;
54
+ };
55
+ instance.each = instance._version.each;
56
+ instance.list = instance._version.list;
57
+ instance.getPage = function getPage(targetUrl, callback) {
58
+ const operationPromise = instance._version._domain.twilio.request({
59
+ method: "get",
60
+ uri: targetUrl,
61
+ });
62
+ let pagePromise = operationPromise.then((payload) => new ContentAndApprovalsPage(instance._version, payload, instance._solution));
63
+ pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
64
+ return pagePromise;
65
+ };
66
+ instance.toJSON = function toJSON() {
67
+ return instance._solution;
68
+ };
69
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
70
+ return (0, util_1.inspect)(instance.toJSON(), options);
71
+ };
72
+ return instance;
73
+ }
74
+ exports.ContentAndApprovalsListInstance = ContentAndApprovalsListInstance;
75
+ class ContentAndApprovalsInstance {
76
+ constructor(_version, payload) {
77
+ this._version = _version;
78
+ this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
79
+ this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
80
+ this.sid = payload.sid;
81
+ this.accountSid = payload.account_sid;
82
+ this.friendlyName = payload.friendly_name;
83
+ this.language = payload.language;
84
+ this.variables = payload.variables;
85
+ this.types = payload.types;
86
+ this.approvalRequests = payload.approval_requests;
87
+ }
88
+ /**
89
+ * Provide a user-friendly representation
90
+ *
91
+ * @returns Object
92
+ */
93
+ toJSON() {
94
+ return {
95
+ dateCreated: this.dateCreated,
96
+ dateUpdated: this.dateUpdated,
97
+ sid: this.sid,
98
+ accountSid: this.accountSid,
99
+ friendlyName: this.friendlyName,
100
+ language: this.language,
101
+ variables: this.variables,
102
+ types: this.types,
103
+ approvalRequests: this.approvalRequests,
104
+ };
105
+ }
106
+ [util_1.inspect.custom](_depth, options) {
107
+ return (0, util_1.inspect)(this.toJSON(), options);
108
+ }
109
+ }
110
+ exports.ContentAndApprovalsInstance = ContentAndApprovalsInstance;
111
+ class ContentAndApprovalsPage extends Page_1.default {
112
+ /**
113
+ * Initialize the ContentAndApprovalsPage
114
+ *
115
+ * @param version - Version of the resource
116
+ * @param response - Response from the API
117
+ * @param solution - Path solution
118
+ */
119
+ constructor(version, response, solution) {
120
+ super(version, response, solution);
121
+ }
122
+ /**
123
+ * Build an instance of ContentAndApprovalsInstance
124
+ *
125
+ * @param payload - Payload response from the API
126
+ */
127
+ getInstance(payload) {
128
+ return new ContentAndApprovalsInstance(this._version, payload);
129
+ }
130
+ [util_1.inspect.custom](depth, options) {
131
+ return (0, util_1.inspect)(this.toJSON(), options);
132
+ }
133
+ }
134
+ exports.ContentAndApprovalsPage = ContentAndApprovalsPage;
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
- type ConfigurationAddressAutoCreationType = "webhook" | "studio" | "default";
7
- type ConfigurationAddressMethod = "GET" | "POST";
8
- type ConfigurationAddressType = "sms" | "whatsapp" | "messenger" | "gbm";
6
+ export type AddressConfigurationAutoCreationType = "webhook" | "studio" | "default";
7
+ export type AddressConfigurationMethod = "GET" | "POST";
8
+ export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm";
9
9
  /**
10
10
  * Options to pass to update a AddressConfigurationInstance
11
11
  */
@@ -15,13 +15,13 @@ export interface AddressConfigurationContextUpdateOptions {
15
15
  /** Enable/Disable auto-creating conversations for messages to this address */
16
16
  "autoCreation.enabled"?: boolean;
17
17
  /** */
18
- "autoCreation.type"?: ConfigurationAddressAutoCreationType;
18
+ "autoCreation.type"?: AddressConfigurationAutoCreationType;
19
19
  /** Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service. */
20
20
  "autoCreation.conversationServiceSid"?: string;
21
21
  /** For type `webhook`, the url for the webhook request. */
22
22
  "autoCreation.webhookUrl"?: string;
23
23
  /** */
24
- "autoCreation.webhookMethod"?: ConfigurationAddressMethod;
24
+ "autoCreation.webhookMethod"?: AddressConfigurationMethod;
25
25
  /** The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated` */
26
26
  "autoCreation.webhookFilters"?: Array<string>;
27
27
  /** For type `studio`, the studio flow SID where the webhook should be sent to. */
@@ -34,7 +34,7 @@ export interface AddressConfigurationContextUpdateOptions {
34
34
  */
35
35
  export interface AddressConfigurationListInstanceCreateOptions {
36
36
  /** */
37
- type: ConfigurationAddressType;
37
+ type: AddressConfigurationType;
38
38
  /** The unique address to be configured. The address can be a whatsapp address or phone number */
39
39
  address: string;
40
40
  /** The human-readable name of this configuration, limited to 256 characters. Optional. */
@@ -42,13 +42,13 @@ export interface AddressConfigurationListInstanceCreateOptions {
42
42
  /** Enable/Disable auto-creating conversations for messages to this address */
43
43
  "autoCreation.enabled"?: boolean;
44
44
  /** */
45
- "autoCreation.type"?: ConfigurationAddressAutoCreationType;
45
+ "autoCreation.type"?: AddressConfigurationAutoCreationType;
46
46
  /** Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service. */
47
47
  "autoCreation.conversationServiceSid"?: string;
48
48
  /** For type `webhook`, the url for the webhook request. */
49
49
  "autoCreation.webhookUrl"?: string;
50
50
  /** */
51
- "autoCreation.webhookMethod"?: ConfigurationAddressMethod;
51
+ "autoCreation.webhookMethod"?: AddressConfigurationMethod;
52
52
  /** The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated` */
53
53
  "autoCreation.webhookFilters"?: Array<string>;
54
54
  /** For type `studio`, the studio flow SID where the webhook should be sent to. */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../V1";
4
- type ConfigurationWebhookMethod = "GET" | "POST";
5
- type ConfigurationWebhookTarget = "webhook" | "flex";
4
+ export type WebhookMethod = "GET" | "POST";
5
+ export type WebhookTarget = "webhook" | "flex";
6
6
  /**
7
7
  * Options to pass to update a WebhookInstance
8
8
  */
@@ -16,7 +16,7 @@ export interface WebhookContextUpdateOptions {
16
16
  /** The absolute url the post-event webhook request should be sent to. */
17
17
  postWebhookUrl?: string;
18
18
  /** */
19
- target?: ConfigurationWebhookTarget;
19
+ target?: WebhookTarget;
20
20
  }
21
21
  export interface WebhookContext {
22
22
  /**
@@ -69,11 +69,11 @@ export declare class WebhookContextImpl implements WebhookContext {
69
69
  }
70
70
  interface WebhookResource {
71
71
  account_sid: string;
72
- method: ConfigurationWebhookMethod;
72
+ method: WebhookMethod;
73
73
  filters: Array<string>;
74
74
  pre_webhook_url: string;
75
75
  post_webhook_url: string;
76
- target: ConfigurationWebhookTarget;
76
+ target: WebhookTarget;
77
77
  url: string;
78
78
  }
79
79
  export declare class WebhookInstance {
@@ -85,7 +85,7 @@ export declare class WebhookInstance {
85
85
  * The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
86
86
  */
87
87
  accountSid: string;
88
- method: ConfigurationWebhookMethod;
88
+ method: WebhookMethod;
89
89
  /**
90
90
  * The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
91
91
  */
@@ -98,7 +98,7 @@ export declare class WebhookInstance {
98
98
  * The absolute url the post-event webhook request should be sent to.
99
99
  */
100
100
  postWebhookUrl: string;
101
- target: ConfigurationWebhookTarget;
101
+ target: WebhookTarget;
102
102
  /**
103
103
  * An absolute API resource API resource URL for this webhook.
104
104
  */
@@ -136,11 +136,11 @@ export declare class WebhookInstance {
136
136
  */
137
137
  toJSON(): {
138
138
  accountSid: string;
139
- method: ConfigurationWebhookMethod;
139
+ method: WebhookMethod;
140
140
  filters: string[];
141
141
  preWebhookUrl: string;
142
142
  postWebhookUrl: string;
143
- target: ConfigurationWebhookTarget;
143
+ target: WebhookTarget;
144
144
  url: string;
145
145
  };
146
146
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
- type ConversationMessageReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
6
+ export type DeliveryReceiptDeliveryStatus = "read" | "failed" | "delivered" | "undelivered" | "sent";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -81,7 +81,7 @@ interface DeliveryReceiptResource {
81
81
  message_sid: string;
82
82
  channel_message_sid: string;
83
83
  participant_sid: string;
84
- status: ConversationMessageReceiptDeliveryStatus;
84
+ status: DeliveryReceiptDeliveryStatus;
85
85
  error_code: number;
86
86
  date_created: Date;
87
87
  date_updated: Date;
@@ -116,7 +116,7 @@ export declare class DeliveryReceiptInstance {
116
116
  * The unique ID of the participant the delivery receipt belongs to.
117
117
  */
118
118
  participantSid: string;
119
- status: ConversationMessageReceiptDeliveryStatus;
119
+ status: DeliveryReceiptDeliveryStatus;
120
120
  /**
121
121
  * The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status,
122
122
  */
@@ -154,7 +154,7 @@ export declare class DeliveryReceiptInstance {
154
154
  messageSid: string;
155
155
  channelMessageSid: string;
156
156
  participantSid: string;
157
- status: ConversationMessageReceiptDeliveryStatus;
157
+ status: DeliveryReceiptDeliveryStatus;
158
158
  errorCode: number;
159
159
  dateCreated: Date;
160
160
  dateUpdated: Date;
@@ -4,21 +4,21 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
6
  import { DeliveryReceiptListInstance } from "./message/deliveryReceipt";
7
- type ConversationMessageOrderType = "asc" | "desc";
8
- type ConversationMessageWebhookEnabledType = "true" | "false";
7
+ export type MessageOrderType = "asc" | "desc";
8
+ export type MessageWebhookEnabledType = "true" | "false";
9
9
  /**
10
10
  * Options to pass to remove a MessageInstance
11
11
  */
12
12
  export interface MessageContextRemoveOptions {
13
13
  /** The X-Twilio-Webhook-Enabled HTTP request header */
14
- xTwilioWebhookEnabled?: ConversationMessageWebhookEnabledType;
14
+ xTwilioWebhookEnabled?: MessageWebhookEnabledType;
15
15
  }
16
16
  /**
17
17
  * Options to pass to update a MessageInstance
18
18
  */
19
19
  export interface MessageContextUpdateOptions {
20
20
  /** The X-Twilio-Webhook-Enabled HTTP request header */
21
- xTwilioWebhookEnabled?: ConversationMessageWebhookEnabledType;
21
+ xTwilioWebhookEnabled?: MessageWebhookEnabledType;
22
22
  /** The channel specific identifier of the message\\\'s author. Defaults to `system`. */
23
23
  author?: string;
24
24
  /** The content of the message, can be up to 1,600 characters long. */
@@ -35,7 +35,7 @@ export interface MessageContextUpdateOptions {
35
35
  */
36
36
  export interface MessageListInstanceCreateOptions {
37
37
  /** The X-Twilio-Webhook-Enabled HTTP request header */
38
- xTwilioWebhookEnabled?: ConversationMessageWebhookEnabledType;
38
+ xTwilioWebhookEnabled?: MessageWebhookEnabledType;
39
39
  /** The channel specific identifier of the message\\\'s author. Defaults to `system`. */
40
40
  author?: string;
41
41
  /** The content of the message, can be up to 1,600 characters long. */
@@ -58,7 +58,7 @@ export interface MessageListInstanceCreateOptions {
58
58
  */
59
59
  export interface MessageListInstanceEachOptions {
60
60
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
61
- order?: ConversationMessageOrderType;
61
+ order?: MessageOrderType;
62
62
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
63
63
  pageSize?: number;
64
64
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -73,7 +73,7 @@ export interface MessageListInstanceEachOptions {
73
73
  */
74
74
  export interface MessageListInstanceOptions {
75
75
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
76
- order?: ConversationMessageOrderType;
76
+ order?: MessageOrderType;
77
77
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
78
78
  pageSize?: number;
79
79
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -84,7 +84,7 @@ export interface MessageListInstanceOptions {
84
84
  */
85
85
  export interface MessageListInstancePageOptions {
86
86
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. */
87
- order?: ConversationMessageOrderType;
87
+ order?: MessageOrderType;
88
88
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
89
89
  pageSize?: number;
90
90
  /** Page Number, this value is simply for client state */
@@ -3,20 +3,20 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
- type ConversationParticipantWebhookEnabledType = "true" | "false";
6
+ export type ParticipantWebhookEnabledType = "true" | "false";
7
7
  /**
8
8
  * Options to pass to remove a ParticipantInstance
9
9
  */
10
10
  export interface ParticipantContextRemoveOptions {
11
11
  /** The X-Twilio-Webhook-Enabled HTTP request header */
12
- xTwilioWebhookEnabled?: ConversationParticipantWebhookEnabledType;
12
+ xTwilioWebhookEnabled?: ParticipantWebhookEnabledType;
13
13
  }
14
14
  /**
15
15
  * Options to pass to update a ParticipantInstance
16
16
  */
17
17
  export interface ParticipantContextUpdateOptions {
18
18
  /** The X-Twilio-Webhook-Enabled HTTP request header */
19
- xTwilioWebhookEnabled?: ConversationParticipantWebhookEnabledType;
19
+ xTwilioWebhookEnabled?: ParticipantWebhookEnabledType;
20
20
  /** The date that this resource was created. */
21
21
  dateCreated?: Date;
22
22
  /** The date that this resource was last updated. */
@@ -41,7 +41,7 @@ export interface ParticipantContextUpdateOptions {
41
41
  */
42
42
  export interface ParticipantListInstanceCreateOptions {
43
43
  /** The X-Twilio-Webhook-Enabled HTTP request header */
44
- xTwilioWebhookEnabled?: ConversationParticipantWebhookEnabledType;
44
+ xTwilioWebhookEnabled?: ParticipantWebhookEnabledType;
45
45
  /** A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. */
46
46
  identity?: string;
47
47
  /** The address of the participant\\\'s device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the \\\'identity\\\' field). */
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
- type ConversationScopedWebhookMethod = "GET" | "POST";
7
- type ConversationScopedWebhookTarget = "webhook" | "trigger" | "studio";
6
+ export type WebhookMethod = "GET" | "POST";
7
+ export type WebhookTarget = "webhook" | "trigger" | "studio";
8
8
  /**
9
9
  * Options to pass to update a WebhookInstance
10
10
  */
@@ -12,7 +12,7 @@ export interface WebhookContextUpdateOptions {
12
12
  /** The absolute url the webhook request should be sent to. */
13
13
  "configuration.url"?: string;
14
14
  /** */
15
- "configuration.method"?: ConversationScopedWebhookMethod;
15
+ "configuration.method"?: WebhookMethod;
16
16
  /** The list of events, firing webhook event for this Conversation. */
17
17
  "configuration.filters"?: Array<string>;
18
18
  /** The list of keywords, firing webhook event for this Conversation. */
@@ -25,11 +25,11 @@ export interface WebhookContextUpdateOptions {
25
25
  */
26
26
  export interface WebhookListInstanceCreateOptions {
27
27
  /** */
28
- target: ConversationScopedWebhookTarget;
28
+ target: WebhookTarget;
29
29
  /** The absolute url the webhook request should be sent to. */
30
30
  "configuration.url"?: string;
31
31
  /** */
32
- "configuration.method"?: ConversationScopedWebhookMethod;
32
+ "configuration.method"?: WebhookMethod;
33
33
  /** The list of events, firing webhook event for this Conversation. */
34
34
  "configuration.filters"?: Array<string>;
35
35
  /** The list of keywords, firing webhook event for this Conversation. */
@@ -6,8 +6,8 @@ import V1 from "../V1";
6
6
  import { MessageListInstance } from "./conversation/message";
7
7
  import { ParticipantListInstance } from "./conversation/participant";
8
8
  import { WebhookListInstance } from "./conversation/webhook";
9
- type ConversationState = "inactive" | "active" | "closed";
10
- type ConversationWebhookEnabledType = "true" | "false";
9
+ export type ConversationState = "inactive" | "active" | "closed";
10
+ export type ConversationWebhookEnabledType = "true" | "false";
11
11
  /**
12
12
  * Options to pass to remove a ConversationInstance
13
13
  */
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
- type CredentialPushType = "apn" | "gcm" | "fcm";
6
+ export type CredentialPushType = "apn" | "gcm" | "fcm";
7
7
  /**
8
8
  * Options to pass to update a CredentialInstance
9
9
  */
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
- type ParticipantConversationState = "inactive" | "active" | "closed";
6
+ export type ParticipantConversationState = "inactive" | "active" | "closed";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
- type RoleRoleType = "conversation" | "service";
6
+ export type RoleRoleType = "conversation" | "service";
7
7
  /**
8
8
  * Options to pass to update a RoleInstance
9
9
  */