twilio 4.7.2 → 4.8.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 (210) hide show
  1. package/lib/index.d.ts +52 -36
  2. package/lib/index.js +32 -51
  3. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +2 -2
  4. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
  5. package/lib/rest/api/v2010/account/call/feedback.d.ts +1 -1
  6. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +1 -1
  7. package/lib/rest/api/v2010/account/call/payment.d.ts +5 -5
  8. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -2
  9. package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
  10. package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
  11. package/lib/rest/api/v2010/account/call.d.ts +2 -2
  12. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/conference/recording.d.ts +2 -2
  14. package/lib/rest/api/v2010/account/conference.d.ts +4 -4
  15. package/lib/rest/api/v2010/account/connectApp.d.ts +1 -1
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +4 -4
  17. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +4 -4
  18. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +4 -4
  19. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +4 -4
  20. package/lib/rest/api/v2010/account/message/feedback.d.ts +1 -1
  21. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  22. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +1 -1
  23. package/lib/rest/api/v2010/account/recording/transcription.d.ts +1 -1
  24. package/lib/rest/api/v2010/account/recording.d.ts +2 -2
  25. package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
  26. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
  27. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
  28. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
  29. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
  30. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
  31. package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
  32. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
  33. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
  34. package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
  35. package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -3
  36. package/lib/rest/api/v2010/account/usage.d.ts +1 -0
  37. package/lib/rest/api/v2010/account.d.ts +2 -2
  38. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
  39. package/lib/rest/chat/v1/credential.d.ts +1 -1
  40. package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
  41. package/lib/rest/chat/v1/service/channel.d.ts +1 -1
  42. package/lib/rest/chat/v1/service/role.d.ts +1 -1
  43. package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
  44. package/lib/rest/chat/v2/credential.d.ts +1 -1
  45. package/lib/rest/chat/v2/service/binding.d.ts +1 -1
  46. package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
  47. package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
  48. package/lib/rest/chat/v2/service/channel/webhook.d.ts +2 -2
  49. package/lib/rest/chat/v2/service/channel.d.ts +2 -2
  50. package/lib/rest/chat/v2/service/role.d.ts +1 -1
  51. package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
  52. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
  53. package/lib/rest/chat/v2/service/user.d.ts +1 -1
  54. package/lib/rest/chat/v3/channel.d.ts +2 -2
  55. package/lib/rest/conversations/v1/addressConfiguration.d.ts +3 -3
  56. package/lib/rest/conversations/v1/configuration/webhook.d.ts +2 -2
  57. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +1 -1
  58. package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
  59. package/lib/rest/conversations/v1/conversation/participant.d.ts +1 -1
  60. package/lib/rest/conversations/v1/conversation/webhook.d.ts +2 -2
  61. package/lib/rest/conversations/v1/conversation.d.ts +2 -2
  62. package/lib/rest/conversations/v1/credential.d.ts +1 -1
  63. package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
  64. package/lib/rest/conversations/v1/role.d.ts +1 -1
  65. package/lib/rest/conversations/v1/service/binding.d.ts +1 -1
  66. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +1 -1
  67. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +1 -1
  68. package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
  69. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +1 -1
  70. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +2 -2
  71. package/lib/rest/conversations/v1/service/conversation.d.ts +2 -2
  72. package/lib/rest/conversations/v1/service/participantConversation.d.ts +1 -1
  73. package/lib/rest/conversations/v1/service/role.d.ts +1 -1
  74. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +2 -2
  75. package/lib/rest/conversations/v1/service/user.d.ts +1 -1
  76. package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
  77. package/lib/rest/conversations/v1/user.d.ts +1 -1
  78. package/lib/rest/events/v1/sink.d.ts +2 -2
  79. package/lib/rest/flexApi/v1/assessments.d.ts +138 -10
  80. package/lib/rest/flexApi/v1/assessments.js +138 -22
  81. package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
  82. package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
  83. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -0
  84. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -0
  85. package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
  86. package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
  87. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
  88. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
  89. package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
  90. package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
  91. package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
  92. package/lib/rest/insights/v1/call/callSummary.d.ts +4 -4
  93. package/lib/rest/insights/v1/call/event.d.ts +2 -2
  94. package/lib/rest/insights/v1/call/metric.d.ts +2 -2
  95. package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
  96. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
  97. package/lib/rest/insights/v1/conference.d.ts +5 -5
  98. package/lib/rest/insights/v1/room/participant.d.ts +4 -4
  99. package/lib/rest/insights/v1/room.d.ts +8 -8
  100. package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
  101. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
  102. package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
  103. package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
  104. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
  105. package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
  106. package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
  107. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
  108. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
  109. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +2 -2
  110. package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
  111. package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
  112. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
  113. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
  114. package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
  115. package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
  116. package/lib/rest/media/v1/mediaProcessor.d.ts +3 -3
  117. package/lib/rest/media/v1/mediaRecording.d.ts +3 -3
  118. package/lib/rest/media/v1/playerStreamer.d.ts +4 -4
  119. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
  120. package/lib/rest/messaging/v1/brandRegistration.d.ts +3 -3
  121. package/lib/rest/messaging/v1/service.d.ts +1 -1
  122. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
  123. package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
  124. package/lib/rest/microvisor/v1/accountConfig.js +25 -0
  125. package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
  126. package/lib/rest/microvisor/v1/accountSecret.js +25 -0
  127. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
  128. package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
  129. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
  130. package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
  131. package/lib/rest/notify/v1/credential.d.ts +1 -1
  132. package/lib/rest/notify/v1/service/binding.d.ts +1 -1
  133. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  134. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
  135. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
  136. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
  137. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  138. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
  139. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
  140. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
  141. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
  142. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
  143. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
  144. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
  145. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
  146. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
  147. package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
  148. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
  149. package/lib/rest/proxy/v1/service/session.d.ts +2 -2
  150. package/lib/rest/proxy/v1/service.d.ts +2 -2
  151. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
  152. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
  153. package/lib/rest/serverless/v1/service/build.d.ts +2 -2
  154. package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
  155. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
  156. package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
  157. package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
  158. package/lib/rest/studio/v1/flow.d.ts +1 -1
  159. package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
  160. package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
  161. package/lib/rest/studio/v2/flow.d.ts +1 -1
  162. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  163. package/lib/rest/supersim/v1/esimProfile.d.ts +1 -1
  164. package/lib/rest/supersim/v1/fleet.d.ts +1 -1
  165. package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
  166. package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
  167. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
  168. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
  169. package/lib/rest/supersim/v1/sim.d.ts +2 -2
  170. package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
  171. package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
  172. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  173. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  174. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +4 -4
  175. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  176. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
  177. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -3
  178. package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
  179. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +1 -1
  180. package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
  181. package/lib/rest/trunking/v1/trunk.d.ts +2 -2
  182. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +1 -1
  183. package/lib/rest/trusthub/v1/customerProfiles.d.ts +1 -1
  184. package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
  185. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +1 -1
  186. package/lib/rest/trusthub/v1/trustProducts.d.ts +1 -1
  187. package/lib/rest/verify/v2/form.d.ts +1 -1
  188. package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
  189. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
  190. package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
  191. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
  192. package/lib/rest/verify/v2/service/verification.d.ts +2 -2
  193. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  194. package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
  195. package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
  196. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
  197. package/lib/rest/video/v1/composition.d.ts +2 -2
  198. package/lib/rest/video/v1/compositionHook.d.ts +1 -1
  199. package/lib/rest/video/v1/recording.d.ts +4 -4
  200. package/lib/rest/video/v1/room/participant/anonymize.d.ts +1 -1
  201. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +1 -1
  202. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +1 -1
  203. package/lib/rest/video/v1/room/participant.d.ts +1 -1
  204. package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
  205. package/lib/rest/video/v1/room.d.ts +3 -3
  206. package/lib/rest/wireless/v1/command.d.ts +4 -4
  207. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
  208. package/lib/rest/wireless/v1/sim.d.ts +2 -2
  209. package/lib/rest/wireless/v1/usageRecord.d.ts +1 -1
  210. package/package.json +2 -5
