@quantum-hub/qhub-api 1.0.4

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 (813) hide show
  1. package/README.md +9 -0
  2. package/dist/api/platform/BaseClient.d.ts +43 -0
  3. package/dist/api/platform/BaseClient.js +66 -0
  4. package/dist/api/platform/Client.d.ts +41 -0
  5. package/dist/api/platform/Client.js +62 -0
  6. package/dist/api/platform/api/errors/BadRequestError.d.ts +5 -0
  7. package/dist/api/platform/api/errors/BadRequestError.js +54 -0
  8. package/dist/api/platform/api/errors/ForbiddenError.d.ts +5 -0
  9. package/dist/api/platform/api/errors/ForbiddenError.js +54 -0
  10. package/dist/api/platform/api/errors/InternalServerError.d.ts +5 -0
  11. package/dist/api/platform/api/errors/InternalServerError.js +54 -0
  12. package/dist/api/platform/api/errors/NotFoundError.d.ts +5 -0
  13. package/dist/api/platform/api/errors/NotFoundError.js +54 -0
  14. package/dist/api/platform/api/errors/UnauthorizedError.d.ts +5 -0
  15. package/dist/api/platform/api/errors/UnauthorizedError.js +54 -0
  16. package/dist/api/platform/api/errors/index.d.ts +5 -0
  17. package/dist/api/platform/api/errors/index.js +21 -0
  18. package/dist/api/platform/api/index.d.ts +3 -0
  19. package/dist/api/platform/api/index.js +19 -0
  20. package/dist/api/platform/api/resources/applications/client/Client.d.ts +120 -0
  21. package/dist/api/platform/api/resources/applications/client/Client.js +425 -0
  22. package/dist/api/platform/api/resources/applications/client/index.d.ts +1 -0
  23. package/dist/api/platform/api/resources/applications/client/index.js +17 -0
  24. package/dist/api/platform/api/resources/applications/client/requests/CreateApplicationRequest.d.ts +7 -0
  25. package/dist/api/platform/api/resources/applications/client/requests/CreateApplicationRequest.js +3 -0
  26. package/dist/api/platform/api/resources/applications/client/requests/DeleteApplicationRequest.d.ts +9 -0
  27. package/dist/api/platform/api/resources/applications/client/requests/DeleteApplicationRequest.js +3 -0
  28. package/dist/api/platform/api/resources/applications/client/requests/GetApplicationAccessKeysRequest.d.ts +9 -0
  29. package/dist/api/platform/api/resources/applications/client/requests/GetApplicationAccessKeysRequest.js +3 -0
  30. package/dist/api/platform/api/resources/applications/client/requests/GetApplicationRequest.d.ts +9 -0
  31. package/dist/api/platform/api/resources/applications/client/requests/GetApplicationRequest.js +3 -0
  32. package/dist/api/platform/api/resources/applications/client/requests/GetApplicationSubscriptionsRequest.d.ts +9 -0
  33. package/dist/api/platform/api/resources/applications/client/requests/GetApplicationSubscriptionsRequest.js +3 -0
  34. package/dist/api/platform/api/resources/applications/client/requests/index.d.ts +5 -0
  35. package/dist/api/platform/api/resources/applications/client/requests/index.js +2 -0
  36. package/dist/api/platform/api/resources/applications/index.d.ts +1 -0
  37. package/dist/api/platform/api/resources/applications/index.js +17 -0
  38. package/dist/api/platform/api/resources/dataPoolShares/client/Client.d.ts +163 -0
  39. package/dist/api/platform/api/resources/dataPoolShares/client/Client.js +538 -0
  40. package/dist/api/platform/api/resources/dataPoolShares/client/index.d.ts +1 -0
  41. package/dist/api/platform/api/resources/dataPoolShares/client/index.js +17 -0
  42. package/dist/api/platform/api/resources/dataPoolShares/client/requests/AddConstraint1Request.d.ts +14 -0
  43. package/dist/api/platform/api/resources/dataPoolShares/client/requests/AddConstraint1Request.js +3 -0
  44. package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteConstraint1Request.d.ts +13 -0
  45. package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteConstraint1Request.js +3 -0
  46. package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteShare1Request.d.ts +11 -0
  47. package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteShare1Request.js +3 -0
  48. package/dist/api/platform/api/resources/dataPoolShares/client/requests/GetSharesForDataPoolRequest.d.ts +9 -0
  49. package/dist/api/platform/api/resources/dataPoolShares/client/requests/GetSharesForDataPoolRequest.js +3 -0
  50. package/dist/api/platform/api/resources/dataPoolShares/client/requests/ShareDataPoolRequest.d.ts +12 -0
  51. package/dist/api/platform/api/resources/dataPoolShares/client/requests/ShareDataPoolRequest.js +3 -0
  52. package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateRole1Request.d.ts +14 -0
  53. package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateRole1Request.js +3 -0
  54. package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateTimeBasedConstraint1Request.d.ts +19 -0
  55. package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateTimeBasedConstraint1Request.js +3 -0
  56. package/dist/api/platform/api/resources/dataPoolShares/client/requests/index.d.ts +7 -0
  57. package/dist/api/platform/api/resources/dataPoolShares/client/requests/index.js +2 -0
  58. package/dist/api/platform/api/resources/dataPoolShares/index.d.ts +2 -0
  59. package/dist/api/platform/api/resources/dataPoolShares/index.js +18 -0
  60. package/dist/api/platform/api/resources/dataPoolShares/types/AddConstraint1Response.d.ts +2 -0
  61. package/dist/api/platform/api/resources/dataPoolShares/types/AddConstraint1Response.js +3 -0
  62. package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1RequestBody.d.ts +2 -0
  63. package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1RequestBody.js +3 -0
  64. package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1Response.d.ts +2 -0
  65. package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1Response.js +3 -0
  66. package/dist/api/platform/api/resources/dataPoolShares/types/index.d.ts +3 -0
  67. package/dist/api/platform/api/resources/dataPoolShares/types/index.js +19 -0
  68. package/dist/api/platform/api/resources/dataPools/client/Client.d.ts +170 -0
  69. package/dist/api/platform/api/resources/dataPools/client/Client.js +624 -0
  70. package/dist/api/platform/api/resources/dataPools/client/index.d.ts +1 -0
  71. package/dist/api/platform/api/resources/dataPools/client/index.js +17 -0
  72. package/dist/api/platform/api/resources/dataPools/client/requests/AddDataPoolFileRequest.d.ts +13 -0
  73. package/dist/api/platform/api/resources/dataPools/client/requests/AddDataPoolFileRequest.js +3 -0
  74. package/dist/api/platform/api/resources/dataPools/client/requests/CreateDataPoolRequest.d.ts +14 -0
  75. package/dist/api/platform/api/resources/dataPools/client/requests/CreateDataPoolRequest.js +3 -0
  76. package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolFileRequest.d.ts +11 -0
  77. package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolFileRequest.js +3 -0
  78. package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolRequest.d.ts +9 -0
  79. package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolRequest.js +3 -0
  80. package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFileRequest.d.ts +11 -0
  81. package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFileRequest.js +3 -0
  82. package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFilesRequest.d.ts +9 -0
  83. package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFilesRequest.js +3 -0
  84. package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolRequest.d.ts +9 -0
  85. package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolRequest.js +3 -0
  86. package/dist/api/platform/api/resources/dataPools/client/requests/UpdateDataPoolRequest.d.ts +17 -0
  87. package/dist/api/platform/api/resources/dataPools/client/requests/UpdateDataPoolRequest.js +3 -0
  88. package/dist/api/platform/api/resources/dataPools/client/requests/index.d.ts +8 -0
  89. package/dist/api/platform/api/resources/dataPools/client/requests/index.js +2 -0
  90. package/dist/api/platform/api/resources/dataPools/index.d.ts +1 -0
  91. package/dist/api/platform/api/resources/dataPools/index.js +17 -0
  92. package/dist/api/platform/api/resources/index.d.ts +23 -0
  93. package/dist/api/platform/api/resources/index.js +62 -0
  94. package/dist/api/platform/api/resources/organizations/client/Client.d.ts +33 -0
  95. package/dist/api/platform/api/resources/organizations/client/Client.js +119 -0
  96. package/dist/api/platform/api/resources/organizations/client/index.d.ts +1 -0
  97. package/dist/api/platform/api/resources/organizations/client/index.js +17 -0
  98. package/dist/api/platform/api/resources/organizations/client/requests/GetServiceExecutions1Request.d.ts +9 -0
  99. package/dist/api/platform/api/resources/organizations/client/requests/GetServiceExecutions1Request.js +3 -0
  100. package/dist/api/platform/api/resources/organizations/client/requests/index.d.ts +1 -0
  101. package/dist/api/platform/api/resources/organizations/client/requests/index.js +2 -0
  102. package/dist/api/platform/api/resources/organizations/index.d.ts +1 -0
  103. package/dist/api/platform/api/resources/organizations/index.js +17 -0
  104. package/dist/api/platform/api/resources/quantumJobs/client/Client.d.ts +31 -0
  105. package/dist/api/platform/api/resources/quantumJobs/client/Client.js +113 -0
  106. package/dist/api/platform/api/resources/quantumJobs/client/index.d.ts +1 -0
  107. package/dist/api/platform/api/resources/quantumJobs/client/index.js +17 -0
  108. package/dist/api/platform/api/resources/quantumJobs/client/requests/GetQuantumJobCostsRequest.d.ts +9 -0
  109. package/dist/api/platform/api/resources/quantumJobs/client/requests/GetQuantumJobCostsRequest.js +3 -0
  110. package/dist/api/platform/api/resources/quantumJobs/client/requests/index.d.ts +1 -0
  111. package/dist/api/platform/api/resources/quantumJobs/client/requests/index.js +2 -0
  112. package/dist/api/platform/api/resources/quantumJobs/index.d.ts +1 -0
  113. package/dist/api/platform/api/resources/quantumJobs/index.js +17 -0
  114. package/dist/api/platform/api/resources/quantumWorkloads/client/Client.d.ts +31 -0
  115. package/dist/api/platform/api/resources/quantumWorkloads/client/Client.js +113 -0
  116. package/dist/api/platform/api/resources/quantumWorkloads/client/index.d.ts +1 -0
  117. package/dist/api/platform/api/resources/quantumWorkloads/client/index.js +17 -0
  118. package/dist/api/platform/api/resources/quantumWorkloads/client/requests/GetQuantumWorkloadCostsRequest.d.ts +9 -0
  119. package/dist/api/platform/api/resources/quantumWorkloads/client/requests/GetQuantumWorkloadCostsRequest.js +3 -0
  120. package/dist/api/platform/api/resources/quantumWorkloads/client/requests/index.d.ts +1 -0
  121. package/dist/api/platform/api/resources/quantumWorkloads/client/requests/index.js +2 -0
  122. package/dist/api/platform/api/resources/quantumWorkloads/index.d.ts +1 -0
  123. package/dist/api/platform/api/resources/quantumWorkloads/index.js +17 -0
  124. package/dist/api/platform/api/resources/serviceExecutions/client/Client.d.ts +167 -0
  125. package/dist/api/platform/api/resources/serviceExecutions/client/Client.js +623 -0
  126. package/dist/api/platform/api/resources/serviceExecutions/client/index.d.ts +1 -0
  127. package/dist/api/platform/api/resources/serviceExecutions/client/index.js +17 -0
  128. package/dist/api/platform/api/resources/serviceExecutions/client/requests/CancelServiceExecutionRequest.d.ts +9 -0
  129. package/dist/api/platform/api/resources/serviceExecutions/client/requests/CancelServiceExecutionRequest.js +3 -0
  130. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionCostsRequest.d.ts +9 -0
  131. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionCostsRequest.js +3 -0
  132. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionLogsRequest.d.ts +13 -0
  133. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionLogsRequest.js +3 -0
  134. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionMetricsRequest.d.ts +9 -0
  135. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionMetricsRequest.js +3 -0
  136. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionRequest.d.ts +9 -0
  137. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionRequest.js +3 -0
  138. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultFileRequest.d.ts +9 -0
  139. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultFileRequest.js +3 -0
  140. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultRequest.d.ts +9 -0
  141. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultRequest.js +3 -0
  142. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionsRequest.d.ts +24 -0
  143. package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionsRequest.js +3 -0
  144. package/dist/api/platform/api/resources/serviceExecutions/client/requests/HeadServiceExecutionRequest.d.ts +9 -0
  145. package/dist/api/platform/api/resources/serviceExecutions/client/requests/HeadServiceExecutionRequest.js +3 -0
  146. package/dist/api/platform/api/resources/serviceExecutions/client/requests/index.d.ts +9 -0
  147. package/dist/api/platform/api/resources/serviceExecutions/client/requests/index.js +2 -0
  148. package/dist/api/platform/api/resources/serviceExecutions/index.d.ts +2 -0
  149. package/dist/api/platform/api/resources/serviceExecutions/index.js +18 -0
  150. package/dist/api/platform/api/resources/serviceExecutions/types/GetServiceExecutionResponse.d.ts +2 -0
  151. package/dist/api/platform/api/resources/serviceExecutions/types/GetServiceExecutionResponse.js +3 -0
  152. package/dist/api/platform/api/resources/serviceExecutions/types/index.d.ts +1 -0
  153. package/dist/api/platform/api/resources/serviceExecutions/types/index.js +17 -0
  154. package/dist/api/platform/api/resources/serviceJobs/client/Client.d.ts +87 -0
  155. package/dist/api/platform/api/resources/serviceJobs/client/Client.js +322 -0
  156. package/dist/api/platform/api/resources/serviceJobs/client/index.d.ts +1 -0
  157. package/dist/api/platform/api/resources/serviceJobs/client/index.js +17 -0
  158. package/dist/api/platform/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.d.ts +14 -0
  159. package/dist/api/platform/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.js +3 -0
  160. package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobRequest.d.ts +9 -0
  161. package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobRequest.js +3 -0
  162. package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobsRequest.d.ts +22 -0
  163. package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobsRequest.js +3 -0
  164. package/dist/api/platform/api/resources/serviceJobs/client/requests/RerunServiceJobRequest.d.ts +9 -0
  165. package/dist/api/platform/api/resources/serviceJobs/client/requests/RerunServiceJobRequest.js +3 -0
  166. package/dist/api/platform/api/resources/serviceJobs/client/requests/index.d.ts +4 -0
  167. package/dist/api/platform/api/resources/serviceJobs/client/requests/index.js +2 -0
  168. package/dist/api/platform/api/resources/serviceJobs/index.d.ts +1 -0
  169. package/dist/api/platform/api/resources/serviceJobs/index.js +17 -0
  170. package/dist/api/platform/api/resources/serviceShares/client/Client.d.ts +163 -0
  171. package/dist/api/platform/api/resources/serviceShares/client/Client.js +538 -0
  172. package/dist/api/platform/api/resources/serviceShares/client/index.d.ts +1 -0
  173. package/dist/api/platform/api/resources/serviceShares/client/index.js +17 -0
  174. package/dist/api/platform/api/resources/serviceShares/client/requests/AddConstraintRequest.d.ts +14 -0
  175. package/dist/api/platform/api/resources/serviceShares/client/requests/AddConstraintRequest.js +3 -0
  176. package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteConstraintRequest.d.ts +13 -0
  177. package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteConstraintRequest.js +3 -0
  178. package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteShareRequest.d.ts +11 -0
  179. package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteShareRequest.js +3 -0
  180. package/dist/api/platform/api/resources/serviceShares/client/requests/GetSharesForServiceRequest.d.ts +9 -0
  181. package/dist/api/platform/api/resources/serviceShares/client/requests/GetSharesForServiceRequest.js +3 -0
  182. package/dist/api/platform/api/resources/serviceShares/client/requests/ShareServiceRequest.d.ts +12 -0
  183. package/dist/api/platform/api/resources/serviceShares/client/requests/ShareServiceRequest.js +3 -0
  184. package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateRoleRequest.d.ts +14 -0
  185. package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateRoleRequest.js +3 -0
  186. package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateTimeBasedConstraintRequest.d.ts +19 -0
  187. package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateTimeBasedConstraintRequest.js +3 -0
  188. package/dist/api/platform/api/resources/serviceShares/client/requests/index.d.ts +7 -0
  189. package/dist/api/platform/api/resources/serviceShares/client/requests/index.js +2 -0
  190. package/dist/api/platform/api/resources/serviceShares/index.d.ts +2 -0
  191. package/dist/api/platform/api/resources/serviceShares/index.js +18 -0
  192. package/dist/api/platform/api/resources/serviceShares/types/AddConstraintResponse.d.ts +2 -0
  193. package/dist/api/platform/api/resources/serviceShares/types/AddConstraintResponse.js +3 -0
  194. package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintRequestBody.d.ts +2 -0
  195. package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintRequestBody.js +3 -0
  196. package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintResponse.d.ts +2 -0
  197. package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintResponse.js +3 -0
  198. package/dist/api/platform/api/resources/serviceShares/types/index.d.ts +3 -0
  199. package/dist/api/platform/api/resources/serviceShares/types/index.js +19 -0
  200. package/dist/api/platform/api/resources/subscriptions/client/Client.d.ts +87 -0
  201. package/dist/api/platform/api/resources/subscriptions/client/Client.js +305 -0
  202. package/dist/api/platform/api/resources/subscriptions/client/index.d.ts +1 -0
  203. package/dist/api/platform/api/resources/subscriptions/client/index.js +17 -0
  204. package/dist/api/platform/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.ts +8 -0
  205. package/dist/api/platform/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.js +3 -0
  206. package/dist/api/platform/api/resources/subscriptions/client/requests/DeleteSubscriptionRequest.d.ts +9 -0
  207. package/dist/api/platform/api/resources/subscriptions/client/requests/DeleteSubscriptionRequest.js +3 -0
  208. package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionRequest.d.ts +9 -0
  209. package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionRequest.js +3 -0
  210. package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionServiceExecutionsRequest.d.ts +9 -0
  211. package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionServiceExecutionsRequest.js +3 -0
  212. package/dist/api/platform/api/resources/subscriptions/client/requests/index.d.ts +4 -0
  213. package/dist/api/platform/api/resources/subscriptions/client/requests/index.js +2 -0
  214. package/dist/api/platform/api/resources/subscriptions/index.d.ts +1 -0
  215. package/dist/api/platform/api/resources/subscriptions/index.js +17 -0
  216. package/dist/api/platform/api/types/AccessKey.d.ts +12 -0
  217. package/dist/api/platform/api/types/AccessKey.js +11 -0
  218. package/dist/api/platform/api/types/ActivityInstance.d.ts +19 -0
  219. package/dist/api/platform/api/types/ActivityInstance.js +12 -0
  220. package/dist/api/platform/api/types/ApplicationDto.d.ts +19 -0
  221. package/dist/api/platform/api/types/ApplicationDto.js +13 -0
  222. package/dist/api/platform/api/types/CostEntry.d.ts +20 -0
  223. package/dist/api/platform/api/types/CostEntry.js +3 -0
  224. package/dist/api/platform/api/types/CreateShareConstraintDto.d.ts +7 -0
  225. package/dist/api/platform/api/types/CreateShareConstraintDto.js +3 -0
  226. package/dist/api/platform/api/types/CreateShareRequestDto.d.ts +13 -0
  227. package/dist/api/platform/api/types/CreateShareRequestDto.js +12 -0
  228. package/dist/api/platform/api/types/CreateTimeBasedConstraintDto.d.ts +4 -0
  229. package/dist/api/platform/api/types/CreateTimeBasedConstraintDto.js +3 -0
  230. package/dist/api/platform/api/types/DataPoolDto.d.ts +25 -0
  231. package/dist/api/platform/api/types/DataPoolDto.js +13 -0
  232. package/dist/api/platform/api/types/DataPoolFileDto.d.ts +16 -0
  233. package/dist/api/platform/api/types/DataPoolFileDto.js +3 -0
  234. package/dist/api/platform/api/types/Incident.d.ts +8 -0
  235. package/dist/api/platform/api/types/Incident.js +3 -0
  236. package/dist/api/platform/api/types/LogEntry.d.ts +19 -0
  237. package/dist/api/platform/api/types/LogEntry.js +15 -0
  238. package/dist/api/platform/api/types/MetricDataPoint.d.ts +9 -0
  239. package/dist/api/platform/api/types/MetricDataPoint.js +3 -0
  240. package/dist/api/platform/api/types/OauthScope.d.ts +4 -0
  241. package/dist/api/platform/api/types/OauthScope.js +7 -0
  242. package/dist/api/platform/api/types/OrganizationSearchResultDto.d.ts +4 -0
  243. package/dist/api/platform/api/types/OrganizationSearchResultDto.js +3 -0
  244. package/dist/api/platform/api/types/OrganizationTenant.d.ts +3 -0
  245. package/dist/api/platform/api/types/OrganizationTenant.js +3 -0
  246. package/dist/api/platform/api/types/PageResponseServiceExecutionDto.d.ts +28 -0
  247. package/dist/api/platform/api/types/PageResponseServiceExecutionDto.js +3 -0
  248. package/dist/api/platform/api/types/PageResponseServiceJobDto.d.ts +28 -0
  249. package/dist/api/platform/api/types/PageResponseServiceJobDto.js +3 -0
  250. package/dist/api/platform/api/types/PricingPlanDto.d.ts +14 -0
  251. package/dist/api/platform/api/types/PricingPlanDto.js +12 -0
  252. package/dist/api/platform/api/types/ProductDto.d.ts +36 -0
  253. package/dist/api/platform/api/types/ProductDto.js +32 -0
  254. package/dist/api/platform/api/types/QuantumJobCosts.d.ts +2 -0
  255. package/dist/api/platform/api/types/QuantumJobCosts.js +3 -0
  256. package/dist/api/platform/api/types/QuantumWorkloadCosts.d.ts +9 -0
  257. package/dist/api/platform/api/types/QuantumWorkloadCosts.js +3 -0
  258. package/dist/api/platform/api/types/ServiceConsumerDto.d.ts +24 -0
  259. package/dist/api/platform/api/types/ServiceConsumerDto.js +17 -0
  260. package/dist/api/platform/api/types/ServiceExecution.d.ts +4 -0
  261. package/dist/api/platform/api/types/ServiceExecution.js +3 -0
  262. package/dist/api/platform/api/types/ServiceExecutionCosts.d.ts +2 -0
  263. package/dist/api/platform/api/types/ServiceExecutionCosts.js +3 -0
  264. package/dist/api/platform/api/types/ServiceExecutionDto.d.ts +41 -0
  265. package/dist/api/platform/api/types/ServiceExecutionDto.js +22 -0
  266. package/dist/api/platform/api/types/ServiceExecutionLogs.d.ts +2 -0
  267. package/dist/api/platform/api/types/ServiceExecutionLogs.js +3 -0
  268. package/dist/api/platform/api/types/ServiceExecutionMetrics.d.ts +20 -0
  269. package/dist/api/platform/api/types/ServiceExecutionMetrics.js +3 -0
  270. package/dist/api/platform/api/types/ServiceJobDto.d.ts +42 -0
  271. package/dist/api/platform/api/types/ServiceJobDto.js +22 -0
  272. package/dist/api/platform/api/types/ShareConstraintDto.d.ts +13 -0
  273. package/dist/api/platform/api/types/ShareConstraintDto.js +3 -0
  274. package/dist/api/platform/api/types/ShareDto.d.ts +22 -0
  275. package/dist/api/platform/api/types/ShareDto.js +12 -0
  276. package/dist/api/platform/api/types/SortOrder.d.ts +17 -0
  277. package/dist/api/platform/api/types/SortOrder.js +12 -0
  278. package/dist/api/platform/api/types/SubscriptionDto.d.ts +8 -0
  279. package/dist/api/platform/api/types/SubscriptionDto.js +3 -0
  280. package/dist/api/platform/api/types/TenantId.d.ts +13 -0
  281. package/dist/api/platform/api/types/TenantId.js +3 -0
  282. package/dist/api/platform/api/types/TimeBasedConstraintDto.d.ts +5 -0
  283. package/dist/api/platform/api/types/TimeBasedConstraintDto.js +3 -0
  284. package/dist/api/platform/api/types/UpdateResourceShareRoleDto.d.ts +11 -0
  285. package/dist/api/platform/api/types/UpdateResourceShareRoleDto.js +12 -0
  286. package/dist/api/platform/api/types/UserTenant.d.ts +3 -0
  287. package/dist/api/platform/api/types/UserTenant.js +3 -0
  288. package/dist/api/platform/api/types/VariableInstance.d.ts +9 -0
  289. package/dist/api/platform/api/types/VariableInstance.js +3 -0
  290. package/dist/api/platform/api/types/WorkflowInstance.d.ts +21 -0
  291. package/dist/api/platform/api/types/WorkflowInstance.js +15 -0
  292. package/dist/api/platform/api/types/WorkflowServiceExecutionDto.d.ts +44 -0
  293. package/dist/api/platform/api/types/WorkflowServiceExecutionDto.js +22 -0
  294. package/dist/api/platform/api/types/index.d.ts +39 -0
  295. package/dist/api/platform/api/types/index.js +55 -0
  296. package/dist/api/platform/auth/HeaderAuthProvider.d.ts +20 -0
  297. package/dist/api/platform/auth/HeaderAuthProvider.js +70 -0
  298. package/dist/api/platform/auth/index.d.ts +1 -0
  299. package/dist/api/platform/auth/index.js +5 -0
  300. package/dist/api/platform/core/auth/AuthProvider.d.ts +7 -0
  301. package/dist/api/platform/core/auth/AuthProvider.js +2 -0
  302. package/dist/api/platform/core/auth/AuthRequest.d.ts +9 -0
  303. package/dist/api/platform/core/auth/AuthRequest.js +2 -0
  304. package/dist/api/platform/core/auth/BasicAuth.d.ts +8 -0
  305. package/dist/api/platform/core/auth/BasicAuth.js +27 -0
  306. package/dist/api/platform/core/auth/BearerToken.d.ts +7 -0
  307. package/dist/api/platform/core/auth/BearerToken.js +16 -0
  308. package/dist/api/platform/core/auth/NoOpAuthProvider.d.ts +5 -0
  309. package/dist/api/platform/core/auth/NoOpAuthProvider.js +9 -0
  310. package/dist/api/platform/core/auth/index.d.ts +5 -0
  311. package/dist/api/platform/core/auth/index.js +9 -0
  312. package/dist/api/platform/core/base64.d.ts +2 -0
  313. package/dist/api/platform/core/base64.js +26 -0
  314. package/dist/api/platform/core/exports.d.ts +2 -0
  315. package/dist/api/platform/core/exports.js +18 -0
  316. package/dist/api/platform/core/fetcher/APIResponse.d.ts +20 -0
  317. package/dist/api/platform/core/fetcher/APIResponse.js +2 -0
  318. package/dist/api/platform/core/fetcher/BinaryResponse.d.ts +19 -0
  319. package/dist/api/platform/core/fetcher/BinaryResponse.js +17 -0
  320. package/dist/api/platform/core/fetcher/EndpointMetadata.d.ts +13 -0
  321. package/dist/api/platform/core/fetcher/EndpointMetadata.js +2 -0
  322. package/dist/api/platform/core/fetcher/EndpointSupplier.d.ts +12 -0
  323. package/dist/api/platform/core/fetcher/EndpointSupplier.js +13 -0
  324. package/dist/api/platform/core/fetcher/Fetcher.d.ts +48 -0
  325. package/dist/api/platform/core/fetcher/Fetcher.js +305 -0
  326. package/dist/api/platform/core/fetcher/Headers.d.ts +2 -0
  327. package/dist/api/platform/core/fetcher/Headers.js +85 -0
  328. package/dist/api/platform/core/fetcher/HttpResponsePromise.d.ts +58 -0
  329. package/dist/api/platform/core/fetcher/HttpResponsePromise.js +94 -0
  330. package/dist/api/platform/core/fetcher/RawResponse.d.ts +29 -0
  331. package/dist/api/platform/core/fetcher/RawResponse.js +44 -0
  332. package/dist/api/platform/core/fetcher/Supplier.d.ts +4 -0
  333. package/dist/api/platform/core/fetcher/Supplier.js +13 -0
  334. package/dist/api/platform/core/fetcher/createRequestUrl.d.ts +1 -0
  335. package/dist/api/platform/core/fetcher/createRequestUrl.js +8 -0
  336. package/dist/api/platform/core/fetcher/getErrorResponseBody.d.ts +1 -0
  337. package/dist/api/platform/core/fetcher/getErrorResponseBody.js +33 -0
  338. package/dist/api/platform/core/fetcher/getFetchFn.d.ts +1 -0
  339. package/dist/api/platform/core/fetcher/getFetchFn.js +6 -0
  340. package/dist/api/platform/core/fetcher/getHeader.d.ts +1 -0
  341. package/dist/api/platform/core/fetcher/getHeader.js +11 -0
  342. package/dist/api/platform/core/fetcher/getRequestBody.d.ts +7 -0
  343. package/dist/api/platform/core/fetcher/getRequestBody.js +16 -0
  344. package/dist/api/platform/core/fetcher/getResponseBody.d.ts +1 -0
  345. package/dist/api/platform/core/fetcher/getResponseBody.js +58 -0
  346. package/dist/api/platform/core/fetcher/index.d.ts +11 -0
  347. package/dist/api/platform/core/fetcher/index.js +17 -0
  348. package/dist/api/platform/core/fetcher/makeRequest.d.ts +1 -0
  349. package/dist/api/platform/core/fetcher/makeRequest.js +31 -0
  350. package/dist/api/platform/core/fetcher/requestWithRetries.d.ts +1 -0
  351. package/dist/api/platform/core/fetcher/requestWithRetries.js +56 -0
  352. package/dist/api/platform/core/fetcher/signals.d.ts +5 -0
  353. package/dist/api/platform/core/fetcher/signals.js +24 -0
  354. package/dist/api/platform/core/file/exports.d.ts +1 -0
  355. package/dist/api/platform/core/file/exports.js +2 -0
  356. package/dist/api/platform/core/file/file.d.ts +10 -0
  357. package/dist/api/platform/core/file/file.js +202 -0
  358. package/dist/api/platform/core/file/index.d.ts +2 -0
  359. package/dist/api/platform/core/file/index.js +18 -0
  360. package/dist/api/platform/core/file/types.d.ts +66 -0
  361. package/dist/api/platform/core/file/types.js +2 -0
  362. package/dist/api/platform/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  363. package/dist/api/platform/core/form-data-utils/FormDataWrapper.js +143 -0
  364. package/dist/api/platform/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  365. package/dist/api/platform/core/form-data-utils/encodeAsFormParameter.js +12 -0
  366. package/dist/api/platform/core/form-data-utils/index.d.ts +2 -0
  367. package/dist/api/platform/core/form-data-utils/index.js +20 -0
  368. package/dist/api/platform/core/headers.d.ts +2 -0
  369. package/dist/api/platform/core/headers.js +31 -0
  370. package/dist/api/platform/core/index.d.ts +8 -0
  371. package/dist/api/platform/core/index.js +47 -0
  372. package/dist/api/platform/core/json.d.ts +15 -0
  373. package/dist/api/platform/core/json.js +24 -0
  374. package/dist/api/platform/core/logging/exports.d.ts +18 -0
  375. package/dist/api/platform/core/logging/exports.js +45 -0
  376. package/dist/api/platform/core/logging/index.d.ts +1 -0
  377. package/dist/api/platform/core/logging/index.js +17 -0
  378. package/dist/api/platform/core/logging/logger.d.ts +126 -0
  379. package/dist/api/platform/core/logging/logger.js +146 -0
  380. package/dist/api/platform/core/runtime/index.d.ts +1 -0
  381. package/dist/api/platform/core/runtime/index.js +5 -0
  382. package/dist/api/platform/core/runtime/runtime.d.ts +9 -0
  383. package/dist/api/platform/core/runtime/runtime.js +102 -0
  384. package/dist/api/platform/core/url/encodePathParam.d.ts +1 -0
  385. package/dist/api/platform/core/url/encodePathParam.js +21 -0
  386. package/dist/api/platform/core/url/index.d.ts +3 -0
  387. package/dist/api/platform/core/url/index.js +9 -0
  388. package/dist/api/platform/core/url/join.d.ts +1 -0
  389. package/dist/api/platform/core/url/join.js +68 -0
  390. package/dist/api/platform/core/url/qs.d.ts +6 -0
  391. package/dist/api/platform/core/url/qs.js +67 -0
  392. package/dist/api/platform/environments.d.ts +4 -0
  393. package/dist/api/platform/environments.js +7 -0
  394. package/dist/api/platform/errors/HubPlatformError.d.ts +12 -0
  395. package/dist/api/platform/errors/HubPlatformError.js +35 -0
  396. package/dist/api/platform/errors/HubPlatformTimeoutError.d.ts +3 -0
  397. package/dist/api/platform/errors/HubPlatformTimeoutError.js +15 -0
  398. package/dist/api/platform/errors/handleNonStatusCodeError.d.ts +2 -0
  399. package/dist/api/platform/errors/handleNonStatusCodeError.js +65 -0
  400. package/dist/api/platform/errors/index.d.ts +2 -0
  401. package/dist/api/platform/errors/index.js +7 -0
  402. package/dist/api/platform/exports.d.ts +1 -0
  403. package/dist/api/platform/exports.js +17 -0
  404. package/dist/api/platform/index.d.ts +6 -0
  405. package/dist/api/platform/index.js +48 -0
  406. package/dist/api/service/BaseClient.d.ts +39 -0
  407. package/dist/api/service/BaseClient.js +65 -0
  408. package/dist/api/service/Client.d.ts +14 -0
  409. package/dist/api/service/Client.js +17 -0
  410. package/dist/api/service/api/index.d.ts +2 -0
  411. package/dist/api/service/api/index.js +18 -0
  412. package/dist/api/service/api/resources/index.d.ts +2 -0
  413. package/dist/api/service/api/resources/index.js +41 -0
  414. package/dist/api/service/api/resources/serviceApi/client/Client.d.ts +100 -0
  415. package/dist/api/service/api/resources/serviceApi/client/Client.js +356 -0
  416. package/dist/api/service/api/resources/serviceApi/client/index.d.ts +1 -0
  417. package/dist/api/service/api/resources/serviceApi/client/index.js +17 -0
  418. package/dist/api/service/api/resources/serviceApi/client/requests/CancelExecutionRequest.d.ts +10 -0
  419. package/dist/api/service/api/resources/serviceApi/client/requests/CancelExecutionRequest.js +3 -0
  420. package/dist/api/service/api/resources/serviceApi/client/requests/GetLogsRequest.d.ts +10 -0
  421. package/dist/api/service/api/resources/serviceApi/client/requests/GetLogsRequest.js +3 -0
  422. package/dist/api/service/api/resources/serviceApi/client/requests/GetResultFileRequest.d.ts +6 -0
  423. package/dist/api/service/api/resources/serviceApi/client/requests/GetResultFileRequest.js +3 -0
  424. package/dist/api/service/api/resources/serviceApi/client/requests/GetResultRequest.d.ts +10 -0
  425. package/dist/api/service/api/resources/serviceApi/client/requests/GetResultRequest.js +3 -0
  426. package/dist/api/service/api/resources/serviceApi/client/requests/GetStatusRequest.d.ts +10 -0
  427. package/dist/api/service/api/resources/serviceApi/client/requests/GetStatusRequest.js +3 -0
  428. package/dist/api/service/api/resources/serviceApi/client/requests/index.d.ts +5 -0
  429. package/dist/api/service/api/resources/serviceApi/client/requests/index.js +2 -0
  430. package/dist/api/service/api/resources/serviceApi/index.d.ts +1 -0
  431. package/dist/api/service/api/resources/serviceApi/index.js +17 -0
  432. package/dist/api/service/api/types/HalLink.d.ts +18 -0
  433. package/dist/api/service/api/types/HalLink.js +3 -0
  434. package/dist/api/service/api/types/LogEntry.d.ts +19 -0
  435. package/dist/api/service/api/types/LogEntry.js +15 -0
  436. package/dist/api/service/api/types/RequestBody.d.ts +1 -0
  437. package/dist/api/service/api/types/RequestBody.js +3 -0
  438. package/dist/api/service/api/types/ResultResponse.d.ts +15 -0
  439. package/dist/api/service/api/types/ResultResponse.js +3 -0
  440. package/dist/api/service/api/types/ServiceExecution.d.ts +38 -0
  441. package/dist/api/service/api/types/ServiceExecution.js +21 -0
  442. package/dist/api/service/api/types/index.d.ts +5 -0
  443. package/dist/api/service/api/types/index.js +21 -0
  444. package/dist/api/service/auth/BearerAuthProvider.d.ts +20 -0
  445. package/dist/api/service/auth/BearerAuthProvider.js +69 -0
  446. package/dist/api/service/auth/index.d.ts +1 -0
  447. package/dist/api/service/auth/index.js +5 -0
  448. package/dist/api/service/core/auth/AuthProvider.d.ts +7 -0
  449. package/dist/api/service/core/auth/AuthProvider.js +2 -0
  450. package/dist/api/service/core/auth/AuthRequest.d.ts +9 -0
  451. package/dist/api/service/core/auth/AuthRequest.js +2 -0
  452. package/dist/api/service/core/auth/BasicAuth.d.ts +8 -0
  453. package/dist/api/service/core/auth/BasicAuth.js +27 -0
  454. package/dist/api/service/core/auth/BearerToken.d.ts +7 -0
  455. package/dist/api/service/core/auth/BearerToken.js +16 -0
  456. package/dist/api/service/core/auth/NoOpAuthProvider.d.ts +5 -0
  457. package/dist/api/service/core/auth/NoOpAuthProvider.js +9 -0
  458. package/dist/api/service/core/auth/index.d.ts +5 -0
  459. package/dist/api/service/core/auth/index.js +9 -0
  460. package/dist/api/service/core/base64.d.ts +2 -0
  461. package/dist/api/service/core/base64.js +26 -0
  462. package/dist/api/service/core/exports.d.ts +1 -0
  463. package/dist/api/service/core/exports.js +17 -0
  464. package/dist/api/service/core/fetcher/APIResponse.d.ts +20 -0
  465. package/dist/api/service/core/fetcher/APIResponse.js +2 -0
  466. package/dist/api/service/core/fetcher/BinaryResponse.d.ts +19 -0
  467. package/dist/api/service/core/fetcher/BinaryResponse.js +17 -0
  468. package/dist/api/service/core/fetcher/EndpointMetadata.d.ts +13 -0
  469. package/dist/api/service/core/fetcher/EndpointMetadata.js +2 -0
  470. package/dist/api/service/core/fetcher/EndpointSupplier.d.ts +12 -0
  471. package/dist/api/service/core/fetcher/EndpointSupplier.js +13 -0
  472. package/dist/api/service/core/fetcher/Fetcher.d.ts +48 -0
  473. package/dist/api/service/core/fetcher/Fetcher.js +305 -0
  474. package/dist/api/service/core/fetcher/Headers.d.ts +2 -0
  475. package/dist/api/service/core/fetcher/Headers.js +85 -0
  476. package/dist/api/service/core/fetcher/HttpResponsePromise.d.ts +58 -0
  477. package/dist/api/service/core/fetcher/HttpResponsePromise.js +94 -0
  478. package/dist/api/service/core/fetcher/RawResponse.d.ts +29 -0
  479. package/dist/api/service/core/fetcher/RawResponse.js +44 -0
  480. package/dist/api/service/core/fetcher/Supplier.d.ts +4 -0
  481. package/dist/api/service/core/fetcher/Supplier.js +13 -0
  482. package/dist/api/service/core/fetcher/createRequestUrl.d.ts +1 -0
  483. package/dist/api/service/core/fetcher/createRequestUrl.js +8 -0
  484. package/dist/api/service/core/fetcher/getErrorResponseBody.d.ts +1 -0
  485. package/dist/api/service/core/fetcher/getErrorResponseBody.js +33 -0
  486. package/dist/api/service/core/fetcher/getFetchFn.d.ts +1 -0
  487. package/dist/api/service/core/fetcher/getFetchFn.js +6 -0
  488. package/dist/api/service/core/fetcher/getHeader.d.ts +1 -0
  489. package/dist/api/service/core/fetcher/getHeader.js +11 -0
  490. package/dist/api/service/core/fetcher/getRequestBody.d.ts +7 -0
  491. package/dist/api/service/core/fetcher/getRequestBody.js +16 -0
  492. package/dist/api/service/core/fetcher/getResponseBody.d.ts +1 -0
  493. package/dist/api/service/core/fetcher/getResponseBody.js +58 -0
  494. package/dist/api/service/core/fetcher/index.d.ts +11 -0
  495. package/dist/api/service/core/fetcher/index.js +17 -0
  496. package/dist/api/service/core/fetcher/makeRequest.d.ts +1 -0
  497. package/dist/api/service/core/fetcher/makeRequest.js +31 -0
  498. package/dist/api/service/core/fetcher/requestWithRetries.d.ts +1 -0
  499. package/dist/api/service/core/fetcher/requestWithRetries.js +56 -0
  500. package/dist/api/service/core/fetcher/signals.d.ts +5 -0
  501. package/dist/api/service/core/fetcher/signals.js +24 -0
  502. package/dist/api/service/core/headers.d.ts +2 -0
  503. package/dist/api/service/core/headers.js +31 -0
  504. package/dist/api/service/core/index.d.ts +6 -0
  505. package/dist/api/service/core/index.js +45 -0
  506. package/dist/api/service/core/json.d.ts +15 -0
  507. package/dist/api/service/core/json.js +24 -0
  508. package/dist/api/service/core/logging/exports.d.ts +18 -0
  509. package/dist/api/service/core/logging/exports.js +45 -0
  510. package/dist/api/service/core/logging/index.d.ts +1 -0
  511. package/dist/api/service/core/logging/index.js +17 -0
  512. package/dist/api/service/core/logging/logger.d.ts +126 -0
  513. package/dist/api/service/core/logging/logger.js +146 -0
  514. package/dist/api/service/core/runtime/index.d.ts +1 -0
  515. package/dist/api/service/core/runtime/index.js +5 -0
  516. package/dist/api/service/core/runtime/runtime.d.ts +9 -0
  517. package/dist/api/service/core/runtime/runtime.js +102 -0
  518. package/dist/api/service/core/url/encodePathParam.d.ts +1 -0
  519. package/dist/api/service/core/url/encodePathParam.js +21 -0
  520. package/dist/api/service/core/url/index.d.ts +3 -0
  521. package/dist/api/service/core/url/index.js +9 -0
  522. package/dist/api/service/core/url/join.d.ts +1 -0
  523. package/dist/api/service/core/url/join.js +68 -0
  524. package/dist/api/service/core/url/qs.d.ts +6 -0
  525. package/dist/api/service/core/url/qs.js +67 -0
  526. package/dist/api/service/environments.d.ts +4 -0
  527. package/dist/api/service/environments.js +7 -0
  528. package/dist/api/service/errors/HubServiceError.d.ts +12 -0
  529. package/dist/api/service/errors/HubServiceError.js +35 -0
  530. package/dist/api/service/errors/HubServiceTimeoutError.d.ts +3 -0
  531. package/dist/api/service/errors/HubServiceTimeoutError.js +15 -0
  532. package/dist/api/service/errors/handleNonStatusCodeError.d.ts +2 -0
  533. package/dist/api/service/errors/handleNonStatusCodeError.js +65 -0
  534. package/dist/api/service/errors/index.d.ts +2 -0
  535. package/dist/api/service/errors/index.js +7 -0
  536. package/dist/api/service/exports.d.ts +1 -0
  537. package/dist/api/service/exports.js +17 -0
  538. package/dist/api/service/index.d.ts +6 -0
  539. package/dist/api/service/index.js +48 -0
  540. package/eslint.config.mjs +11 -0
  541. package/package.json +44 -0
  542. package/src/api/platform/BaseClient.ts +87 -0
  543. package/src/api/platform/Client.ts +78 -0
  544. package/src/api/platform/api/errors/BadRequestError.ts +21 -0
  545. package/src/api/platform/api/errors/ForbiddenError.ts +21 -0
  546. package/src/api/platform/api/errors/InternalServerError.ts +21 -0
  547. package/src/api/platform/api/errors/NotFoundError.ts +21 -0
  548. package/src/api/platform/api/errors/UnauthorizedError.ts +21 -0
  549. package/src/api/platform/api/errors/index.ts +5 -0
  550. package/src/api/platform/api/index.ts +3 -0
  551. package/src/api/platform/api/resources/applications/client/Client.ts +514 -0
  552. package/src/api/platform/api/resources/applications/client/index.ts +1 -0
  553. package/src/api/platform/api/resources/applications/client/requests/CreateApplicationRequest.ts +9 -0
  554. package/src/api/platform/api/resources/applications/client/requests/DeleteApplicationRequest.ts +11 -0
  555. package/src/api/platform/api/resources/applications/client/requests/GetApplicationAccessKeysRequest.ts +11 -0
  556. package/src/api/platform/api/resources/applications/client/requests/GetApplicationRequest.ts +11 -0
  557. package/src/api/platform/api/resources/applications/client/requests/GetApplicationSubscriptionsRequest.ts +11 -0
  558. package/src/api/platform/api/resources/applications/client/requests/index.ts +5 -0
  559. package/src/api/platform/api/resources/applications/index.ts +1 -0
  560. package/src/api/platform/api/resources/dataPoolShares/client/Client.ts +662 -0
  561. package/src/api/platform/api/resources/dataPoolShares/client/index.ts +1 -0
  562. package/src/api/platform/api/resources/dataPoolShares/client/requests/AddConstraint1Request.ts +17 -0
  563. package/src/api/platform/api/resources/dataPoolShares/client/requests/DeleteConstraint1Request.ts +15 -0
  564. package/src/api/platform/api/resources/dataPoolShares/client/requests/DeleteShare1Request.ts +13 -0
  565. package/src/api/platform/api/resources/dataPoolShares/client/requests/GetSharesForDataPoolRequest.ts +11 -0
  566. package/src/api/platform/api/resources/dataPoolShares/client/requests/ShareDataPoolRequest.ts +15 -0
  567. package/src/api/platform/api/resources/dataPoolShares/client/requests/UpdateRole1Request.ts +17 -0
  568. package/src/api/platform/api/resources/dataPoolShares/client/requests/UpdateTimeBasedConstraint1Request.ts +22 -0
  569. package/src/api/platform/api/resources/dataPoolShares/client/requests/index.ts +7 -0
  570. package/src/api/platform/api/resources/dataPoolShares/index.ts +2 -0
  571. package/src/api/platform/api/resources/dataPoolShares/types/AddConstraint1Response.ts +5 -0
  572. package/src/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1RequestBody.ts +5 -0
  573. package/src/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1Response.ts +5 -0
  574. package/src/api/platform/api/resources/dataPoolShares/types/index.ts +3 -0
  575. package/src/api/platform/api/resources/dataPools/client/Client.ts +767 -0
  576. package/src/api/platform/api/resources/dataPools/client/index.ts +1 -0
  577. package/src/api/platform/api/resources/dataPools/client/requests/AddDataPoolFileRequest.ts +16 -0
  578. package/src/api/platform/api/resources/dataPools/client/requests/CreateDataPoolRequest.ts +16 -0
  579. package/src/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolFileRequest.ts +13 -0
  580. package/src/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolRequest.ts +11 -0
  581. package/src/api/platform/api/resources/dataPools/client/requests/GetDataPoolFileRequest.ts +13 -0
  582. package/src/api/platform/api/resources/dataPools/client/requests/GetDataPoolFilesRequest.ts +11 -0
  583. package/src/api/platform/api/resources/dataPools/client/requests/GetDataPoolRequest.ts +11 -0
  584. package/src/api/platform/api/resources/dataPools/client/requests/UpdateDataPoolRequest.ts +19 -0
  585. package/src/api/platform/api/resources/dataPools/client/requests/index.ts +8 -0
  586. package/src/api/platform/api/resources/dataPools/index.ts +1 -0
  587. package/src/api/platform/api/resources/index.ts +23 -0
  588. package/src/api/platform/api/resources/organizations/client/Client.ts +110 -0
  589. package/src/api/platform/api/resources/organizations/client/index.ts +1 -0
  590. package/src/api/platform/api/resources/organizations/client/requests/GetServiceExecutions1Request.ts +11 -0
  591. package/src/api/platform/api/resources/organizations/client/requests/index.ts +1 -0
  592. package/src/api/platform/api/resources/organizations/index.ts +1 -0
  593. package/src/api/platform/api/resources/quantumJobs/client/Client.ts +104 -0
  594. package/src/api/platform/api/resources/quantumJobs/client/index.ts +1 -0
  595. package/src/api/platform/api/resources/quantumJobs/client/requests/GetQuantumJobCostsRequest.ts +11 -0
  596. package/src/api/platform/api/resources/quantumJobs/client/requests/index.ts +1 -0
  597. package/src/api/platform/api/resources/quantumJobs/index.ts +1 -0
  598. package/src/api/platform/api/resources/quantumWorkloads/client/Client.ts +104 -0
  599. package/src/api/platform/api/resources/quantumWorkloads/client/index.ts +1 -0
  600. package/src/api/platform/api/resources/quantumWorkloads/client/requests/GetQuantumWorkloadCostsRequest.ts +11 -0
  601. package/src/api/platform/api/resources/quantumWorkloads/client/requests/index.ts +1 -0
  602. package/src/api/platform/api/resources/quantumWorkloads/index.ts +1 -0
  603. package/src/api/platform/api/resources/serviceExecutions/client/Client.ts +788 -0
  604. package/src/api/platform/api/resources/serviceExecutions/client/index.ts +1 -0
  605. package/src/api/platform/api/resources/serviceExecutions/client/requests/CancelServiceExecutionRequest.ts +11 -0
  606. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionCostsRequest.ts +11 -0
  607. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionLogsRequest.ts +15 -0
  608. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionMetricsRequest.ts +11 -0
  609. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionRequest.ts +11 -0
  610. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultFileRequest.ts +11 -0
  611. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultRequest.ts +11 -0
  612. package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionsRequest.ts +26 -0
  613. package/src/api/platform/api/resources/serviceExecutions/client/requests/HeadServiceExecutionRequest.ts +11 -0
  614. package/src/api/platform/api/resources/serviceExecutions/client/requests/index.ts +9 -0
  615. package/src/api/platform/api/resources/serviceExecutions/index.ts +2 -0
  616. package/src/api/platform/api/resources/serviceExecutions/types/GetServiceExecutionResponse.ts +5 -0
  617. package/src/api/platform/api/resources/serviceExecutions/types/index.ts +1 -0
  618. package/src/api/platform/api/resources/serviceJobs/client/Client.ts +367 -0
  619. package/src/api/platform/api/resources/serviceJobs/client/index.ts +1 -0
  620. package/src/api/platform/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.ts +16 -0
  621. package/src/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobRequest.ts +11 -0
  622. package/src/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobsRequest.ts +24 -0
  623. package/src/api/platform/api/resources/serviceJobs/client/requests/RerunServiceJobRequest.ts +11 -0
  624. package/src/api/platform/api/resources/serviceJobs/client/requests/index.ts +4 -0
  625. package/src/api/platform/api/resources/serviceJobs/index.ts +1 -0
  626. package/src/api/platform/api/resources/serviceShares/client/Client.ts +662 -0
  627. package/src/api/platform/api/resources/serviceShares/client/index.ts +1 -0
  628. package/src/api/platform/api/resources/serviceShares/client/requests/AddConstraintRequest.ts +17 -0
  629. package/src/api/platform/api/resources/serviceShares/client/requests/DeleteConstraintRequest.ts +15 -0
  630. package/src/api/platform/api/resources/serviceShares/client/requests/DeleteShareRequest.ts +13 -0
  631. package/src/api/platform/api/resources/serviceShares/client/requests/GetSharesForServiceRequest.ts +11 -0
  632. package/src/api/platform/api/resources/serviceShares/client/requests/ShareServiceRequest.ts +15 -0
  633. package/src/api/platform/api/resources/serviceShares/client/requests/UpdateRoleRequest.ts +17 -0
  634. package/src/api/platform/api/resources/serviceShares/client/requests/UpdateTimeBasedConstraintRequest.ts +22 -0
  635. package/src/api/platform/api/resources/serviceShares/client/requests/index.ts +7 -0
  636. package/src/api/platform/api/resources/serviceShares/index.ts +2 -0
  637. package/src/api/platform/api/resources/serviceShares/types/AddConstraintResponse.ts +5 -0
  638. package/src/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintRequestBody.ts +5 -0
  639. package/src/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintResponse.ts +5 -0
  640. package/src/api/platform/api/resources/serviceShares/types/index.ts +3 -0
  641. package/src/api/platform/api/resources/subscriptions/client/Client.ts +355 -0
  642. package/src/api/platform/api/resources/subscriptions/client/index.ts +1 -0
  643. package/src/api/platform/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.ts +10 -0
  644. package/src/api/platform/api/resources/subscriptions/client/requests/DeleteSubscriptionRequest.ts +11 -0
  645. package/src/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionRequest.ts +11 -0
  646. package/src/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionServiceExecutionsRequest.ts +11 -0
  647. package/src/api/platform/api/resources/subscriptions/client/requests/index.ts +4 -0
  648. package/src/api/platform/api/resources/subscriptions/index.ts +1 -0
  649. package/src/api/platform/api/types/AccessKey.ts +15 -0
  650. package/src/api/platform/api/types/ActivityInstance.ts +23 -0
  651. package/src/api/platform/api/types/ApplicationDto.ts +22 -0
  652. package/src/api/platform/api/types/CostEntry.ts +22 -0
  653. package/src/api/platform/api/types/CreateShareConstraintDto.ts +11 -0
  654. package/src/api/platform/api/types/CreateShareRequestDto.ts +17 -0
  655. package/src/api/platform/api/types/CreateTimeBasedConstraintDto.ts +6 -0
  656. package/src/api/platform/api/types/DataPoolDto.ts +28 -0
  657. package/src/api/platform/api/types/DataPoolFileDto.ts +18 -0
  658. package/src/api/platform/api/types/Incident.ts +10 -0
  659. package/src/api/platform/api/types/LogEntry.ts +22 -0
  660. package/src/api/platform/api/types/MetricDataPoint.ts +11 -0
  661. package/src/api/platform/api/types/OauthScope.ts +6 -0
  662. package/src/api/platform/api/types/OrganizationSearchResultDto.ts +6 -0
  663. package/src/api/platform/api/types/OrganizationTenant.ts +5 -0
  664. package/src/api/platform/api/types/PageResponseServiceExecutionDto.ts +31 -0
  665. package/src/api/platform/api/types/PageResponseServiceJobDto.ts +31 -0
  666. package/src/api/platform/api/types/PricingPlanDto.ts +18 -0
  667. package/src/api/platform/api/types/ProductDto.ts +39 -0
  668. package/src/api/platform/api/types/QuantumJobCosts.ts +5 -0
  669. package/src/api/platform/api/types/QuantumWorkloadCosts.ts +11 -0
  670. package/src/api/platform/api/types/ServiceConsumerDto.ts +27 -0
  671. package/src/api/platform/api/types/ServiceExecution.ts +6 -0
  672. package/src/api/platform/api/types/ServiceExecutionCosts.ts +5 -0
  673. package/src/api/platform/api/types/ServiceExecutionDto.ts +44 -0
  674. package/src/api/platform/api/types/ServiceExecutionLogs.ts +5 -0
  675. package/src/api/platform/api/types/ServiceExecutionMetrics.ts +23 -0
  676. package/src/api/platform/api/types/ServiceJobDto.ts +45 -0
  677. package/src/api/platform/api/types/ShareConstraintDto.ts +18 -0
  678. package/src/api/platform/api/types/ShareDto.ts +27 -0
  679. package/src/api/platform/api/types/SortOrder.ts +20 -0
  680. package/src/api/platform/api/types/SubscriptionDto.ts +11 -0
  681. package/src/api/platform/api/types/TenantId.ts +19 -0
  682. package/src/api/platform/api/types/TimeBasedConstraintDto.ts +7 -0
  683. package/src/api/platform/api/types/UpdateResourceShareRoleDto.ts +14 -0
  684. package/src/api/platform/api/types/UserTenant.ts +5 -0
  685. package/src/api/platform/api/types/VariableInstance.ts +11 -0
  686. package/src/api/platform/api/types/WorkflowInstance.ts +25 -0
  687. package/src/api/platform/api/types/WorkflowServiceExecutionDto.ts +48 -0
  688. package/src/api/platform/api/types/index.ts +39 -0
  689. package/src/api/platform/auth/HeaderAuthProvider.ts +48 -0
  690. package/src/api/platform/auth/index.ts +1 -0
  691. package/src/api/platform/core/auth/AuthProvider.ts +6 -0
  692. package/src/api/platform/core/auth/AuthRequest.ts +9 -0
  693. package/src/api/platform/core/auth/BasicAuth.ts +32 -0
  694. package/src/api/platform/core/auth/BearerToken.ts +20 -0
  695. package/src/api/platform/core/auth/NoOpAuthProvider.ts +8 -0
  696. package/src/api/platform/core/auth/index.ts +5 -0
  697. package/src/api/platform/core/base64.ts +27 -0
  698. package/src/api/platform/core/exports.ts +2 -0
  699. package/src/api/platform/core/fetcher/APIResponse.ts +23 -0
  700. package/src/api/platform/core/fetcher/BinaryResponse.ts +34 -0
  701. package/src/api/platform/core/fetcher/EndpointMetadata.ts +13 -0
  702. package/src/api/platform/core/fetcher/EndpointSupplier.ts +14 -0
  703. package/src/api/platform/core/fetcher/Fetcher.ts +397 -0
  704. package/src/api/platform/core/fetcher/Headers.ts +93 -0
  705. package/src/api/platform/core/fetcher/HttpResponsePromise.ts +116 -0
  706. package/src/api/platform/core/fetcher/RawResponse.ts +61 -0
  707. package/src/api/platform/core/fetcher/Supplier.ts +11 -0
  708. package/src/api/platform/core/fetcher/createRequestUrl.ts +6 -0
  709. package/src/api/platform/core/fetcher/getErrorResponseBody.ts +33 -0
  710. package/src/api/platform/core/fetcher/getFetchFn.ts +3 -0
  711. package/src/api/platform/core/fetcher/getHeader.ts +8 -0
  712. package/src/api/platform/core/fetcher/getRequestBody.ts +20 -0
  713. package/src/api/platform/core/fetcher/getResponseBody.ts +58 -0
  714. package/src/api/platform/core/fetcher/index.ts +11 -0
  715. package/src/api/platform/core/fetcher/makeRequest.ts +42 -0
  716. package/src/api/platform/core/fetcher/requestWithRetries.ts +64 -0
  717. package/src/api/platform/core/fetcher/signals.ts +26 -0
  718. package/src/api/platform/core/file/exports.ts +1 -0
  719. package/src/api/platform/core/file/file.ts +217 -0
  720. package/src/api/platform/core/file/index.ts +2 -0
  721. package/src/api/platform/core/file/types.ts +81 -0
  722. package/src/api/platform/core/form-data-utils/FormDataWrapper.ts +140 -0
  723. package/src/api/platform/core/form-data-utils/encodeAsFormParameter.ts +12 -0
  724. package/src/api/platform/core/form-data-utils/index.ts +2 -0
  725. package/src/api/platform/core/headers.ts +33 -0
  726. package/src/api/platform/core/index.ts +8 -0
  727. package/src/api/platform/core/json.ts +27 -0
  728. package/src/api/platform/core/logging/exports.ts +19 -0
  729. package/src/api/platform/core/logging/index.ts +1 -0
  730. package/src/api/platform/core/logging/logger.ts +203 -0
  731. package/src/api/platform/core/runtime/index.ts +1 -0
  732. package/src/api/platform/core/runtime/runtime.ts +134 -0
  733. package/src/api/platform/core/url/encodePathParam.ts +18 -0
  734. package/src/api/platform/core/url/index.ts +3 -0
  735. package/src/api/platform/core/url/join.ts +79 -0
  736. package/src/api/platform/core/url/qs.ts +74 -0
  737. package/src/api/platform/environments.ts +7 -0
  738. package/src/api/platform/errors/HubPlatformError.ts +58 -0
  739. package/src/api/platform/errors/HubPlatformTimeoutError.ts +13 -0
  740. package/src/api/platform/errors/handleNonStatusCodeError.ts +37 -0
  741. package/src/api/platform/errors/index.ts +2 -0
  742. package/src/api/platform/exports.ts +1 -0
  743. package/src/api/platform/index.ts +6 -0
  744. package/src/api/service/BaseClient.ts +82 -0
  745. package/src/api/service/Client.ts +24 -0
  746. package/src/api/service/api/index.ts +2 -0
  747. package/src/api/service/api/resources/index.ts +2 -0
  748. package/src/api/service/api/resources/serviceApi/client/Client.ts +443 -0
  749. package/src/api/service/api/resources/serviceApi/client/index.ts +1 -0
  750. package/src/api/service/api/resources/serviceApi/client/requests/CancelExecutionRequest.ts +12 -0
  751. package/src/api/service/api/resources/serviceApi/client/requests/GetLogsRequest.ts +12 -0
  752. package/src/api/service/api/resources/serviceApi/client/requests/GetResultFileRequest.ts +8 -0
  753. package/src/api/service/api/resources/serviceApi/client/requests/GetResultRequest.ts +12 -0
  754. package/src/api/service/api/resources/serviceApi/client/requests/GetStatusRequest.ts +12 -0
  755. package/src/api/service/api/resources/serviceApi/client/requests/index.ts +5 -0
  756. package/src/api/service/api/resources/serviceApi/index.ts +1 -0
  757. package/src/api/service/api/types/HalLink.ts +20 -0
  758. package/src/api/service/api/types/LogEntry.ts +22 -0
  759. package/src/api/service/api/types/RequestBody.ts +3 -0
  760. package/src/api/service/api/types/ResultResponse.ts +20 -0
  761. package/src/api/service/api/types/ServiceExecution.ts +41 -0
  762. package/src/api/service/api/types/index.ts +5 -0
  763. package/src/api/service/auth/BearerAuthProvider.ts +47 -0
  764. package/src/api/service/auth/index.ts +1 -0
  765. package/src/api/service/core/auth/AuthProvider.ts +6 -0
  766. package/src/api/service/core/auth/AuthRequest.ts +9 -0
  767. package/src/api/service/core/auth/BasicAuth.ts +32 -0
  768. package/src/api/service/core/auth/BearerToken.ts +20 -0
  769. package/src/api/service/core/auth/NoOpAuthProvider.ts +8 -0
  770. package/src/api/service/core/auth/index.ts +5 -0
  771. package/src/api/service/core/base64.ts +27 -0
  772. package/src/api/service/core/exports.ts +1 -0
  773. package/src/api/service/core/fetcher/APIResponse.ts +23 -0
  774. package/src/api/service/core/fetcher/BinaryResponse.ts +34 -0
  775. package/src/api/service/core/fetcher/EndpointMetadata.ts +13 -0
  776. package/src/api/service/core/fetcher/EndpointSupplier.ts +14 -0
  777. package/src/api/service/core/fetcher/Fetcher.ts +397 -0
  778. package/src/api/service/core/fetcher/Headers.ts +93 -0
  779. package/src/api/service/core/fetcher/HttpResponsePromise.ts +116 -0
  780. package/src/api/service/core/fetcher/RawResponse.ts +61 -0
  781. package/src/api/service/core/fetcher/Supplier.ts +11 -0
  782. package/src/api/service/core/fetcher/createRequestUrl.ts +6 -0
  783. package/src/api/service/core/fetcher/getErrorResponseBody.ts +33 -0
  784. package/src/api/service/core/fetcher/getFetchFn.ts +3 -0
  785. package/src/api/service/core/fetcher/getHeader.ts +8 -0
  786. package/src/api/service/core/fetcher/getRequestBody.ts +20 -0
  787. package/src/api/service/core/fetcher/getResponseBody.ts +58 -0
  788. package/src/api/service/core/fetcher/index.ts +11 -0
  789. package/src/api/service/core/fetcher/makeRequest.ts +42 -0
  790. package/src/api/service/core/fetcher/requestWithRetries.ts +64 -0
  791. package/src/api/service/core/fetcher/signals.ts +26 -0
  792. package/src/api/service/core/headers.ts +33 -0
  793. package/src/api/service/core/index.ts +6 -0
  794. package/src/api/service/core/json.ts +27 -0
  795. package/src/api/service/core/logging/exports.ts +19 -0
  796. package/src/api/service/core/logging/index.ts +1 -0
  797. package/src/api/service/core/logging/logger.ts +203 -0
  798. package/src/api/service/core/runtime/index.ts +1 -0
  799. package/src/api/service/core/runtime/runtime.ts +134 -0
  800. package/src/api/service/core/url/encodePathParam.ts +18 -0
  801. package/src/api/service/core/url/index.ts +3 -0
  802. package/src/api/service/core/url/join.ts +79 -0
  803. package/src/api/service/core/url/qs.ts +74 -0
  804. package/src/api/service/environments.ts +7 -0
  805. package/src/api/service/errors/HubServiceError.ts +58 -0
  806. package/src/api/service/errors/HubServiceTimeoutError.ts +13 -0
  807. package/src/api/service/errors/handleNonStatusCodeError.ts +37 -0
  808. package/src/api/service/errors/index.ts +2 -0
  809. package/src/api/service/exports.ts +1 -0
  810. package/src/api/service/index.ts +6 -0
  811. package/src/client.test.ts +29 -0
  812. package/tsconfig.json +18 -0
  813. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,767 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+
