newscatcher-catchall-sdk 2.0.0 → 3.0.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 (347) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +10 -0
  5. package/dist/cjs/api/resources/datasets/client/Client.d.ts +2 -1
  6. package/dist/cjs/api/resources/datasets/client/Client.js +4 -2
  7. package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.d.ts +4 -1
  8. package/dist/cjs/api/resources/index.d.ts +5 -0
  9. package/dist/cjs/api/resources/index.js +6 -1
  10. package/dist/cjs/api/resources/jobs/client/Client.d.ts +21 -1
  11. package/dist/cjs/api/resources/jobs/client/Client.js +63 -2
  12. package/dist/cjs/api/resources/jobs/client/requests/GetUserJobsRequest.d.ts +5 -1
  13. package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +4 -0
  14. package/dist/cjs/api/resources/jobs/client/requests/ValidateQueryRequestDto.d.ts +10 -0
  15. package/dist/cjs/api/resources/jobs/client/requests/ValidateQueryRequestDto.js +3 -0
  16. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/monitors/client/Client.d.ts +5 -15
  18. package/dist/cjs/api/resources/monitors/client/Client.js +7 -16
  19. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +10 -10
  20. package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.d.ts +5 -1
  21. package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.ts +7 -10
  22. package/dist/cjs/api/resources/monitors/types/DisableMonitorResponse.d.ts +1 -1
  23. package/dist/cjs/api/resources/monitors/types/EnableMonitorResponse.d.ts +1 -1
  24. package/dist/cjs/api/resources/projects/client/Client.d.ts +178 -0
  25. package/dist/cjs/api/resources/projects/client/Client.js +626 -0
  26. package/dist/cjs/api/resources/projects/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/projects/client/index.js +17 -0
  28. package/dist/cjs/api/resources/projects/client/requests/AddResourceRequestDto.d.ts +17 -0
  29. package/dist/cjs/api/resources/projects/client/requests/AddResourceRequestDto.js +3 -0
  30. package/dist/cjs/api/resources/projects/client/requests/CreateProjectRequestDto.d.ts +13 -0
  31. package/dist/cjs/api/resources/projects/client/requests/CreateProjectRequestDto.js +3 -0
  32. package/dist/cjs/api/resources/projects/client/requests/DeleteProjectRequest.d.ts +12 -0
  33. package/dist/cjs/api/resources/projects/client/requests/DeleteProjectRequest.js +3 -0
  34. package/dist/cjs/api/resources/projects/client/requests/GetProjectOverviewRequest.d.ts +10 -0
  35. package/dist/cjs/api/resources/projects/client/requests/GetProjectOverviewRequest.js +3 -0
  36. package/dist/cjs/api/resources/projects/client/requests/GetProjectRequest.d.ts +10 -0
  37. package/dist/cjs/api/resources/projects/client/requests/GetProjectRequest.js +3 -0
  38. package/dist/cjs/api/resources/projects/client/requests/ListProjectResourcesRequest.d.ts +16 -0
  39. package/dist/cjs/api/resources/projects/client/requests/ListProjectResourcesRequest.js +3 -0
  40. package/dist/cjs/api/resources/projects/client/requests/ListProjectsRequest.d.ts +16 -0
  41. package/dist/cjs/api/resources/projects/client/requests/ListProjectsRequest.js +3 -0
  42. package/dist/cjs/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.d.ts +16 -0
  43. package/dist/cjs/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.js +3 -0
  44. package/dist/cjs/api/resources/projects/client/requests/UpdateProjectRequestDto.d.ts +15 -0
  45. package/dist/cjs/api/resources/projects/client/requests/UpdateProjectRequestDto.js +3 -0
  46. package/dist/cjs/api/resources/projects/client/requests/index.d.ts +9 -0
  47. package/dist/cjs/api/resources/projects/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/projects/exports.d.ts +2 -0
  49. package/dist/cjs/api/resources/projects/exports.js +21 -0
  50. package/dist/cjs/api/resources/projects/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/projects/index.js +17 -0
  52. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +231 -0
  53. package/dist/cjs/api/resources/webhooks/client/Client.js +779 -0
  54. package/dist/cjs/api/resources/webhooks/client/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
  56. package/dist/cjs/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.d.ts +17 -0
  57. package/dist/cjs/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.js +3 -0
  58. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequestDto.d.ts +42 -0
  59. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequestDto.js +3 -0
  60. package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhookRequest.d.ts +10 -0
  61. package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhookRequest.js +3 -0
  62. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.d.ts +18 -0
  63. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.js +3 -0
  64. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookRequest.d.ts +10 -0
  65. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookRequest.js +3 -0
  66. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.d.ts +16 -0
  67. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.js +3 -0
  68. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.d.ts +19 -0
  69. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.js +3 -0
  70. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +12 -0
  71. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksRequest.js +3 -0
  72. package/dist/cjs/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.d.ts +16 -0
  73. package/dist/cjs/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.js +3 -0
  74. package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequestDto.d.ts +19 -0
  75. package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequestDto.js +3 -0
  76. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.d.ts +30 -0
  77. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.js +3 -0
  78. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +11 -0
  79. package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
  80. package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
  81. package/dist/cjs/api/resources/webhooks/exports.js +21 -0
  82. package/dist/cjs/api/resources/webhooks/index.d.ts +2 -0
  83. package/dist/cjs/api/resources/webhooks/index.js +18 -0
  84. package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.d.ts +19 -0
  85. package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.js +3 -0
  86. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.d.ts +16 -0
  87. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.js +3 -0
  88. package/dist/cjs/api/resources/webhooks/types/index.d.ts +2 -0
  89. package/dist/cjs/api/resources/webhooks/types/index.js +18 -0
  90. package/dist/cjs/api/types/AddResourceResponseDto.d.ts +9 -0
  91. package/dist/cjs/api/types/AddResourceResponseDto.js +3 -0
  92. package/dist/cjs/api/types/ApiKeyAuthDto.d.ts +6 -0
  93. package/dist/cjs/api/types/ApiKeyAuthDto.js +3 -0
  94. package/dist/cjs/api/types/AssignWebhookResourceResponseDto.d.ts +11 -0
  95. package/dist/cjs/api/types/AssignWebhookResourceResponseDto.js +3 -0
  96. package/dist/cjs/api/types/BasicAuthDto.d.ts +6 -0
  97. package/dist/cjs/api/types/BasicAuthDto.js +3 -0
  98. package/dist/cjs/api/types/BearerAuthDto.d.ts +4 -0
  99. package/dist/cjs/api/types/BearerAuthDto.js +3 -0
  100. package/dist/cjs/api/types/ConnectedEntity.d.ts +1 -1
  101. package/dist/cjs/api/types/CreateProjectResponseDto.d.ts +10 -0
  102. package/dist/cjs/api/types/CreateProjectResponseDto.js +3 -0
  103. package/dist/cjs/api/types/CreateWebhookResponseDto.d.ts +9 -0
  104. package/dist/cjs/api/types/CreateWebhookResponseDto.js +3 -0
  105. package/dist/cjs/api/types/DeleteJobResponseDto.d.ts +1 -1
  106. package/dist/cjs/api/types/DeleteMonitorResponseDto.d.ts +1 -1
  107. package/dist/cjs/api/types/DeliveryHistoryItemDto.d.ts +25 -0
  108. package/dist/cjs/api/types/DeliveryHistoryItemDto.js +3 -0
  109. package/dist/cjs/api/types/DeliveryHistoryResponseDto.d.ts +17 -0
  110. package/dist/cjs/api/types/DeliveryHistoryResponseDto.js +3 -0
  111. package/dist/cjs/api/types/DeliveryMode.d.ts +11 -0
  112. package/dist/cjs/api/types/DeliveryMode.js +14 -0
  113. package/dist/cjs/api/types/DeliveryStatus.d.ts +6 -0
  114. package/dist/cjs/api/types/DeliveryStatus.js +9 -0
  115. package/dist/cjs/api/types/GetWebhookResponseDto.d.ts +9 -0
  116. package/dist/cjs/api/types/GetWebhookResponseDto.js +3 -0
  117. package/dist/cjs/api/types/HttpMethod.d.ts +9 -0
  118. package/dist/cjs/api/types/HttpMethod.js +12 -0
  119. package/dist/cjs/api/types/IssueType.d.ts +25 -0
  120. package/dist/cjs/api/types/IssueType.js +28 -0
  121. package/dist/cjs/api/types/JobStep.d.ts +1 -1
  122. package/dist/cjs/api/types/ListWebhookResourcesResponseDto.d.ts +13 -0
  123. package/dist/cjs/api/types/ListWebhookResourcesResponseDto.js +3 -0
  124. package/dist/cjs/api/types/ListWebhooksResponseDto.d.ts +13 -0
  125. package/dist/cjs/api/types/ListWebhooksResponseDto.js +3 -0
  126. package/dist/cjs/api/types/MappableResourceType.d.ts +7 -0
  127. package/dist/cjs/api/types/MappableResourceType.js +10 -0
  128. package/dist/cjs/api/types/MonitorListItemDto.d.ts +1 -1
  129. package/dist/cjs/api/types/MonitorStatusHistoryResponseDto.d.ts +1 -1
  130. package/dist/cjs/api/types/ProjectListResponseDto.d.ts +13 -0
  131. package/dist/cjs/api/types/ProjectListResponseDto.js +3 -0
  132. package/dist/cjs/api/types/ProjectOverviewCountsDto.d.ts +4 -0
  133. package/dist/cjs/api/types/ProjectOverviewCountsDto.js +3 -0
  134. package/dist/cjs/api/types/ProjectOverviewResponseDto.d.ts +18 -0
  135. package/dist/cjs/api/types/ProjectOverviewResponseDto.js +3 -0
  136. package/dist/cjs/api/types/ProjectResourceDto.d.ts +18 -0
  137. package/dist/cjs/api/types/ProjectResourceDto.js +3 -0
  138. package/dist/cjs/api/types/ProjectResourceListResponseDto.d.ts +13 -0
  139. package/dist/cjs/api/types/ProjectResourceListResponseDto.js +3 -0
  140. package/dist/cjs/api/types/ProjectResourceType.d.ts +8 -0
  141. package/dist/cjs/api/types/ProjectResourceType.js +11 -0
  142. package/dist/cjs/api/types/ProjectResponseDto.d.ts +18 -0
  143. package/dist/cjs/api/types/ProjectResponseDto.js +3 -0
  144. package/dist/cjs/api/types/ProjectSummaryDto.d.ts +17 -0
  145. package/dist/cjs/api/types/ProjectSummaryDto.js +3 -0
  146. package/dist/cjs/api/types/QueryStatus.d.ts +13 -0
  147. package/dist/cjs/api/types/QueryStatus.js +16 -0
  148. package/dist/cjs/api/types/RemoveResourceResponseDto.d.ts +6 -0
  149. package/dist/cjs/api/types/RemoveResourceResponseDto.js +3 -0
  150. package/dist/cjs/api/types/ResourceItemDto.d.ts +6 -0
  151. package/dist/cjs/api/types/ResourceItemDto.js +3 -0
  152. package/dist/cjs/api/types/ResourceResultDto.d.ts +12 -0
  153. package/dist/cjs/api/types/ResourceResultDto.js +3 -0
  154. package/dist/cjs/api/types/Suggestion.d.ts +12 -0
  155. package/dist/cjs/api/types/Suggestion.js +3 -0
  156. package/dist/cjs/api/types/TestWebhookResponseDto.d.ts +10 -0
  157. package/dist/cjs/api/types/TestWebhookResponseDto.js +3 -0
  158. package/dist/cjs/api/types/UpdateProjectResponseDto.d.ts +8 -0
  159. package/dist/cjs/api/types/UpdateProjectResponseDto.js +3 -0
  160. package/dist/cjs/api/types/UpdateWebhookResponseDto.d.ts +9 -0
  161. package/dist/cjs/api/types/UpdateWebhookResponseDto.js +3 -0
  162. package/dist/cjs/api/types/ValidateQueryResponseDto.d.ts +18 -0
  163. package/dist/cjs/api/types/ValidateQueryResponseDto.js +3 -0
  164. package/dist/cjs/api/types/WebhookResourceMappingResponseDto.d.ts +12 -0
  165. package/dist/cjs/api/types/WebhookResourceMappingResponseDto.js +3 -0
  166. package/dist/cjs/api/types/WebhookResponseDto.d.ts +28 -0
  167. package/dist/cjs/api/types/WebhookResponseDto.js +3 -0
  168. package/dist/cjs/api/types/WebhookType.d.ts +17 -0
  169. package/dist/cjs/api/types/WebhookType.js +20 -0
  170. package/dist/cjs/api/types/index.d.ts +37 -0
  171. package/dist/cjs/api/types/index.js +37 -0
  172. package/dist/cjs/version.d.ts +1 -1
  173. package/dist/cjs/version.js +1 -1
  174. package/dist/esm/BaseClient.mjs +2 -2
  175. package/dist/esm/Client.d.mts +6 -0
  176. package/dist/esm/Client.mjs +10 -0
  177. package/dist/esm/api/resources/datasets/client/Client.d.mts +2 -1
  178. package/dist/esm/api/resources/datasets/client/Client.mjs +4 -2
  179. package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.d.mts +4 -1
  180. package/dist/esm/api/resources/index.d.mts +5 -0
  181. package/dist/esm/api/resources/index.mjs +5 -0
  182. package/dist/esm/api/resources/jobs/client/Client.d.mts +21 -1
  183. package/dist/esm/api/resources/jobs/client/Client.mjs +63 -2
  184. package/dist/esm/api/resources/jobs/client/requests/GetUserJobsRequest.d.mts +5 -1
  185. package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +4 -0
  186. package/dist/esm/api/resources/jobs/client/requests/ValidateQueryRequestDto.d.mts +10 -0
  187. package/dist/esm/api/resources/jobs/client/requests/ValidateQueryRequestDto.mjs +2 -0
  188. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -0
  189. package/dist/esm/api/resources/monitors/client/Client.d.mts +5 -15
  190. package/dist/esm/api/resources/monitors/client/Client.mjs +7 -16
  191. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +10 -10
  192. package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.d.mts +5 -1
  193. package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.mts +7 -10
  194. package/dist/esm/api/resources/monitors/types/DisableMonitorResponse.d.mts +1 -1
  195. package/dist/esm/api/resources/monitors/types/EnableMonitorResponse.d.mts +1 -1
  196. package/dist/esm/api/resources/projects/client/Client.d.mts +178 -0
  197. package/dist/esm/api/resources/projects/client/Client.mjs +589 -0
  198. package/dist/esm/api/resources/projects/client/index.d.mts +1 -0
  199. package/dist/esm/api/resources/projects/client/index.mjs +1 -0
  200. package/dist/esm/api/resources/projects/client/requests/AddResourceRequestDto.d.mts +17 -0
  201. package/dist/esm/api/resources/projects/client/requests/AddResourceRequestDto.mjs +2 -0
  202. package/dist/esm/api/resources/projects/client/requests/CreateProjectRequestDto.d.mts +13 -0
  203. package/dist/esm/api/resources/projects/client/requests/CreateProjectRequestDto.mjs +2 -0
  204. package/dist/esm/api/resources/projects/client/requests/DeleteProjectRequest.d.mts +12 -0
  205. package/dist/esm/api/resources/projects/client/requests/DeleteProjectRequest.mjs +2 -0
  206. package/dist/esm/api/resources/projects/client/requests/GetProjectOverviewRequest.d.mts +10 -0
  207. package/dist/esm/api/resources/projects/client/requests/GetProjectOverviewRequest.mjs +2 -0
  208. package/dist/esm/api/resources/projects/client/requests/GetProjectRequest.d.mts +10 -0
  209. package/dist/esm/api/resources/projects/client/requests/GetProjectRequest.mjs +2 -0
  210. package/dist/esm/api/resources/projects/client/requests/ListProjectResourcesRequest.d.mts +16 -0
  211. package/dist/esm/api/resources/projects/client/requests/ListProjectResourcesRequest.mjs +2 -0
  212. package/dist/esm/api/resources/projects/client/requests/ListProjectsRequest.d.mts +16 -0
  213. package/dist/esm/api/resources/projects/client/requests/ListProjectsRequest.mjs +2 -0
  214. package/dist/esm/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.d.mts +16 -0
  215. package/dist/esm/api/resources/projects/client/requests/RemoveResourceFromProjectRequest.mjs +2 -0
  216. package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequestDto.d.mts +15 -0
  217. package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequestDto.mjs +2 -0
  218. package/dist/esm/api/resources/projects/client/requests/index.d.mts +9 -0
  219. package/dist/esm/api/resources/projects/client/requests/index.mjs +1 -0
  220. package/dist/esm/api/resources/projects/exports.d.mts +2 -0
  221. package/dist/esm/api/resources/projects/exports.mjs +3 -0
  222. package/dist/esm/api/resources/projects/index.d.mts +1 -0
  223. package/dist/esm/api/resources/projects/index.mjs +1 -0
  224. package/dist/esm/api/resources/webhooks/client/Client.d.mts +231 -0
  225. package/dist/esm/api/resources/webhooks/client/Client.mjs +742 -0
  226. package/dist/esm/api/resources/webhooks/client/index.d.mts +1 -0
  227. package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
  228. package/dist/esm/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.d.mts +17 -0
  229. package/dist/esm/api/resources/webhooks/client/requests/AssignWebhookResourceRequestDto.mjs +2 -0
  230. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequestDto.d.mts +42 -0
  231. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequestDto.mjs +2 -0
  232. package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhookRequest.d.mts +10 -0
  233. package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhookRequest.mjs +2 -0
  234. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.d.mts +18 -0
  235. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookDeliveryHistoryRequest.mjs +2 -0
  236. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookRequest.d.mts +10 -0
  237. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookRequest.mjs +2 -0
  238. package/dist/esm/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.d.mts +16 -0
  239. package/dist/esm/api/resources/webhooks/client/requests/ListWebhookResourcesRequest.mjs +2 -0
  240. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.d.mts +19 -0
  241. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksForResourceRequest.mjs +2 -0
  242. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.d.mts +12 -0
  243. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.mjs +2 -0
  244. package/dist/esm/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.d.mts +16 -0
  245. package/dist/esm/api/resources/webhooks/client/requests/RemoveWebhookResourceRequest.mjs +2 -0
  246. package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequestDto.d.mts +19 -0
  247. package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequestDto.mjs +2 -0
  248. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.d.mts +30 -0
  249. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequestDto.mjs +2 -0
  250. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +11 -0
  251. package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
  252. package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
  253. package/dist/esm/api/resources/webhooks/exports.mjs +3 -0
  254. package/dist/esm/api/resources/webhooks/index.d.mts +2 -0
  255. package/dist/esm/api/resources/webhooks/index.mjs +2 -0
  256. package/dist/esm/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.d.mts +19 -0
  257. package/dist/esm/api/resources/webhooks/types/CreateWebhookRequestDtoAuth.mjs +2 -0
  258. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.d.mts +16 -0
  259. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestDtoAuth.mjs +2 -0
  260. package/dist/esm/api/resources/webhooks/types/index.d.mts +2 -0
  261. package/dist/esm/api/resources/webhooks/types/index.mjs +2 -0
  262. package/dist/esm/api/types/AddResourceResponseDto.d.mts +9 -0
  263. package/dist/esm/api/types/AddResourceResponseDto.mjs +2 -0
  264. package/dist/esm/api/types/ApiKeyAuthDto.d.mts +6 -0
  265. package/dist/esm/api/types/ApiKeyAuthDto.mjs +2 -0
  266. package/dist/esm/api/types/AssignWebhookResourceResponseDto.d.mts +11 -0
  267. package/dist/esm/api/types/AssignWebhookResourceResponseDto.mjs +2 -0
  268. package/dist/esm/api/types/BasicAuthDto.d.mts +6 -0
  269. package/dist/esm/api/types/BasicAuthDto.mjs +2 -0
  270. package/dist/esm/api/types/BearerAuthDto.d.mts +4 -0
  271. package/dist/esm/api/types/BearerAuthDto.mjs +2 -0
  272. package/dist/esm/api/types/ConnectedEntity.d.mts +1 -1
  273. package/dist/esm/api/types/CreateProjectResponseDto.d.mts +10 -0
  274. package/dist/esm/api/types/CreateProjectResponseDto.mjs +2 -0
  275. package/dist/esm/api/types/CreateWebhookResponseDto.d.mts +9 -0
  276. package/dist/esm/api/types/CreateWebhookResponseDto.mjs +2 -0
  277. package/dist/esm/api/types/DeleteJobResponseDto.d.mts +1 -1
  278. package/dist/esm/api/types/DeleteMonitorResponseDto.d.mts +1 -1
  279. package/dist/esm/api/types/DeliveryHistoryItemDto.d.mts +25 -0
  280. package/dist/esm/api/types/DeliveryHistoryItemDto.mjs +2 -0
  281. package/dist/esm/api/types/DeliveryHistoryResponseDto.d.mts +17 -0
  282. package/dist/esm/api/types/DeliveryHistoryResponseDto.mjs +2 -0
  283. package/dist/esm/api/types/DeliveryMode.d.mts +11 -0
  284. package/dist/esm/api/types/DeliveryMode.mjs +11 -0
  285. package/dist/esm/api/types/DeliveryStatus.d.mts +6 -0
  286. package/dist/esm/api/types/DeliveryStatus.mjs +6 -0
  287. package/dist/esm/api/types/GetWebhookResponseDto.d.mts +9 -0
  288. package/dist/esm/api/types/GetWebhookResponseDto.mjs +2 -0
  289. package/dist/esm/api/types/HttpMethod.d.mts +9 -0
  290. package/dist/esm/api/types/HttpMethod.mjs +9 -0
  291. package/dist/esm/api/types/IssueType.d.mts +25 -0
  292. package/dist/esm/api/types/IssueType.mjs +25 -0
  293. package/dist/esm/api/types/JobStep.d.mts +1 -1
  294. package/dist/esm/api/types/ListWebhookResourcesResponseDto.d.mts +13 -0
  295. package/dist/esm/api/types/ListWebhookResourcesResponseDto.mjs +2 -0
  296. package/dist/esm/api/types/ListWebhooksResponseDto.d.mts +13 -0
  297. package/dist/esm/api/types/ListWebhooksResponseDto.mjs +2 -0
  298. package/dist/esm/api/types/MappableResourceType.d.mts +7 -0
  299. package/dist/esm/api/types/MappableResourceType.mjs +7 -0
  300. package/dist/esm/api/types/MonitorListItemDto.d.mts +1 -1
  301. package/dist/esm/api/types/MonitorStatusHistoryResponseDto.d.mts +1 -1
  302. package/dist/esm/api/types/ProjectListResponseDto.d.mts +13 -0
  303. package/dist/esm/api/types/ProjectListResponseDto.mjs +2 -0
  304. package/dist/esm/api/types/ProjectOverviewCountsDto.d.mts +4 -0
  305. package/dist/esm/api/types/ProjectOverviewCountsDto.mjs +2 -0
  306. package/dist/esm/api/types/ProjectOverviewResponseDto.d.mts +18 -0
  307. package/dist/esm/api/types/ProjectOverviewResponseDto.mjs +2 -0
  308. package/dist/esm/api/types/ProjectResourceDto.d.mts +18 -0
  309. package/dist/esm/api/types/ProjectResourceDto.mjs +2 -0
  310. package/dist/esm/api/types/ProjectResourceListResponseDto.d.mts +13 -0
  311. package/dist/esm/api/types/ProjectResourceListResponseDto.mjs +2 -0
  312. package/dist/esm/api/types/ProjectResourceType.d.mts +8 -0
  313. package/dist/esm/api/types/ProjectResourceType.mjs +8 -0
  314. package/dist/esm/api/types/ProjectResponseDto.d.mts +18 -0
  315. package/dist/esm/api/types/ProjectResponseDto.mjs +2 -0
  316. package/dist/esm/api/types/ProjectSummaryDto.d.mts +17 -0
  317. package/dist/esm/api/types/ProjectSummaryDto.mjs +2 -0
  318. package/dist/esm/api/types/QueryStatus.d.mts +13 -0
  319. package/dist/esm/api/types/QueryStatus.mjs +13 -0
  320. package/dist/esm/api/types/RemoveResourceResponseDto.d.mts +6 -0
  321. package/dist/esm/api/types/RemoveResourceResponseDto.mjs +2 -0
  322. package/dist/esm/api/types/ResourceItemDto.d.mts +6 -0
  323. package/dist/esm/api/types/ResourceItemDto.mjs +2 -0
  324. package/dist/esm/api/types/ResourceResultDto.d.mts +12 -0
  325. package/dist/esm/api/types/ResourceResultDto.mjs +2 -0
  326. package/dist/esm/api/types/Suggestion.d.mts +12 -0
  327. package/dist/esm/api/types/Suggestion.mjs +2 -0
  328. package/dist/esm/api/types/TestWebhookResponseDto.d.mts +10 -0
  329. package/dist/esm/api/types/TestWebhookResponseDto.mjs +2 -0
  330. package/dist/esm/api/types/UpdateProjectResponseDto.d.mts +8 -0
  331. package/dist/esm/api/types/UpdateProjectResponseDto.mjs +2 -0
  332. package/dist/esm/api/types/UpdateWebhookResponseDto.d.mts +9 -0
  333. package/dist/esm/api/types/UpdateWebhookResponseDto.mjs +2 -0
  334. package/dist/esm/api/types/ValidateQueryResponseDto.d.mts +18 -0
  335. package/dist/esm/api/types/ValidateQueryResponseDto.mjs +2 -0
  336. package/dist/esm/api/types/WebhookResourceMappingResponseDto.d.mts +12 -0
  337. package/dist/esm/api/types/WebhookResourceMappingResponseDto.mjs +2 -0
  338. package/dist/esm/api/types/WebhookResponseDto.d.mts +28 -0
  339. package/dist/esm/api/types/WebhookResponseDto.mjs +2 -0
  340. package/dist/esm/api/types/WebhookType.d.mts +17 -0
  341. package/dist/esm/api/types/WebhookType.mjs +17 -0
  342. package/dist/esm/api/types/index.d.mts +37 -0
  343. package/dist/esm/api/types/index.mjs +37 -0
  344. package/dist/esm/version.d.mts +1 -1
  345. package/dist/esm/version.mjs +1 -1
  346. package/package.json +23 -1
  347. package/reference.md +1599 -201