@@ -17,19 +17,45 @@ exports.AssessmentsListInstance = exports.AssessmentsInstance = exports.Assessme
17
17
  const util_1 = require("util");
18
18
  const deserialize = require("../../../base/deserialize");
19
19
  const serialize = require("../../../base/serialize");
20
+ const utility_1 = require("../../../base/utility");
20
21
  class AssessmentsContextImpl {
21
- constructor(_version) {
22
+ constructor(_version, assessmentId) {
22
23
  this._version = _version;
23
- this._solution = {};
24
- this._uri = `/Accounts/Assessments`;
24
+ if (!(0, utility_1.isValidPathParam)(assessmentId)) {
25
+ throw new Error("Parameter 'assessmentId' is not valid.");
26
+ }
27
+ this._solution = { assessmentId };
28
+ this._uri = `/Insights/QM/Assessments/${assessmentId}`;
25
29
  }
26
- create(callback) {
30
+ update(params, callback) {
31
+ if (params === null || params === undefined) {
32
+ throw new Error('Required parameter "params" missing.');
33
+ }
34
+ if (params["offset"] === null || params["offset"] === undefined) {
35
+ throw new Error("Required parameter \"params['offset']\" missing.");
36
+ }
37
+ if (params["answerText"] === null || params["answerText"] === undefined) {
38
+ throw new Error("Required parameter \"params['answerText']\" missing.");
39
+ }
40
+ if (params["answerId"] === null || params["answerId"] === undefined) {
41
+ throw new Error("Required parameter \"params['answerId']\" missing.");
42
+ }
43
+ let data = {};
44
+ data["Offset"] = params["offset"];
45
+ data["AnswerText"] = params["answerText"];
46
+ data["AnswerId"] = params["answerId"];
47
+ const headers = {};
48
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
49
+ if (params["token"] !== undefined)
50
+ headers["Token"] = params["token"];
27
51
  const instance = this;
28
- let operationVersion = instance._version, operationPromise = operationVersion.create({
52
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
29
53
  uri: instance._uri,
30
54
  method: "post",
55
+ data,
56
+ headers,
31
57
  });
32
- operationPromise = operationPromise.then((payload) => new AssessmentsInstance(operationVersion, payload));
58
+ operationPromise = operationPromise.then((payload) => new AssessmentsInstance(operationVersion, payload, instance._solution.assessmentId));
33
59
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
34
60
  return operationPromise;
35
61
  }
@@ -47,24 +73,32 @@ class AssessmentsContextImpl {
47
73
  }
48
74
  exports.AssessmentsContextImpl = AssessmentsContextImpl;
49
75
  class AssessmentsInstance {
50
- constructor(_version, payload) {
76
+ constructor(_version, payload, assessmentId) {
51
77
  this._version = _version;
78
+ this.accountSid = payload.account_sid;
79
+ this.assessmentId = payload.assessment_id;
80
+ this.offset = payload.offset;
81
+ this.report = payload.report;
82
+ this.weight = payload.weight;
83
+ this.agentId = payload.agent_id;
84
+ this.segmentId = payload.segment_id;
85
+ this.userName = payload.user_name;
86
+ this.userEmail = payload.user_email;
87
+ this.answerText = payload.answer_text;
88
+ this.answerId = payload.answer_id;
89
+ this.assessment = payload.assessment;
90
+ this.timestamp = payload.timestamp;
52
91
  this.url = payload.url;
53
- this._solution = {};
92
+ this._solution = { assessmentId: assessmentId || this.assessmentId };
54
93
  }
55
94
  get _proxy() {
56
- this._context = this._context || new AssessmentsContextImpl(this._version);
95
+ this._context =
96
+ this._context ||
97
+ new AssessmentsContextImpl(this._version, this._solution.assessmentId);
57
98
  return this._context;
58
99
  }
59
- /**
60
- * Create a AssessmentsInstance
61
- *
62
- * @param callback - Callback to handle processed record
63
- *
64
- * @returns Resolves to processed AssessmentsInstance
65
- */
66
- create(callback) {
67
- return this._proxy.create(callback);
100
+ update(params, callback) {
101
+ return this._proxy.update(params, callback);
68
102
  }
69
103
  /**
70
104
  * Provide a user-friendly representation
@@ -73,6 +107,19 @@ class AssessmentsInstance {
73
107
  */
74
108
  toJSON() {
75
109
  return {
110
+ accountSid: this.accountSid,
111
+ assessmentId: this.assessmentId,
112
+ offset: this.offset,
113
+ report: this.report,
114
+ weight: this.weight,
115
+ agentId: this.agentId,
116
+ segmentId: this.segmentId,
117
+ userName: this.userName,
118
+ userEmail: this.userEmail,
119
+ answerText: this.answerText,
120
+ answerId: this.answerId,
121
+ assessment: this.assessment,
122
+ timestamp: this.timestamp,
76
123
  url: this.url,
77
124
  };
78
125
  }
@@ -82,13 +129,82 @@ class AssessmentsInstance {
82
129
  }
83
130
  exports.AssessmentsInstance = AssessmentsInstance;
84
131
  function AssessmentsListInstance(version) {
85
- const instance = (() => instance.get());
86
- instance.get = function get() {
87
- return new AssessmentsContextImpl(version);
132
+ const instance = ((assessmentId) => instance.get(assessmentId));
133
+ instance.get = function get(assessmentId) {
134
+ return new AssessmentsContextImpl(version, assessmentId);
88
135
  };
89
136
  instance._version = version;
90
137
  instance._solution = {};
91
- instance._uri = ``;
138
+ instance._uri = `/Insights/QM/Assessments`;
139
+ instance.create = function create(params, callback) {
140
+ if (params === null || params === undefined) {
141
+ throw new Error('Required parameter "params" missing.');
142
+ }
143
+ if (params["categoryId"] === null || params["categoryId"] === undefined) {
144
+ throw new Error("Required parameter \"params['categoryId']\" missing.");
145
+ }
146
+ if (params["categoryName"] === null ||
147
+ params["categoryName"] === undefined) {
148
+ throw new Error("Required parameter \"params['categoryName']\" missing.");
149
+ }
150
+ if (params["segmentId"] === null || params["segmentId"] === undefined) {
151
+ throw new Error("Required parameter \"params['segmentId']\" missing.");
152
+ }
153
+ if (params["userName"] === null || params["userName"] === undefined) {
154
+ throw new Error("Required parameter \"params['userName']\" missing.");
155
+ }
156
+ if (params["userEmail"] === null || params["userEmail"] === undefined) {
157
+ throw new Error("Required parameter \"params['userEmail']\" missing.");
158
+ }
159
+ if (params["agentId"] === null || params["agentId"] === undefined) {
160
+ throw new Error("Required parameter \"params['agentId']\" missing.");
161
+ }
162
+ if (params["offset"] === null || params["offset"] === undefined) {
163
+ throw new Error("Required parameter \"params['offset']\" missing.");
164
+ }
165
+ if (params["metricId"] === null || params["metricId"] === undefined) {
166
+ throw new Error("Required parameter \"params['metricId']\" missing.");
167
+ }
168
+ if (params["metricName"] === null || params["metricName"] === undefined) {
169
+ throw new Error("Required parameter \"params['metricName']\" missing.");
170
+ }
171
+ if (params["answerText"] === null || params["answerText"] === undefined) {
172
+ throw new Error("Required parameter \"params['answerText']\" missing.");
173
+ }
174
+ if (params["answerId"] === null || params["answerId"] === undefined) {
175
+ throw new Error("Required parameter \"params['answerId']\" missing.");
176
+ }
177
+ if (params["questionnaireId"] === null ||
178
+ params["questionnaireId"] === undefined) {
179
+ throw new Error("Required parameter \"params['questionnaireId']\" missing.");
180
+ }
181
+ let data = {};
182
+ data["CategoryId"] = params["categoryId"];
183
+ data["CategoryName"] = params["categoryName"];
184
+ data["SegmentId"] = params["segmentId"];
185
+ data["UserName"] = params["userName"];
186
+ data["UserEmail"] = params["userEmail"];
187
+ data["AgentId"] = params["agentId"];
188
+ data["Offset"] = params["offset"];
189
+ data["MetricId"] = params["metricId"];
190
+ data["MetricName"] = params["metricName"];
191
+ data["AnswerText"] = params["answerText"];
192
+ data["AnswerId"] = params["answerId"];
193
+ data["QuestionnaireId"] = params["questionnaireId"];
194
+ const headers = {};
195
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
196
+ if (params["token"] !== undefined)
197
+ headers["Token"] = params["token"];
198
+ let operationVersion = version, operationPromise = operationVersion.create({
199
+ uri: instance._uri,
200
+ method: "post",
201
+ data,
202
+ headers,
203
+ });
204
+ operationPromise = operationPromise.then((payload) => new AssessmentsInstance(operationVersion, payload));
205
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
206
+ return operationPromise;
207
+ };
92
208
  instance.toJSON = function toJSON() {
93
209
  return instance._solution;
94
210
  };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../V1";
4
- type ConfigurationStatus = "ok" | "inprogress" | "notstarted";
4
+ export type ConfigurationStatus = "ok" | "inprogress" | "notstarted";
5
5
  /**
6
6
  * Options to pass to fetch a ConfigurationInstance
7
7
  */
@@ -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 FlexFlowChannelType = "web" | "sms" | "facebook" | "whatsapp" | "line" | "custom";
7
- type FlexFlowIntegrationType = "studio" | "external" | "task";
6
+ export type FlexFlowChannelType = "web" | "sms" | "facebook" | "whatsapp" | "line" | "custom";
7
+ export type FlexFlowIntegrationType = "studio" | "external" | "task";
8
8
  /**
9
9
  * Options to pass to update a FlexFlowInstance
10
10
  */
@@ -152,6 +152,7 @@ interface InsightsQuestionnairesQuestionResource {
152
152
  answer_set_id: string;
153
153
  allow_na: boolean;
154
154
  usage: number;
155
+ answer_set: any;
155
156
  url: string;
156
157
  }
157
158
  export declare class InsightsQuestionnairesQuestionInstance {
@@ -191,6 +192,10 @@ export declare class InsightsQuestionnairesQuestionInstance {
191
192
  * Integer value that tells a particular question is used by how many questionnaires
192
193
  */
193
194
  usage: number;
195
+ /**
196
+ * Set of answers for the question
197
+ */
198
+ answerSet: any;
194
199
  url: string;
195
200
  private get _proxy();
196
201
  /**
@@ -233,6 +238,7 @@ export declare class InsightsQuestionnairesQuestionInstance {
233
238
  answerSetId: string;
234
239
  allowNa: boolean;
235
240
  usage: number;
241
+ answerSet: any;
236
242
  url: string;
237
243
  };
238
244
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -109,6 +109,7 @@ class InsightsQuestionnairesQuestionInstance {
109
109
  this.answerSetId = payload.answer_set_id;
110
110
  this.allowNa = payload.allow_na;
111
111
  this.usage = deserialize.integer(payload.usage);
112
+ this.answerSet = payload.answer_set;
112
113
  this.url = payload.url;
113
114
  this._solution = { questionId: questionId || this.questionId };
114
115
  }
@@ -139,6 +140,7 @@ class InsightsQuestionnairesQuestionInstance {
139
140
  answerSetId: this.answerSetId,
140
141
  allowNa: this.allowNa,
141
142
  usage: this.usage,
143
+ answerSet: this.answerSet,
142
144
  url: this.url,
143
145
  };
144
146
  }
@@ -1,5 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
+ import Page, { TwilioResponsePayload } from "../../../base/Page";
4
+ import Response from "../../../http/response";
3
5
  import V1 from "../V1";
4
6
  /**
5
7
  * Options to pass to fetch a InsightsSegmentsInstance
@@ -8,6 +10,51 @@ export interface InsightsSegmentsContextFetchOptions {
8
10
  /** The Token HTTP request header */
9
11
  token?: string;
10
12
  }
13
+ /**
14
+ * Options to pass to each
15
+ */
16
+ export interface InsightsSegmentsListInstanceEachOptions {
17
+ /** The Token HTTP request header */
18
+ token?: string;
19
+ /** The list of reservation Ids */
20
+ reservationId?: Array<string>;
21
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
22
+ pageSize?: number;
23
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
24
+ callback?: (item: InsightsSegmentsInstance, done: (err?: Error) => void) => void;
25
+ /** Function to be called upon completion of streaming */
26
+ done?: Function;
27
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
28
+ limit?: number;
29
+ }
30
+ /**
31
+ * Options to pass to list
32
+ */
33
+ export interface InsightsSegmentsListInstanceOptions {
34
+ /** The Token HTTP request header */
35
+ token?: string;
36
+ /** The list of reservation Ids */
37
+ reservationId?: Array<string>;
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 InsightsSegmentsListInstancePageOptions {
47
+ /** The Token HTTP request header */
48
+ token?: string;
49
+ /** The list of reservation Ids */
50
+ reservationId?: Array<string>;
51
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
52
+ pageSize?: number;
53
+ /** Page Number, this value is simply for client state */
54
+ pageNumber?: number;
55
+ /** PageToken provided by the API */
56
+ pageToken?: string;
57
+ }
11
58
  export interface InsightsSegmentsContext {
12
59
  /**
13
60
  * Fetch a InsightsSegmentsInstance
@@ -49,6 +96,9 @@ export declare class InsightsSegmentsContextImpl implements InsightsSegmentsCont
49
96
  toJSON(): InsightsSegmentsContextSolution;
50
97
  [inspect.custom](_depth: any, options: InspectOptions): string;
51
98
  }
99
+ interface InsightsSegmentsPayload extends TwilioResponsePayload {
100
+ segments: InsightsSegmentsResource[];
101
+ }
52
102
  interface InsightsSegmentsResource {
53
103
  segment_id: string;
54
104
  external_id: string;
@@ -68,7 +118,7 @@ interface InsightsSegmentsResource {
68
118
  customer_name: string;
69
119
  customer_link: string;
70
120
  segment_recording_offset: string;
71
- media: string;
121
+ media: any;
72
122
  assessment_type: any;
73
123
  assessment_percentage: any;
74
124
  url: string;
@@ -145,9 +195,9 @@ export declare class InsightsSegmentsInstance {
145
195
  */
146
196
  segmentRecordingOffset: string;
147
197
  /**
148
- * The link for the conversation.
198
+ * The media identifiers of the conversation.
149
199
  */
150
- media: string;
200
+ media: any;
151
201
  /**
152
202
  * The type of the assessment.
153
203
  */
@@ -199,7 +249,7 @@ export declare class InsightsSegmentsInstance {
199
249
  customerName: string;
200
250
  customerLink: string;
201
251
  segmentRecordingOffset: string;
202
- media: string;
252
+ media: any;
203
253
  assessmentType: any;
204
254
  assessmentPercentage: any;
205
255
  url: string;
@@ -214,6 +264,56 @@ export interface InsightsSegmentsListInstance {
214
264
  _uri: string;
215
265
  (segmentId: string): InsightsSegmentsContext;
216
266
  get(segmentId: string): InsightsSegmentsContext;
267
+ /**
268
+ * Streams InsightsSegmentsInstance records from the API.
269
+ *
270
+ * This operation lazily loads records as efficiently as possible until the limit
271
+ * is reached.
272
+ *
273
+ * The results are passed into the callback function, so this operation is memory
274
+ * efficient.
275
+ *
276
+ * If a function is passed as the first argument, it will be used as the callback
277
+ * function.
278
+ *
279
+ * @param { InsightsSegmentsListInstanceEachOptions } [params] - Options for request
280
+ * @param { function } [callback] - Function to process each record
281
+ */
282
+ each(callback?: (item: InsightsSegmentsInstance, done: (err?: Error) => void) => void): void;
283
+ each(params: InsightsSegmentsListInstanceEachOptions, callback?: (item: InsightsSegmentsInstance, done: (err?: Error) => void) => void): void;
284
+ /**
285
+ * Retrieve a single target page of InsightsSegmentsInstance records from the API.
286
+ *
287
+ * The request is executed immediately.
288
+ *
289
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
290
+ * @param { function } [callback] - Callback to handle list of records
291
+ */
292
+ getPage(targetUrl: string, callback?: (error: Error | null, items: InsightsSegmentsPage) => any): Promise<InsightsSegmentsPage>;
293
+ /**
294
+ * Lists InsightsSegmentsInstance records from the API as a list.
295
+ *
296
+ * If a function is passed as the first argument, it will be used as the callback
297
+ * function.
298
+ *
299
+ * @param { InsightsSegmentsListInstanceOptions } [params] - Options for request
300
+ * @param { function } [callback] - Callback to handle list of records
301
+ */
302
+ list(callback?: (error: Error | null, items: InsightsSegmentsInstance[]) => any): Promise<InsightsSegmentsInstance[]>;
303
+ list(params: InsightsSegmentsListInstanceOptions, callback?: (error: Error | null, items: InsightsSegmentsInstance[]) => any): Promise<InsightsSegmentsInstance[]>;
304
+ /**
305
+ * Retrieve a single page of InsightsSegmentsInstance records from the API.
306
+ *
307
+ * The request is executed immediately.
308
+ *
309
+ * If a function is passed as the first argument, it will be used as the callback
310
+ * function.
311
+ *
312
+ * @param { InsightsSegmentsListInstancePageOptions } [params] - Options for request
313
+ * @param { function } [callback] - Callback to handle list of records
314
+ */
315
+ page(callback?: (error: Error | null, items: InsightsSegmentsPage) => any): Promise<InsightsSegmentsPage>;
316
+ page(params: InsightsSegmentsListInstancePageOptions, callback?: (error: Error | null, items: InsightsSegmentsPage) => any): Promise<InsightsSegmentsPage>;
217
317
  /**
218
318
  * Provide a user-friendly representation
219
319
  */
@@ -221,4 +321,21 @@ export interface InsightsSegmentsListInstance {
221
321
  [inspect.custom](_depth: any, options: InspectOptions): any;
222
322
  }
223
323
  export declare function InsightsSegmentsListInstance(version: V1): InsightsSegmentsListInstance;
324
+ export declare class InsightsSegmentsPage extends Page<V1, InsightsSegmentsPayload, InsightsSegmentsResource, InsightsSegmentsInstance> {
325
+ /**
326
+ * Initialize the InsightsSegmentsPage
327
+ *
328
+ * @param version - Version of the resource
329
+ * @param response - Response from the API
330
+ * @param solution - Path solution
331
+ */
332
+ constructor(version: V1, response: Response<string>, solution: InsightsSegmentsSolution);
333
+ /**
334
+ * Build an instance of InsightsSegmentsInstance
335
+ *
336
+ * @param payload - Payload response from the API
337
+ */
338
+ getInstance(payload: InsightsSegmentsResource): InsightsSegmentsInstance;
339
+ [inspect.custom](depth: any, options: InspectOptions): string;
340
+ }
224
341
  export {};
@@ -12,9 +12,13 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
15
18
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InsightsSegmentsListInstance = exports.InsightsSegmentsInstance = exports.InsightsSegmentsContextImpl = void 0;
19
+ exports.InsightsSegmentsPage = exports.InsightsSegmentsListInstance = exports.InsightsSegmentsInstance = exports.InsightsSegmentsContextImpl = void 0;
17
20
  const util_1 = require("util");
21
+ const Page_1 = __importDefault(require("../../../base/Page"));
18
22
  const deserialize = require("../../../base/deserialize");
19
23
  const serialize = require("../../../base/serialize");
20
24
  const utility_1 = require("../../../base/utility");
@@ -142,7 +146,48 @@ function InsightsSegmentsListInstance(version) {
142
146
  };
143
147
  instance._version = version;
144
148
  instance._solution = {};
145
- instance._uri = ``;
149
+ instance._uri = `/Insights/Segments`;
150
+ instance.page = function page(params, callback) {
151
+ if (params instanceof Function) {
152
+ callback = params;
153
+ params = {};
154
+ }
155
+ else {
156
+ params = params || {};
157
+ }
158
+ let data = {};
159
+ if (params["reservationId"] !== undefined)
160
+ data["ReservationId"] = serialize.map(params["reservationId"], (e) => e);
161
+ if (params["pageSize"] !== undefined)
162
+ data["PageSize"] = params["pageSize"];
163
+ if (params.pageNumber !== undefined)
164
+ data["Page"] = params.pageNumber;
165
+ if (params.pageToken !== undefined)
166
+ data["PageToken"] = params.pageToken;
167
+ const headers = {};
168
+ if (params["token"] !== undefined)
169
+ headers["Token"] = params["token"];
170
+ let operationVersion = version, operationPromise = operationVersion.page({
171
+ uri: instance._uri,
172
+ method: "get",
173
+ params: data,
174
+ headers,
175
+ });
176
+ operationPromise = operationPromise.then((payload) => new InsightsSegmentsPage(operationVersion, payload, instance._solution));
177
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
178
+ return operationPromise;
179
+ };
180
+ instance.each = instance._version.each;
181
+ instance.list = instance._version.list;
182
+ instance.getPage = function getPage(targetUrl, callback) {
183
+ const operationPromise = instance._version._domain.twilio.request({
184
+ method: "get",
185
+ uri: targetUrl,
186
+ });
187
+ let pagePromise = operationPromise.then((payload) => new InsightsSegmentsPage(instance._version, payload, instance._solution));
188
+ pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
189
+ return pagePromise;
190
+ };
146
191
  instance.toJSON = function toJSON() {
147
192
  return instance._solution;
148
193
  };
@@ -152,3 +197,27 @@ function InsightsSegmentsListInstance(version) {
152
197
  return instance;
153
198
  }
154
199
  exports.InsightsSegmentsListInstance = InsightsSegmentsListInstance;
200
+ class InsightsSegmentsPage extends Page_1.default {
201
+ /**
202
+ * Initialize the InsightsSegmentsPage
203
+ *
204
+ * @param version - Version of the resource
205
+ * @param response - Response from the API
206
+ * @param solution - Path solution
207
+ */
208
+ constructor(version, response, solution) {
209
+ super(version, response, solution);
210
+ }
211
+ /**
212
+ * Build an instance of InsightsSegmentsInstance
213
+ *
214
+ * @param payload - Payload response from the API
215
+ */
216
+ getInstance(payload) {
217
+ return new InsightsSegmentsInstance(this._version, payload);
218
+ }
219
+ [util_1.inspect.custom](depth, options) {
220
+ return (0, util_1.inspect)(this.toJSON(), options);
221
+ }
222
+ }
223
+ exports.InsightsSegmentsPage = InsightsSegmentsPage;
@@ -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 InteractionChannelParticipantStatus = "closed" | "wrapup";
7
- type InteractionChannelParticipantType = "supervisor" | "customer" | "external" | "agent" | "unknown";
6
+ export type InteractionChannelParticipantStatus = "closed" | "wrapup";
7
+ export type InteractionChannelParticipantType = "supervisor" | "customer" | "external" | "agent" | "unknown";
8
8
  /**
9
9
  * Options to pass to update a InteractionChannelParticipantInstance
10
10
  */
@@ -5,9 +5,9 @@ import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
6
  import { InteractionChannelInviteListInstance } from "./interactionChannel/interactionChannelInvite";
7
7
  import { InteractionChannelParticipantListInstance } from "./interactionChannel/interactionChannelParticipant";
8
- type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed";
9
- type InteractionChannelStatus = "closed" | "wrapup";
10
- type InteractionChannelType = "voice" | "sms" | "email" | "web" | "whatsapp" | "chat" | "messenger" | "gbm";
8
+ export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed";
9
+ export type InteractionChannelStatus = "closed" | "wrapup";
10
+ export type InteractionChannelType = "voice" | "sms" | "email" | "web" | "whatsapp" | "chat" | "messenger" | "gbm";
11
11
  /**
12
12
  * Options to pass to update a InteractionChannelInstance
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 WebChannelChatStatus = "inactive";
6
+ export type WebChannelChatStatus = "inactive";
7
7
  /**
8
8
  * Options to pass to update a WebChannelInstance
9
9
  */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../V1";
4
- type UserStateType = "active" | "deactivated";
4
+ export type UserStateType = "active" | "deactivated";
5
5
  /**
6
6
  * Options to pass to update a UserInstance
7
7
  */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../V1";
4
- type AnnotationAnsweredBy = "unknown_answered_by" | "human" | "machine";
5
- type AnnotationConnectivityIssue = "unknown_connectivity_issue" | "no_connectivity_issue" | "invalid_number" | "caller_id" | "dropped_call" | "number_reachability";
4
+ export type AnnotationAnsweredBy = "unknown_answered_by" | "human" | "machine";
5
+ export type AnnotationConnectivityIssue = "unknown_connectivity_issue" | "no_connectivity_issue" | "invalid_number" | "caller_id" | "dropped_call" | "number_reachability";
6
6
  /**
7
7
  * Options to pass to update a AnnotationInstance
8
8
  */
@@ -1,10 +1,10 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../V1";
4
- type SummaryAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
5
- type SummaryCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
6
- type SummaryCallType = "carrier" | "sip" | "trunking" | "client";
7
- type SummaryProcessingState = "complete" | "partial";
4
+ export type SummaryAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
5
+ export type SummaryCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
6
+ export type SummaryCallType = "carrier" | "sip" | "trunking" | "client";
7
+ export type SummaryProcessingState = "complete" | "partial";
8
8
  /**
9
9
  * Options to pass to fetch a CallSummaryInstance
10
10
  */
@@ -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 EventLevel = "UNKNOWN" | "DEBUG" | "INFO" | "WARNING" | "ERROR";
7
- type EventTwilioEdge = "unknown_edge" | "carrier_edge" | "sip_edge" | "sdk_edge" | "client_edge";
6
+ export type EventLevel = "UNKNOWN" | "DEBUG" | "INFO" | "WARNING" | "ERROR";
7
+ export type EventTwilioEdge = "unknown_edge" | "carrier_edge" | "sip_edge" | "sdk_edge" | "client_edge";
8
8
  /**
9
9
  * Options to pass to each
10
10
  */
@@ -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 MetricStreamDirection = "unknown" | "inbound" | "outbound" | "both";
7
- type MetricTwilioEdge = "unknown_edge" | "carrier_edge" | "sip_edge" | "sdk_edge" | "client_edge";
6
+ export type MetricStreamDirection = "unknown" | "inbound" | "outbound" | "both";
7
+ export type MetricTwilioEdge = "unknown_edge" | "carrier_edge" | "sip_edge" | "sdk_edge" | "client_edge";
8
8
  /**
9
9
  * Options to pass to each
10
10
  */
@@ -3,12 +3,12 @@ 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 CallSummariesAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
7
- type CallSummariesCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
8
- type CallSummariesCallType = "carrier" | "sip" | "trunking" | "client";
9
- type CallSummariesProcessingState = "complete" | "partial";
10
- type CallSummariesProcessingStateRequest = "completed" | "started" | "partial" | "all";
11
- type CallSummariesSortBy = "start_time" | "end_time";
6
+ export type CallSummariesAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
7
+ export type CallSummariesCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
8
+ export type CallSummariesCallType = "carrier" | "sip" | "trunking" | "client";
9
+ export type CallSummariesProcessingState = "complete" | "partial";
10
+ export type CallSummariesProcessingStateRequest = "completed" | "started" | "partial" | "all";
11
+ export type CallSummariesSortBy = "start_time" | "end_time";
12
12
  /**
13
13
  * Options to pass to each
14
14
  */