3
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
4
+ import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
5
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
6
+ import * as core from "../../../../core/index.js";
7
+ import * as environments from "../../../../environments.js";
8
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
9
+ import * as errors from "../../../../errors/index.js";
10
+ import * as HubPlatform from "../../../index.js";
11
+
12
+ export declare namespace DataPoolsClient {
13
+ export type Options = BaseClientOptions;
14
+
15
+ export interface RequestOptions extends BaseRequestOptions {}
16
+ }
17
+
18
+ /**
19
+ * Manage data pools, which are organized collections of files that serve as reusable data sources for services.
20
+ */
21
+ export class DataPoolsClient {
22
+ protected readonly _options: NormalizedClientOptionsWithAuth<DataPoolsClient.Options>;
23
+
24
+ constructor(options: DataPoolsClient.Options) {
25
+ this._options = normalizeClientOptionsWithAuth(options);
26
+ }
27
+
28
+ /**
29
+ * Get a specific data pool (identified by its ID).
30
+ *
31
+ * @param {HubPlatform.GetDataPoolRequest} request
32
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @throws {@link HubPlatform.UnauthorizedError}
35
+ * @throws {@link HubPlatform.ForbiddenError}
36
+ * @throws {@link HubPlatform.NotFoundError}
37
+ * @throws {@link HubPlatform.InternalServerError}
38
+ *
39
+ * @example
40
+ * await client.dataPools.getDataPool({
41
+ * id: "id"
42
+ * })
43
+ */
44
+ public getDataPool(
45
+ request: HubPlatform.GetDataPoolRequest,
46
+ requestOptions?: DataPoolsClient.RequestOptions,
47
+ ): core.HttpResponsePromise<HubPlatform.DataPoolDto> {
48
+ return core.HttpResponsePromise.fromPromise(this.__getDataPool(request, requestOptions));
49
+ }
50
+
51
+ private async __getDataPool(
52
+ request: HubPlatform.GetDataPoolRequest,
53
+ requestOptions?: DataPoolsClient.RequestOptions,
54
+ ): Promise<core.WithRawResponse<HubPlatform.DataPoolDto>> {
55
+ const { id } = request;
56
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
57
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
58
+ _authRequest.headers,
59
+ this._options?.headers,
60
+ mergeOnlyDefinedHeaders({
61
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
62
+ }),
63
+ requestOptions?.headers,
64
+ );
65
+ const _response = await core.fetcher({
66
+ url: core.url.join(
67
+ (await core.Supplier.get(this._options.baseUrl)) ??
68
+ (await core.Supplier.get(this._options.environment)) ??
69
+ environments.HubPlatformEnvironment.Default,
70
+ `datapools/${core.url.encodePathParam(id)}`,
71
+ ),
72
+ method: "GET",
73
+ headers: _headers,
74
+ queryParameters: requestOptions?.queryParams,
75
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
76
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
77
+ withCredentials: true,
78
+ abortSignal: requestOptions?.abortSignal,
79
+ fetchFn: this._options?.fetch,
80
+ logging: this._options.logging,
81
+ });
82
+ if (_response.ok) {
83
+ return { data: _response.body as HubPlatform.DataPoolDto, rawResponse: _response.rawResponse };
84
+ }
85
+
86
+ if (_response.error.reason === "status-code") {
87
+ switch (_response.error.statusCode) {
88
+ case 401:
89
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
90
+ case 403:
91
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
92
+ case 404:
93
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
94
+ case 500:
95
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
96
+ default:
97
+ throw new errors.HubPlatformError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.body,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ }
103
+ }
104
+
105
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/datapools/{id}");
106
+ }
107
+
108
+ /**
109
+ * Update an existing data pool (identified by its ID).
110
+ *
111
+ * @param {HubPlatform.UpdateDataPoolRequest} request
112
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @throws {@link HubPlatform.BadRequestError}
115
+ * @throws {@link HubPlatform.UnauthorizedError}
116
+ * @throws {@link HubPlatform.ForbiddenError}
117
+ * @throws {@link HubPlatform.NotFoundError}
118
+ * @throws {@link HubPlatform.InternalServerError}
119
+ *
120
+ * @example
121
+ * await client.dataPools.updateDataPool({
122
+ * id: "id"
123
+ * })
124
+ */
125
+ public updateDataPool(
126
+ request: HubPlatform.UpdateDataPoolRequest,
127
+ requestOptions?: DataPoolsClient.RequestOptions,
128
+ ): core.HttpResponsePromise<HubPlatform.DataPoolDto> {
129
+ return core.HttpResponsePromise.fromPromise(this.__updateDataPool(request, requestOptions));
130
+ }
131
+
132
+ private async __updateDataPool(
133
+ request: HubPlatform.UpdateDataPoolRequest,
134
+ requestOptions?: DataPoolsClient.RequestOptions,
135
+ ): Promise<core.WithRawResponse<HubPlatform.DataPoolDto>> {
136
+ const { id, ..._body } = request;
137
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
138
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
139
+ _authRequest.headers,
140
+ this._options?.headers,
141
+ mergeOnlyDefinedHeaders({
142
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
143
+ }),
144
+ requestOptions?.headers,
145
+ );
146
+ const _response = await core.fetcher({
147
+ url: core.url.join(
148
+ (await core.Supplier.get(this._options.baseUrl)) ??
149
+ (await core.Supplier.get(this._options.environment)) ??
150
+ environments.HubPlatformEnvironment.Default,
151
+ `datapools/${core.url.encodePathParam(id)}`,
152
+ ),
153
+ method: "PUT",
154
+ headers: _headers,
155
+ contentType: "application/json",
156
+ queryParameters: requestOptions?.queryParams,
157
+ requestType: "json",
158
+ body: _body,
159
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
160
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
161
+ withCredentials: true,
162
+ abortSignal: requestOptions?.abortSignal,
163
+ fetchFn: this._options?.fetch,
164
+ logging: this._options.logging,
165
+ });
166
+ if (_response.ok) {
167
+ return { data: _response.body as HubPlatform.DataPoolDto, rawResponse: _response.rawResponse };
168
+ }
169
+
170
+ if (_response.error.reason === "status-code") {
171
+ switch (_response.error.statusCode) {
172
+ case 400:
173
+ throw new HubPlatform.BadRequestError(_response.error.body as any, _response.rawResponse);
174
+ case 401:
175
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
176
+ case 403:
177
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
178
+ case 404:
179
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
180
+ case 500:
181
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
182
+ default:
183
+ throw new errors.HubPlatformError({
184
+ statusCode: _response.error.statusCode,
185
+ body: _response.error.body,
186
+ rawResponse: _response.rawResponse,
187
+ });
188
+ }
189
+ }
190
+
191
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/datapools/{id}");
192
+ }
193
+
194
+ /**
195
+ * Delete a specific data pool (identified by its ID).
196
+ *
197
+ * @param {HubPlatform.DeleteDataPoolRequest} request
198
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
199
+ *
200
+ * @throws {@link HubPlatform.UnauthorizedError}
201
+ * @throws {@link HubPlatform.ForbiddenError}
202
+ * @throws {@link HubPlatform.NotFoundError}
203
+ * @throws {@link HubPlatform.InternalServerError}
204
+ *
205
+ * @example
206
+ * await client.dataPools.deleteDataPool({
207
+ * id: "id"
208
+ * })
209
+ */
210
+ public deleteDataPool(
211
+ request: HubPlatform.DeleteDataPoolRequest,
212
+ requestOptions?: DataPoolsClient.RequestOptions,
213
+ ): core.HttpResponsePromise<void> {
214
+ return core.HttpResponsePromise.fromPromise(this.__deleteDataPool(request, requestOptions));
215
+ }
216
+
217
+ private async __deleteDataPool(
218
+ request: HubPlatform.DeleteDataPoolRequest,
219
+ requestOptions?: DataPoolsClient.RequestOptions,
220
+ ): Promise<core.WithRawResponse<void>> {
221
+ const { id } = request;
222
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
223
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
224
+ _authRequest.headers,
225
+ this._options?.headers,
226
+ mergeOnlyDefinedHeaders({
227
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
228
+ }),
229
+ requestOptions?.headers,
230
+ );
231
+ const _response = await core.fetcher({
232
+ url: core.url.join(
233
+ (await core.Supplier.get(this._options.baseUrl)) ??
234
+ (await core.Supplier.get(this._options.environment)) ??
235
+ environments.HubPlatformEnvironment.Default,
236
+ `datapools/${core.url.encodePathParam(id)}`,
237
+ ),
238
+ method: "DELETE",
239
+ headers: _headers,
240
+ queryParameters: requestOptions?.queryParams,
241
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
242
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
243
+ withCredentials: true,
244
+ abortSignal: requestOptions?.abortSignal,
245
+ fetchFn: this._options?.fetch,
246
+ logging: this._options.logging,
247
+ });
248
+ if (_response.ok) {
249
+ return { data: undefined, rawResponse: _response.rawResponse };
250
+ }
251
+
252
+ if (_response.error.reason === "status-code") {
253
+ switch (_response.error.statusCode) {
254
+ case 401:
255
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
256
+ case 403:
257
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
258
+ case 404:
259
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
260
+ case 500:
261
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
262
+ default:
263
+ throw new errors.HubPlatformError({
264
+ statusCode: _response.error.statusCode,
265
+ body: _response.error.body,
266
+ rawResponse: _response.rawResponse,
267
+ });
268
+ }
269
+ }
270
+
271
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/datapools/{id}");
272
+ }
273
+
274
+ /**
275
+ * Get a list of all data pools for the current user or organization.
276
+ *
277
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
278
+ *
279
+ * @throws {@link HubPlatform.UnauthorizedError}
280
+ * @throws {@link HubPlatform.ForbiddenError}
281
+ * @throws {@link HubPlatform.NotFoundError}
282
+ * @throws {@link HubPlatform.InternalServerError}
283
+ *
284
+ * @example
285
+ * await client.dataPools.getDataPools()
286
+ */
287
+ public getDataPools(
288
+ requestOptions?: DataPoolsClient.RequestOptions,
289
+ ): core.HttpResponsePromise<HubPlatform.DataPoolDto[]> {
290
+ return core.HttpResponsePromise.fromPromise(this.__getDataPools(requestOptions));
291
+ }
292
+
293
+ private async __getDataPools(
294
+ requestOptions?: DataPoolsClient.RequestOptions,
295
+ ): Promise<core.WithRawResponse<HubPlatform.DataPoolDto[]>> {
296
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
297
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
298
+ _authRequest.headers,
299
+ this._options?.headers,
300
+ mergeOnlyDefinedHeaders({
301
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
302
+ }),
303
+ requestOptions?.headers,
304
+ );
305
+ const _response = await core.fetcher({
306
+ url: core.url.join(
307
+ (await core.Supplier.get(this._options.baseUrl)) ??
308
+ (await core.Supplier.get(this._options.environment)) ??
309
+ environments.HubPlatformEnvironment.Default,
310
+ "datapools",
311
+ ),
312
+ method: "GET",
313
+ headers: _headers,
314
+ queryParameters: requestOptions?.queryParams,
315
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
316
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
317
+ withCredentials: true,
318
+ abortSignal: requestOptions?.abortSignal,
319
+ fetchFn: this._options?.fetch,
320
+ logging: this._options.logging,
321
+ });
322
+ if (_response.ok) {
323
+ return { data: _response.body as HubPlatform.DataPoolDto[], rawResponse: _response.rawResponse };
324
+ }
325
+
326
+ if (_response.error.reason === "status-code") {
327
+ switch (_response.error.statusCode) {
328
+ case 401:
329
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
330
+ case 403:
331
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
332
+ case 404:
333
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
334
+ case 500:
335
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
336
+ default:
337
+ throw new errors.HubPlatformError({
338
+ statusCode: _response.error.statusCode,
339
+ body: _response.error.body,
340
+ rawResponse: _response.rawResponse,
341
+ });
342
+ }
343
+ }
344
+
345
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/datapools");
346
+ }
347
+
348
+ /**
349
+ * Create a new data pool.
350
+ *
351
+ * @param {HubPlatform.CreateDataPoolRequest} request
352
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
353
+ *
354
+ * @throws {@link HubPlatform.BadRequestError}
355
+ * @throws {@link HubPlatform.UnauthorizedError}
356
+ * @throws {@link HubPlatform.ForbiddenError}
357
+ * @throws {@link HubPlatform.NotFoundError}
358
+ * @throws {@link HubPlatform.InternalServerError}
359
+ *
360
+ * @example
361
+ * await client.dataPools.createDataPool()
362
+ */
363
+ public createDataPool(
364
+ request: HubPlatform.CreateDataPoolRequest = {},
365
+ requestOptions?: DataPoolsClient.RequestOptions,
366
+ ): core.HttpResponsePromise<HubPlatform.DataPoolDto> {
367
+ return core.HttpResponsePromise.fromPromise(this.__createDataPool(request, requestOptions));
368
+ }
369
+
370
+ private async __createDataPool(
371
+ request: HubPlatform.CreateDataPoolRequest = {},
372
+ requestOptions?: DataPoolsClient.RequestOptions,
373
+ ): Promise<core.WithRawResponse<HubPlatform.DataPoolDto>> {
374
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
375
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
376
+ _authRequest.headers,
377
+ this._options?.headers,
378
+ mergeOnlyDefinedHeaders({
379
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
380
+ }),
381
+ requestOptions?.headers,
382
+ );
383
+ const _response = await core.fetcher({
384
+ url: core.url.join(
385
+ (await core.Supplier.get(this._options.baseUrl)) ??
386
+ (await core.Supplier.get(this._options.environment)) ??
387
+ environments.HubPlatformEnvironment.Default,
388
+ "datapools",
389
+ ),
390
+ method: "POST",
391
+ headers: _headers,
392
+ contentType: "application/json",
393
+ queryParameters: requestOptions?.queryParams,
394
+ requestType: "json",
395
+ body: request,
396
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
397
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
398
+ withCredentials: true,
399
+ abortSignal: requestOptions?.abortSignal,
400
+ fetchFn: this._options?.fetch,
401
+ logging: this._options.logging,
402
+ });
403
+ if (_response.ok) {
404
+ return { data: _response.body as HubPlatform.DataPoolDto, rawResponse: _response.rawResponse };
405
+ }
406
+
407
+ if (_response.error.reason === "status-code") {
408
+ switch (_response.error.statusCode) {
409
+ case 400:
410
+ throw new HubPlatform.BadRequestError(_response.error.body as any, _response.rawResponse);
411
+ case 401:
412
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
413
+ case 403:
414
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
415
+ case 404:
416
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
417
+ case 500:
418
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
419
+ default:
420
+ throw new errors.HubPlatformError({
421
+ statusCode: _response.error.statusCode,
422
+ body: _response.error.body,
423
+ rawResponse: _response.rawResponse,
424
+ });
425
+ }
426
+ }
427
+
428
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/datapools");
429
+ }
430
+
431
+ /**
432
+ * Get all files associated with a specific data pool (identified by its ID).
433
+ *
434
+ * @param {HubPlatform.GetDataPoolFilesRequest} request
435
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
436
+ *
437
+ * @throws {@link HubPlatform.UnauthorizedError}
438
+ * @throws {@link HubPlatform.ForbiddenError}
439
+ * @throws {@link HubPlatform.NotFoundError}
440
+ * @throws {@link HubPlatform.InternalServerError}
441
+ *
442
+ * @example
443
+ * await client.dataPools.getDataPoolFiles({
444
+ * id: "id"
445
+ * })
446
+ */
447
+ public getDataPoolFiles(
448
+ request: HubPlatform.GetDataPoolFilesRequest,
449
+ requestOptions?: DataPoolsClient.RequestOptions,
450
+ ): core.HttpResponsePromise<HubPlatform.DataPoolFileDto[]> {
451
+ return core.HttpResponsePromise.fromPromise(this.__getDataPoolFiles(request, requestOptions));
452
+ }
453
+
454
+ private async __getDataPoolFiles(
455
+ request: HubPlatform.GetDataPoolFilesRequest,
456
+ requestOptions?: DataPoolsClient.RequestOptions,
457
+ ): Promise<core.WithRawResponse<HubPlatform.DataPoolFileDto[]>> {
458
+ const { id } = request;
459
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
460
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
461
+ _authRequest.headers,
462
+ this._options?.headers,
463
+ mergeOnlyDefinedHeaders({
464
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
465
+ }),
466
+ requestOptions?.headers,
467
+ );
468
+ const _response = await core.fetcher({
469
+ url: core.url.join(
470
+ (await core.Supplier.get(this._options.baseUrl)) ??
471
+ (await core.Supplier.get(this._options.environment)) ??
472
+ environments.HubPlatformEnvironment.Default,
473
+ `datapools/${core.url.encodePathParam(id)}/files`,
474
+ ),
475
+ method: "GET",
476
+ headers: _headers,
477
+ queryParameters: requestOptions?.queryParams,
478
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
479
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
480
+ withCredentials: true,
481
+ abortSignal: requestOptions?.abortSignal,
482
+ fetchFn: this._options?.fetch,
483
+ logging: this._options.logging,
484
+ });
485
+ if (_response.ok) {
486
+ return { data: _response.body as HubPlatform.DataPoolFileDto[], rawResponse: _response.rawResponse };
487
+ }
488
+
489
+ if (_response.error.reason === "status-code") {
490
+ switch (_response.error.statusCode) {
491
+ case 401:
492
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
493
+ case 403:
494
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
495
+ case 404:
496
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
497
+ case 500:
498
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
499
+ default:
500
+ throw new errors.HubPlatformError({
501
+ statusCode: _response.error.statusCode,
502
+ body: _response.error.body,
503
+ rawResponse: _response.rawResponse,
504
+ });
505
+ }
506
+ }
507
+
508
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/datapools/{id}/files");
509
+ }
510
+
511
+ /**
512
+ * Add a new file to a specific data pool (identified by its ID).
513
+ *
514
+ * @param {HubPlatform.AddDataPoolFileRequest} request
515
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
516
+ *
517
+ * @throws {@link HubPlatform.BadRequestError}
518
+ * @throws {@link HubPlatform.UnauthorizedError}
519
+ * @throws {@link HubPlatform.ForbiddenError}
520
+ * @throws {@link HubPlatform.NotFoundError}
521
+ * @throws {@link HubPlatform.InternalServerError}
522
+ *
523
+ * @example
524
+ * import { createReadStream } from "fs";
525
+ * await client.dataPools.addDataPoolFile({
526
+ * file: fs.createReadStream("/path/to/your/file"),
527
+ * id: "id"
528
+ * })
529
+ */
530
+ public addDataPoolFile(
531
+ request: HubPlatform.AddDataPoolFileRequest,
532
+ requestOptions?: DataPoolsClient.RequestOptions,
533
+ ): core.HttpResponsePromise<HubPlatform.DataPoolFileDto> {
534
+ return core.HttpResponsePromise.fromPromise(this.__addDataPoolFile(request, requestOptions));
535
+ }
536
+
537
+ private async __addDataPoolFile(
538
+ request: HubPlatform.AddDataPoolFileRequest,
539
+ requestOptions?: DataPoolsClient.RequestOptions,
540
+ ): Promise<core.WithRawResponse<HubPlatform.DataPoolFileDto>> {
541
+ const _queryParams: Record<string, unknown> = {
542
+ filename: request.filename,
543
+ };
544
+ const _body = await core.newFormData();
545
+ await _body.appendFile("file", request.file);
546
+ const _maybeEncodedRequest = await _body.getRequest();
547
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
548
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
549
+ _authRequest.headers,
550
+ this._options?.headers,
551
+ mergeOnlyDefinedHeaders({
552
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
553
+ ..._maybeEncodedRequest.headers,
554
+ }),
555
+ requestOptions?.headers,
556
+ );
557
+ const _response = await core.fetcher({
558
+ url: core.url.join(
559
+ (await core.Supplier.get(this._options.baseUrl)) ??
560
+ (await core.Supplier.get(this._options.environment)) ??
561
+ environments.HubPlatformEnvironment.Default,
562
+ `datapools/${core.url.encodePathParam(request.id)}/files`,
563
+ ),
564
+ method: "POST",
565
+ headers: _headers,
566
+ queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
567
+ requestType: "file",
568
+ duplex: _maybeEncodedRequest.duplex,
569
+ body: _maybeEncodedRequest.body,
570
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
571
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
572
+ withCredentials: true,
573
+ abortSignal: requestOptions?.abortSignal,
574
+ fetchFn: this._options?.fetch,
575
+ logging: this._options.logging,
576
+ });
577
+ if (_response.ok) {
578
+ return { data: _response.body as HubPlatform.DataPoolFileDto, rawResponse: _response.rawResponse };
579
+ }
580
+
581
+ if (_response.error.reason === "status-code") {
582
+ switch (_response.error.statusCode) {
583
+ case 400:
584
+ throw new HubPlatform.BadRequestError(_response.error.body as any, _response.rawResponse);
585
+ case 401:
586
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
587
+ case 403:
588
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
589
+ case 404:
590
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
591
+ case 500:
592
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
593
+ default:
594
+ throw new errors.HubPlatformError({
595
+ statusCode: _response.error.statusCode,
596
+ body: _response.error.body,
597
+ rawResponse: _response.rawResponse,
598
+ });
599
+ }
600
+ }
601
+
602
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/datapools/{id}/files");
603
+ }
604
+
605
+ /**
606
+ * Get the content of a specific file from a data pool (both file and data pool identified by their ID).
607
+ * @throws {@link HubPlatform.UnauthorizedError}
608
+ * @throws {@link HubPlatform.ForbiddenError}
609
+ * @throws {@link HubPlatform.NotFoundError}
610
+ * @throws {@link HubPlatform.InternalServerError}
611
+ */
612
+ public getDataPoolFile(
613
+ request: HubPlatform.GetDataPoolFileRequest,
614
+ requestOptions?: DataPoolsClient.RequestOptions,
615
+ ): core.HttpResponsePromise<core.BinaryResponse> {
616
+ return core.HttpResponsePromise.fromPromise(this.__getDataPoolFile(request, requestOptions));
617
+ }
618
+
619
+ private async __getDataPoolFile(
620
+ request: HubPlatform.GetDataPoolFileRequest,
621
+ requestOptions?: DataPoolsClient.RequestOptions,
622
+ ): Promise<core.WithRawResponse<core.BinaryResponse>> {
623
+ const { id, fileId } = request;
624
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
625
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
626
+ _authRequest.headers,
627
+ this._options?.headers,
628
+ mergeOnlyDefinedHeaders({
629
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
630
+ }),
631
+ requestOptions?.headers,
632
+ );
633
+ const _response = await core.fetcher<core.BinaryResponse>({
634
+ url: core.url.join(
635
+ (await core.Supplier.get(this._options.baseUrl)) ??
636
+ (await core.Supplier.get(this._options.environment)) ??
637
+ environments.HubPlatformEnvironment.Default,
638
+ `datapools/${core.url.encodePathParam(id)}/files/${core.url.encodePathParam(fileId)}`,
639
+ ),
640
+ method: "GET",
641
+ headers: _headers,
642
+ queryParameters: requestOptions?.queryParams,
643
+ responseType: "binary-response",
644
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
645
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
646
+ withCredentials: true,
647
+ abortSignal: requestOptions?.abortSignal,
648
+ fetchFn: this._options?.fetch,
649
+ logging: this._options.logging,
650
+ });
651
+ if (_response.ok) {
652
+ return { data: _response.body, rawResponse: _response.rawResponse };
653
+ }
654
+
655
+ if (_response.error.reason === "status-code") {
656
+ switch (_response.error.statusCode) {
657
+ case 401:
658
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
659
+ case 403:
660
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
661
+ case 404:
662
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
663
+ case 500:
664
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
665
+ default:
666
+ throw new errors.HubPlatformError({
667
+ statusCode: _response.error.statusCode,
668
+ body: _response.error.body,
669
+ rawResponse: _response.rawResponse,
670
+ });
671
+ }
672
+ }
673
+
674
+ return handleNonStatusCodeError(
675
+ _response.error,
676
+ _response.rawResponse,
677
+ "GET",
678
+ "/datapools/{id}/files/{fileId}",
679
+ );
680
+ }
681
+
682
+ /**
683
+ * Delete a specific file from a data pool (both file and data pool identified by their IDs).
684
+ *
685
+ * @param {HubPlatform.DeleteDataPoolFileRequest} request
686
+ * @param {DataPoolsClient.RequestOptions} requestOptions - Request-specific configuration.
687
+ *
688
+ * @throws {@link HubPlatform.UnauthorizedError}
689
+ * @throws {@link HubPlatform.ForbiddenError}
690
+ * @throws {@link HubPlatform.NotFoundError}
691
+ * @throws {@link HubPlatform.InternalServerError}
692
+ *
693
+ * @example
694
+ * await client.dataPools.deleteDataPoolFile({
695
+ * id: "id",
696
+ * fileId: "fileId"
697
+ * })
698
+ */
699
+ public deleteDataPoolFile(
700
+ request: HubPlatform.DeleteDataPoolFileRequest,
701
+ requestOptions?: DataPoolsClient.RequestOptions,
702
+ ): core.HttpResponsePromise<void> {
703
+ return core.HttpResponsePromise.fromPromise(this.__deleteDataPoolFile(request, requestOptions));
704
+ }
705
+
706
+ private async __deleteDataPoolFile(
707
+ request: HubPlatform.DeleteDataPoolFileRequest,
708
+ requestOptions?: DataPoolsClient.RequestOptions,
709
+ ): Promise<core.WithRawResponse<void>> {
710
+ const { id, fileId } = request;
711
+ const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
712
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
713
+ _authRequest.headers,
714
+ this._options?.headers,
715
+ mergeOnlyDefinedHeaders({
716
+ "X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
717
+ }),
718
+ requestOptions?.headers,
719
+ );
720
+ const _response = await core.fetcher({
721
+ url: core.url.join(
722
+ (await core.Supplier.get(this._options.baseUrl)) ??
723
+ (await core.Supplier.get(this._options.environment)) ??
724
+ environments.HubPlatformEnvironment.Default,
725
+ `datapools/${core.url.encodePathParam(id)}/files/${core.url.encodePathParam(fileId)}`,
726
+ ),
727
+ method: "DELETE",
728
+ headers: _headers,
729
+ queryParameters: requestOptions?.queryParams,
730
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
731
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
732
+ withCredentials: true,
733
+ abortSignal: requestOptions?.abortSignal,
734
+ fetchFn: this._options?.fetch,
735
+ logging: this._options.logging,
736
+ });
737
+ if (_response.ok) {
738
+ return { data: undefined, rawResponse: _response.rawResponse };
739
+ }
740
+
741
+ if (_response.error.reason === "status-code") {
742
+ switch (_response.error.statusCode) {
743
+ case 401:
744
+ throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
745
+ case 403:
746
+ throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
747
+ case 404:
748
+ throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
749
+ case 500:
750
+ throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
751
+ default:
752
+ throw new errors.HubPlatformError({
753
+ statusCode: _response.error.statusCode,
754
+ body: _response.error.body,
755
+ rawResponse: _response.rawResponse,
756
+ });
757
+ }
758
+ }
759
+
760
+ return handleNonStatusCodeError(
761
+ _response.error,
762
+ _response.rawResponse,
763
+ "DELETE",
764
+ "/datapools/{id}/files/{fileId}",
765
+ );
766
+ }
767
+ }