@credal/sdk 0.1.7 → 0.1.8

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 (374) hide show
  1. package/dist/cjs/BaseClient.d.ts +27 -0
  2. package/dist/cjs/{api/resources/copilots/types/PolicyTrigger.js → BaseClient.js} +1 -3
  3. package/dist/cjs/Client.d.ts +3 -24
  4. package/dist/cjs/Client.js +3 -5
  5. package/dist/cjs/api/resources/common/types/Collaborator.d.ts +0 -3
  6. package/dist/cjs/api/resources/common/types/Collaborator.js +1 -3
  7. package/dist/cjs/api/resources/common/types/CustomMetadataValue.d.ts +0 -3
  8. package/dist/cjs/api/resources/common/types/CustomMetadataValue.js +1 -3
  9. package/dist/cjs/api/resources/common/types/ExternalResourceId.d.ts +0 -3
  10. package/dist/cjs/api/resources/common/types/ExternalResourceId.js +1 -3
  11. package/dist/cjs/api/resources/common/types/Operator.d.ts +1 -4
  12. package/dist/cjs/api/resources/common/types/Operator.js +1 -3
  13. package/dist/cjs/api/resources/common/types/ResourceIdentifier.d.ts +0 -3
  14. package/dist/cjs/api/resources/common/types/ResourceIdentifier.js +1 -3
  15. package/dist/cjs/api/resources/common/types/ResourceType.d.ts +1 -4
  16. package/dist/cjs/api/resources/common/types/ResourceType.js +1 -3
  17. package/dist/cjs/api/resources/common/types/Role.d.ts +1 -4
  18. package/dist/cjs/api/resources/common/types/Role.js +1 -3
  19. package/dist/cjs/api/resources/common/types/Url.d.ts +0 -3
  20. package/dist/cjs/api/resources/common/types/Url.js +1 -3
  21. package/dist/cjs/api/resources/copilots/client/Client.d.ts +3 -23
  22. package/dist/cjs/api/resources/copilots/client/Client.js +28 -30
  23. package/dist/cjs/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +0 -3
  24. package/dist/cjs/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +1 -3
  25. package/dist/cjs/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +0 -3
  26. package/dist/cjs/api/resources/copilots/client/requests/CreateConversationRequest.js +1 -3
  27. package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +0 -3
  28. package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.js +1 -3
  29. package/dist/cjs/api/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +0 -3
  30. package/dist/cjs/api/resources/copilots/client/requests/DeleteCopilotRequest.js +1 -3
  31. package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +0 -3
  32. package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +1 -3
  33. package/dist/cjs/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +0 -3
  34. package/dist/cjs/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +1 -3
  35. package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.d.ts +0 -3
  36. package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.js +1 -3
  37. package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +0 -3
  38. package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.js +1 -3
  39. package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +0 -3
  40. package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.js +1 -3
  41. package/dist/cjs/api/resources/copilots/types/AiEndpointConfiguration.d.ts +0 -3
  42. package/dist/cjs/api/resources/copilots/types/AiEndpointConfiguration.js +1 -3
  43. package/dist/cjs/api/resources/copilots/types/BlockedChunk.d.ts +0 -5
  44. package/dist/cjs/api/resources/copilots/types/BlockedChunk.js +1 -3
  45. package/dist/cjs/api/resources/copilots/types/BooleanFieldSchema.d.ts +0 -3
  46. package/dist/cjs/api/resources/copilots/types/BooleanFieldSchema.js +1 -3
  47. package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.d.ts +0 -3
  48. package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.js +1 -3
  49. package/dist/cjs/api/resources/copilots/types/Configuration.d.ts +0 -3
  50. package/dist/cjs/api/resources/copilots/types/Configuration.js +1 -3
  51. package/dist/cjs/api/resources/copilots/types/CreateConversationResponse.d.ts +0 -3
  52. package/dist/cjs/api/resources/copilots/types/CreateConversationResponse.js +1 -3
  53. package/dist/cjs/api/resources/copilots/types/CreateCopilotResponse.d.ts +0 -3
  54. package/dist/cjs/api/resources/copilots/types/CreateCopilotResponse.js +1 -3
  55. package/dist/cjs/api/resources/copilots/types/DataChunk.d.ts +0 -3
  56. package/dist/cjs/api/resources/copilots/types/DataChunk.js +1 -3
  57. package/dist/cjs/api/resources/copilots/types/DataFilter.d.ts +0 -3
  58. package/dist/cjs/api/resources/copilots/types/DataFilter.js +1 -3
  59. package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.d.ts +0 -3
  60. package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.js +1 -3
  61. package/dist/cjs/api/resources/copilots/types/DeleteCopilotResponse.d.ts +0 -3
  62. package/dist/cjs/api/resources/copilots/types/DeleteCopilotResponse.js +1 -3
  63. package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.d.ts +0 -3
  64. package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.js +1 -3
  65. package/dist/cjs/api/resources/copilots/types/ErrorChunk.d.ts +0 -3
  66. package/dist/cjs/api/resources/copilots/types/ErrorChunk.js +1 -3
  67. package/dist/cjs/api/resources/copilots/types/ErrorChunkData.d.ts +0 -3
  68. package/dist/cjs/api/resources/copilots/types/ErrorChunkData.js +1 -3
  69. package/dist/cjs/api/resources/copilots/types/FeedbackEnum.d.ts +1 -4
  70. package/dist/cjs/api/resources/copilots/types/FeedbackEnum.js +1 -3
  71. package/dist/cjs/api/resources/copilots/types/Filter.d.ts +0 -3
  72. package/dist/cjs/api/resources/copilots/types/Filter.js +1 -3
  73. package/dist/cjs/api/resources/copilots/types/FinalChunk.d.ts +0 -3
  74. package/dist/cjs/api/resources/copilots/types/FinalChunk.js +1 -3
  75. package/dist/cjs/api/resources/copilots/types/InitialChunk.d.ts +0 -3
  76. package/dist/cjs/api/resources/copilots/types/InitialChunk.js +1 -3
  77. package/dist/cjs/api/resources/copilots/types/InputVariable.d.ts +0 -3
  78. package/dist/cjs/api/resources/copilots/types/InputVariable.js +1 -3
  79. package/dist/cjs/api/resources/copilots/types/InsertedAuditLog.d.ts +0 -3
  80. package/dist/cjs/api/resources/copilots/types/InsertedAuditLog.js +1 -3
  81. package/dist/cjs/api/resources/copilots/types/MessageBlocked.d.ts +0 -4
  82. package/dist/cjs/api/resources/copilots/types/MessageBlocked.js +1 -3
  83. package/dist/cjs/api/resources/copilots/types/MessageFeedback.d.ts +0 -3
  84. package/dist/cjs/api/resources/copilots/types/MessageFeedback.js +1 -3
  85. package/dist/cjs/api/resources/copilots/types/MessageReply.d.ts +0 -4
  86. package/dist/cjs/api/resources/copilots/types/MessageReply.js +1 -3
  87. package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.d.ts +0 -3
  88. package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.js +1 -3
  89. package/dist/cjs/api/resources/copilots/types/ReferencedSource.d.ts +0 -3
  90. package/dist/cjs/api/resources/copilots/types/ReferencedSource.js +1 -3
  91. package/dist/cjs/api/resources/copilots/types/ResponseChunk.d.ts +0 -3
  92. package/dist/cjs/api/resources/copilots/types/ResponseChunk.js +1 -3
  93. package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.d.ts +0 -3
  94. package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.js +1 -3
  95. package/dist/cjs/api/resources/copilots/types/SendMessageResponse.d.ts +0 -3
  96. package/dist/cjs/api/resources/copilots/types/SendMessageResponse.js +1 -3
  97. package/dist/cjs/api/resources/copilots/types/StreamingChunk.d.ts +0 -3
  98. package/dist/cjs/api/resources/copilots/types/StreamingChunk.js +1 -3
  99. package/dist/cjs/api/resources/copilots/types/StringFieldSchema.d.ts +0 -3
  100. package/dist/cjs/api/resources/copilots/types/StringFieldSchema.js +1 -3
  101. package/dist/cjs/api/resources/copilots/types/WebSearchResult.d.ts +0 -3
  102. package/dist/cjs/api/resources/copilots/types/WebSearchResult.js +1 -3
  103. package/dist/cjs/api/resources/copilots/types/index.d.ts +0 -1
  104. package/dist/cjs/api/resources/copilots/types/index.js +0 -1
  105. package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +3 -23
  106. package/dist/cjs/api/resources/documentCatalog/client/Client.js +10 -12
  107. package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +0 -3
  108. package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.js +1 -3
  109. package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.d.ts +0 -3
  110. package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.js +1 -3
  111. package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.ts +0 -3
  112. package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.js +1 -3
  113. package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +0 -3
  114. package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +1 -3
  115. package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +0 -3
  116. package/dist/cjs/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +1 -3
  117. package/dist/cjs/api/resources/documentCatalog/types/UploadDocumentResponse.d.ts +0 -3
  118. package/dist/cjs/api/resources/documentCatalog/types/UploadDocumentResponse.js +1 -3
  119. package/dist/cjs/api/resources/documentCollections/client/Client.d.ts +3 -23
  120. package/dist/cjs/api/resources/documentCollections/client/Client.js +22 -24
  121. package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +0 -3
  122. package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.js +1 -3
  123. package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +0 -3
  124. package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.js +1 -3
  125. package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +0 -3
  126. package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +1 -3
  127. package/dist/cjs/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +0 -3
  128. package/dist/cjs/api/resources/documentCollections/client/requests/DeleteCollectionRequest.js +1 -3
  129. package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.ts +0 -3
  130. package/dist/cjs/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.js +1 -3
  131. package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +0 -3
  132. package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +1 -3
  133. package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +0 -3
  134. package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +1 -3
  135. package/dist/cjs/api/resources/documentCollections/types/CreateCollectionResponse.d.ts +0 -3
  136. package/dist/cjs/api/resources/documentCollections/types/CreateCollectionResponse.js +1 -3
  137. package/dist/cjs/api/resources/documentCollections/types/DeleteCollectionResponse.d.ts +0 -3
  138. package/dist/cjs/api/resources/documentCollections/types/DeleteCollectionResponse.js +1 -3
  139. package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.ts +0 -3
  140. package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.js +1 -3
  141. package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +0 -3
  142. package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.js +1 -3
  143. package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +0 -3
  144. package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncResponse.js +1 -3
  145. package/dist/cjs/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +0 -3
  146. package/dist/cjs/api/resources/documentCollections/types/MongoSourceFieldsConfig.js +1 -3
  147. package/dist/cjs/api/resources/search/client/Client.d.ts +3 -23
  148. package/dist/cjs/api/resources/search/client/Client.js +4 -6
  149. package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +0 -3
  150. package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.js +1 -3
  151. package/dist/cjs/api/resources/search/types/DocumentCollectionSearchOptions.d.ts +0 -3
  152. package/dist/cjs/api/resources/search/types/DocumentCollectionSearchOptions.js +1 -3
  153. package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.d.ts +0 -3
  154. package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.js +1 -3
  155. package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.d.ts +0 -3
  156. package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.js +1 -3
  157. package/dist/cjs/api/resources/search/types/SearchResultChunk.d.ts +0 -3
  158. package/dist/cjs/api/resources/search/types/SearchResultChunk.js +1 -3
  159. package/dist/cjs/api/resources/search/types/SingleFieldFilter.d.ts +0 -3
  160. package/dist/cjs/api/resources/search/types/SingleFieldFilter.js +1 -3
  161. package/dist/cjs/api/resources/users/client/Client.d.ts +3 -23
  162. package/dist/cjs/api/resources/users/client/Client.js +4 -6
  163. package/dist/cjs/api/resources/users/types/UserMetadataPatch.d.ts +0 -3
  164. package/dist/cjs/api/resources/users/types/UserMetadataPatch.js +1 -3
  165. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
  166. package/dist/cjs/core/auth/BasicAuth.js +2 -1
  167. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  168. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  169. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
  170. package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
  171. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  172. package/dist/cjs/environments.d.ts +0 -3
  173. package/dist/cjs/environments.js +1 -3
  174. package/dist/cjs/errors/CredalError.d.ts +0 -3
  175. package/dist/cjs/errors/CredalError.js +1 -3
  176. package/dist/cjs/errors/CredalTimeoutError.d.ts +0 -3
  177. package/dist/cjs/errors/CredalTimeoutError.js +1 -3
  178. package/dist/cjs/index.d.ts +1 -0
  179. package/dist/cjs/version.d.ts +1 -1
  180. package/dist/cjs/version.js +1 -1
  181. package/dist/esm/BaseClient.d.mts +27 -0
  182. package/dist/esm/BaseClient.mjs +3 -0
  183. package/dist/esm/Client.d.mts +3 -24
  184. package/dist/esm/Client.mjs +4 -5
  185. package/dist/esm/api/resources/common/types/Collaborator.d.mts +0 -3
  186. package/dist/esm/api/resources/common/types/Collaborator.mjs +2 -4
  187. package/dist/esm/api/resources/common/types/CustomMetadataValue.d.mts +0 -3
  188. package/dist/esm/api/resources/common/types/CustomMetadataValue.mjs +1 -3
  189. package/dist/esm/api/resources/common/types/ExternalResourceId.d.mts +0 -3
  190. package/dist/esm/api/resources/common/types/ExternalResourceId.mjs +2 -4
  191. package/dist/esm/api/resources/common/types/Operator.d.mts +1 -4
  192. package/dist/esm/api/resources/common/types/Operator.mjs +1 -3
  193. package/dist/esm/api/resources/common/types/ResourceIdentifier.d.mts +0 -3
  194. package/dist/esm/api/resources/common/types/ResourceIdentifier.mjs +2 -4
  195. package/dist/esm/api/resources/common/types/ResourceType.d.mts +1 -4
  196. package/dist/esm/api/resources/common/types/ResourceType.mjs +1 -3
  197. package/dist/esm/api/resources/common/types/Role.d.mts +1 -4
  198. package/dist/esm/api/resources/common/types/Role.mjs +1 -3
  199. package/dist/esm/api/resources/common/types/Url.d.mts +0 -3
  200. package/dist/esm/api/resources/common/types/Url.mjs +1 -3
  201. package/dist/esm/api/resources/copilots/client/Client.d.mts +3 -23
  202. package/dist/esm/api/resources/copilots/client/Client.mjs +29 -30
  203. package/dist/esm/api/resources/copilots/client/index.mjs +1 -0
  204. package/dist/esm/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.mts +0 -3
  205. package/dist/esm/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.mjs +1 -3
  206. package/dist/esm/api/resources/copilots/client/requests/CreateConversationRequest.d.mts +0 -3
  207. package/dist/esm/api/resources/copilots/client/requests/CreateConversationRequest.mjs +1 -3
  208. package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.d.mts +0 -3
  209. package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.mjs +2 -4
  210. package/dist/esm/api/resources/copilots/client/requests/DeleteCopilotRequest.d.mts +0 -3
  211. package/dist/esm/api/resources/copilots/client/requests/DeleteCopilotRequest.mjs +1 -3
  212. package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.mts +0 -3
  213. package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.mjs +2 -4
  214. package/dist/esm/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.mts +0 -3
  215. package/dist/esm/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.mjs +1 -3
  216. package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.d.mts +0 -3
  217. package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.mjs +2 -4
  218. package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.d.mts +0 -3
  219. package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.mjs +2 -4
  220. package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.mts +0 -3
  221. package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.mjs +2 -4
  222. package/dist/esm/api/resources/copilots/client/requests/index.mjs +9 -1
  223. package/dist/esm/api/resources/copilots/types/AiEndpointConfiguration.d.mts +0 -3
  224. package/dist/esm/api/resources/copilots/types/AiEndpointConfiguration.mjs +1 -3
  225. package/dist/esm/api/resources/copilots/types/BlockedChunk.d.mts +0 -5
  226. package/dist/esm/api/resources/copilots/types/BlockedChunk.mjs +1 -3
  227. package/dist/esm/api/resources/copilots/types/BooleanFieldSchema.d.mts +0 -3
  228. package/dist/esm/api/resources/copilots/types/BooleanFieldSchema.mjs +1 -3
  229. package/dist/esm/api/resources/copilots/types/CollectionFilteredData.d.mts +0 -3
  230. package/dist/esm/api/resources/copilots/types/CollectionFilteredData.mjs +2 -4
  231. package/dist/esm/api/resources/copilots/types/Configuration.d.mts +0 -3
  232. package/dist/esm/api/resources/copilots/types/Configuration.mjs +2 -4
  233. package/dist/esm/api/resources/copilots/types/CreateConversationResponse.d.mts +0 -3
  234. package/dist/esm/api/resources/copilots/types/CreateConversationResponse.mjs +1 -3
  235. package/dist/esm/api/resources/copilots/types/CreateCopilotResponse.d.mts +0 -3
  236. package/dist/esm/api/resources/copilots/types/CreateCopilotResponse.mjs +1 -3
  237. package/dist/esm/api/resources/copilots/types/DataChunk.d.mts +0 -3
  238. package/dist/esm/api/resources/copilots/types/DataChunk.mjs +1 -3
  239. package/dist/esm/api/resources/copilots/types/DataFilter.d.mts +0 -3
  240. package/dist/esm/api/resources/copilots/types/DataFilter.mjs +2 -4
  241. package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.d.mts +0 -3
  242. package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.mjs +2 -4
  243. package/dist/esm/api/resources/copilots/types/DeleteCopilotResponse.d.mts +0 -3
  244. package/dist/esm/api/resources/copilots/types/DeleteCopilotResponse.mjs +1 -3
  245. package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.d.mts +0 -3
  246. package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.mjs +1 -3
  247. package/dist/esm/api/resources/copilots/types/ErrorChunk.d.mts +0 -3
  248. package/dist/esm/api/resources/copilots/types/ErrorChunk.mjs +2 -4
  249. package/dist/esm/api/resources/copilots/types/ErrorChunkData.d.mts +0 -3
  250. package/dist/esm/api/resources/copilots/types/ErrorChunkData.mjs +1 -3
  251. package/dist/esm/api/resources/copilots/types/FeedbackEnum.d.mts +1 -4
  252. package/dist/esm/api/resources/copilots/types/FeedbackEnum.mjs +1 -3
  253. package/dist/esm/api/resources/copilots/types/Filter.d.mts +0 -3
  254. package/dist/esm/api/resources/copilots/types/Filter.mjs +2 -4
  255. package/dist/esm/api/resources/copilots/types/FinalChunk.d.mts +0 -3
  256. package/dist/esm/api/resources/copilots/types/FinalChunk.mjs +2 -4
  257. package/dist/esm/api/resources/copilots/types/InitialChunk.d.mts +0 -3
  258. package/dist/esm/api/resources/copilots/types/InitialChunk.mjs +2 -4
  259. package/dist/esm/api/resources/copilots/types/InputVariable.d.mts +0 -3
  260. package/dist/esm/api/resources/copilots/types/InputVariable.mjs +1 -3
  261. package/dist/esm/api/resources/copilots/types/InsertedAuditLog.d.mts +0 -3
  262. package/dist/esm/api/resources/copilots/types/InsertedAuditLog.mjs +1 -3
  263. package/dist/esm/api/resources/copilots/types/MessageBlocked.d.mts +0 -4
  264. package/dist/esm/api/resources/copilots/types/MessageBlocked.mjs +2 -4
  265. package/dist/esm/api/resources/copilots/types/MessageFeedback.d.mts +0 -3
  266. package/dist/esm/api/resources/copilots/types/MessageFeedback.mjs +2 -4
  267. package/dist/esm/api/resources/copilots/types/MessageReply.d.mts +0 -4
  268. package/dist/esm/api/resources/copilots/types/MessageReply.mjs +2 -4
  269. package/dist/esm/api/resources/copilots/types/NumberFieldSchema.d.mts +0 -3
  270. package/dist/esm/api/resources/copilots/types/NumberFieldSchema.mjs +2 -4
  271. package/dist/esm/api/resources/copilots/types/ReferencedSource.d.mts +0 -3
  272. package/dist/esm/api/resources/copilots/types/ReferencedSource.mjs +2 -4
  273. package/dist/esm/api/resources/copilots/types/ResponseChunk.d.mts +0 -3
  274. package/dist/esm/api/resources/copilots/types/ResponseChunk.mjs +1 -3
  275. package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.d.mts +0 -3
  276. package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.mjs +2 -4
  277. package/dist/esm/api/resources/copilots/types/SendMessageResponse.d.mts +0 -3
  278. package/dist/esm/api/resources/copilots/types/SendMessageResponse.mjs +2 -4
  279. package/dist/esm/api/resources/copilots/types/StreamingChunk.d.mts +0 -3
  280. package/dist/esm/api/resources/copilots/types/StreamingChunk.mjs +2 -4
  281. package/dist/esm/api/resources/copilots/types/StringFieldSchema.d.mts +0 -3
  282. package/dist/esm/api/resources/copilots/types/StringFieldSchema.mjs +2 -4
  283. package/dist/esm/api/resources/copilots/types/WebSearchResult.d.mts +0 -3
  284. package/dist/esm/api/resources/copilots/types/WebSearchResult.mjs +1 -3
  285. package/dist/esm/api/resources/copilots/types/index.d.mts +0 -1
  286. package/dist/esm/api/resources/copilots/types/index.mjs +0 -1
  287. package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +3 -23
  288. package/dist/esm/api/resources/documentCatalog/client/Client.mjs +11 -12
  289. package/dist/esm/api/resources/documentCatalog/client/index.mjs +1 -0
  290. package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +0 -3
  291. package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.mjs +2 -4
  292. package/dist/esm/api/resources/documentCatalog/client/requests/index.mjs +1 -1
  293. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.d.mts +0 -3
  294. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.mjs +2 -4
  295. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.mts +0 -3
  296. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.mjs +2 -4
  297. package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.mts +0 -3
  298. package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlRequest.mjs +1 -3
  299. package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.mts +0 -3
  300. package/dist/esm/api/resources/documentCatalog/types/SyncSourceByUrlResponse.mjs +1 -3
  301. package/dist/esm/api/resources/documentCatalog/types/UploadDocumentResponse.d.mts +0 -3
  302. package/dist/esm/api/resources/documentCatalog/types/UploadDocumentResponse.mjs +1 -3
  303. package/dist/esm/api/resources/documentCollections/client/Client.d.mts +3 -23
  304. package/dist/esm/api/resources/documentCollections/client/Client.mjs +23 -24
  305. package/dist/esm/api/resources/documentCollections/client/index.mjs +1 -0
  306. package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.mts +0 -3
  307. package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.mjs +2 -4
  308. package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.mts +0 -3
  309. package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.mjs +2 -4
  310. package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.mts +0 -3
  311. package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.mjs +2 -4
  312. package/dist/esm/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.mts +0 -3
  313. package/dist/esm/api/resources/documentCollections/client/requests/DeleteCollectionRequest.mjs +1 -3
  314. package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.d.mts +0 -3
  315. package/dist/esm/api/resources/documentCollections/client/requests/ListDocumentsInCollectionRequest.mjs +1 -3
  316. package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.mts +0 -3
  317. package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.mjs +2 -4
  318. package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.mts +0 -3
  319. package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.mjs +2 -4
  320. package/dist/esm/api/resources/documentCollections/client/requests/index.mjs +7 -1
  321. package/dist/esm/api/resources/documentCollections/types/CreateCollectionResponse.d.mts +0 -3
  322. package/dist/esm/api/resources/documentCollections/types/CreateCollectionResponse.mjs +1 -3
  323. package/dist/esm/api/resources/documentCollections/types/DeleteCollectionResponse.d.mts +0 -3
  324. package/dist/esm/api/resources/documentCollections/types/DeleteCollectionResponse.mjs +1 -3
  325. package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.mts +0 -3
  326. package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.mjs +2 -4
  327. package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.mts +0 -3
  328. package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.mjs +2 -4
  329. package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.mts +0 -3
  330. package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncResponse.mjs +1 -3
  331. package/dist/esm/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.mts +0 -3
  332. package/dist/esm/api/resources/documentCollections/types/MongoSourceFieldsConfig.mjs +1 -3
  333. package/dist/esm/api/resources/search/client/Client.d.mts +3 -23
  334. package/dist/esm/api/resources/search/client/Client.mjs +5 -6
  335. package/dist/esm/api/resources/search/client/index.mjs +1 -0
  336. package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.mts +0 -3
  337. package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.mjs +2 -4
  338. package/dist/esm/api/resources/search/client/requests/index.mjs +1 -1
  339. package/dist/esm/api/resources/search/types/DocumentCollectionSearchOptions.d.mts +0 -3
  340. package/dist/esm/api/resources/search/types/DocumentCollectionSearchOptions.mjs +1 -3
  341. package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.d.mts +0 -3
  342. package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.mjs +2 -4
  343. package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.d.mts +0 -3
  344. package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.mjs +2 -4
  345. package/dist/esm/api/resources/search/types/SearchResultChunk.d.mts +0 -3
  346. package/dist/esm/api/resources/search/types/SearchResultChunk.mjs +1 -3
  347. package/dist/esm/api/resources/search/types/SingleFieldFilter.d.mts +0 -3
  348. package/dist/esm/api/resources/search/types/SingleFieldFilter.mjs +2 -4
  349. package/dist/esm/api/resources/users/client/Client.d.mts +3 -23
  350. package/dist/esm/api/resources/users/client/Client.mjs +5 -6
  351. package/dist/esm/api/resources/users/types/UserMetadataPatch.d.mts +0 -3
  352. package/dist/esm/api/resources/users/types/UserMetadataPatch.mjs +1 -3
  353. package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
  354. package/dist/esm/core/auth/BasicAuth.mjs +2 -1
  355. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  356. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  357. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
  358. package/dist/esm/core/fetcher/EndpointSupplier.mjs +1 -0
  359. package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
  360. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  361. package/dist/esm/environments.d.mts +0 -3
  362. package/dist/esm/environments.mjs +1 -3
  363. package/dist/esm/errors/CredalError.d.mts +0 -3
  364. package/dist/esm/errors/CredalError.mjs +2 -3
  365. package/dist/esm/errors/CredalTimeoutError.d.mts +0 -3
  366. package/dist/esm/errors/CredalTimeoutError.mjs +1 -3
  367. package/dist/esm/index.d.mts +1 -0
  368. package/dist/esm/index.mjs +1 -0
  369. package/dist/esm/version.d.mts +1 -1
  370. package/dist/esm/version.mjs +1 -1
  371. package/package.json +1 -1
  372. package/dist/cjs/api/resources/copilots/types/PolicyTrigger.d.ts +0 -8
  373. package/dist/esm/api/resources/copilots/types/PolicyTrigger.d.mts +0 -8
  374. package/dist/esm/api/resources/copilots/types/PolicyTrigger.mjs +0 -4
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -72,7 +70,7 @@ class DocumentCatalog {
72
70
  }
