twilio 5.7.1 → 5.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) 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 +264 -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.d.ts +3 -3
  78. package/lib/rest/messaging/v2/channelsSender.d.ts +49 -4
  79. package/lib/rest/messaging/v2/channelsSender.js +14 -2
  80. package/lib/rest/monitor/v1/event.d.ts +3 -3
  81. package/lib/rest/notify/v1/service/notification.d.ts +28 -28
  82. package/lib/rest/numbers/V1.d.ts +5 -5
  83. package/lib/rest/numbers/V1.js +6 -8
  84. package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
  85. package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
  86. package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
  87. package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.d.ts → webhook.d.ts} +10 -10
  88. package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.js → webhook.js} +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/taskrouter/v1/workspace/event.d.ts +3 -3
  125. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  126. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
  127. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
  128. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
  129. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
  130. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
  131. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
  132. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
  133. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
  134. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
  135. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
  136. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
  137. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
  138. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
  139. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
  140. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
  141. package/lib/rest/trunking/v1/trunk.d.ts +9 -3
  142. package/lib/rest/trunking/v1/trunk.js +2 -0
  143. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
  144. package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
  145. package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
  146. package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
  147. package/lib/rest/trusthub/v1/policies.d.ts +3 -3
  148. package/lib/rest/trusthub/v1/supportingDocument.d.ts +5 -5
  149. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
  150. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
  151. package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
  152. package/lib/rest/verify/v2/form.d.ts +6 -6
  153. package/lib/rest/verify/v2/service/entity/challenge.d.ts +12 -12
  154. package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
  155. package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -6
  156. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -10
  157. package/lib/rest/verify/v2/service/verification.d.ts +11 -11
  158. package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
  159. package/lib/rest/verify/v2/service.d.ts +9 -9
  160. package/lib/rest/verify/v2/template.d.ts +3 -3
  161. package/lib/rest/verify/v2/verificationAttempt.d.ts +11 -11
  162. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
  163. package/lib/rest/video/v1/room/transcriptions.d.ts +316 -0
  164. package/lib/rest/{proxy/v1/service/shortCode.js → video/v1/room/transcriptions.js} +61 -78
  165. package/lib/rest/video/v1/room.d.ts +8 -0
  166. package/lib/rest/video/v1/room.js +13 -0
  167. package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
  168. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
  169. package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
  170. package/lib/twiml/VoiceResponse.d.ts +31 -0
  171. package/lib/twiml/VoiceResponse.js +18 -0
  172. package/package.json +1 -1
  173. package/lib/rest/Knowledge.d.ts +0 -4
  174. package/lib/rest/Knowledge.js +0 -8
  175. package/lib/rest/KnowledgeBase.d.ts +0 -13
  176. package/lib/rest/KnowledgeBase.js +0 -31
  177. package/lib/rest/Microvisor.d.ts +0 -14
  178. package/lib/rest/Microvisor.js +0 -22
  179. package/lib/rest/MicrovisorBase.d.ts +0 -13
  180. package/lib/rest/MicrovisorBase.js +0 -31
  181. package/lib/rest/knowledge/V1.d.ts +0 -15
  182. package/lib/rest/knowledge/V1.js +0 -36
  183. package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +0 -167
  184. package/lib/rest/knowledge/v1/knowledge/chunk.js +0 -131
  185. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +0 -101
  186. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +0 -118
  187. package/lib/rest/knowledge/v1/knowledge.d.ts +0 -412
  188. package/lib/rest/knowledge/v1/knowledge.js +0 -302
  189. package/lib/rest/microvisor/V1.d.ts +0 -30
  190. package/lib/rest/microvisor/V1.js +0 -56
  191. package/lib/rest/microvisor/v1/accountConfig.d.ts +0 -263
  192. package/lib/rest/microvisor/v1/accountConfig.js +0 -254
  193. package/lib/rest/microvisor/v1/accountSecret.d.ts +0 -257
  194. package/lib/rest/microvisor/v1/accountSecret.js +0 -252
  195. package/lib/rest/microvisor/v1/app/appManifest.d.ts +0 -101
  196. package/lib/rest/microvisor/v1/app/appManifest.js +0 -118
  197. package/lib/rest/microvisor/v1/app.d.ts +0 -251
  198. package/lib/rest/microvisor/v1/app.js +0 -222
  199. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +0 -271
  200. package/lib/rest/microvisor/v1/device/deviceConfig.js +0 -262
  201. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +0 -265
  202. package/lib/rest/microvisor/v1/device/deviceSecret.js +0 -260
  203. package/lib/rest/microvisor/v1/device.d.ts +0 -299
  204. package/lib/rest/microvisor/v1/device.js +0 -250
  205. package/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
