@credal/sdk 0.1.8 → 0.1.10

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 (299) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/Client.d.ts +1 -1
  3. package/dist/cjs/Client.js +4 -4
  4. package/dist/cjs/api/resources/common/types/Collaborator.d.ts +1 -1
  5. package/dist/cjs/api/resources/common/types/ExternalResourceId.d.ts +1 -1
  6. package/dist/cjs/api/resources/common/types/ResourceIdentifier.d.ts +1 -1
  7. package/dist/cjs/api/resources/common/types/index.d.ts +5 -5
  8. package/dist/cjs/api/resources/common/types/index.js +5 -5
  9. package/dist/cjs/api/resources/copilots/client/Client.d.ts +1 -1
  10. package/dist/cjs/api/resources/copilots/client/Client.js +12 -12
  11. package/dist/cjs/api/resources/copilots/client/index.d.ts +0 -1
  12. package/dist/cjs/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +1 -1
  13. package/dist/cjs/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +1 -1
  14. package/dist/cjs/api/resources/copilots/client/requests/SendMessageRequest.d.ts +1 -1
  15. package/dist/cjs/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +1 -1
  17. package/dist/cjs/api/resources/copilots/client/requests/index.d.ts +9 -9
  18. package/dist/cjs/api/resources/copilots/index.d.ts +1 -1
  19. package/dist/cjs/api/resources/copilots/index.js +1 -1
  20. package/dist/cjs/api/resources/copilots/types/CollectionFilteredData.d.ts +1 -1
  21. package/dist/cjs/api/resources/copilots/types/Configuration.d.ts +1 -1
  22. package/dist/cjs/api/resources/copilots/types/DataFilter.d.ts +1 -1
  23. package/dist/cjs/api/resources/copilots/types/DatetimeFieldSchema.d.ts +1 -1
  24. package/dist/cjs/api/resources/copilots/types/EndOfMessageChunk.d.ts +1 -2
  25. package/dist/cjs/api/resources/copilots/types/ErrorChunk.d.ts +1 -1
  26. package/dist/cjs/api/resources/copilots/types/Filter.d.ts +1 -1
  27. package/dist/cjs/api/resources/copilots/types/FinalChunk.d.ts +1 -1
  28. package/dist/cjs/api/resources/copilots/types/InitialChunk.d.ts +1 -1
  29. package/dist/cjs/api/resources/copilots/types/MessageBlocked.d.ts +1 -1
  30. package/dist/cjs/api/resources/copilots/types/MessageFeedback.d.ts +1 -1
  31. package/dist/cjs/api/resources/copilots/types/MessageReply.d.ts +1 -1
  32. package/dist/cjs/api/resources/copilots/types/NumberFieldSchema.d.ts +1 -1
  33. package/dist/cjs/api/resources/copilots/types/ReferencedSource.d.ts +1 -1
  34. package/dist/cjs/api/resources/copilots/types/SendAgentMessageResponse.d.ts +1 -1
  35. package/dist/cjs/api/resources/copilots/types/SendMessageResponse.d.ts +1 -1
  36. package/dist/cjs/api/resources/copilots/types/StreamingChunk.d.ts +1 -1
  37. package/dist/cjs/api/resources/copilots/types/StringFieldSchema.d.ts +1 -1
  38. package/dist/cjs/api/resources/copilots/types/index.d.ts +24 -24
  39. package/dist/cjs/api/resources/copilots/types/index.js +24 -24
  40. package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +9 -1
  41. package/dist/cjs/api/resources/documentCatalog/client/Client.js +90 -6
  42. package/dist/cjs/api/resources/documentCatalog/client/index.d.ts +0 -1
  43. package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/documentCatalog/client/requests/UploadFileRequest.d.ts +27 -0
  45. package/dist/cjs/api/resources/documentCatalog/client/requests/UploadFileRequest.js +3 -0
  46. package/dist/cjs/api/resources/documentCatalog/client/requests/index.d.ts +2 -1
  47. package/dist/cjs/api/resources/documentCatalog/index.d.ts +1 -1
  48. package/dist/cjs/api/resources/documentCatalog/index.js +1 -1
  49. package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatch.d.ts +1 -1
  50. package/dist/cjs/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.ts +1 -1
  51. package/dist/cjs/api/resources/documentCatalog/types/index.d.ts +1 -1
  52. package/dist/cjs/api/resources/documentCatalog/types/index.js +1 -1
  53. package/dist/cjs/api/resources/documentCollections/client/Client.d.ts +1 -1
  54. package/dist/cjs/api/resources/documentCollections/client/Client.js +11 -11
  55. package/dist/cjs/api/resources/documentCollections/client/index.d.ts +0 -1
  56. package/dist/cjs/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -1
  57. package/dist/cjs/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +1 -1
  58. package/dist/cjs/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +1 -1
  59. package/dist/cjs/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +1 -1
  60. package/dist/cjs/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +1 -1
  61. package/dist/cjs/api/resources/documentCollections/client/requests/index.d.ts +7 -7
  62. package/dist/cjs/api/resources/documentCollections/index.d.ts +1 -1
  63. package/dist/cjs/api/resources/documentCollections/index.js +1 -1
  64. package/dist/cjs/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.ts +1 -1
  65. package/dist/cjs/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +1 -1
  66. package/dist/cjs/api/resources/documentCollections/types/index.d.ts +1 -1
  67. package/dist/cjs/api/resources/documentCollections/types/index.js +1 -1
  68. package/dist/cjs/api/resources/index.d.ts +4 -4
  69. package/dist/cjs/api/resources/index.js +4 -4
  70. package/dist/cjs/api/resources/search/client/Client.d.ts +1 -1
  71. package/dist/cjs/api/resources/search/client/Client.js +4 -4
  72. package/dist/cjs/api/resources/search/client/index.d.ts +0 -1
  73. package/dist/cjs/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
  74. package/dist/cjs/api/resources/search/client/requests/index.d.ts +1 -1
  75. package/dist/cjs/api/resources/search/index.d.ts +1 -1
  76. package/dist/cjs/api/resources/search/index.js +1 -1
  77. package/dist/cjs/api/resources/search/types/DocumentCollectionSearchResult.d.ts +1 -1
  78. package/dist/cjs/api/resources/search/types/SearchDocumentCollectionResponse.d.ts +1 -1
  79. package/dist/cjs/api/resources/search/types/SingleFieldFilter.d.ts +1 -1
  80. package/dist/cjs/api/resources/search/types/index.d.ts +1 -1
  81. package/dist/cjs/api/resources/search/types/index.js +1 -1
  82. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  83. package/dist/cjs/api/resources/users/client/Client.js +4 -4
  84. package/dist/cjs/api/resources/users/index.d.ts +1 -1
  85. package/dist/cjs/api/resources/users/index.js +1 -1
  86. package/dist/cjs/core/exports.d.ts +1 -0
  87. package/dist/cjs/core/exports.js +17 -0
  88. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
  89. package/dist/cjs/core/fetcher/Fetcher.js +2 -1
  90. package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
  91. package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
  92. package/dist/cjs/core/fetcher/makeRequest.js +2 -2
  93. package/dist/cjs/core/fetcher/requestWithRetries.js +3 -3
  94. package/dist/cjs/core/file/exports.d.ts +1 -0
  95. package/dist/cjs/core/file/exports.js +2 -0
  96. package/dist/cjs/core/file/file.d.ts +10 -0
  97. package/dist/cjs/core/file/file.js +221 -0
  98. package/dist/cjs/core/file/index.d.ts +2 -0
  99. package/dist/cjs/core/file/index.js +18 -0
  100. package/dist/cjs/core/file/types.d.ts +66 -0
  101. package/dist/cjs/core/file/types.js +2 -0
  102. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  103. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +185 -0
  104. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  105. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  106. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  107. package/dist/cjs/core/form-data-utils/index.js +20 -0
  108. package/dist/cjs/core/index.d.ts +5 -3
  109. package/dist/cjs/core/index.js +6 -4
  110. package/dist/cjs/core/stream/Stream.d.ts +1 -0
  111. package/dist/cjs/core/stream/Stream.js +8 -5
  112. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  113. package/dist/cjs/core/url/encodePathParam.js +21 -0
  114. package/dist/cjs/core/url/index.d.ts +1 -0
  115. package/dist/cjs/core/url/index.js +3 -1
  116. package/dist/cjs/core/url/join.js +3 -3
  117. package/dist/cjs/errors/CredalError.d.ts +1 -1
  118. package/dist/cjs/errors/CredalError.js +1 -1
  119. package/dist/cjs/exports.d.ts +1 -0
  120. package/dist/cjs/exports.js +17 -0
  121. package/dist/cjs/index.d.ts +3 -2
  122. package/dist/cjs/index.js +8 -4
  123. package/dist/cjs/version.d.ts +1 -1
  124. package/dist/cjs/version.js +1 -1
  125. package/dist/esm/BaseClient.d.mts +2 -2
  126. package/dist/esm/BaseClient.mjs +1 -2
  127. package/dist/esm/Client.d.mts +1 -1
  128. package/dist/esm/Client.mjs +4 -5
  129. package/dist/esm/api/resources/common/types/Collaborator.d.mts +1 -1
  130. package/dist/esm/api/resources/common/types/Collaborator.mjs +1 -1
  131. package/dist/esm/api/resources/common/types/ExternalResourceId.d.mts +1 -1
  132. package/dist/esm/api/resources/common/types/ExternalResourceId.mjs +1 -1
  133. package/dist/esm/api/resources/common/types/ResourceIdentifier.d.mts +1 -1
  134. package/dist/esm/api/resources/common/types/ResourceIdentifier.mjs +1 -1
  135. package/dist/esm/api/resources/common/types/index.d.mts +5 -5
  136. package/dist/esm/api/resources/common/types/index.mjs +5 -5
  137. package/dist/esm/api/resources/copilots/client/Client.d.mts +1 -1
  138. package/dist/esm/api/resources/copilots/client/Client.mjs +12 -13
  139. package/dist/esm/api/resources/copilots/client/index.d.mts +0 -1
  140. package/dist/esm/api/resources/copilots/client/index.mjs +0 -1
  141. package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.d.mts +1 -1
  142. package/dist/esm/api/resources/copilots/client/requests/CreateCopilotRequest.mjs +1 -1
  143. package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.mts +1 -1
  144. package/dist/esm/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.mjs +1 -1
  145. package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.d.mts +1 -1
  146. package/dist/esm/api/resources/copilots/client/requests/SendMessageRequest.mjs +1 -1
  147. package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.d.mts +1 -1
  148. package/dist/esm/api/resources/copilots/client/requests/StreamMessageRequest.mjs +1 -1
  149. package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.mts +1 -1
  150. package/dist/esm/api/resources/copilots/client/requests/UpdateConfigurationRequest.mjs +1 -1
  151. package/dist/esm/api/resources/copilots/client/requests/index.d.mts +9 -9
  152. package/dist/esm/api/resources/copilots/client/requests/index.mjs +1 -9
  153. package/dist/esm/api/resources/copilots/index.d.mts +1 -1
  154. package/dist/esm/api/resources/copilots/index.mjs +1 -1
  155. package/dist/esm/api/resources/copilots/types/CollectionFilteredData.d.mts +1 -1
  156. package/dist/esm/api/resources/copilots/types/CollectionFilteredData.mjs +1 -1
  157. package/dist/esm/api/resources/copilots/types/Configuration.d.mts +1 -1
  158. package/dist/esm/api/resources/copilots/types/Configuration.mjs +1 -1
  159. package/dist/esm/api/resources/copilots/types/DataFilter.d.mts +1 -1
  160. package/dist/esm/api/resources/copilots/types/DataFilter.mjs +1 -1
  161. package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.d.mts +1 -1
  162. package/dist/esm/api/resources/copilots/types/DatetimeFieldSchema.mjs +1 -1
  163. package/dist/esm/api/resources/copilots/types/EndOfMessageChunk.d.mts +1 -2
  164. package/dist/esm/api/resources/copilots/types/ErrorChunk.d.mts +1 -1
  165. package/dist/esm/api/resources/copilots/types/ErrorChunk.mjs +1 -1
  166. package/dist/esm/api/resources/copilots/types/Filter.d.mts +1 -1
  167. package/dist/esm/api/resources/copilots/types/Filter.mjs +1 -1
  168. package/dist/esm/api/resources/copilots/types/FinalChunk.d.mts +1 -1
  169. package/dist/esm/api/resources/copilots/types/FinalChunk.mjs +1 -1
  170. package/dist/esm/api/resources/copilots/types/InitialChunk.d.mts +1 -1
  171. package/dist/esm/api/resources/copilots/types/InitialChunk.mjs +1 -1
  172. package/dist/esm/api/resources/copilots/types/MessageBlocked.d.mts +1 -1
  173. package/dist/esm/api/resources/copilots/types/MessageBlocked.mjs +1 -1
  174. package/dist/esm/api/resources/copilots/types/MessageFeedback.d.mts +1 -1
  175. package/dist/esm/api/resources/copilots/types/MessageFeedback.mjs +1 -1
  176. package/dist/esm/api/resources/copilots/types/MessageReply.d.mts +1 -1
  177. package/dist/esm/api/resources/copilots/types/MessageReply.mjs +1 -1
  178. package/dist/esm/api/resources/copilots/types/NumberFieldSchema.d.mts +1 -1
  179. package/dist/esm/api/resources/copilots/types/NumberFieldSchema.mjs +1 -1
  180. package/dist/esm/api/resources/copilots/types/ReferencedSource.d.mts +1 -1
  181. package/dist/esm/api/resources/copilots/types/ReferencedSource.mjs +1 -1
  182. package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.d.mts +1 -1
  183. package/dist/esm/api/resources/copilots/types/SendAgentMessageResponse.mjs +1 -1
  184. package/dist/esm/api/resources/copilots/types/SendMessageResponse.d.mts +1 -1
  185. package/dist/esm/api/resources/copilots/types/SendMessageResponse.mjs +1 -1
  186. package/dist/esm/api/resources/copilots/types/StreamingChunk.d.mts +1 -1
  187. package/dist/esm/api/resources/copilots/types/StreamingChunk.mjs +1 -1
  188. package/dist/esm/api/resources/copilots/types/StringFieldSchema.d.mts +1 -1
  189. package/dist/esm/api/resources/copilots/types/StringFieldSchema.mjs +1 -1
  190. package/dist/esm/api/resources/copilots/types/index.d.mts +24 -24
  191. package/dist/esm/api/resources/copilots/types/index.mjs +24 -24
  192. package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +9 -1
  193. package/dist/esm/api/resources/documentCatalog/client/Client.mjs +90 -7
  194. package/dist/esm/api/resources/documentCatalog/client/index.d.mts +0 -1
  195. package/dist/esm/api/resources/documentCatalog/client/index.mjs +0 -1
  196. package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +1 -1
  197. package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.mjs +1 -1
  198. package/dist/esm/api/resources/documentCatalog/client/requests/UploadFileRequest.d.mts +27 -0
  199. package/dist/esm/api/resources/documentCatalog/client/requests/UploadFileRequest.mjs +2 -0
  200. package/dist/esm/api/resources/documentCatalog/client/requests/index.d.mts +2 -1
  201. package/dist/esm/api/resources/documentCatalog/client/requests/index.mjs +1 -1
  202. package/dist/esm/api/resources/documentCatalog/index.d.mts +1 -1
  203. package/dist/esm/api/resources/documentCatalog/index.mjs +1 -1
  204. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.d.mts +1 -1
  205. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatch.mjs +1 -1
  206. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.d.mts +1 -1
  207. package/dist/esm/api/resources/documentCatalog/types/DocumentMetadataPatchRequest.mjs +1 -1
  208. package/dist/esm/api/resources/documentCatalog/types/index.d.mts +1 -1
  209. package/dist/esm/api/resources/documentCatalog/types/index.mjs +1 -1
  210. package/dist/esm/api/resources/documentCollections/client/Client.d.mts +1 -1
  211. package/dist/esm/api/resources/documentCollections/client/Client.mjs +11 -12
  212. package/dist/esm/api/resources/documentCollections/client/index.d.mts +0 -1
  213. package/dist/esm/api/resources/documentCollections/client/index.mjs +0 -1
  214. package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.mts +1 -1
  215. package/dist/esm/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.mjs +1 -1
  216. package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.mts +1 -1
  217. package/dist/esm/api/resources/documentCollections/client/requests/CreateCollectionRequest.mjs +1 -1
  218. package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.mts +1 -1
  219. package/dist/esm/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.mjs +1 -1
  220. package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.mts +1 -1
  221. package/dist/esm/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.mjs +1 -1
  222. package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.mts +1 -1
  223. package/dist/esm/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.mjs +1 -1
  224. package/dist/esm/api/resources/documentCollections/client/requests/index.d.mts +7 -7
  225. package/dist/esm/api/resources/documentCollections/client/requests/index.mjs +1 -7
  226. package/dist/esm/api/resources/documentCollections/index.d.mts +1 -1
  227. package/dist/esm/api/resources/documentCollections/index.mjs +1 -1
  228. package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.d.mts +1 -1
  229. package/dist/esm/api/resources/documentCollections/types/ListDocumentsInCollectionResponse.mjs +1 -1
  230. package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.mts +1 -1
  231. package/dist/esm/api/resources/documentCollections/types/MongoCollectionSyncConfig.mjs +1 -1
  232. package/dist/esm/api/resources/documentCollections/types/index.d.mts +1 -1
  233. package/dist/esm/api/resources/documentCollections/types/index.mjs +1 -1
  234. package/dist/esm/api/resources/index.d.mts +4 -4
  235. package/dist/esm/api/resources/index.mjs +4 -4
  236. package/dist/esm/api/resources/search/client/Client.d.mts +1 -1
  237. package/dist/esm/api/resources/search/client/Client.mjs +4 -5
  238. package/dist/esm/api/resources/search/client/index.d.mts +0 -1
  239. package/dist/esm/api/resources/search/client/index.mjs +0 -1
  240. package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.mts +1 -1
  241. package/dist/esm/api/resources/search/client/requests/SearchDocumentCollectionRequest.mjs +1 -1
  242. package/dist/esm/api/resources/search/client/requests/index.d.mts +1 -1
  243. package/dist/esm/api/resources/search/client/requests/index.mjs +1 -1
  244. package/dist/esm/api/resources/search/index.d.mts +1 -1
  245. package/dist/esm/api/resources/search/index.mjs +1 -1
  246. package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.d.mts +1 -1
  247. package/dist/esm/api/resources/search/types/DocumentCollectionSearchResult.mjs +1 -1
  248. package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.d.mts +1 -1
  249. package/dist/esm/api/resources/search/types/SearchDocumentCollectionResponse.mjs +1 -1
  250. package/dist/esm/api/resources/search/types/SingleFieldFilter.d.mts +1 -1
  251. package/dist/esm/api/resources/search/types/SingleFieldFilter.mjs +1 -1
  252. package/dist/esm/api/resources/search/types/index.d.mts +1 -1
  253. package/dist/esm/api/resources/search/types/index.mjs +1 -1
  254. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  255. package/dist/esm/api/resources/users/client/Client.mjs +4 -5
  256. package/dist/esm/api/resources/users/index.d.mts +1 -1
  257. package/dist/esm/api/resources/users/index.mjs +1 -1
  258. package/dist/esm/core/exports.d.mts +1 -0
  259. package/dist/esm/core/exports.mjs +1 -0
  260. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
  261. package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -1
  262. package/dist/esm/core/fetcher/Fetcher.mjs +2 -1
  263. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
  264. package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
  265. package/dist/esm/core/fetcher/makeRequest.mjs +2 -2
  266. package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -3
  267. package/dist/esm/core/file/exports.d.mts +1 -0
  268. package/dist/esm/core/file/exports.mjs +1 -0
  269. package/dist/esm/core/file/file.d.mts +10 -0
  270. package/dist/esm/core/file/file.mjs +184 -0
  271. package/dist/esm/core/file/index.d.mts +2 -0
  272. package/dist/esm/core/file/index.mjs +2 -0
  273. package/dist/esm/core/file/types.d.mts +66 -0
  274. package/dist/esm/core/file/types.mjs +1 -0
  275. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  276. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +147 -0
  277. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  278. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  279. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  280. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  281. package/dist/esm/core/index.d.mts +5 -3
  282. package/dist/esm/core/index.mjs +5 -3
  283. package/dist/esm/core/stream/Stream.d.mts +1 -0
  284. package/dist/esm/core/stream/Stream.mjs +8 -5
  285. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  286. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  287. package/dist/esm/core/url/index.d.mts +1 -0
  288. package/dist/esm/core/url/index.mjs +1 -0
  289. package/dist/esm/core/url/join.mjs +3 -3
  290. package/dist/esm/errors/CredalError.d.mts +1 -1
  291. package/dist/esm/errors/CredalError.mjs +1 -2
  292. package/dist/esm/exports.d.mts +1 -0
  293. package/dist/esm/exports.mjs +1 -0
  294. package/dist/esm/index.d.mts +3 -2
  295. package/dist/esm/index.mjs +2 -2
  296. package/dist/esm/version.d.mts +1 -1
  297. package/dist/esm/version.mjs +1 -1
  298. package/package.json +9 -4
  299. package/reference.md +203 -229
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
45
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46
+ var m = o[Symbol.asyncIterator], i;
47
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
48
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
49
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
50
+ };
51
+ Object.defineProperty(exports, "__esModule", { value: true });
52
+ exports.FormDataWrapper = void 0;
53
+ exports.newFormData = newFormData;
54
+ const index_js_1 = require("../../core/file/index.js");
55
+ const json_js_1 = require("../../core/json.js");
56
+ const index_js_2 = require("../runtime/index.js");
57
+ function newFormData() {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ return new FormDataWrapper();
60
+ });
61
+ }
62
+ class FormDataWrapper {
63
+ constructor() {
64
+ this.fd = new FormData();
65
+ }
66
+ setup() {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ // noop
69
+ });
70
+ }
71
+ append(key, value) {
72
+ this.fd.append(key, String(value));
73
+ }
74
+ appendFile(key, value) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const { data, filename, contentType } = yield (0, index_js_1.toMultipartDataPart)(value);
77
+ const blob = yield convertToBlob(data, contentType);
78
+ if (filename) {
79
+ this.fd.append(key, blob, filename);
80
+ }
81
+ else {
82
+ this.fd.append(key, blob);
83
+ }
84
+ });
85
+ }
86
+ getRequest() {
87
+ return {
88
+ body: this.fd,
89
+ headers: {},
90
+ duplex: "half",
91
+ };
92
+ }
93
+ }
94
+ exports.FormDataWrapper = FormDataWrapper;
95
+ function isStreamLike(value) {
96
+ return typeof value === "object" && value != null && ("read" in value || "pipe" in value);
97
+ }
98
+ function isReadableStream(value) {
99
+ return typeof value === "object" && value != null && "getReader" in value;
100
+ }
101
+ function isBuffer(value) {
102
+ return typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(value);
103
+ }
104
+ function isArrayBufferView(value) {
105
+ return ArrayBuffer.isView(value);
106
+ }
107
+ function streamToBuffer(stream) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ var _a, stream_1, stream_1_1;
110
+ var _b, e_1, _c, _d;
111
+ if (index_js_2.RUNTIME.type === "node") {
112
+ const { Readable } = yield Promise.resolve().then(() => __importStar(require("stream")));
113
+ if (stream instanceof Readable) {
114
+ const chunks = [];
115
+ try {
116
+ for (_a = true, stream_1 = __asyncValues(stream); stream_1_1 = yield stream_1.next(), _b = stream_1_1.done, !_b; _a = true) {
117
+ _d = stream_1_1.value;
118
+ _a = false;
119
+ const chunk = _d;
120
+ chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
121
+ }
122
+ }
123
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
124
+ finally {
125
+ try {
126
+ if (!_a && !_b && (_c = stream_1.return)) yield _c.call(stream_1);
127
+ }
128
+ finally { if (e_1) throw e_1.error; }
129
+ }
130
+ return Buffer.concat(chunks);
131
+ }
132
+ }
133
+ if (isReadableStream(stream)) {
134
+ const reader = stream.getReader();
135
+ const chunks = [];
136
+ try {
137
+ while (true) {
138
+ const { done, value } = yield reader.read();
139
+ if (done)
140
+ break;
141
+ chunks.push(value);
142
+ }
143
+ }
144
+ finally {
145
+ reader.releaseLock();
146
+ }
147
+ const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
148
+ const result = new Uint8Array(totalLength);
149
+ let offset = 0;
150
+ for (const chunk of chunks) {
151
+ result.set(chunk, offset);
152
+ offset += chunk.length;
153
+ }
154
+ return Buffer.from(result);
155
+ }
156
+ throw new Error(`Unsupported stream type: ${typeof stream}. Expected Node.js Readable stream or Web ReadableStream.`);
157
+ });
158
+ }
159
+ function convertToBlob(value, contentType) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ if (isStreamLike(value) || isReadableStream(value)) {
162
+ const buffer = yield streamToBuffer(value);
163
+ return new Blob([buffer], { type: contentType });
164
+ }
165
+ if (value instanceof Blob) {
166
+ return value;
167
+ }
168
+ if (isBuffer(value)) {
169
+ return new Blob([value], { type: contentType });
170
+ }
171
+ if (value instanceof ArrayBuffer) {
172
+ return new Blob([value], { type: contentType });
173
+ }
174
+ if (isArrayBufferView(value)) {
175
+ return new Blob([value], { type: contentType });
176
+ }
177
+ if (typeof value === "string") {
178
+ return new Blob([value], { type: contentType });
179
+ }
180
+ if (typeof value === "object" && value !== null) {
181
+ return new Blob([(0, json_js_1.toJson)(value)], { type: contentType !== null && contentType !== void 0 ? contentType : "application/json" });
182
+ }
183
+ return new Blob([String(value)], { type: contentType });
184
+ });
185
+ }
@@ -0,0 +1 @@
1
+ export declare function encodeAsFormParameter(value: unknown): Record<string, string>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodeAsFormParameter = encodeAsFormParameter;
4
+ const qs_js_1 = require("../url/qs.js");
5
+ function encodeAsFormParameter(value) {
6
+ const stringified = (0, qs_js_1.toQueryString)(value, { encode: false });
7
+ const keyValuePairs = stringified.split("&").map((pair) => {
8
+ const [key, value] = pair.split("=");
9
+ return [key, value];
10
+ });
11
+ return Object.fromEntries(keyValuePairs);
12
+ }
@@ -0,0 +1,2 @@
1
+ export { encodeAsFormParameter } from "./encodeAsFormParameter.js";
2
+ export * from "./FormDataWrapper.js";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.encodeAsFormParameter = void 0;
18
+ var encodeAsFormParameter_js_1 = require("./encodeAsFormParameter.js");
19
+ Object.defineProperty(exports, "encodeAsFormParameter", { enumerable: true, get: function () { return encodeAsFormParameter_js_1.encodeAsFormParameter; } });
20
+ __exportStar(require("./FormDataWrapper.js"), exports);
@@ -1,6 +1,8 @@
1
- export * from "./fetcher/index.js";
2
- export * from "./runtime/index.js";
3
- export * as url from "./url/index.js";
4
1
  export * from "./auth/index.js";