73
71
  __uploadDocumentContents(request, requestOptions) {
74
72
  return __awaiter(this, void 0, void 0, function* () {
75
- var _a, _b, _c, _d;
73
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
76
74
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
77
75
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
78
76
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/catalog/uploadDocumentContents"),
@@ -82,8 +80,8 @@ class DocumentCatalog {
82
80
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
83
81
  requestType: "json",
84
82
  body: request,
85
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
86
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
84
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
87
85
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
88
86
  });
89
87
  if (_response.ok) {
@@ -130,7 +128,7 @@ class DocumentCatalog {
130
128
  }
131
129
  __syncSourceByUrl(request, requestOptions) {
132
130
  return __awaiter(this, void 0, void 0, function* () {
133
- var _a, _b, _c, _d;
131
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
134
132
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
135
133
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
136
134
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/catalog/syncSourceByUrl"),
@@ -140,8 +138,8 @@ class DocumentCatalog {
140
138
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
141
139
  requestType: "json",
142
140
  body: request,
143
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
144
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
141
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
142
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
145
143
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
146
144
  });
147
145
  if (_response.ok) {
@@ -208,7 +206,7 @@ class DocumentCatalog {
208
206
  }
209
207
  __metadata(request, requestOptions) {
210
208
  return __awaiter(this, void 0, void 0, function* () {
211
- var _a, _b, _c, _d;
209
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
212
210
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
213
211
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
214
212
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/catalog/metadata"),
@@ -218,8 +216,8 @@ class DocumentCatalog {
218
216
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
219
217
  requestType: "json",
220
218
  body: request,
221
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
222
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
219
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
220
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
223
221
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
224
222
  });
225
223
  if (_response.ok) {
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../index.js";
5
2
  export interface DocumentMetadataPatch {
6
3
  /** The identifier for the resource you want to patch */
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../index.js";
5
2
  export interface DocumentMetadataPatchRequest {
6
3
  sources: Credal.DocumentMetadataPatch[];
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface SyncSourceByUrlRequest {
5
2
  uploadAsUserEmail: string;
6
3
  sourceUrl: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface SyncSourceByUrlResponse {
5
2
  sourceId: string;
6
3
  }
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface UploadDocumentResponse {
5
2
  documentId: string;
6
3
  }
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,30 +1,10 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments.js";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  import * as Credal from "../../../index.js";
7
4
  export declare namespace DocumentCollections {
8
- interface Options {
9
- environment?: core.Supplier<environments.CredalEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<core.BearerToken | undefined>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
- fetcher?: core.FetchFunction;
5
+ interface Options extends BaseClientOptions {
16
6
  }
17
- interface RequestOptions {
18
- /** The maximum time to wait for a response in seconds. */
19
- timeoutInSeconds?: number;
20
- /** The number of times to retry the request. Defaults to 2. */
21
- maxRetries?: number;
22
- /** A hook to abort the request. */
23
- abortSignal?: AbortSignal;
24
- /** Additional query string parameters to include in the request. */
25
- queryParams?: Record<string, unknown>;
26
- /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
7
+ interface RequestOptions extends BaseRequestOptions {
28
8
  }
29
9
  }
30
10
  export declare class DocumentCollections {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -79,7 +77,7 @@ class DocumentCollections {
79
77
  }
80
78
  __addDocumentsToCollection(request, requestOptions) {
81
79
  return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b, _c, _d;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
83
81
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
82
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
85
83
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/addDocumentsToCollection"),
@@ -89,8 +87,8 @@ class DocumentCollections {
89
87
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
90
88
  requestType: "json",
91
89
  body: request,
92
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
93
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
90
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
91
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
94
92
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
95
93
  });
96
94
  if (_response.ok) {
@@ -145,7 +143,7 @@ class DocumentCollections {
145
143
  }
146
144
  __removeDocumentsFromCollection(request, requestOptions) {
147
145
  return __awaiter(this, void 0, void 0, function* () {
148
- var _a, _b, _c, _d;
146
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
149
147
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
150
148
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
151
149
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/removeDocumentsFromCollection"),
@@ -155,8 +153,8 @@ class DocumentCollections {
155
153
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
156
154
  requestType: "json",
157
155
  body: request,
158
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
156
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
157
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
160
158
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
159
  });
162
160
  if (_response.ok) {
@@ -202,7 +200,7 @@ class DocumentCollections {
202
200
  }
203
201
  __listDocumentsInCollection(request, requestOptions) {
204
202
  return __awaiter(this, void 0, void 0, function* () {
205
- var _a, _b, _c, _d;
203
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
206
204
  const { collectionId } = request;
207
205
  const _queryParams = {};
208
206
  _queryParams["collectionId"] = collectionId;
@@ -212,8 +210,8 @@ class DocumentCollections {
212
210
  method: "GET",
213
211
  headers: _headers,
214
212
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
215
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
216
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
213
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
214
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
217
215
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
218
216
  });
219
217
  if (_response.ok) {
@@ -267,7 +265,7 @@ class DocumentCollections {
267
265
  }
268
266
  __createCollection(request, requestOptions) {
269
267
  return __awaiter(this, void 0, void 0, function* () {
270
- var _a, _b, _c, _d;
268
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
271
269
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
272
270
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
273
271
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/createCollection"),
@@ -277,8 +275,8 @@ class DocumentCollections {
277
275
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
278
276
  requestType: "json",
279
277
  body: request,
280
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
281
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
278
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
279
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
282
280
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
283
281
  });
284
282
  if (_response.ok) {
@@ -324,7 +322,7 @@ class DocumentCollections {
324
322
  }
325
323
  __deleteCollection(request, requestOptions) {
326
324
  return __awaiter(this, void 0, void 0, function* () {
327
- var _a, _b, _c, _d;
325
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
328
326
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
329
327
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
330
328
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/deleteCollection"),
@@ -334,8 +332,8 @@ class DocumentCollections {
334
332
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
335
333
  requestType: "json",
336
334
  body: request,
337
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
338
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
335
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
336
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
339
337
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
340
338
  });
341
339
  if (_response.ok) {
@@ -397,7 +395,7 @@ class DocumentCollections {
397
395
  }
398
396
  __createMongoCollectionSync(request, requestOptions) {
399
397
  return __awaiter(this, void 0, void 0, function* () {
400
- var _a, _b, _c, _d;
398
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
401
399
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
402
400
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
403
401
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/mongodb/createMongoSync"),
@@ -407,8 +405,8 @@ class DocumentCollections {
407
405
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
408
406
  requestType: "json",
409
407
  body: request,
410
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
411
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
408
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
409
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
412
410
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
413
411
  });
414
412
  if (_response.ok) {
@@ -470,7 +468,7 @@ class DocumentCollections {
470
468
  }
471
469
  __updateMongoCollectionSync(request, requestOptions) {
472
470
  return __awaiter(this, void 0, void 0, function* () {
473
- var _a, _b, _c, _d;
471
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
474
472
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
475
473
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
476
474
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.CredalEnvironment.Production, "/v0/documentCollections/mongodb/updateMongoSync"),
@@ -480,8 +478,8 @@ class DocumentCollections {
480
478
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
481
479
  requestType: "json",
482
480
  body: request,
483
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
484
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
481
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
482
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
485
483
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
486
484
  });
487
485
  if (_response.ok) {
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface CreateCollectionResponse {
5
2
  collectionId: string;
6
3
  }
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface DeleteCollectionResponse {
5
2
  collectionId: string;
6
3
  }
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../index.js";
5
2
  export interface ListDocumentsInCollectionResponse {
6
3
  resourceIdentifiers: Credal.ResourceIdentifier[];
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as Credal from "../../../index.js";
5
2
  export interface MongoCollectionSyncConfig {
6
3
  syncName: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface MongoCollectionSyncResponse {
5
2
  mongoCredentialId: string;
6
3
  resourceId: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface MongoSourceFieldsConfig {
5
2
  body: string;
6
3
  sourceName: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,30 +1,10 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments.js";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  import * as Credal from "../../../index.js";
7
4
  export declare namespace Search {
8
- interface Options {
9
- environment?: core.Supplier<environments.CredalEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<core.BearerToken | undefined>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
- fetcher?: core.FetchFunction;
5
+ interface Options extends BaseClientOptions {
16
6
  }
17
- interface RequestOptions {
18
- /** The maximum time to wait for a response in seconds. */
19
- timeoutInSeconds?: number;
20
- /** The number of times to retry the request. Defaults to 2. */
21
- maxRetries?: number;
22
- /** A hook to abort the request. */
23
- abortSignal?: AbortSignal;
24
- /** Additional query string parameters to include in the request. */
25
- queryParams?: Record<string, unknown>;
26
- /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
7
+ interface RequestOptions extends BaseRequestOptions {
28
8
  }
29
9
  }
30
10
  export declare class Search {