@@ -1,412 +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 { ChunkListInstance } from "./knowledge/chunk";
7
- import { KnowledgeStatusListInstance } from "./knowledge/knowledgeStatus";
8
- export declare class KnowledgeV1ServiceCreateKnowledgeRequest {
9
- /**
10
- * The description of the knowledge source.
11
- */
12
- "description"?: string;
13
- /**
14
- * The details of the knowledge source based on the type.
15
- */
16
- "knowledge_source_details"?: Record<string, object>;
17
- /**
18
- * The name of the tool.
19
- */
20
- "name": string;
21
- "policy"?: KnowledgeV1ServiceCreatePolicyRequest;
22
- /**
23
- * The type of the knowledge source.
24
- */
25
- "type": string;
26
- /**
27
- * The embedding model to be used for the knowledge source. It\'s required for \'Database\' type but disallowed for other types.
28
- */
29
- "embedding_model"?: string;
30
- }
31
- export declare class KnowledgeV1ServiceCreatePolicyRequest {
32
- /**
33
- * The description of the policy.
34
- */
35
- "description"?: string;
36
- /**
37
- * The Policy ID.
38
- */
39
- "id"?: string;
40
- /**
41
- * The name of the policy.
42
- */
43
- "name"?: string;
44
- "policy_details": any | null;
45
- /**
46
- * The description of the policy.
47
- */
48
- "type"?: string;
49
- }
50
- export declare class KnowledgeV1ServiceUpdateKnowledgeRequest {
51
- /**
52
- * The description of the knowledge source.
53
- */
54
- "description"?: string;
55
- /**
56
- * The details of the knowledge source based on the type.
57
- */
58
- "knowledge_source_details"?: Record<string, object>;
59
- /**
60
- * The name of the knowledge source.
61
- */
62
- "name"?: string;
63
- "policy"?: KnowledgeV1ServiceCreatePolicyRequest;
64
- /**
65
- * The description of the knowledge source.
66
- */
67
- "type"?: string;
68
- /**
69
- * The embedding model to be used for the knowledge source. It\'s only applicable to \'Database\' type.
70
- */
71
- "embedding_model"?: string;
72
- }
73
- /**
74
- * Options to pass to update a KnowledgeInstance
75
- */
76
- export interface KnowledgeContextUpdateOptions {
77
- /** */
78
- knowledgeV1ServiceUpdateKnowledgeRequest?: KnowledgeV1ServiceUpdateKnowledgeRequest;
79
- }
80
- /**
81
- * Options to pass to create a KnowledgeInstance
82
- */
83
- export interface KnowledgeListInstanceCreateOptions {
84
- /** */
85
- knowledgeV1ServiceCreateKnowledgeRequest: KnowledgeV1ServiceCreateKnowledgeRequest;
86
- }
87
- /**
88
- * Options to pass to each
89
- */
90
- export interface KnowledgeListInstanceEachOptions {
91
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
92
- pageSize?: number;
93
- /** Json array of tag and value pairs for tag filtering. */
94
- tags?: string;
95
- /** Function to process each record. If this and a positional callback are passed, this one will be used */
96
- callback?: (item: KnowledgeInstance, done: (err?: Error) => void) => void;
97
- /** Function to be called upon completion of streaming */
98
- done?: Function;
99
- /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
100
- limit?: number;
101
- }
102
- /**
103
- * Options to pass to list
104
- */
105
- export interface KnowledgeListInstanceOptions {
106
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
107
- pageSize?: number;
108
- /** Json array of tag and value pairs for tag filtering. */
109
- tags?: string;
110
- /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
111
- limit?: number;
112
- }
113
- /**
114
- * Options to pass to page
115
- */
116
- export interface KnowledgeListInstancePageOptions {
117
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
118
- pageSize?: number;
119
- /** Json array of tag and value pairs for tag filtering. */
120
- tags?: string;
121
- /** Page Number, this value is simply for client state */
122
- pageNumber?: number;
123
- /** PageToken provided by the API */
124
- pageToken?: string;
125
- }
126
- export interface KnowledgeContext {
127
- chunks: ChunkListInstance;
128
- knowledgeStatus: KnowledgeStatusListInstance;
129
- /**
130
- * Remove a KnowledgeInstance
131
- *
132
- * @param callback - Callback to handle processed record
133
- *
134
- * @returns Resolves to processed boolean
135
- */
136
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
137
- /**
138
- * Fetch a KnowledgeInstance
139
- *
140
- * @param callback - Callback to handle processed record
141
- *
142
- * @returns Resolves to processed KnowledgeInstance
143
- */
144
- fetch(callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
145
- /**
146
- * Update a KnowledgeInstance
147
- *
148
- * @param callback - Callback to handle processed record
149
- *
150
- * @returns Resolves to processed KnowledgeInstance
151
- */
152
- update(callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
153
- /**
154
- * Update a KnowledgeInstance
155
- *
156
- * @param params - Body for request
157
- * @param headers - header params for request
158
- * @param callback - Callback to handle processed record
159
- *
160
- * @returns Resolves to processed KnowledgeInstance
161
- */
162
- update(params: KnowledgeV1ServiceUpdateKnowledgeRequest, headers?: any, callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
163
- /**
164
- * Provide a user-friendly representation
165
- */
166
- toJSON(): any;
167
- [inspect.custom](_depth: any, options: InspectOptions): any;
168
- }
169
- export interface KnowledgeContextSolution {
170
- id: string;
171
- }
172
- export declare class KnowledgeContextImpl implements KnowledgeContext {
173
- protected _version: V1;
174
- protected _solution: KnowledgeContextSolution;
175
- protected _uri: string;
176
- protected _chunks?: ChunkListInstance;
177
- protected _knowledgeStatus?: KnowledgeStatusListInstance;
178
- constructor(_version: V1, id: string);
179
- get chunks(): ChunkListInstance;
180
- get knowledgeStatus(): KnowledgeStatusListInstance;
181
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
182
- fetch(callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
183
- update(params?: KnowledgeV1ServiceUpdateKnowledgeRequest | ((error: Error | null, item?: KnowledgeInstance) => any), headers?: any, callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
184
- /**
185
- * Provide a user-friendly representation
186
- *
187
- * @returns Object
188
- */
189
- toJSON(): KnowledgeContextSolution;
190
- [inspect.custom](_depth: any, options: InspectOptions): string;
191
- }
192
- interface KnowledgePayload extends TwilioResponsePayload {
193
- knowledge: KnowledgeResource[];
194
- }
195
- interface KnowledgeResource {
196
- description: string;
197
- id: string;
198
- account_sid: string;
199
- knowledge_source_details: Record<string, object>;
200
- name: string;
201
- status: string;
202
- type: string;
203
- url: string;
204
- embedding_model: string;
205
- date_created: Date;
206
- date_updated: Date;
207
- }
208
- export declare class KnowledgeInstance {
209
- protected _version: V1;
210
- protected _solution: KnowledgeContextSolution;
211
- protected _context?: KnowledgeContext;
212
- constructor(_version: V1, payload: KnowledgeResource, id?: string);
213
- /**
214
- * The type of knowledge source.
215
- */
216
- description: string;
217
- /**
218
- * The description of knowledge.
219
- */
220
- id: string;
221
- /**
222
- * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource.
223
- */
224
- accountSid: string;
225
- /**
226
- * The details of the knowledge source based on the type.
227
- */
228
- knowledgeSourceDetails: Record<string, object>;
229
- /**
230
- * The name of the knowledge source.
231
- */
232
- name: string;
233
- /**
234
- * The status of processing the knowledge source (\'QUEUED\', \'PROCESSING\', \'COMPLETED\', \'FAILED\')
235
- */
236
- status: string;
237
- /**
238
- * The type of knowledge source (\'Web\', \'Database\', \'Text\', \'File\')
239
- */
240
- type: string;
241
- /**
242
- * The url of the knowledge resource.
243
- */
244
- url: string;
245
- /**
246
- * The embedding model to be used for the knowledge source.
247
- */
248
- embeddingModel: string;
249
- /**
250
- * The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
251
- */
252
- dateCreated: Date;
253
- /**
254
- * The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
255
- */
256
- dateUpdated: Date;
257
- private get _proxy();
258
- /**
259
- * Remove a KnowledgeInstance
260
- *
261
- * @param callback - Callback to handle processed record
262
- *
263
- * @returns Resolves to processed boolean
264
- */
265
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
266
- /**
267
- * Fetch a KnowledgeInstance
268
- *
269
- * @param callback - Callback to handle processed record
270
- *
271
- * @returns Resolves to processed KnowledgeInstance
272
- */
273
- fetch(callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
274
- /**
275
- * Update a KnowledgeInstance
276
- *
277
- * @param callback - Callback to handle processed record
278
- *
279
- * @returns Resolves to processed KnowledgeInstance
280
- */
281
- update(callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
282
- /**
283
- * Update a KnowledgeInstance
284
- *
285
- * @param params - Body for request
286
- * @param headers - header params for request
287
- * @param callback - Callback to handle processed record
288
- *
289
- * @returns Resolves to processed KnowledgeInstance
290
- */
291
- update(params: KnowledgeV1ServiceUpdateKnowledgeRequest, headers?: any, callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
292
- /**
293
- * Access the chunks.
294
- */
295
- chunks(): ChunkListInstance;
296
- /**
297
- * Access the knowledgeStatus.
298
- */
299
- knowledgeStatus(): KnowledgeStatusListInstance;
300
- /**
301
- * Provide a user-friendly representation
302
- *
303
- * @returns Object
304
- */
305
- toJSON(): {
306
- description: string;
307
- id: string;
308
- accountSid: string;
309
- knowledgeSourceDetails: Record<string, object>;
310
- name: string;
311
- status: string;
312
- type: string;
313
- url: string;
314
- embeddingModel: string;
315
- dateCreated: Date;
316
- dateUpdated: Date;
317
- };
318
- [inspect.custom](_depth: any, options: InspectOptions): string;
319
- }
320
- export interface KnowledgeSolution {
321
- }
322
- export interface KnowledgeListInstance {
323
- _version: V1;
324
- _solution: KnowledgeSolution;
325
- _uri: string;
326
- (id: string): KnowledgeContext;
327
- get(id: string): KnowledgeContext;
328
- /**
329
- * Create a KnowledgeInstance
330
- *
331
- * @param params - Body for request
332
- * @param headers - header params for request
333
- * @param callback - Callback to handle processed record
334
- *
335
- * @returns Resolves to processed KnowledgeInstance
336
- */
337
- create(params: KnowledgeV1ServiceCreateKnowledgeRequest, headers?: any, callback?: (error: Error | null, item?: KnowledgeInstance) => any): Promise<KnowledgeInstance>;
338
- /**
339
- * Streams KnowledgeInstance records from the API.
340
- *
341
- * This operation lazily loads records as efficiently as possible until the limit
342
- * is reached.
343
- *
344
- * The results are passed into the callback function, so this operation is memory
345
- * efficient.
346
- *
347
- * If a function is passed as the first argument, it will be used as the callback
348
- * function.
349
- *
350
- * @param { KnowledgeListInstanceEachOptions } [params] - Options for request
351
- * @param { function } [callback] - Function to process each record
352
- */
353
- each(callback?: (item: KnowledgeInstance, done: (err?: Error) => void) => void): void;
354
- each(params: KnowledgeListInstanceEachOptions, callback?: (item: KnowledgeInstance, done: (err?: Error) => void) => void): void;
355
- /**
356
- * Retrieve a single target page of KnowledgeInstance records from the API.
357
- *
358
- * The request is executed immediately.
359
- *
360
- * @param { string } [targetUrl] - API-generated URL for the requested results page
361
- * @param { function } [callback] - Callback to handle list of records
362
- */
363
- getPage(targetUrl: string, callback?: (error: Error | null, items: KnowledgePage) => any): Promise<KnowledgePage>;
364
- /**
365
- * Lists KnowledgeInstance records from the API as a list.
366
- *
367
- * If a function is passed as the first argument, it will be used as the callback
368
- * function.
369
- *
370
- * @param { KnowledgeListInstanceOptions } [params] - Options for request
371
- * @param { function } [callback] - Callback to handle list of records
372
- */
373
- list(callback?: (error: Error | null, items: KnowledgeInstance[]) => any): Promise<KnowledgeInstance[]>;
374
- list(params: KnowledgeListInstanceOptions, callback?: (error: Error | null, items: KnowledgeInstance[]) => any): Promise<KnowledgeInstance[]>;
375
- /**
376
- * Retrieve a single page of KnowledgeInstance records from the API.
377
- *
378
- * The request is executed immediately.
379
- *
380
- * If a function is passed as the first argument, it will be used as the callback
381
- * function.
382
- *
383
- * @param { KnowledgeListInstancePageOptions } [params] - Options for request
384
- * @param { function } [callback] - Callback to handle list of records
385
- */
386
- page(callback?: (error: Error | null, items: KnowledgePage) => any): Promise<KnowledgePage>;
387
- page(params: KnowledgeListInstancePageOptions, callback?: (error: Error | null, items: KnowledgePage) => any): Promise<KnowledgePage>;
388
- /**
389
- * Provide a user-friendly representation
390
- */
391
- toJSON(): any;
392
- [inspect.custom](_depth: any, options: InspectOptions): any;
393
- }
394
- export declare function KnowledgeListInstance(version: V1): KnowledgeListInstance;
395
- export declare class KnowledgePage extends Page<V1, KnowledgePayload, KnowledgeResource, KnowledgeInstance> {
396
- /**
397
- * Initialize the KnowledgePage
398
- *
399
- * @param version - Version of the resource
400
- * @param response - Response from the API
401
- * @param solution - Path solution
402
- */
403
- constructor(version: V1, response: Response<string>, solution: KnowledgeSolution);
404
- /**
405
- * Build an instance of KnowledgeInstance
406
- *
407
- * @param payload - Payload response from the API
408
- */
409
- getInstance(payload: KnowledgeResource): KnowledgeInstance;
410
- [inspect.custom](depth: any, options: InspectOptions): string;
411
- }
412
- export {};