newscatcher-catchall-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +332 -0
  3. package/dist/cjs/BaseClient.d.ts +31 -0
  4. package/dist/cjs/BaseClient.js +50 -0
  5. package/dist/cjs/Client.d.ts +20 -0
  6. package/dist/cjs/Client.js +26 -0
  7. package/dist/cjs/api/errors/ForbiddenError.d.ts +6 -0
  8. package/dist/cjs/api/errors/ForbiddenError.js +50 -0
  9. package/dist/cjs/api/errors/NotFoundError.d.ts +6 -0
  10. package/dist/cjs/api/errors/NotFoundError.js +50 -0
  11. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
  12. package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
  13. package/dist/cjs/api/errors/index.d.ts +3 -0
  14. package/dist/cjs/api/errors/index.js +19 -0
  15. package/dist/cjs/api/index.d.ts +3 -0
  16. package/dist/cjs/api/index.js +19 -0
  17. package/dist/cjs/api/resources/index.d.ts +7 -0
  18. package/dist/cjs/api/resources/index.js +46 -0
  19. package/dist/cjs/api/resources/jobs/client/Client.d.ts +77 -0
  20. package/dist/cjs/api/resources/jobs/client/Client.js +335 -0
  21. package/dist/cjs/api/resources/jobs/client/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/jobs/client/index.js +17 -0
  23. package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsRequest.d.ts +14 -0
  24. package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsRequest.js +3 -0
  25. package/dist/cjs/api/resources/jobs/client/requests/GetJobStatusRequest.d.ts +10 -0
  26. package/dist/cjs/api/resources/jobs/client/requests/GetJobStatusRequest.js +3 -0
  27. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +14 -0
  28. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.js +3 -0
  29. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +3 -0
  30. package/dist/cjs/api/resources/jobs/client/requests/index.js +2 -0
  31. package/dist/cjs/api/resources/jobs/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/jobs/index.js +17 -0
  33. package/dist/cjs/api/resources/meta/client/Client.d.ts +37 -0
  34. package/dist/cjs/api/resources/meta/client/Client.js +172 -0
  35. package/dist/cjs/api/resources/meta/client/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/meta/client/index.js +2 -0
  37. package/dist/cjs/api/resources/meta/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/meta/index.js +18 -0
  39. package/dist/cjs/api/resources/meta/types/GetVersionResponse.d.ts +3 -0
  40. package/dist/cjs/api/resources/meta/types/GetVersionResponse.js +3 -0
  41. package/dist/cjs/api/resources/meta/types/HealthCheckResponse.d.ts +3 -0
  42. package/dist/cjs/api/resources/meta/types/HealthCheckResponse.js +3 -0
  43. package/dist/cjs/api/resources/meta/types/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/meta/types/index.js +18 -0
  45. package/dist/cjs/api/resources/monitors/client/Client.d.ts +119 -0
  46. package/dist/cjs/api/resources/monitors/client/Client.js +482 -0
  47. package/dist/cjs/api/resources/monitors/client/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/monitors/client/index.js +17 -0
  49. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +23 -0
  50. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.js +3 -0
  51. package/dist/cjs/api/resources/monitors/client/requests/DisableMonitorRequest.d.ts +10 -0
  52. package/dist/cjs/api/resources/monitors/client/requests/DisableMonitorRequest.js +3 -0
  53. package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequest.d.ts +10 -0
  54. package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequest.js +3 -0
  55. package/dist/cjs/api/resources/monitors/client/requests/ListMonitorJobsRequest.d.ts +13 -0
  56. package/dist/cjs/api/resources/monitors/client/requests/ListMonitorJobsRequest.js +3 -0
  57. package/dist/cjs/api/resources/monitors/client/requests/PullMonitorResultsRequest.d.ts +10 -0
  58. package/dist/cjs/api/resources/monitors/client/requests/PullMonitorResultsRequest.js +3 -0
  59. package/dist/cjs/api/resources/monitors/client/requests/index.d.ts +5 -0
  60. package/dist/cjs/api/resources/monitors/client/requests/index.js +2 -0
  61. package/dist/cjs/api/resources/monitors/index.d.ts +2 -0
  62. package/dist/cjs/api/resources/monitors/index.js +18 -0
  63. package/dist/cjs/api/resources/monitors/types/DisableMonitorResponse.d.ts +8 -0
  64. package/dist/cjs/api/resources/monitors/types/DisableMonitorResponse.js +3 -0
  65. package/dist/cjs/api/resources/monitors/types/EnableMonitorResponse.d.ts +8 -0
  66. package/dist/cjs/api/resources/monitors/types/EnableMonitorResponse.js +3 -0
  67. package/dist/cjs/api/resources/monitors/types/ListMonitorJobsRequestSort.d.ts +5 -0
  68. package/dist/cjs/api/resources/monitors/types/ListMonitorJobsRequestSort.js +8 -0
  69. package/dist/cjs/api/resources/monitors/types/ListMonitorJobsResponse.d.ts +19 -0
  70. package/dist/cjs/api/resources/monitors/types/ListMonitorJobsResponse.js +12 -0
  71. package/dist/cjs/api/resources/monitors/types/index.d.ts +4 -0
  72. package/dist/cjs/api/resources/monitors/types/index.js +20 -0
  73. package/dist/cjs/api/types/Citation.d.ts +8 -0
  74. package/dist/cjs/api/types/Citation.js +3 -0
  75. package/dist/cjs/api/types/Context.d.ts +4 -0
  76. package/dist/cjs/api/types/Context.js +3 -0
  77. package/dist/cjs/api/types/CreateMonitorResponseDto.d.ts +6 -0
  78. package/dist/cjs/api/types/CreateMonitorResponseDto.js +3 -0
  79. package/dist/cjs/api/types/Error_.d.ts +4 -0
  80. package/dist/cjs/api/types/Error_.js +3 -0
  81. package/dist/cjs/api/types/JobStatus.d.ts +23 -0
  82. package/dist/cjs/api/types/JobStatus.js +26 -0
  83. package/dist/cjs/api/types/JobStep.d.ts +8 -0
  84. package/dist/cjs/api/types/JobStep.js +3 -0
  85. package/dist/cjs/api/types/ListMonitorsResponseDto.d.ts +7 -0
  86. package/dist/cjs/api/types/ListMonitorsResponseDto.js +3 -0
  87. package/dist/cjs/api/types/ListUserJobsResponseDto.d.ts +6 -0
  88. package/dist/cjs/api/types/ListUserJobsResponseDto.js +3 -0
  89. package/dist/cjs/api/types/MonitorCitation.d.ts +16 -0
  90. package/dist/cjs/api/types/MonitorCitation.js +3 -0
  91. package/dist/cjs/api/types/MonitorJobItem.d.ts +8 -0
  92. package/dist/cjs/api/types/MonitorJobItem.js +3 -0
  93. package/dist/cjs/api/types/MonitorListItemDto.d.ts +16 -0
  94. package/dist/cjs/api/types/MonitorListItemDto.js +3 -0
  95. package/dist/cjs/api/types/MonitorRecord.d.ts +23 -0
  96. package/dist/cjs/api/types/MonitorRecord.js +3 -0
  97. package/dist/cjs/api/types/PullJobResponseDto.d.ts +34 -0
  98. package/dist/cjs/api/types/PullJobResponseDto.js +3 -0
  99. package/dist/cjs/api/types/PullMonitorResponseDto.d.ts +35 -0
  100. package/dist/cjs/api/types/PullMonitorResponseDto.js +3 -0
  101. package/dist/cjs/api/types/Query.d.ts +6 -0
  102. package/dist/cjs/api/types/Query.js +3 -0
  103. package/dist/cjs/api/types/Record_.d.ts +15 -0
  104. package/dist/cjs/api/types/Record_.js +3 -0
  105. package/dist/cjs/api/types/ReferenceJob.d.ts +6 -0
  106. package/dist/cjs/api/types/ReferenceJob.js +3 -0
  107. package/dist/cjs/api/types/Schema.d.ts +6 -0
  108. package/dist/cjs/api/types/Schema.js +3 -0
  109. package/dist/cjs/api/types/StatusResponseDto.d.ts +9 -0
  110. package/dist/cjs/api/types/StatusResponseDto.js +3 -0
  111. package/dist/cjs/api/types/SubmitResponseBody.d.ts +4 -0
  112. package/dist/cjs/api/types/SubmitResponseBody.js +3 -0
  113. package/dist/cjs/api/types/ValidationErrorDetail.d.ts +14 -0
  114. package/dist/cjs/api/types/ValidationErrorDetail.js +3 -0
  115. package/dist/cjs/api/types/ValidationErrorResponse.d.ts +4 -0
  116. package/dist/cjs/api/types/ValidationErrorResponse.js +3 -0
  117. package/dist/cjs/api/types/WebhookDto.d.ts +20 -0
  118. package/dist/cjs/api/types/WebhookDto.js +12 -0
  119. package/dist/cjs/api/types/WebhookPayload.d.ts +28 -0
  120. package/dist/cjs/api/types/WebhookPayload.js +3 -0
  121. package/dist/cjs/api/types/index.d.ts +24 -0
  122. package/dist/cjs/api/types/index.js +40 -0
  123. package/dist/cjs/core/exports.d.ts +1 -0
  124. package/dist/cjs/core/exports.js +17 -0
  125. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  126. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  127. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
  128. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  129. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  130. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  131. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  132. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  133. package/dist/cjs/core/fetcher/Fetcher.d.ts +45 -0
  134. package/dist/cjs/core/fetcher/Fetcher.js +315 -0
  135. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  136. package/dist/cjs/core/fetcher/Headers.js +84 -0
  137. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  138. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  139. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  140. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  141. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
  142. package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
  143. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  144. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  145. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  146. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  147. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  148. package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
  149. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  150. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  151. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  152. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  153. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  154. package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
  155. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  156. package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
  157. package/dist/cjs/core/fetcher/index.d.ts +11 -0
  158. package/dist/cjs/core/fetcher/index.js +17 -0
  159. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
  160. package/dist/cjs/core/fetcher/makeRequest.js +40 -0
  161. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  162. package/dist/cjs/core/fetcher/requestWithRetries.js +67 -0
  163. package/dist/cjs/core/fetcher/signals.d.ts +5 -0
  164. package/dist/cjs/core/fetcher/signals.js +24 -0
  165. package/dist/cjs/core/headers.d.ts +2 -0
  166. package/dist/cjs/core/headers.js +31 -0
  167. package/dist/cjs/core/index.d.ts +4 -0
  168. package/dist/cjs/core/index.js +43 -0
  169. package/dist/cjs/core/json.d.ts +15 -0
  170. package/dist/cjs/core/json.js +24 -0
  171. package/dist/cjs/core/logging/exports.d.ts +18 -0
  172. package/dist/cjs/core/logging/exports.js +45 -0
  173. package/dist/cjs/core/logging/index.d.ts +1 -0
  174. package/dist/cjs/core/logging/index.js +17 -0
  175. package/dist/cjs/core/logging/logger.d.ts +126 -0
  176. package/dist/cjs/core/logging/logger.js +144 -0
  177. package/dist/cjs/core/runtime/index.d.ts +1 -0
  178. package/dist/cjs/core/runtime/index.js +5 -0
  179. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  180. package/dist/cjs/core/runtime/runtime.js +102 -0
  181. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  182. package/dist/cjs/core/url/encodePathParam.js +21 -0
  183. package/dist/cjs/core/url/index.d.ts +3 -0
  184. package/dist/cjs/core/url/index.js +9 -0
  185. package/dist/cjs/core/url/join.d.ts +1 -0
  186. package/dist/cjs/core/url/join.js +68 -0
  187. package/dist/cjs/core/url/qs.d.ts +6 -0
  188. package/dist/cjs/core/url/qs.js +64 -0
  189. package/dist/cjs/environments.d.ts +4 -0
  190. package/dist/cjs/environments.js +7 -0
  191. package/dist/cjs/errors/CatchAllApiError.d.ts +12 -0
  192. package/dist/cjs/errors/CatchAllApiError.js +28 -0
  193. package/dist/cjs/errors/CatchAllApiTimeoutError.d.ts +3 -0
  194. package/dist/cjs/errors/CatchAllApiTimeoutError.js +11 -0
  195. package/dist/cjs/errors/index.d.ts +2 -0
  196. package/dist/cjs/errors/index.js +7 -0
  197. package/dist/cjs/exports.d.ts +1 -0
  198. package/dist/cjs/exports.js +17 -0
  199. package/dist/cjs/index.d.ts +6 -0
  200. package/dist/cjs/index.js +48 -0
  201. package/dist/cjs/version.d.ts +1 -0
  202. package/dist/cjs/version.js +4 -0
  203. package/dist/esm/BaseClient.d.mts +31 -0
  204. package/dist/esm/BaseClient.mjs +14 -0
  205. package/dist/esm/Client.d.mts +20 -0
  206. package/dist/esm/Client.mjs +22 -0
  207. package/dist/esm/api/errors/ForbiddenError.d.mts +6 -0
  208. package/dist/esm/api/errors/ForbiddenError.mjs +13 -0
  209. package/dist/esm/api/errors/NotFoundError.d.mts +6 -0
  210. package/dist/esm/api/errors/NotFoundError.mjs +13 -0
  211. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
  212. package/dist/esm/api/errors/UnprocessableEntityError.mjs +13 -0
  213. package/dist/esm/api/errors/index.d.mts +3 -0
  214. package/dist/esm/api/errors/index.mjs +3 -0
  215. package/dist/esm/api/index.d.mts +3 -0
  216. package/dist/esm/api/index.mjs +3 -0
  217. package/dist/esm/api/resources/index.d.mts +7 -0
  218. package/dist/esm/api/resources/index.mjs +7 -0
  219. package/dist/esm/api/resources/jobs/client/Client.d.mts +77 -0
  220. package/dist/esm/api/resources/jobs/client/Client.mjs +298 -0
  221. package/dist/esm/api/resources/jobs/client/index.d.mts +1 -0
  222. package/dist/esm/api/resources/jobs/client/index.mjs +1 -0
  223. package/dist/esm/api/resources/jobs/client/requests/GetJobResultsRequest.d.mts +14 -0
  224. package/dist/esm/api/resources/jobs/client/requests/GetJobResultsRequest.mjs +2 -0
  225. package/dist/esm/api/resources/jobs/client/requests/GetJobStatusRequest.d.mts +10 -0
  226. package/dist/esm/api/resources/jobs/client/requests/GetJobStatusRequest.mjs +2 -0
  227. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +14 -0
  228. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.mjs +2 -0
  229. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +3 -0
  230. package/dist/esm/api/resources/jobs/client/requests/index.mjs +1 -0
  231. package/dist/esm/api/resources/jobs/index.d.mts +1 -0
  232. package/dist/esm/api/resources/jobs/index.mjs +1 -0
  233. package/dist/esm/api/resources/meta/client/Client.d.mts +37 -0
  234. package/dist/esm/api/resources/meta/client/Client.mjs +135 -0
  235. package/dist/esm/api/resources/meta/client/index.d.mts +1 -0
  236. package/dist/esm/api/resources/meta/client/index.mjs +1 -0
  237. package/dist/esm/api/resources/meta/index.d.mts +2 -0
  238. package/dist/esm/api/resources/meta/index.mjs +2 -0
  239. package/dist/esm/api/resources/meta/types/GetVersionResponse.d.mts +3 -0
  240. package/dist/esm/api/resources/meta/types/GetVersionResponse.mjs +2 -0
  241. package/dist/esm/api/resources/meta/types/HealthCheckResponse.d.mts +3 -0
  242. package/dist/esm/api/resources/meta/types/HealthCheckResponse.mjs +2 -0
  243. package/dist/esm/api/resources/meta/types/index.d.mts +2 -0
  244. package/dist/esm/api/resources/meta/types/index.mjs +2 -0
  245. package/dist/esm/api/resources/monitors/client/Client.d.mts +119 -0
  246. package/dist/esm/api/resources/monitors/client/Client.mjs +445 -0
  247. package/dist/esm/api/resources/monitors/client/index.d.mts +1 -0
  248. package/dist/esm/api/resources/monitors/client/index.mjs +1 -0
  249. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +23 -0
  250. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.mjs +2 -0
  251. package/dist/esm/api/resources/monitors/client/requests/DisableMonitorRequest.d.mts +10 -0
  252. package/dist/esm/api/resources/monitors/client/requests/DisableMonitorRequest.mjs +2 -0
  253. package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequest.d.mts +10 -0
  254. package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequest.mjs +2 -0
  255. package/dist/esm/api/resources/monitors/client/requests/ListMonitorJobsRequest.d.mts +13 -0
  256. package/dist/esm/api/resources/monitors/client/requests/ListMonitorJobsRequest.mjs +2 -0
  257. package/dist/esm/api/resources/monitors/client/requests/PullMonitorResultsRequest.d.mts +10 -0
  258. package/dist/esm/api/resources/monitors/client/requests/PullMonitorResultsRequest.mjs +2 -0
  259. package/dist/esm/api/resources/monitors/client/requests/index.d.mts +5 -0
  260. package/dist/esm/api/resources/monitors/client/requests/index.mjs +1 -0
  261. package/dist/esm/api/resources/monitors/index.d.mts +2 -0
  262. package/dist/esm/api/resources/monitors/index.mjs +2 -0
  263. package/dist/esm/api/resources/monitors/types/DisableMonitorResponse.d.mts +8 -0
  264. package/dist/esm/api/resources/monitors/types/DisableMonitorResponse.mjs +2 -0
  265. package/dist/esm/api/resources/monitors/types/EnableMonitorResponse.d.mts +8 -0
  266. package/dist/esm/api/resources/monitors/types/EnableMonitorResponse.mjs +2 -0
  267. package/dist/esm/api/resources/monitors/types/ListMonitorJobsRequestSort.d.mts +5 -0
  268. package/dist/esm/api/resources/monitors/types/ListMonitorJobsRequestSort.mjs +5 -0
  269. package/dist/esm/api/resources/monitors/types/ListMonitorJobsResponse.d.mts +19 -0
  270. package/dist/esm/api/resources/monitors/types/ListMonitorJobsResponse.mjs +9 -0
  271. package/dist/esm/api/resources/monitors/types/index.d.mts +4 -0
  272. package/dist/esm/api/resources/monitors/types/index.mjs +4 -0
  273. package/dist/esm/api/types/Citation.d.mts +8 -0
  274. package/dist/esm/api/types/Citation.mjs +2 -0
  275. package/dist/esm/api/types/Context.d.mts +4 -0
  276. package/dist/esm/api/types/Context.mjs +2 -0
  277. package/dist/esm/api/types/CreateMonitorResponseDto.d.mts +6 -0
  278. package/dist/esm/api/types/CreateMonitorResponseDto.mjs +2 -0
  279. package/dist/esm/api/types/Error_.d.mts +4 -0
  280. package/dist/esm/api/types/Error_.mjs +2 -0
  281. package/dist/esm/api/types/JobStatus.d.mts +23 -0
  282. package/dist/esm/api/types/JobStatus.mjs +23 -0
  283. package/dist/esm/api/types/JobStep.d.mts +8 -0
  284. package/dist/esm/api/types/JobStep.mjs +2 -0
  285. package/dist/esm/api/types/ListMonitorsResponseDto.d.mts +7 -0
  286. package/dist/esm/api/types/ListMonitorsResponseDto.mjs +2 -0
  287. package/dist/esm/api/types/ListUserJobsResponseDto.d.mts +6 -0
  288. package/dist/esm/api/types/ListUserJobsResponseDto.mjs +2 -0
  289. package/dist/esm/api/types/MonitorCitation.d.mts +16 -0
  290. package/dist/esm/api/types/MonitorCitation.mjs +2 -0
  291. package/dist/esm/api/types/MonitorJobItem.d.mts +8 -0
  292. package/dist/esm/api/types/MonitorJobItem.mjs +2 -0
  293. package/dist/esm/api/types/MonitorListItemDto.d.mts +16 -0
  294. package/dist/esm/api/types/MonitorListItemDto.mjs +2 -0
  295. package/dist/esm/api/types/MonitorRecord.d.mts +23 -0
  296. package/dist/esm/api/types/MonitorRecord.mjs +2 -0
  297. package/dist/esm/api/types/PullJobResponseDto.d.mts +34 -0
  298. package/dist/esm/api/types/PullJobResponseDto.mjs +2 -0
  299. package/dist/esm/api/types/PullMonitorResponseDto.d.mts +35 -0
  300. package/dist/esm/api/types/PullMonitorResponseDto.mjs +2 -0
  301. package/dist/esm/api/types/Query.d.mts +6 -0
  302. package/dist/esm/api/types/Query.mjs +2 -0
  303. package/dist/esm/api/types/Record_.d.mts +15 -0
  304. package/dist/esm/api/types/Record_.mjs +2 -0
  305. package/dist/esm/api/types/ReferenceJob.d.mts +6 -0
  306. package/dist/esm/api/types/ReferenceJob.mjs +2 -0
  307. package/dist/esm/api/types/Schema.d.mts +6 -0
  308. package/dist/esm/api/types/Schema.mjs +2 -0
  309. package/dist/esm/api/types/StatusResponseDto.d.mts +9 -0
  310. package/dist/esm/api/types/StatusResponseDto.mjs +2 -0
  311. package/dist/esm/api/types/SubmitResponseBody.d.mts +4 -0
  312. package/dist/esm/api/types/SubmitResponseBody.mjs +2 -0
  313. package/dist/esm/api/types/ValidationErrorDetail.d.mts +14 -0
  314. package/dist/esm/api/types/ValidationErrorDetail.mjs +2 -0
  315. package/dist/esm/api/types/ValidationErrorResponse.d.mts +4 -0
  316. package/dist/esm/api/types/ValidationErrorResponse.mjs +2 -0
  317. package/dist/esm/api/types/WebhookDto.d.mts +20 -0
  318. package/dist/esm/api/types/WebhookDto.mjs +9 -0
  319. package/dist/esm/api/types/WebhookPayload.d.mts +28 -0
  320. package/dist/esm/api/types/WebhookPayload.mjs +2 -0
  321. package/dist/esm/api/types/index.d.mts +24 -0
  322. package/dist/esm/api/types/index.mjs +24 -0
  323. package/dist/esm/core/exports.d.mts +1 -0
  324. package/dist/esm/core/exports.mjs +1 -0
  325. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  326. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  327. package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
  328. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  329. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  330. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  331. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  332. package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
  333. package/dist/esm/core/fetcher/Fetcher.d.mts +45 -0
  334. package/dist/esm/core/fetcher/Fetcher.mjs +311 -0
  335. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  336. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  337. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  338. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  339. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  340. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  341. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
  342. package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
  343. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  344. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  345. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  346. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  347. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  348. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
  349. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  350. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  351. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  352. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  353. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  354. package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
  355. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  356. package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
  357. package/dist/esm/core/fetcher/index.d.mts +11 -0
  358. package/dist/esm/core/fetcher/index.mjs +6 -0
  359. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  360. package/dist/esm/core/fetcher/makeRequest.mjs +36 -0
  361. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  362. package/dist/esm/core/fetcher/requestWithRetries.mjs +64 -0
  363. package/dist/esm/core/fetcher/signals.d.mts +5 -0
  364. package/dist/esm/core/fetcher/signals.mjs +20 -0
  365. package/dist/esm/core/headers.d.mts +2 -0
  366. package/dist/esm/core/headers.mjs +27 -0
  367. package/dist/esm/core/index.d.mts +4 -0
  368. package/dist/esm/core/index.mjs +4 -0
  369. package/dist/esm/core/json.d.mts +15 -0
  370. package/dist/esm/core/json.mjs +19 -0
  371. package/dist/esm/core/logging/exports.d.mts +18 -0
  372. package/dist/esm/core/logging/exports.mjs +9 -0
  373. package/dist/esm/core/logging/index.d.mts +1 -0
  374. package/dist/esm/core/logging/index.mjs +1 -0
  375. package/dist/esm/core/logging/logger.d.mts +126 -0
  376. package/dist/esm/core/logging/logger.mjs +138 -0
  377. package/dist/esm/core/runtime/index.d.mts +1 -0
  378. package/dist/esm/core/runtime/index.mjs +1 -0
  379. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  380. package/dist/esm/core/runtime/runtime.mjs +99 -0
  381. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  382. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  383. package/dist/esm/core/url/index.d.mts +3 -0
  384. package/dist/esm/core/url/index.mjs +3 -0
  385. package/dist/esm/core/url/join.d.mts +1 -0
  386. package/dist/esm/core/url/join.mjs +65 -0
  387. package/dist/esm/core/url/qs.d.mts +6 -0
  388. package/dist/esm/core/url/qs.mjs +61 -0
  389. package/dist/esm/environments.d.mts +4 -0
  390. package/dist/esm/environments.mjs +4 -0
  391. package/dist/esm/errors/CatchAllApiError.d.mts +12 -0
  392. package/dist/esm/errors/CatchAllApiError.mjs +24 -0
  393. package/dist/esm/errors/CatchAllApiTimeoutError.d.mts +3 -0
  394. package/dist/esm/errors/CatchAllApiTimeoutError.mjs +7 -0
  395. package/dist/esm/errors/index.d.mts +2 -0
  396. package/dist/esm/errors/index.mjs +2 -0
  397. package/dist/esm/exports.d.mts +1 -0
  398. package/dist/esm/exports.mjs +1 -0
  399. package/dist/esm/index.d.mts +6 -0
  400. package/dist/esm/index.mjs +5 -0
  401. package/dist/esm/version.d.mts +1 -0
  402. package/dist/esm/version.mjs +1 -0
  403. package/package.json +67 -0
  404. package/reference.md +753 -0
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.join = join;
4
+ function join(base, ...segments) {
5
+ if (!base) {
6
+ return "";
7
+ }
8
+ if (segments.length === 0) {
9
+ return base;
10
+ }
11
+ if (base.includes("://")) {
12
+ let url;
13
+ try {
14
+ url = new URL(base);
15
+ }
16
+ catch (_a) {
17
+ return joinPath(base, ...segments);
18
+ }
19
+ const lastSegment = segments[segments.length - 1];
20
+ const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
21
+ for (const segment of segments) {
22
+ const cleanSegment = trimSlashes(segment);
23
+ if (cleanSegment) {
24
+ url.pathname = joinPathSegments(url.pathname, cleanSegment);
25
+ }
26
+ }
27
+ if (shouldPreserveTrailingSlash && !url.pathname.endsWith("/")) {
28
+ url.pathname += "/";
29
+ }
30
+ return url.toString();
31
+ }
32
+ return joinPath(base, ...segments);
33
+ }
34
+ function joinPath(base, ...segments) {
35
+ if (segments.length === 0) {
36
+ return base;
37
+ }
38
+ let result = base;
39
+ const lastSegment = segments[segments.length - 1];
40
+ const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
41
+ for (const segment of segments) {
42
+ const cleanSegment = trimSlashes(segment);
43
+ if (cleanSegment) {
44
+ result = joinPathSegments(result, cleanSegment);
45
+ }
46
+ }
47
+ if (shouldPreserveTrailingSlash && !result.endsWith("/")) {
48
+ result += "/";
49
+ }
50
+ return result;
51
+ }
52
+ function joinPathSegments(left, right) {
53
+ if (left.endsWith("/")) {
54
+ return left + right;
55
+ }
56
+ return `${left}/${right}`;
57
+ }
58
+ function trimSlashes(str) {
59
+ if (!str)
60
+ return str;
61
+ let start = 0;
62
+ let end = str.length;
63
+ if (str.startsWith("/"))
64
+ start = 1;
65
+ if (str.endsWith("/"))
66
+ end = str.length - 1;
67
+ return start === 0 && end === str.length ? str : str.slice(start, end);
68
+ }
@@ -0,0 +1,6 @@
1
+ interface QueryStringOptions {
2
+ arrayFormat?: "indices" | "repeat";
3
+ encode?: boolean;
4
+ }
5
+ export declare function toQueryString(obj: unknown, options?: QueryStringOptions): string;
6
+ export {};
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toQueryString = toQueryString;
4
+ const defaultQsOptions = {
5
+ arrayFormat: "indices",
6
+ encode: true,
7
+ };
8
+ function encodeValue(value, shouldEncode) {
9
+ if (value === undefined) {
10
+ return "";
11
+ }
12
+ if (value === null) {
13
+ return "";
14
+ }
15
+ const stringValue = String(value);
16
+ return shouldEncode ? encodeURIComponent(stringValue) : stringValue;
17
+ }
18
+ function stringifyObject(obj, prefix = "", options) {
19
+ const parts = [];
20
+ for (const [key, value] of Object.entries(obj)) {
21
+ const fullKey = prefix ? `${prefix}[${key}]` : key;
22
+ if (value === undefined) {
23
+ continue;
24
+ }
25
+ if (Array.isArray(value)) {
26
+ if (value.length === 0) {
27
+ continue;
28
+ }
29
+ for (let i = 0; i < value.length; i++) {
30
+ const item = value[i];
31
+ if (item === undefined) {
32
+ continue;
33
+ }
34
+ if (typeof item === "object" && !Array.isArray(item) && item !== null) {
35
+ const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
36
+ parts.push(...stringifyObject(item, arrayKey, options));
37
+ }
38
+ else {
39
+ const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
40
+ const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey;
41
+ parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`);
42
+ }
43
+ }
44
+ }
45
+ else if (typeof value === "object" && value !== null) {
46
+ if (Object.keys(value).length === 0) {
47
+ continue;
48
+ }
49
+ parts.push(...stringifyObject(value, fullKey, options));
50
+ }
51
+ else {
52
+ const encodedKey = options.encode ? encodeURIComponent(fullKey) : fullKey;
53
+ parts.push(`${encodedKey}=${encodeValue(value, options.encode)}`);
54
+ }
55
+ }
56
+ return parts;
57
+ }
58
+ function toQueryString(obj, options) {
59
+ if (obj == null || typeof obj !== "object") {
60
+ return "";
61
+ }
62
+ const parts = stringifyObject(obj, "", Object.assign(Object.assign({}, defaultQsOptions), options));
63
+ return parts.join("&");
64
+ }
@@ -0,0 +1,4 @@
1
+ export declare const CatchAllApiEnvironment: {
2
+ readonly Default: "https://catchall.newscatcherapi.com";
3
+ };
4
+ export type CatchAllApiEnvironment = typeof CatchAllApiEnvironment.Default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CatchAllApiEnvironment = void 0;
5
+ exports.CatchAllApiEnvironment = {
6
+ Default: "https://catchall.newscatcherapi.com",
7
+ };
@@ -0,0 +1,12 @@
1
+ import type * as core from "../core/index.js";
2
+ export declare class CatchAllApiError extends Error {
3
+ readonly statusCode?: number;
4
+ readonly body?: unknown;
5
+ readonly rawResponse?: core.RawResponse;
6
+ constructor({ message, statusCode, body, rawResponse, }: {
7
+ message?: string;
8
+ statusCode?: number;
9
+ body?: unknown;
10
+ rawResponse?: core.RawResponse;
11
+ });
12
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CatchAllApiError = void 0;
5
+ const json_js_1 = require("../core/json.js");
6
+ class CatchAllApiError extends Error {
7
+ constructor({ message, statusCode, body, rawResponse, }) {
8
+ super(buildMessage({ message, statusCode, body }));
9
+ Object.setPrototypeOf(this, CatchAllApiError.prototype);
10
+ this.statusCode = statusCode;
11
+ this.body = body;
12
+ this.rawResponse = rawResponse;
13
+ }
14
+ }
15
+ exports.CatchAllApiError = CatchAllApiError;
16
+ function buildMessage({ message, statusCode, body, }) {
17
+ const lines = [];
18
+ if (message != null) {
19
+ lines.push(message);
20
+ }
21
+ if (statusCode != null) {
22
+ lines.push(`Status code: ${statusCode.toString()}`);
23
+ }
24
+ if (body != null) {
25
+ lines.push(`Body: ${(0, json_js_1.toJson)(body, undefined, 2)}`);
26
+ }
27
+ return lines.join("\n");
28
+ }
@@ -0,0 +1,3 @@
1
+ export declare class CatchAllApiTimeoutError extends Error {
2
+ constructor(message: string);
3
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CatchAllApiTimeoutError = void 0;
5
+ class CatchAllApiTimeoutError extends Error {
6
+ constructor(message) {
7
+ super(message);
8
+ Object.setPrototypeOf(this, CatchAllApiTimeoutError.prototype);
9
+ }
10
+ }
11
+ exports.CatchAllApiTimeoutError = CatchAllApiTimeoutError;
@@ -0,0 +1,2 @@
1
+ export { CatchAllApiError } from "./CatchAllApiError.js";
2
+ export { CatchAllApiTimeoutError } from "./CatchAllApiTimeoutError.js";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatchAllApiTimeoutError = exports.CatchAllApiError = void 0;
4
+ var CatchAllApiError_js_1 = require("./CatchAllApiError.js");
5
+ Object.defineProperty(exports, "CatchAllApiError", { enumerable: true, get: function () { return CatchAllApiError_js_1.CatchAllApiError; } });
6
+ var CatchAllApiTimeoutError_js_1 = require("./CatchAllApiTimeoutError.js");
7
+ Object.defineProperty(exports, "CatchAllApiTimeoutError", { enumerable: true, get: function () { return CatchAllApiTimeoutError_js_1.CatchAllApiTimeoutError; } });
@@ -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);
@@ -0,0 +1,6 @@
1
+ export * as CatchAllApi from "./api/index.js";
2
+ export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
3
+ export { CatchAllApiClient } from "./Client.js";
4
+ export { CatchAllApiEnvironment } from "./environments.js";
5
+ export { CatchAllApiError, CatchAllApiTimeoutError } from "./errors/index.js";
6
+ export * from "./exports.js";
@@ -0,0 +1,48 @@
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 __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
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CatchAllApiTimeoutError = exports.CatchAllApiError = exports.CatchAllApiEnvironment = exports.CatchAllApiClient = exports.CatchAllApi = void 0;
40
+ exports.CatchAllApi = __importStar(require("./api/index.js"));
41
+ var Client_js_1 = require("./Client.js");
42
+ Object.defineProperty(exports, "CatchAllApiClient", { enumerable: true, get: function () { return Client_js_1.CatchAllApiClient; } });
43
+ var environments_js_1 = require("./environments.js");
44
+ Object.defineProperty(exports, "CatchAllApiEnvironment", { enumerable: true, get: function () { return environments_js_1.CatchAllApiEnvironment; } });
45
+ var index_js_1 = require("./errors/index.js");
46
+ Object.defineProperty(exports, "CatchAllApiError", { enumerable: true, get: function () { return index_js_1.CatchAllApiError; } });
47
+ Object.defineProperty(exports, "CatchAllApiTimeoutError", { enumerable: true, get: function () { return index_js_1.CatchAllApiTimeoutError; } });
48
+ __exportStar(require("./exports.js"), exports);
@@ -0,0 +1 @@
1
+ export declare const SDK_VERSION = "0.1.0";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_VERSION = void 0;
4
+ exports.SDK_VERSION = "0.1.0";
@@ -0,0 +1,31 @@
1
+ import * as core from "./core/index.mjs";
2
+ import type * as environments from "./environments.mjs";
3
+ export interface BaseClientOptions {
4
+ environment?: core.Supplier<environments.CatchAllApiEnvironment | string>;
5
+ /** Specify a custom URL to connect the client to. */
6
+ baseUrl?: core.Supplier<string>;
7
+ apiKey?: core.Supplier<string | undefined>;
8
+ /** Additional headers to include in requests. */
9
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
+ /** The default maximum time to wait for a response in seconds. */
11
+ timeoutInSeconds?: number;
12
+ /** The default number of times to retry the request. Defaults to 2. */
13
+ maxRetries?: number;
14
+ /** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
15
+ fetch?: typeof fetch;
16
+ /** Configure logging for the client. */
17
+ logging?: core.logging.LogConfig | core.logging.Logger;
18
+ }
19
+ export interface BaseRequestOptions {
20
+ /** The maximum time to wait for a response in seconds. */
21
+ timeoutInSeconds?: number;
22
+ /** The number of times to retry the request. Defaults to 2. */
23
+ maxRetries?: number;
24
+ /** A hook to abort the request. */
25
+ abortSignal?: AbortSignal;
26
+ /** Additional query string parameters to include in the request. */
27
+ queryParams?: Record<string, unknown>;
28
+ /** Additional headers to include in the request. */
29
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
30
+ }
31
+ export declare function normalizeClientOptions<T extends BaseClientOptions>(options: T): T;
@@ -0,0 +1,14 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { mergeHeaders } from "./core/headers.mjs";
3
+ import * as core from "./core/index.mjs";
4
+ export function normalizeClientOptions(options) {
5
+ const headers = mergeHeaders({
6
+ "X-Fern-Language": "JavaScript",
7
+ "X-Fern-SDK-Name": "newscatcher-catchall-sdk",
8
+ "X-Fern-SDK-Version": "0.1.0",
9
+ "User-Agent": "newscatcher-catchall-sdk/0.1.0",
10
+ "X-Fern-Runtime": core.RUNTIME.type,
11
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
12
+ }, options === null || options === void 0 ? void 0 : options.headers);
13
+ return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
14
+ }
@@ -0,0 +1,20 @@
1
+ import { JobsClient } from "./api/resources/jobs/client/Client.mjs";
2
+ import { MetaClient } from "./api/resources/meta/client/Client.mjs";
3
+ import { MonitorsClient } from "./api/resources/monitors/client/Client.mjs";
4
+ import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
5
+ export declare namespace CatchAllApiClient {
6
+ interface Options extends BaseClientOptions {
7
+ }
8
+ interface RequestOptions extends BaseRequestOptions {
9
+ }
10
+ }
11
+ export declare class CatchAllApiClient {
12
+ protected readonly _options: CatchAllApiClient.Options;
13
+ protected _jobs: JobsClient | undefined;
14
+ protected _monitors: MonitorsClient | undefined;
15
+ protected _meta: MetaClient | undefined;
16
+ constructor(options?: CatchAllApiClient.Options);
17
+ get jobs(): JobsClient;
18
+ get monitors(): MonitorsClient;
19
+ get meta(): MetaClient;
20
+ }
@@ -0,0 +1,22 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { JobsClient } from "./api/resources/jobs/client/Client.mjs";
3
+ import { MetaClient } from "./api/resources/meta/client/Client.mjs";
4
+ import { MonitorsClient } from "./api/resources/monitors/client/Client.mjs";
5
+ import { normalizeClientOptions } from "./BaseClient.mjs";
6
+ export class CatchAllApiClient {
7
+ constructor(options = {}) {
8
+ this._options = normalizeClientOptions(options);
9
+ }
10
+ get jobs() {
11
+ var _a;
12
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new JobsClient(this._options)));
13
+ }
14
+ get monitors() {
15
+ var _a;
16
+ return ((_a = this._monitors) !== null && _a !== void 0 ? _a : (this._monitors = new MonitorsClient(this._options)));
17
+ }
18
+ get meta() {
19
+ var _a;
20
+ return ((_a = this._meta) !== null && _a !== void 0 ? _a : (this._meta = new MetaClient(this._options)));
21
+ }
22
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ import type * as CatchAllApi from "../index.mjs";
4
+ export declare class ForbiddenError extends errors.CatchAllApiError {
5
+ constructor(body: CatchAllApi.Error_, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../errors/index.mjs";
3
+ export class ForbiddenError extends errors.CatchAllApiError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "ForbiddenError",
7
+ statusCode: 403,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, ForbiddenError.prototype);
12
+ }
13
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ import type * as CatchAllApi from "../index.mjs";
4
+ export declare class NotFoundError extends errors.CatchAllApiError {
5
+ constructor(body: CatchAllApi.Error_, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../errors/index.mjs";
3
+ export class NotFoundError extends errors.CatchAllApiError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "NotFoundError",
7
+ statusCode: 404,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, NotFoundError.prototype);
12
+ }
13
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as errors from "../../errors/index.mjs";
3
+ import type * as CatchAllApi from "../index.mjs";
4
+ export declare class UnprocessableEntityError extends errors.CatchAllApiError {
5
+ constructor(body: CatchAllApi.ValidationErrorResponse, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,13 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../errors/index.mjs";
3
+ export class UnprocessableEntityError extends errors.CatchAllApiError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "UnprocessableEntityError",
7
+ statusCode: 422,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
12
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./ForbiddenError.mjs";
2
+ export * from "./NotFoundError.mjs";
3
+ export * from "./UnprocessableEntityError.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./ForbiddenError.mjs";
2
+ export * from "./NotFoundError.mjs";
3
+ export * from "./UnprocessableEntityError.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./errors/index.mjs";
2
+ export * from "./resources/index.mjs";
3
+ export * from "./types/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./errors/index.mjs";
2
+ export * from "./resources/index.mjs";
3
+ export * from "./types/index.mjs";
@@ -0,0 +1,7 @@
1
+ export * from "./jobs/client/requests/index.mjs";
2
+ export * as jobs from "./jobs/index.mjs";
3
+ export * as meta from "./meta/index.mjs";
4
+ export * from "./meta/types/index.mjs";
5
+ export * from "./monitors/client/requests/index.mjs";
6
+ export * as monitors from "./monitors/index.mjs";
7
+ export * from "./monitors/types/index.mjs";
@@ -0,0 +1,7 @@
1
+ export * from "./jobs/client/requests/index.mjs";
2
+ export * as jobs from "./jobs/index.mjs";
3
+ export * as meta from "./meta/index.mjs";
4
+ export * from "./meta/types/index.mjs";
5
+ export * from "./monitors/client/requests/index.mjs";
6
+ export * as monitors from "./monitors/index.mjs";
7
+ export * from "./monitors/types/index.mjs";
@@ -0,0 +1,77 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import * as CatchAllApi from "../../../index.mjs";
4
+ export declare namespace JobsClient {
5
+ interface Options extends BaseClientOptions {
6
+ }
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Operations to create, monitor, and retrieve job results.
12
+ */
13
+ export declare class JobsClient {
14
+ protected readonly _options: JobsClient.Options;
15
+ constructor(options?: JobsClient.Options);
16
+ /**
17
+ * Submit a natural language query to create a new processing job.
18
+ *
19
+ * @param {CatchAllApi.SubmitRequestDto} request
20
+ * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link CatchAllApi.ForbiddenError}
23
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
24
+ *
25
+ * @example
26
+ * await client.jobs.createJob({
27
+ * query: "Tech company earnings this quarter",
28
+ * schema: "Company [NAME] earned [REVENUE] in [QUARTER]",
29
+ * context: "Focus on revenue and profit margins"
30
+ * })
31
+ */
32
+ createJob(request: CatchAllApi.SubmitRequestDto, requestOptions?: JobsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.SubmitResponseBody>;
33
+ private __createJob;
34
+ /**
35
+ * Retrieve the current processing status of a job.
36
+ *
37
+ * @param {CatchAllApi.GetJobStatusRequest} request
38
+ * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link CatchAllApi.ForbiddenError}
41
+ * @throws {@link CatchAllApi.NotFoundError}
42
+ *
43
+ * @example
44
+ * await client.jobs.getJobStatus({
45
+ * job_id: "af7a26d6-cf0b-458c-a6ed-4b6318c74da3"
46
+ * })
47
+ */
48
+ getJobStatus(request: CatchAllApi.GetJobStatusRequest, requestOptions?: JobsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.StatusResponseDto>;
49
+ private __getJobStatus;
50
+ /**
51
+ * Returns all jobs created by the authenticated user.
52
+ *
53
+ * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @example
56
+ * await client.jobs.getUserJobs()
57
+ */
58
+ getUserJobs(requestOptions?: JobsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.ListUserJobsResponseDto[]>;
59
+ private __getUserJobs;
60
+ /**
61
+ * Retrieve the final results for a completed job.
62
+ *
63
+ * @param {CatchAllApi.GetJobResultsRequest} request
64
+ * @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @throws {@link CatchAllApi.ForbiddenError}
67
+ * @throws {@link CatchAllApi.NotFoundError}
68
+ *
69
+ * @example
70
+ * await client.jobs.getJobResults({
71
+ * job_id: "af7a26d6-cf0b-458c-a6ed-4b6318c74da3"
72
+ * })
73
+ */
74
+ getJobResults(request: CatchAllApi.GetJobResultsRequest, requestOptions?: JobsClient.RequestOptions): core.HttpResponsePromise<CatchAllApi.PullJobResponseDto>;
75
+ private __getJobResults;
76
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
77
+ }