5
2
  export * from "./base64.js";
3
+ export * from "./fetcher/index.js";
4
+ export * as file from "./file/index.js";
5
+ export * from "./form-data-utils/index.js";
6
+ export * from "./runtime/index.js";
6
7
  export * from "./stream/index.js";
8
+ export * as url from "./url/index.js";
@@ -36,10 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.url = void 0;
40
- __exportStar(require("./fetcher/index.js"), exports);
41
- __exportStar(require("./runtime/index.js"), exports);
42
- exports.url = __importStar(require("./url/index.js"));
39
+ exports.url = exports.file = void 0;
43
40
  __exportStar(require("./auth/index.js"), exports);
44
41
  __exportStar(require("./base64.js"), exports);
42
+ __exportStar(require("./fetcher/index.js"), exports);
43
+ exports.file = __importStar(require("./file/index.js"));
44
+ __exportStar(require("./form-data-utils/index.js"), exports);
45
+ __exportStar(require("./runtime/index.js"), exports);
45
46
  __exportStar(require("./stream/index.js"), exports);
47
+ exports.url = __importStar(require("./url/index.js"));
@@ -33,6 +33,7 @@ export declare class Stream<T> implements AsyncIterable<T> {
33
33
  private messageTerminator;
34
34
  private streamTerminator;
35
35
  private controller;
36
+ private decoder;
36
37
  constructor({ stream, parse, eventShape, signal }: Stream.Args & {
37
38
  parse: (val: unknown) => Promise<T>;
38
39
  });
@@ -47,6 +47,10 @@ class Stream {
47
47
  this.messageTerminator = eventShape.messageTerminator;
48
48
  }
49
49
  signal === null || signal === void 0 ? void 0 : signal.addEventListener("abort", () => this.controller.abort());
50
+ // Initialize shared TextDecoder
51
+ if (typeof TextDecoder !== "undefined") {
52
+ this.decoder = new TextDecoder("utf-8");
53
+ }
50
54
  }