@@ -0,0 +1,589 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
+ import { mergeHeaders } from "../../../../core/headers.mjs";
24
+ import * as core from "../../../../core/index.mjs";
25
+ import * as environments from "../../../../environments.mjs";
26
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
+ import * as errors from "../../../../errors/index.mjs";
28
+ import * as CatchAllApi from "../../../index.mjs";
29
+ /**
30
+ * Operations to create, organize, and manage projects.
31
+ *
32
+ * A project is a named container for jobs, monitors, and datasets. Group
33
+ * related resources by use case, team, or client, and share them with
34
+ * teammates. Resources can be assigned at creation time or post-hoc.
35
+ */
36
+ export class ProjectsClient {
37
+ constructor(options = {}) {
38
+ this._options = normalizeClientOptionsWithAuth(options);
39
+ }
40
+ /**
41
+ * Returns all projects visible to the authenticated user.
42
+ *
43
+ * @param {CatchAllApi.ListProjectsRequest} request
44
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link CatchAllApi.ForbiddenError}
47
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
48
+ *
49
+ * @example
50
+ * await client.projects.listProjects({
51
+ * search: "M&A"
52
+ * })
53
+ */
54
+ listProjects(request = {}, requestOptions) {
55
+ return core.HttpResponsePromise.fromPromise(this.__listProjects(request, requestOptions));
56
+ }
57
+ __listProjects() {
58
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
59
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
60
+ const { page, page_size: pageSize, search, ownership } = request;
61
+ const _queryParams = {
62
+ page,
63
+ page_size: pageSize,
64
+ search,
65
+ ownership: ownership != null ? ownership : undefined,
66
+ };
67
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
68
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
69
+ const _response = yield core.fetcher({
70
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/projects"),
71
+ method: "GET",
72
+ headers: _headers,
73
+ queryString: core.url
74
+ .queryBuilder()
75
+ .addMany(_queryParams)
76
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
77
+ .build(),
78
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
79
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
82
+ logging: this._options.logging,
83
+ });
84
+ if (_response.ok) {
85
+ return { data: _response.body, rawResponse: _response.rawResponse };
86
+ }
87
+ if (_response.error.reason === "status-code") {
88
+ switch (_response.error.statusCode) {
89
+ case 403:
90
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
91
+ case 422:
92
+ throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
93
+ default:
94
+ throw new errors.CatchAllApiError({
95
+ statusCode: _response.error.statusCode,
96
+ body: _response.error.body,
97
+ rawResponse: _response.rawResponse,
98
+ });
99
+ }
100
+ }
101
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/projects");
102
+ });
103
+ }
104
+ /**
105
+ * Creates a new project.
106
+ *
107
+ * @param {CatchAllApi.CreateProjectRequestDto} request
108
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
109
+ *
110
+ * @throws {@link CatchAllApi.ForbiddenError}
111
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
112
+ *
113
+ * @example
114
+ * await client.projects.createProject({
115
+ * name: "AI M&A Tracking",
116
+ * description: "Tracks AI-related M&A activity for our investment team."
117
+ * })
118
+ */
119
+ createProject(request, requestOptions) {
120
+ return core.HttpResponsePromise.fromPromise(this.__createProject(request, requestOptions));
121
+ }
122
+ __createProject(request, requestOptions) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
125
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
126
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
127
+ const _response = yield core.fetcher({
128
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, "catchAll/projects"),
129
+ method: "POST",
130
+ headers: _headers,
131
+ contentType: "application/json",
132
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
133
+ requestType: "json",
134
+ body: request,
135
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
136
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
137
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
138
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
139
+ logging: this._options.logging,
140
+ });
141
+ if (_response.ok) {
142
+ return { data: _response.body, rawResponse: _response.rawResponse };
143
+ }
144
+ if (_response.error.reason === "status-code") {
145
+ switch (_response.error.statusCode) {
146
+ case 403:
147
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
148
+ case 422:
149
+ throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
150
+ default:
151
+ throw new errors.CatchAllApiError({
152
+ statusCode: _response.error.statusCode,
153
+ body: _response.error.body,
154
+ rawResponse: _response.rawResponse,
155
+ });
156
+ }
157
+ }
158
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/projects");
159
+ });
160
+ }
161
+ /**
162
+ * Returns a single project by ID.
163
+ *
164
+ * @param {CatchAllApi.GetProjectRequest} request
165
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
166
+ *
167
+ * @throws {@link CatchAllApi.ForbiddenError}
168
+ * @throws {@link CatchAllApi.NotFoundError}
169
+ *
170
+ * @example
171
+ * await client.projects.getProject({
172
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
173
+ * })
174
+ */
175
+ getProject(request, requestOptions) {
176
+ return core.HttpResponsePromise.fromPromise(this.__getProject(request, requestOptions));
177
+ }
178
+ __getProject(request, requestOptions) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
181
+ const { project_id: projectId } = request;
182
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
183
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
184
+ const _response = yield core.fetcher({
185
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}`),
186
+ method: "GET",
187
+ headers: _headers,
188
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
189
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
190
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
191
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
192
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
193
+ logging: this._options.logging,
194
+ });
195
+ if (_response.ok) {
196
+ return { data: _response.body, rawResponse: _response.rawResponse };
197
+ }
198
+ if (_response.error.reason === "status-code") {
199
+ switch (_response.error.statusCode) {
200
+ case 403:
201
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
202
+ case 404:
203
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
204
+ default:
205
+ throw new errors.CatchAllApiError({
206
+ statusCode: _response.error.statusCode,
207
+ body: _response.error.body,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ }
211
+ }
212
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/projects/{project_id}");
213
+ });
214
+ }
215
+ /**
216
+ * Deletes a project. By default, assigned resources are unassigned but not deleted.
217
+ *
218
+ * @param {CatchAllApi.DeleteProjectRequest} request
219
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
220
+ *
221
+ * @throws {@link CatchAllApi.ForbiddenError}
222
+ * @throws {@link CatchAllApi.NotFoundError}
223
+ *
224
+ * @example
225
+ * await client.projects.deleteProject({
226
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
227
+ * })
228
+ */
229
+ deleteProject(request, requestOptions) {
230
+ return core.HttpResponsePromise.fromPromise(this.__deleteProject(request, requestOptions));
231
+ }
232
+ __deleteProject(request, requestOptions) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
235
+ const { project_id: projectId, delete_resources: deleteResources } = request;
236
+ const _queryParams = {
237
+ delete_resources: deleteResources,
238
+ };
239
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
240
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
241
+ const _response = yield core.fetcher({
242
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}`),
243
+ method: "DELETE",
244
+ headers: _headers,
245
+ queryString: core.url
246
+ .queryBuilder()
247
+ .addMany(_queryParams)
248
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
249
+ .build(),
250
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
251
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
252
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
253
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
254
+ logging: this._options.logging,
255
+ });
256
+ if (_response.ok) {
257
+ return { data: undefined, rawResponse: _response.rawResponse };
258
+ }
259
+ if (_response.error.reason === "status-code") {
260
+ switch (_response.error.statusCode) {
261
+ case 403:
262
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
263
+ case 404:
264
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
265
+ default:
266
+ throw new errors.CatchAllApiError({
267
+ statusCode: _response.error.statusCode,
268
+ body: _response.error.body,
269
+ rawResponse: _response.rawResponse,
270
+ });
271
+ }
272
+ }
273
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/catchAll/projects/{project_id}");
274
+ });
275
+ }
276
+ /**
277
+ * Updates the name or description of an existing project.
278
+ *
279
+ * @param {CatchAllApi.UpdateProjectRequestDto} request
280
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
281
+ *
282
+ * @throws {@link CatchAllApi.ForbiddenError}
283
+ * @throws {@link CatchAllApi.NotFoundError}
284
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
285
+ *
286
+ * @example
287
+ * await client.projects.updateProject({
288
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04",
289
+ * name: "AI M&A Tracking (Q2 2026)"
290
+ * })
291
+ */
292
+ updateProject(request, requestOptions) {
293
+ return core.HttpResponsePromise.fromPromise(this.__updateProject(request, requestOptions));
294
+ }
295
+ __updateProject(request, requestOptions) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
298
+ const { project_id: projectId } = request, _body = __rest(request, ["project_id"]);
299
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
300
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
+ const _response = yield core.fetcher({
302
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}`),
303
+ method: "PATCH",
304
+ headers: _headers,
305
+ contentType: "application/json",
306
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
307
+ requestType: "json",
308
+ body: _body,
309
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
310
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
311
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
312
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
313
+ logging: this._options.logging,
314
+ });
315
+ if (_response.ok) {
316
+ return { data: _response.body, rawResponse: _response.rawResponse };
317
+ }
318
+ if (_response.error.reason === "status-code") {
319
+ switch (_response.error.statusCode) {
320
+ case 403:
321
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
322
+ case 404:
323
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
324
+ case 422:
325
+ throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
326
+ default:
327
+ throw new errors.CatchAllApiError({
328
+ statusCode: _response.error.statusCode,
329
+ body: _response.error.body,
330
+ rawResponse: _response.rawResponse,
331
+ });
332
+ }
333
+ }
334
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/catchAll/projects/{project_id}");
335
+ });
336
+ }
337
+ /**
338
+ * Returns resource counts for a project, grouped by type and status.
339
+ *
340
+ * For `jobs` and `monitors`, counts are broken down by status (for example, `completed`, `failed`). For `datasets` and `monitor_groups`, only a `total` count is returned.
341
+ *
342
+ * @param {CatchAllApi.GetProjectOverviewRequest} request
343
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
344
+ *
345
+ * @throws {@link CatchAllApi.ForbiddenError}
346
+ * @throws {@link CatchAllApi.NotFoundError}
347
+ *
348
+ * @example
349
+ * await client.projects.getProjectOverview({
350
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
351
+ * })
352
+ */
353
+ getProjectOverview(request, requestOptions) {
354
+ return core.HttpResponsePromise.fromPromise(this.__getProjectOverview(request, requestOptions));
355
+ }
356
+ __getProjectOverview(request, requestOptions) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
359
+ const { project_id: projectId } = request;
360
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
361
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
362
+ const _response = yield core.fetcher({
363
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}/overview`),
364
+ method: "GET",
365
+ headers: _headers,
366
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
367
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
368
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
369
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
370
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
371
+ logging: this._options.logging,
372
+ });
373
+ if (_response.ok) {
374
+ return {
375
+ data: _response.body,
376
+ rawResponse: _response.rawResponse,
377
+ };
378
+ }
379
+ if (_response.error.reason === "status-code") {
380
+ switch (_response.error.statusCode) {
381
+ case 403:
382
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
383
+ case 404:
384
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
385
+ default:
386
+ throw new errors.CatchAllApiError({
387
+ statusCode: _response.error.statusCode,
388
+ body: _response.error.body,
389
+ rawResponse: _response.rawResponse,
390
+ });
391
+ }
392
+ }
393
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/projects/{project_id}/overview");
394
+ });
395
+ }
396
+ /**
397
+ * Returns all resources assigned to a project, with optional filtering by type.
398
+ *
399
+ * @param {CatchAllApi.ListProjectResourcesRequest} request
400
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
401
+ *
402
+ * @throws {@link CatchAllApi.ForbiddenError}
403
+ * @throws {@link CatchAllApi.NotFoundError}
404
+ * @throws {@link CatchAllApi.UnprocessableEntityError}
405
+ *
406
+ * @example
407
+ * await client.projects.listProjectResources({
408
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
409
+ * })
410
+ */
411
+ listProjectResources(request, requestOptions) {
412
+ return core.HttpResponsePromise.fromPromise(this.__listProjectResources(request, requestOptions));
413
+ }
414
+ __listProjectResources(request, requestOptions) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
417
+ const { project_id: projectId, resource_type: resourceType, page, page_size: pageSize } = request;
418
+ const _queryParams = {
419
+ resource_type: resourceType != null ? resourceType : undefined,
420
+ page,
421
+ page_size: pageSize,
422
+ };
423
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
424
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
425
+ const _response = yield core.fetcher({
426
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}/resources`),
427
+ method: "GET",
428
+ headers: _headers,
429
+ queryString: core.url
430
+ .queryBuilder()
431
+ .addMany(_queryParams)
432
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
433
+ .build(),
434
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
435
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
436
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
437
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
438
+ logging: this._options.logging,
439
+ });
440
+ if (_response.ok) {
441
+ return {
442
+ data: _response.body,
443
+ rawResponse: _response.rawResponse,
444
+ };
445
+ }
446
+ if (_response.error.reason === "status-code") {
447
+ switch (_response.error.statusCode) {
448
+ case 403:
449
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
450
+ case 404:
451
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
452
+ case 422:
453
+ throw new CatchAllApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
454
+ default:
455
+ throw new errors.CatchAllApiError({
456
+ statusCode: _response.error.statusCode,
457
+ body: _response.error.body,
458
+ rawResponse: _response.rawResponse,
459
+ });
460
+ }
461
+ }
462
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/catchAll/projects/{project_id}/resources");
463
+ });
464
+ }
465
+ /**
466
+ * Assigns one or more existing resources to a project in a single request.
467
+ *
468
+ * @param {CatchAllApi.AddResourceRequestDto} request
469
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
470
+ *
471
+ * @throws {@link CatchAllApi.BadRequestError}
472
+ * @throws {@link CatchAllApi.ForbiddenError}
473
+ * @throws {@link CatchAllApi.NotFoundError}
474
+ *
475
+ * @example
476
+ * await client.projects.addResourceToProject({
477
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04",
478
+ * resources: [{
479
+ * resource_type: "job",
480
+ * resource_id: "48421e16-1f50-4048-b62c-d3bc0789d30d"
481
+ * }]
482
+ * })
483
+ */
484
+ addResourceToProject(request, requestOptions) {
485
+ return core.HttpResponsePromise.fromPromise(this.__addResourceToProject(request, requestOptions));
486
+ }
487
+ __addResourceToProject(request, requestOptions) {
488
+ return __awaiter(this, void 0, void 0, function* () {
489
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
490
+ const { project_id: projectId } = request, _body = __rest(request, ["project_id"]);
491
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
492
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
493
+ const _response = yield core.fetcher({
494
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}/resources`),
495
+ method: "POST",
496
+ headers: _headers,
497
+ contentType: "application/json",
498
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
499
+ requestType: "json",
500
+ body: _body,
501
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
502
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
503
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
504
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
505
+ logging: this._options.logging,
506
+ });
507
+ if (_response.ok) {
508
+ return { data: _response.body, rawResponse: _response.rawResponse };
509
+ }
510
+ if (_response.error.reason === "status-code") {
511
+ switch (_response.error.statusCode) {
512
+ case 400:
513
+ throw new CatchAllApi.BadRequestError(_response.error.body, _response.rawResponse);
514
+ case 403:
515
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
516
+ case 404:
517
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
518
+ default:
519
+ throw new errors.CatchAllApiError({
520
+ statusCode: _response.error.statusCode,
521
+ body: _response.error.body,
522
+ rawResponse: _response.rawResponse,
523
+ });
524
+ }
525
+ }
526
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/catchAll/projects/{project_id}/resources");
527
+ });
528
+ }
529
+ /**
530
+ * Removes a resource from a project. The resource itself is not
531
+ * deleted — it becomes unassigned and continues to exist.
532
+ *
533
+ * @param {CatchAllApi.RemoveResourceFromProjectRequest} request
534
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
535
+ *
536
+ * @throws {@link CatchAllApi.ForbiddenError}
537
+ * @throws {@link CatchAllApi.NotFoundError}
538
+ *
539
+ * @example
540
+ * await client.projects.removeResourceFromProject({
541
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04",
542
+ * resource_type: "job",
543
+ * resource_id: "48421e16-1f50-4048-b62c-d3bc0789d30d"
544
+ * })
545
+ */
546
+ removeResourceFromProject(request, requestOptions) {
547
+ return core.HttpResponsePromise.fromPromise(this.__removeResourceFromProject(request, requestOptions));
548
+ }
549
+ __removeResourceFromProject(request, requestOptions) {
550
+ return __awaiter(this, void 0, void 0, function* () {
551
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
552
+ const { project_id: projectId, resource_type: resourceType, resource_id: resourceId } = request;
553
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
554
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
555
+ const _response = yield core.fetcher({
556
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CatchAllApiEnvironment.Default, `catchAll/projects/${core.url.encodePathParam(projectId)}/resources/${core.url.encodePathParam(resourceType)}/${core.url.encodePathParam(resourceId)}`),
557
+ method: "DELETE",
558
+ headers: _headers,
559
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
560
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
561
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
562
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
563
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
564
+ logging: this._options.logging,
565
+ });
566
+ if (_response.ok) {
567
+ return {
568
+ data: _response.body,
569
+ rawResponse: _response.rawResponse,
570
+ };
571
+ }
572
+ if (_response.error.reason === "status-code") {
573
+ switch (_response.error.statusCode) {
574
+ case 403:
575
+ throw new CatchAllApi.ForbiddenError(_response.error.body, _response.rawResponse);
576
+ case 404:
577
+ throw new CatchAllApi.NotFoundError(_response.error.body, _response.rawResponse);
578
+ default:
579
+ throw new errors.CatchAllApiError({
580
+ statusCode: _response.error.statusCode,
581
+ body: _response.error.body,
582
+ rawResponse: _response.rawResponse,
583
+ });
584
+ }
585
+ }
586
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/catchAll/projects/{project_id}/resources/{resource_type}/{resource_id}");
587
+ });
588
+ }
589
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,17 @@
1
+ import type * as CatchAllApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04",
6
+ * resources: [{
7
+ * resource_type: "job",
8
+ * resource_id: "48421e16-1f50-4048-b62c-d3bc0789d30d"
9
+ * }]
10
+ * }
11
+ */
12
+ export interface AddResourceRequestDto {
13
+ /** Unique project identifier. */
14
+ project_id: string;
15
+ /** Resources to assign to the project. */
16
+ resources: CatchAllApi.ResourceItemDto[];
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "AI M&A Tracking",
5
+ * description: "Tracks AI-related M&A activity for our investment team."
6
+ * }
7
+ */
8
+ export interface CreateProjectRequestDto {
9
+ /** Name for the project. */
10
+ name: string;
11
+ /** Optional description. */
12
+ description?: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * project_id: "60a85db4-78ec-4b78-876a-bc7d9cdadd04"
5
+ * }
6
+ */
7
+ export interface DeleteProjectRequest {
8
+ /** Unique project identifier. */
9
+ project_id: string;
10
+ /** If true, permanently deletes all resources (jobs, monitors, datasets) assigned to the project. If false, the project is deleted and its resources are unassigned but not deleted. */
11
+ delete_resources?: boolean;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};