51
55
  iterMessages() {
52
56
  return __asyncGenerator(this, arguments, function* iterMessages_1() {
@@ -63,7 +67,7 @@ class Stream {
63
67
  buf += this.decodeChunk(chunk);
64
68
  let terminatorIndex;
65
69
  while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) {
66
- let line = buf.slice(0, terminatorIndex + 1);
70
+ let line = buf.slice(0, terminatorIndex);
67
71
  buf = buf.slice(terminatorIndex + this.messageTerminator.length);
68
72
  if (!line.trim()) {
69
73
  continue;
@@ -116,10 +120,9 @@ class Stream {
116
120
  }
117
121
  decodeChunk(chunk) {
118
122
  let decoded = "";
119
- // If TextDecoder is present, use it
120
- if (typeof TextDecoder !== "undefined") {
121
- const decoder = new TextDecoder("utf8");
122
- decoded += decoder.decode(chunk);
123
+ // If TextDecoder is available, use the streaming decoder instance
124
+ if (this.decoder != null) {
125
+ decoded += this.decoder.decode(chunk, { stream: true });
123
126
  }
124
127
  // Buffer is present in Node.js environment
125
128
  else if (index_js_1.RUNTIME.type === "node" && typeof chunk !== "undefined") {
@@ -0,0 +1 @@
1
+ export declare function encodePathParam(param: unknown): string;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodePathParam = encodePathParam;
4
+ function encodePathParam(param) {
5
+ if (param === null) {
6
+ return "null";
7
+ }
8
+ const typeofParam = typeof param;
9
+ switch (typeofParam) {
10
+ case "undefined":
11
+ return "undefined";
12
+ case "string":
13
+ case "number":
14
+ case "boolean":
15
+ break;
16
+ default:
17
+ param = String(param);
18
+ break;
19
+ }
20
+ return encodeURIComponent(param);
21
+ }
@@ -1,2 +1,3 @@
1
+ export { encodePathParam } from "./encodePathParam.js";
1
2
  export { join } from "./join.js";
2
3
  export { toQueryString } from "./qs.js";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toQueryString = exports.join = void 0;
3
+ exports.toQueryString = exports.join = exports.encodePathParam = void 0;
4
+ var encodePathParam_js_1 = require("./encodePathParam.js");
5
+ Object.defineProperty(exports, "encodePathParam", { enumerable: true, get: function () { return encodePathParam_js_1.encodePathParam; } });
4
6
  var join_js_1 = require("./join.js");
5
7
  Object.defineProperty(exports, "join", { enumerable: true, get: function () { return join_js_1.join; } });
6
8
  var qs_js_1 = require("./qs.js");
@@ -18,7 +18,7 @@ function join(base, ...segments) {
18
18
  return joinPath(base, ...segments);
19
19
  }
20
20
  const lastSegment = segments[segments.length - 1];
21
- const shouldPreserveTrailingSlash = lastSegment && lastSegment.endsWith("/");
21
+ const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
22
22
  for (const segment of segments) {
23
23
  const cleanSegment = trimSlashes(segment);
24
24
  if (cleanSegment) {
@@ -38,7 +38,7 @@ function joinPath(base, ...segments) {
38
38
  }
39
39
  let result = base;
40
40
  const lastSegment = segments[segments.length - 1];
41
- const shouldPreserveTrailingSlash = lastSegment && lastSegment.endsWith("/");
41
+ const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
42
42
  for (const segment of segments) {
43
43
  const cleanSegment = trimSlashes(segment);
44
44
  if (cleanSegment) {
@@ -54,7 +54,7 @@ function joinPathSegments(left, right) {
54
54
  if (left.endsWith("/")) {
55
55
  return left + right;
56
56
  }
57
- return left + "/" + right;
57
+ return `${left}/${right}`;
58
58
  }
59
59
  function trimSlashes(str) {
60
60
  if (!str)
@@ -1,4 +1,4 @@
1
- import * as core from "../core/index.js";
1
+ import type * as core from "../core/index.js";
2
2
  export declare class CredalError extends Error {
3
3
  readonly statusCode?: number;
4
4
  readonly body?: unknown;
@@ -14,7 +14,7 @@ class CredalError extends Error {
14
14
  }
15
15
  exports.CredalError = CredalError;
16
16
  function buildMessage({ message, statusCode, body, }) {
17
- let lines = [];
17
+ const lines = [];
18
18
  if (message != null) {
19
19
  lines.push(message);
20
20
  }
@@ -0,0 +1 @@
1
+ export * from "./core/exports.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./core/exports.js"), exports);
@@ -1,5 +1,6 @@
1
1
  export * as Credal from "./api/index.js";
2
- export { CredalError, CredalTimeoutError } from "./errors/index.js";
3
- export { type BaseClientOptions, type BaseRequestOptions } from "./BaseClient.js";
2
+ export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
4
3
  export { CredalClient } from "./Client.js";
5
4
  export { CredalEnvironment } from "./environments.js";
5
+ export { CredalError, CredalTimeoutError } from "./errors/index.js";
6
+ export * from "./exports.js";
package/dist/cjs/index.js CHANGED
@@ -32,13 +32,17 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
35
38
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.CredalEnvironment = exports.CredalClient = exports.CredalTimeoutError = exports.CredalError = exports.Credal = void 0;
39
+ exports.CredalTimeoutError = exports.CredalError = exports.CredalEnvironment = exports.CredalClient = exports.Credal = void 0;
37
40
  exports.Credal = __importStar(require("./api/index.js"));
38
- var index_js_1 = require("./errors/index.js");
39
- Object.defineProperty(exports, "CredalError", { enumerable: true, get: function () { return index_js_1.CredalError; } });
40
- Object.defineProperty(exports, "CredalTimeoutError", { enumerable: true, get: function () { return index_js_1.CredalTimeoutError; } });
41
41
  var Client_js_1 = require("./Client.js");
42
42
  Object.defineProperty(exports, "CredalClient", { enumerable: true, get: function () { return Client_js_1.CredalClient; } });
43
43
  var environments_js_1 = require("./environments.js");
44
44
  Object.defineProperty(exports, "CredalEnvironment", { enumerable: true, get: function () { return environments_js_1.CredalEnvironment; } });
45
+ var index_js_1 = require("./errors/index.js");
46
+ Object.defineProperty(exports, "CredalError", { enumerable: true, get: function () { return index_js_1.CredalError; } });
47
+ Object.defineProperty(exports, "CredalTimeoutError", { enumerable: true, get: function () { return index_js_1.CredalTimeoutError; } });
48
+ __exportStar(require("./exports.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.8";
1
+ export declare const SDK_VERSION = "0.1.10";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.8";
4
+ exports.SDK_VERSION = "0.1.10";
@@ -1,5 +1,5 @@
1
- import * as environments from "./environments.mjs";
2
- import * as core from "./core/index.mjs";
1
+ import type * as core from "./core/index.mjs";
2
+ import type * as environments from "./environments.mjs";
3
3
  export interface BaseClientOptions {
4
4
  environment?: core.Supplier<environments.CredalEnvironment | string>;
5
5
  /** Specify a custom URL to connect the client to. */
@@ -1,3 +1,2 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as environments from "./environments.mjs";
3
- import * as core from "./core/index.mjs";
2
+ export {};
@@ -1,9 +1,9 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
2
1
  import { Copilots } from "./api/resources/copilots/client/Client.mjs";
3
2
  import { DocumentCatalog } from "./api/resources/documentCatalog/client/Client.mjs";
4
3
  import { DocumentCollections } from "./api/resources/documentCollections/client/Client.mjs";
5
4
  import { Search } from "./api/resources/search/client/Client.mjs";
6
5
  import { Users } from "./api/resources/users/client/Client.mjs";
6
+ import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
7
7
  export declare namespace CredalClient {
8
8
  interface Options extends BaseClientOptions {
9
9
  }
@@ -1,19 +1,18 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as core from "./core/index.mjs";
3
- import { mergeHeaders } from "./core/headers.mjs";
4
- import * as environments from "./environments.mjs";
5
2
  import { Copilots } from "./api/resources/copilots/client/Client.mjs";
6
3
  import { DocumentCatalog } from "./api/resources/documentCatalog/client/Client.mjs";
7
4
  import { DocumentCollections } from "./api/resources/documentCollections/client/Client.mjs";
8
5
  import { Search } from "./api/resources/search/client/Client.mjs";
9
6
  import { Users } from "./api/resources/users/client/Client.mjs";
7
+ import { mergeHeaders } from "./core/headers.mjs";
8
+ import * as core from "./core/index.mjs";
10
9
  export class CredalClient {
11
10
  constructor(_options = {}) {
12
11
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
12
  "X-Fern-Language": "JavaScript",
14
13
  "X-Fern-SDK-Name": "@credal/sdk",
15
- "X-Fern-SDK-Version": "0.1.8",
16
- "User-Agent": "@credal/sdk/0.1.8",
14
+ "X-Fern-SDK-Version": "0.1.10",
15
+ "User-Agent": "@credal/sdk/0.1.10",
17
16
  "X-Fern-Runtime": core.RUNTIME.type,
18
17
  "X-Fern-Runtime-Version": core.RUNTIME.version,
19
18
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1,4 +1,4 @@
1
- import * as Credal from "../../../index.mjs";
1
+ import type * as Credal from "../../../index.mjs";
2
2
  export interface Collaborator {
3
3
  email: string;
4
4
  role: Credal.Role;
@@ -1,2 +1,2 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as Credal from "../../../index.mjs";
2
+ export {};
@@ -1,4 +1,4 @@
1
- import * as Credal from "../../../index.mjs";
1
+ import type * as Credal from "../../../index.mjs";
2
2
  export interface ExternalResourceId {
3
3
  externalResourceId: string;
4
4
  resourceType: Credal.ResourceType;
@@ -1,2 +1,2 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as Credal from "../../../index.mjs";
2
+ export {};
@@ -1,4 +1,4 @@
1
- import * as Credal from "../../../index.mjs";
1
+ import type * as Credal from "../../../index.mjs";
2
2
  export type ResourceIdentifier = Credal.ResourceIdentifier.ExternalResourceId | Credal.ResourceIdentifier.Url;
3
3
  export declare namespace ResourceIdentifier {
4
4
  interface ExternalResourceId extends Credal.ExternalResourceId {
@@ -1,2 +1,2 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as Credal from "../../../index.mjs";
2
+ export {};
@@ -1,8 +1,8 @@
1
- export * from "./ResourceIdentifier.mjs";
1
+ export * from "./Collaborator.mjs";
2
+ export * from "./CustomMetadataValue.mjs";
2
3
  export * from "./ExternalResourceId.mjs";
3
- export * from "./Url.mjs";
4
+ export * from "./Operator.mjs";
5
+ export * from "./ResourceIdentifier.mjs";
4
6
  export * from "./ResourceType.mjs";
5
- export * from "./Collaborator.mjs";
6
7
  export * from "./Role.mjs";
7
- export * from "./Operator.mjs";
8
- export * from "./CustomMetadataValue.mjs";
8
+ export * from "./Url.mjs";
@@ -1,8 +1,8 @@
1
- export * from "./ResourceIdentifier.mjs";
1
+ export * from "./Collaborator.mjs";
2
+ export * from "./CustomMetadataValue.mjs";
2
3
  export * from "./ExternalResourceId.mjs";
3
- export * from "./Url.mjs";
4
+ export * from "./Operator.mjs";
5
+ export * from "./ResourceIdentifier.mjs";
4
6
  export * from "./ResourceType.mjs";
5
- export * from "./Collaborator.mjs";
6
7
  export * from "./Role.mjs";
7
- export * from "./Operator.mjs";
8
- export * from "./CustomMetadataValue.mjs";
8
+ export * from "./Url.mjs";
@@ -1,6 +1,6 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
- import * as Credal from "../../../index.mjs";
3
+ import type * as Credal from "../../../index.mjs";
4
4
  export declare namespace Copilots {
5
5
  interface Options extends BaseClientOptions {
6
6
  }