openlayer 0.17.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (625) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +112 -60
  3. package/api-promise.d.mts +2 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +2 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +2 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/bin/cli +53 -0
  12. package/bin/migration-config.json +6 -0
  13. package/client.d.mts +186 -0
  14. package/client.d.mts.map +1 -0
  15. package/client.d.ts +186 -0
  16. package/client.d.ts.map +1 -0
  17. package/client.js +463 -0
  18. package/client.js.map +1 -0
  19. package/client.mjs +459 -0
  20. package/client.mjs.map +1 -0
  21. package/core/api-promise.d.mts +46 -0
  22. package/core/api-promise.d.mts.map +1 -0
  23. package/core/api-promise.d.ts +46 -0
  24. package/core/api-promise.d.ts.map +1 -0
  25. package/core/api-promise.js +74 -0
  26. package/core/api-promise.js.map +1 -0
  27. package/core/api-promise.mjs +70 -0
  28. package/core/api-promise.mjs.map +1 -0
  29. package/core/error.d.mts +46 -0
  30. package/core/error.d.mts.map +1 -0
  31. package/core/error.d.ts +46 -0
  32. package/core/error.d.ts.map +1 -0
  33. package/core/error.js +113 -0
  34. package/core/error.js.map +1 -0
  35. package/core/error.mjs +97 -0
  36. package/core/error.mjs.map +1 -0
  37. package/core/resource.d.mts +6 -0
  38. package/core/resource.d.mts.map +1 -0
  39. package/core/resource.d.ts +6 -0
  40. package/core/resource.d.ts.map +1 -0
  41. package/core/resource.js +11 -0
  42. package/core/resource.js.map +1 -0
  43. package/core/resource.mjs +7 -0
  44. package/core/resource.mjs.map +1 -0
  45. package/core/uploads.d.mts +3 -0
  46. package/core/uploads.d.mts.map +1 -0
  47. package/core/uploads.d.ts +3 -0
  48. package/core/uploads.d.ts.map +1 -0
  49. package/core/uploads.js +6 -0
  50. package/core/uploads.js.map +1 -0
  51. package/core/uploads.mjs +2 -0
  52. package/core/uploads.mjs.map +1 -0
  53. package/error.d.mts +2 -0
  54. package/error.d.mts.map +1 -0
  55. package/error.d.ts +1 -46
  56. package/error.d.ts.map +1 -1
  57. package/error.js +3 -110
  58. package/error.js.map +1 -1
  59. package/error.mjs +1 -96
  60. package/error.mjs.map +1 -1
  61. package/index.d.mts +6 -124
  62. package/index.d.mts.map +1 -0
  63. package/index.d.ts +5 -123
  64. package/index.d.ts.map +1 -1
  65. package/index.js +12 -140
  66. package/index.js.map +1 -1
  67. package/index.mjs +5 -103
  68. package/index.mjs.map +1 -1
  69. package/internal/builtin-types.d.mts +73 -0
  70. package/internal/builtin-types.d.mts.map +1 -0
  71. package/internal/builtin-types.d.ts +73 -0
  72. package/internal/builtin-types.d.ts.map +1 -0
  73. package/internal/builtin-types.js +4 -0
  74. package/internal/builtin-types.js.map +1 -0
  75. package/internal/builtin-types.mjs +3 -0
  76. package/internal/builtin-types.mjs.map +1 -0
  77. package/internal/detect-platform.d.mts +15 -0
  78. package/internal/detect-platform.d.mts.map +1 -0
  79. package/internal/detect-platform.d.ts +15 -0
  80. package/internal/detect-platform.d.ts.map +1 -0
  81. package/internal/detect-platform.js +162 -0
  82. package/internal/detect-platform.js.map +1 -0
  83. package/internal/detect-platform.mjs +157 -0
  84. package/internal/detect-platform.mjs.map +1 -0
  85. package/internal/errors.d.mts +3 -0
  86. package/internal/errors.d.mts.map +1 -0
  87. package/internal/errors.d.ts +3 -0
  88. package/internal/errors.d.ts.map +1 -0
  89. package/internal/errors.js +41 -0
  90. package/internal/errors.js.map +1 -0
  91. package/internal/errors.mjs +36 -0
  92. package/internal/errors.mjs.map +1 -0
  93. package/internal/headers.d.mts +20 -0
  94. package/internal/headers.d.mts.map +1 -0
  95. package/internal/headers.d.ts +20 -0
  96. package/internal/headers.d.ts.map +1 -0
  97. package/internal/headers.js +79 -0
  98. package/internal/headers.js.map +1 -0
  99. package/internal/headers.mjs +74 -0
  100. package/internal/headers.mjs.map +1 -0
  101. package/internal/parse.d.mts +12 -0
  102. package/internal/parse.d.mts.map +1 -0
  103. package/internal/parse.d.ts +12 -0
  104. package/internal/parse.d.ts.map +1 -0
  105. package/internal/parse.js +35 -0
  106. package/internal/parse.js.map +1 -0
  107. package/internal/parse.mjs +32 -0
  108. package/internal/parse.mjs.map +1 -0
  109. package/internal/qs/formats.d.mts +7 -0
  110. package/internal/qs/formats.d.mts.map +1 -0
  111. package/internal/qs/formats.d.ts +1 -0
  112. package/internal/qs/formats.d.ts.map +1 -1
  113. package/internal/qs/formats.js +4 -2
  114. package/internal/qs/formats.js.map +1 -1
  115. package/internal/qs/formats.mjs +2 -1
  116. package/internal/qs/formats.mjs.map +1 -1
  117. package/internal/qs/index.d.mts +10 -0
  118. package/internal/qs/index.d.mts.map +1 -0
  119. package/internal/qs/index.d.ts.map +1 -1
  120. package/internal/qs/stringify.d.mts +3 -0
  121. package/internal/qs/stringify.d.mts.map +1 -0
  122. package/internal/qs/stringify.d.ts.map +1 -1
  123. package/internal/qs/stringify.js +15 -17
  124. package/internal/qs/stringify.js.map +1 -1
  125. package/internal/qs/stringify.mjs +17 -19
  126. package/internal/qs/stringify.mjs.map +1 -1
  127. package/internal/qs/types.d.mts +57 -0
  128. package/internal/qs/types.d.mts.map +1 -0
  129. package/internal/qs/utils.d.mts +15 -0
  130. package/internal/qs/utils.d.mts.map +1 -0
  131. package/internal/qs/utils.d.ts +1 -0
  132. package/internal/qs/utils.d.ts.map +1 -1
  133. package/internal/qs/utils.js +14 -13
  134. package/internal/qs/utils.js.map +1 -1
  135. package/internal/qs/utils.mjs +12 -12
  136. package/internal/qs/utils.mjs.map +1 -1
  137. package/internal/request-options.d.mts +75 -0
  138. package/internal/request-options.d.mts.map +1 -0
  139. package/internal/request-options.d.ts +75 -0
  140. package/internal/request-options.d.ts.map +1 -0
  141. package/internal/request-options.js +14 -0
  142. package/internal/request-options.js.map +1 -0
  143. package/internal/request-options.mjs +10 -0
  144. package/internal/request-options.mjs.map +1 -0
  145. package/internal/shim-types.d.mts +17 -0
  146. package/internal/shim-types.d.mts.map +1 -0
  147. package/internal/shim-types.d.ts +17 -0
  148. package/internal/shim-types.d.ts.map +1 -0
  149. package/internal/shim-types.js +4 -0
  150. package/internal/shim-types.js.map +1 -0
  151. package/internal/shim-types.mjs +3 -0
  152. package/internal/shim-types.mjs.map +1 -0
  153. package/internal/shims.d.mts +20 -0
  154. package/internal/shims.d.mts.map +1 -0
  155. package/internal/shims.d.ts +20 -0
  156. package/internal/shims.d.ts.map +1 -0
  157. package/internal/shims.js +92 -0
  158. package/internal/shims.js.map +1 -0
  159. package/internal/shims.mjs +85 -0
  160. package/internal/shims.mjs.map +1 -0
  161. package/internal/to-file.d.mts +45 -0
  162. package/internal/to-file.d.mts.map +1 -0
  163. package/internal/to-file.d.ts +45 -0
  164. package/internal/to-file.d.ts.map +1 -0
  165. package/internal/to-file.js +91 -0
  166. package/internal/to-file.js.map +1 -0
  167. package/internal/to-file.mjs +88 -0
  168. package/internal/to-file.mjs.map +1 -0
  169. package/internal/tslib.js +85 -0
  170. package/internal/tslib.mjs +17 -0
  171. package/internal/types.d.mts +69 -0
  172. package/internal/types.d.mts.map +1 -0
  173. package/internal/types.d.ts +69 -0
  174. package/internal/types.d.ts.map +1 -0
  175. package/internal/types.js +4 -0
  176. package/internal/types.js.map +1 -0
  177. package/internal/types.mjs +3 -0
  178. package/internal/types.mjs.map +1 -0
  179. package/internal/uploads.d.mts +42 -0
  180. package/internal/uploads.d.mts.map +1 -0
  181. package/internal/uploads.d.ts +42 -0
  182. package/internal/uploads.d.ts.map +1 -0
  183. package/internal/uploads.js +141 -0
  184. package/internal/uploads.js.map +1 -0
  185. package/internal/uploads.mjs +131 -0
  186. package/internal/uploads.mjs.map +1 -0
  187. package/internal/utils/base64.d.mts +3 -0
  188. package/internal/utils/base64.d.mts.map +1 -0
  189. package/internal/utils/base64.d.ts +3 -0
  190. package/internal/utils/base64.d.ts.map +1 -0
  191. package/internal/utils/base64.js +38 -0
  192. package/internal/utils/base64.js.map +1 -0
  193. package/internal/utils/base64.mjs +33 -0
  194. package/internal/utils/base64.mjs.map +1 -0
  195. package/internal/utils/bytes.d.mts +4 -0
  196. package/internal/utils/bytes.d.mts.map +1 -0
  197. package/internal/utils/bytes.d.ts +4 -0
  198. package/internal/utils/bytes.d.ts.map +1 -0
  199. package/internal/utils/bytes.js +31 -0
  200. package/internal/utils/bytes.js.map +1 -0
  201. package/internal/utils/bytes.mjs +26 -0
  202. package/internal/utils/bytes.mjs.map +1 -0
  203. package/internal/utils/env.d.mts +9 -0
  204. package/internal/utils/env.d.mts.map +1 -0
  205. package/internal/utils/env.d.ts +9 -0
  206. package/internal/utils/env.d.ts.map +1 -0
  207. package/internal/utils/env.js +22 -0
  208. package/internal/utils/env.js.map +1 -0
  209. package/internal/utils/env.mjs +18 -0
  210. package/internal/utils/env.mjs.map +1 -0
  211. package/internal/utils/log.d.mts +37 -0
  212. package/internal/utils/log.d.mts.map +1 -0
  213. package/internal/utils/log.d.ts +37 -0
  214. package/internal/utils/log.d.ts.map +1 -0
  215. package/internal/utils/log.js +85 -0
  216. package/internal/utils/log.js.map +1 -0
  217. package/internal/utils/log.mjs +79 -0
  218. package/internal/utils/log.mjs.map +1 -0
  219. package/internal/utils/path.d.mts +15 -0
  220. package/internal/utils/path.d.mts.map +1 -0
  221. package/internal/utils/path.d.ts +15 -0
  222. package/internal/utils/path.d.ts.map +1 -0
  223. package/internal/utils/path.js +79 -0
  224. package/internal/utils/path.js.map +1 -0
  225. package/internal/utils/path.mjs +74 -0
  226. package/internal/utils/path.mjs.map +1 -0
  227. package/internal/utils/sleep.d.mts +2 -0
  228. package/internal/utils/sleep.d.mts.map +1 -0
  229. package/internal/utils/sleep.d.ts +2 -0
  230. package/internal/utils/sleep.d.ts.map +1 -0
  231. package/internal/utils/sleep.js +7 -0
  232. package/internal/utils/sleep.js.map +1 -0
  233. package/internal/utils/sleep.mjs +3 -0
  234. package/internal/utils/sleep.mjs.map +1 -0
  235. package/internal/utils/uuid.d.mts +5 -0
  236. package/internal/utils/uuid.d.mts.map +1 -0
  237. package/internal/utils/uuid.d.ts +5 -0
  238. package/internal/utils/uuid.d.ts.map +1 -0
  239. package/internal/utils/uuid.js +19 -0
  240. package/internal/utils/uuid.js.map +1 -0
  241. package/internal/utils/uuid.mjs +15 -0
  242. package/internal/utils/uuid.mjs.map +1 -0
  243. package/internal/utils/values.d.mts +18 -0
  244. package/internal/utils/values.d.mts.map +1 -0
  245. package/internal/utils/values.d.ts +18 -0
  246. package/internal/utils/values.d.ts.map +1 -0
  247. package/internal/utils/values.js +112 -0
  248. package/internal/utils/values.js.map +1 -0
  249. package/internal/utils/values.mjs +94 -0
  250. package/internal/utils/values.mjs.map +1 -0
  251. package/internal/utils.d.mts +7 -0
  252. package/internal/utils.d.mts.map +1 -0
  253. package/internal/utils.d.ts +7 -0
  254. package/internal/utils.d.ts.map +1 -0
  255. package/internal/utils.js +11 -0
  256. package/internal/utils.js.map +1 -0
  257. package/internal/utils.mjs +8 -0
  258. package/internal/utils.mjs.map +1 -0
  259. package/lib/core/cli.d.mts +24 -0
  260. package/lib/core/cli.d.mts.map +1 -0
  261. package/lib/core/cli.js +3 -35
  262. package/lib/core/cli.js.map +1 -1
  263. package/lib/core/openai-monitor.d.mts +57 -0
  264. package/lib/core/openai-monitor.d.mts.map +1 -0
  265. package/lib/core/openai-monitor.d.ts.map +1 -1
  266. package/lib/core/openai-monitor.js +2 -4
  267. package/lib/core/openai-monitor.js.map +1 -1
  268. package/lib/integrations/bedrockAgentTracer.d.mts +3 -0
  269. package/lib/integrations/bedrockAgentTracer.d.mts.map +1 -0
  270. package/lib/integrations/bedrockAgentTracer.d.ts.map +1 -1
  271. package/lib/integrations/bedrockAgentTracer.js +2 -4
  272. package/lib/integrations/bedrockAgentTracer.js.map +1 -1
  273. package/lib/integrations/index.d.mts +5 -0
  274. package/lib/integrations/index.d.mts.map +1 -0
  275. package/lib/integrations/index.d.ts.map +1 -1
  276. package/lib/integrations/index.js +5 -18
  277. package/lib/integrations/index.js.map +1 -1
  278. package/lib/integrations/langchainCallback.d.mts +89 -0
  279. package/lib/integrations/langchainCallback.d.mts.map +1 -0
  280. package/lib/integrations/langchainCallback.d.ts.map +1 -1
  281. package/lib/integrations/openAiTracer.d.mts +3 -0
  282. package/lib/integrations/openAiTracer.d.mts.map +1 -0
  283. package/lib/integrations/openAiTracer.d.ts.map +1 -1
  284. package/lib/integrations/openAiTracer.js +2 -4
  285. package/lib/integrations/openAiTracer.js.map +1 -1
  286. package/lib/integrations/tracedTool.d.mts +66 -0
  287. package/lib/integrations/tracedTool.d.mts.map +1 -0
  288. package/lib/integrations/tracedTool.d.ts.map +1 -1
  289. package/lib/integrations/tracedTool.js +0 -1
  290. package/lib/integrations/tracedTool.js.map +1 -1
  291. package/lib/integrations/tracedTool.mjs +0 -1
  292. package/lib/integrations/tracedTool.mjs.map +1 -1
  293. package/lib/tracing/steps.d.mts +174 -0
  294. package/lib/tracing/steps.d.mts.map +1 -0
  295. package/lib/tracing/tracer.d.mts +94 -0
  296. package/lib/tracing/tracer.d.mts.map +1 -0
  297. package/lib/tracing/tracer.d.ts.map +1 -1
  298. package/lib/tracing/tracer.js +2 -4
  299. package/lib/tracing/tracer.js.map +1 -1
  300. package/lib/tracing/traces.d.mts +9 -0
  301. package/lib/tracing/traces.d.mts.map +1 -0
  302. package/lib/tracing/traces.d.ts.map +1 -1
  303. package/package.json +114 -65
  304. package/resource.d.mts +2 -0
  305. package/resource.d.mts.map +1 -0
  306. package/resource.d.ts +1 -5
  307. package/resource.d.ts.map +1 -1
  308. package/resource.js +3 -8
  309. package/resource.js.map +1 -1
  310. package/resource.mjs +1 -6
  311. package/resource.mjs.map +1 -1
  312. package/resources/commits/commits.d.mts +139 -0
  313. package/resources/commits/commits.d.mts.map +1 -0
  314. package/resources/commits/commits.d.ts +4 -3
  315. package/resources/commits/commits.d.ts.map +1 -1
  316. package/resources/commits/commits.js +6 -37
  317. package/resources/commits/commits.js.map +1 -1
  318. package/resources/commits/commits.mjs +4 -3
  319. package/resources/commits/commits.mjs.map +1 -1
  320. package/resources/commits/index.d.mts +3 -0
  321. package/resources/commits/index.d.mts.map +1 -0
  322. package/resources/commits/index.d.ts.map +1 -1
  323. package/resources/commits/test-results.d.mts +214 -0
  324. package/resources/commits/test-results.d.mts.map +1 -0
  325. package/resources/commits/test-results.d.ts +4 -4
  326. package/resources/commits/test-results.d.ts.map +1 -1
  327. package/resources/commits/test-results.js +7 -7
  328. package/resources/commits/test-results.js.map +1 -1
  329. package/resources/commits/test-results.mjs +7 -7
  330. package/resources/commits/test-results.mjs.map +1 -1
  331. package/resources/commits.d.mts +2 -0
  332. package/resources/commits.d.mts.map +1 -0
  333. package/resources/commits.d.ts.map +1 -1
  334. package/resources/commits.js +2 -15
  335. package/resources/commits.js.map +1 -1
  336. package/resources/index.d.mts +5 -0
  337. package/resources/index.d.mts.map +1 -0
  338. package/resources/index.d.ts.map +1 -1
  339. package/resources/inference-pipelines/data.d.mts +257 -0
  340. package/resources/inference-pipelines/data.d.mts.map +1 -0
  341. package/resources/inference-pipelines/data.d.ts +4 -3
  342. package/resources/inference-pipelines/data.d.ts.map +1 -1
  343. package/resources/inference-pipelines/data.js +7 -3
  344. package/resources/inference-pipelines/data.js.map +1 -1
  345. package/resources/inference-pipelines/data.mjs +7 -3
  346. package/resources/inference-pipelines/data.mjs.map +1 -1
  347. package/resources/inference-pipelines/index.d.mts +5 -0
  348. package/resources/inference-pipelines/index.d.mts.map +1 -0
  349. package/resources/inference-pipelines/index.d.ts.map +1 -1
  350. package/resources/inference-pipelines/inference-pipelines.d.mts +597 -0
  351. package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -0
  352. package/resources/inference-pipelines/inference-pipelines.d.ts +96 -7
  353. package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
  354. package/resources/inference-pipelines/inference-pipelines.js +36 -51
  355. package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
  356. package/resources/inference-pipelines/inference-pipelines.mjs +32 -15
  357. package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
  358. package/resources/inference-pipelines/rows.d.mts +65 -0
  359. package/resources/inference-pipelines/rows.d.mts.map +1 -0
  360. package/resources/inference-pipelines/rows.d.ts +4 -3
  361. package/resources/inference-pipelines/rows.d.ts.map +1 -1
  362. package/resources/inference-pipelines/rows.js +4 -3
  363. package/resources/inference-pipelines/rows.js.map +1 -1
  364. package/resources/inference-pipelines/rows.mjs +4 -3
  365. package/resources/inference-pipelines/rows.mjs.map +1 -1
  366. package/resources/inference-pipelines/test-results.d.mts +218 -0
  367. package/resources/inference-pipelines/test-results.d.mts.map +1 -0
  368. package/resources/inference-pipelines/test-results.d.ts +4 -4
  369. package/resources/inference-pipelines/test-results.d.ts.map +1 -1
  370. package/resources/inference-pipelines/test-results.js +15 -7
  371. package/resources/inference-pipelines/test-results.js.map +1 -1
  372. package/resources/inference-pipelines/test-results.mjs +15 -7
  373. package/resources/inference-pipelines/test-results.mjs.map +1 -1
  374. package/resources/inference-pipelines.d.mts +2 -0
  375. package/resources/inference-pipelines.d.mts.map +1 -0
  376. package/resources/inference-pipelines.d.ts.map +1 -1
  377. package/resources/inference-pipelines.js +2 -15
  378. package/resources/inference-pipelines.js.map +1 -1
  379. package/resources/projects/commits.d.mts +323 -0
  380. package/resources/projects/commits.d.mts.map +1 -0
  381. package/resources/projects/commits.d.ts +5 -5
  382. package/resources/projects/commits.d.ts.map +1 -1
  383. package/resources/projects/commits.js +16 -9
  384. package/resources/projects/commits.js.map +1 -1
  385. package/resources/projects/commits.mjs +16 -9
  386. package/resources/projects/commits.mjs.map +1 -1
  387. package/resources/projects/index.d.mts +5 -0
  388. package/resources/projects/index.d.mts.map +1 -0
  389. package/resources/projects/index.d.ts.map +1 -1
  390. package/resources/projects/inference-pipelines.d.mts +800 -0
  391. package/resources/projects/inference-pipelines.d.mts.map +1 -0
  392. package/resources/projects/inference-pipelines.d.ts +272 -5
  393. package/resources/projects/inference-pipelines.d.ts.map +1 -1
  394. package/resources/projects/inference-pipelines.js +17 -9
  395. package/resources/projects/inference-pipelines.js.map +1 -1
  396. package/resources/projects/inference-pipelines.mjs +17 -9
  397. package/resources/projects/inference-pipelines.mjs.map +1 -1
  398. package/resources/projects/projects.d.mts +249 -0
  399. package/resources/projects/projects.d.mts.map +1 -0
  400. package/resources/projects/projects.d.ts +5 -5
  401. package/resources/projects/projects.d.ts.map +1 -1
  402. package/resources/projects/projects.js +13 -41
  403. package/resources/projects/projects.js.map +1 -1
  404. package/resources/projects/projects.mjs +9 -5
  405. package/resources/projects/projects.mjs.map +1 -1
  406. package/resources/projects/tests.d.mts +501 -0
  407. package/resources/projects/tests.d.mts.map +1 -0
  408. package/resources/projects/tests.d.ts +6 -6
  409. package/resources/projects/tests.d.ts.map +1 -1
  410. package/resources/projects/tests.js +18 -11
  411. package/resources/projects/tests.js.map +1 -1
  412. package/resources/projects/tests.mjs +18 -11
  413. package/resources/projects/tests.mjs.map +1 -1
  414. package/resources/projects.d.mts +2 -0
  415. package/resources/projects.d.mts.map +1 -0
  416. package/resources/projects.d.ts.map +1 -1
  417. package/resources/projects.js +2 -15
  418. package/resources/projects.js.map +1 -1
  419. package/resources/storage/index.d.mts +3 -0
  420. package/resources/storage/index.d.mts.map +1 -0
  421. package/resources/storage/index.d.ts.map +1 -1
  422. package/resources/storage/presigned-url.d.mts +33 -0
  423. package/resources/storage/presigned-url.d.mts.map +1 -0
  424. package/resources/storage/presigned-url.d.ts +4 -3
  425. package/resources/storage/presigned-url.d.ts.map +1 -1
  426. package/resources/storage/presigned-url.js +1 -1
  427. package/resources/storage/presigned-url.js.map +1 -1
  428. package/resources/storage/presigned-url.mjs +1 -1
  429. package/resources/storage/presigned-url.mjs.map +1 -1
  430. package/resources/storage/storage.d.mts +10 -0
  431. package/resources/storage/storage.d.mts.map +1 -0
  432. package/resources/storage/storage.d.ts +1 -1
  433. package/resources/storage/storage.d.ts.map +1 -1
  434. package/resources/storage/storage.js +3 -35
  435. package/resources/storage/storage.js.map +1 -1
  436. package/resources/storage/storage.mjs +1 -1
  437. package/resources/storage.d.mts +2 -0
  438. package/resources/storage.d.mts.map +1 -0
  439. package/resources/storage.d.ts.map +1 -1
  440. package/resources/storage.js +2 -15
  441. package/resources/storage.js.map +1 -1
  442. package/resources.d.mts +2 -0
  443. package/resources.d.mts.map +1 -0
  444. package/resources.d.ts.map +1 -1
  445. package/resources.js +2 -15
  446. package/resources.js.map +1 -1
  447. package/src/api-promise.ts +2 -0
  448. package/src/client.ts +756 -0
  449. package/src/core/README.md +3 -0
  450. package/src/core/api-promise.ts +92 -0
  451. package/src/core/error.ts +130 -0
  452. package/src/core/resource.ts +11 -0
  453. package/src/core/uploads.ts +2 -0
  454. package/src/error.ts +2 -130
  455. package/src/index.ts +5 -233
  456. package/src/internal/README.md +3 -0
  457. package/src/internal/builtin-types.ts +93 -0
  458. package/src/internal/detect-platform.ts +196 -0
  459. package/src/internal/errors.ts +33 -0
  460. package/src/internal/headers.ts +97 -0
  461. package/src/internal/parse.ts +50 -0
  462. package/src/internal/qs/formats.ts +2 -1
  463. package/src/internal/qs/stringify.ts +17 -20
  464. package/src/internal/qs/utils.ts +14 -14
  465. package/src/internal/request-options.ts +91 -0
  466. package/src/internal/shim-types.ts +26 -0
  467. package/src/internal/shims.ts +107 -0
  468. package/src/internal/to-file.ts +154 -0
  469. package/src/internal/types.ts +95 -0
  470. package/src/internal/uploads.ts +187 -0
  471. package/src/internal/utils/base64.ts +40 -0
  472. package/src/internal/utils/bytes.ts +32 -0
  473. package/src/internal/utils/env.ts +18 -0
  474. package/src/internal/utils/log.ts +126 -0
  475. package/src/internal/utils/path.ts +88 -0
  476. package/src/internal/utils/sleep.ts +3 -0
  477. package/src/internal/utils/uuid.ts +17 -0
  478. package/src/internal/utils/values.ts +105 -0
  479. package/src/internal/utils.ts +8 -0
  480. package/src/lib/integrations/tracedTool.ts +0 -1
  481. package/src/resource.ts +2 -11
  482. package/src/resources/commits/commits.ts +6 -4
  483. package/src/resources/commits/test-results.ts +9 -17
  484. package/src/resources/inference-pipelines/data.ts +11 -6
  485. package/src/resources/inference-pipelines/inference-pipelines.ts +176 -40
  486. package/src/resources/inference-pipelines/rows.ts +8 -6
  487. package/src/resources/inference-pipelines/test-results.ts +9 -17
  488. package/src/resources/projects/commits.ts +13 -21
  489. package/src/resources/projects/inference-pipelines.ts +410 -21
  490. package/src/resources/projects/projects.ts +7 -12
  491. package/src/resources/projects/tests.ts +17 -25
  492. package/src/resources/storage/presigned-url.ts +4 -6
  493. package/src/resources/storage/storage.ts +1 -1
  494. package/src/tsconfig.json +2 -2
  495. package/src/uploads.ts +2 -256
  496. package/src/version.ts +1 -1
  497. package/uploads.d.mts +2 -0
  498. package/uploads.d.mts.map +1 -0
  499. package/uploads.d.ts +1 -74
  500. package/uploads.d.ts.map +1 -1
  501. package/uploads.js +3 -167
  502. package/uploads.js.map +1 -1
  503. package/uploads.mjs +1 -156
  504. package/uploads.mjs.map +1 -1
  505. package/version.d.mts +2 -0
  506. package/version.d.mts.map +1 -0
  507. package/version.d.ts +1 -1
  508. package/version.js +1 -1
  509. package/version.mjs +1 -1
  510. package/_shims/MultipartBody.d.ts +0 -9
  511. package/_shims/MultipartBody.d.ts.map +0 -1
  512. package/_shims/MultipartBody.js +0 -16
  513. package/_shims/MultipartBody.js.map +0 -1
  514. package/_shims/MultipartBody.mjs +0 -12
  515. package/_shims/MultipartBody.mjs.map +0 -1
  516. package/_shims/README.md +0 -46
  517. package/_shims/auto/runtime-bun.d.ts +0 -5
  518. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  519. package/_shims/auto/runtime-bun.js +0 -21
  520. package/_shims/auto/runtime-bun.js.map +0 -1
  521. package/_shims/auto/runtime-bun.mjs +0 -2
  522. package/_shims/auto/runtime-bun.mjs.map +0 -1
  523. package/_shims/auto/runtime-node.d.ts +0 -5
  524. package/_shims/auto/runtime-node.d.ts.map +0 -1
  525. package/_shims/auto/runtime-node.js +0 -21
  526. package/_shims/auto/runtime-node.js.map +0 -1
  527. package/_shims/auto/runtime-node.mjs +0 -2
  528. package/_shims/auto/runtime-node.mjs.map +0 -1
  529. package/_shims/auto/runtime.d.ts +0 -5
  530. package/_shims/auto/runtime.d.ts.map +0 -1
  531. package/_shims/auto/runtime.js +0 -21
  532. package/_shims/auto/runtime.js.map +0 -1
  533. package/_shims/auto/runtime.mjs +0 -2
  534. package/_shims/auto/runtime.mjs.map +0 -1
  535. package/_shims/auto/types-node.d.ts +0 -5
  536. package/_shims/auto/types-node.d.ts.map +0 -1
  537. package/_shims/auto/types-node.js +0 -21
  538. package/_shims/auto/types-node.js.map +0 -1
  539. package/_shims/auto/types-node.mjs +0 -2
  540. package/_shims/auto/types-node.mjs.map +0 -1
  541. package/_shims/auto/types.d.ts +0 -101
  542. package/_shims/auto/types.js +0 -3
  543. package/_shims/auto/types.mjs +0 -3
  544. package/_shims/bun-runtime.d.ts +0 -6
  545. package/_shims/bun-runtime.d.ts.map +0 -1
  546. package/_shims/bun-runtime.js +0 -13
  547. package/_shims/bun-runtime.js.map +0 -1
  548. package/_shims/bun-runtime.mjs +0 -10
  549. package/_shims/bun-runtime.mjs.map +0 -1
  550. package/_shims/index.d.ts +0 -83
  551. package/_shims/index.js +0 -17
  552. package/_shims/index.mjs +0 -11
  553. package/_shims/manual-types.d.ts +0 -12
  554. package/_shims/manual-types.js +0 -3
  555. package/_shims/manual-types.mjs +0 -3
  556. package/_shims/node-runtime.d.ts +0 -3
  557. package/_shims/node-runtime.d.ts.map +0 -1
  558. package/_shims/node-runtime.js +0 -98
  559. package/_shims/node-runtime.js.map +0 -1
  560. package/_shims/node-runtime.mjs +0 -56
  561. package/_shims/node-runtime.mjs.map +0 -1
  562. package/_shims/node-types.d.ts +0 -42
  563. package/_shims/node-types.js +0 -3
  564. package/_shims/node-types.mjs +0 -3
  565. package/_shims/registry.d.ts +0 -37
  566. package/_shims/registry.d.ts.map +0 -1
  567. package/_shims/registry.js +0 -41
  568. package/_shims/registry.js.map +0 -1
  569. package/_shims/registry.mjs +0 -37
  570. package/_shims/registry.mjs.map +0 -1
  571. package/_shims/web-runtime.d.ts +0 -5
  572. package/_shims/web-runtime.d.ts.map +0 -1
  573. package/_shims/web-runtime.js +0 -77
  574. package/_shims/web-runtime.js.map +0 -1
  575. package/_shims/web-runtime.mjs +0 -71
  576. package/_shims/web-runtime.mjs.map +0 -1
  577. package/_shims/web-types.d.ts +0 -83
  578. package/_shims/web-types.js +0 -3
  579. package/_shims/web-types.mjs +0 -3
  580. package/core.d.ts +0 -253
  581. package/core.d.ts.map +0 -1
  582. package/core.js +0 -924
  583. package/core.js.map +0 -1
  584. package/core.mjs +0 -892
  585. package/core.mjs.map +0 -1
  586. package/shims/node.d.ts +0 -26
  587. package/shims/node.d.ts.map +0 -1
  588. package/shims/node.js +0 -6
  589. package/shims/node.js.map +0 -1
  590. package/shims/node.mjs +0 -4
  591. package/shims/node.mjs.map +0 -1
  592. package/shims/web.d.ts +0 -26
  593. package/shims/web.d.ts.map +0 -1
  594. package/shims/web.js +0 -6
  595. package/shims/web.js.map +0 -1
  596. package/shims/web.mjs +0 -4
  597. package/shims/web.mjs.map +0 -1
  598. package/src/_shims/MultipartBody.ts +0 -9
  599. package/src/_shims/README.md +0 -46
  600. package/src/_shims/auto/runtime-bun.ts +0 -4
  601. package/src/_shims/auto/runtime-node.ts +0 -4
  602. package/src/_shims/auto/runtime.ts +0 -4
  603. package/src/_shims/auto/types-node.ts +0 -4
  604. package/src/_shims/auto/types.d.ts +0 -101
  605. package/src/_shims/auto/types.js +0 -3
  606. package/src/_shims/auto/types.mjs +0 -3
  607. package/src/_shims/bun-runtime.ts +0 -14
  608. package/src/_shims/index.d.ts +0 -83
  609. package/src/_shims/index.js +0 -17
  610. package/src/_shims/index.mjs +0 -11
  611. package/src/_shims/manual-types.d.ts +0 -12
  612. package/src/_shims/manual-types.js +0 -3
  613. package/src/_shims/manual-types.mjs +0 -3
  614. package/src/_shims/node-runtime.ts +0 -81
  615. package/src/_shims/node-types.d.ts +0 -42
  616. package/src/_shims/node-types.js +0 -3
  617. package/src/_shims/node-types.mjs +0 -3
  618. package/src/_shims/registry.ts +0 -67
  619. package/src/_shims/web-runtime.ts +0 -103
  620. package/src/_shims/web-types.d.ts +0 -83
  621. package/src/_shims/web-types.js +0 -3
  622. package/src/_shims/web-types.mjs +0 -3
  623. package/src/core.ts +0 -1236
  624. package/src/shims/node.ts +0 -50
  625. package/src/shims/web.ts +0 -50
package/error.js CHANGED
@@ -1,113 +1,6 @@
1
1
  "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.InternalServerError = exports.RateLimitError = exports.UnprocessableEntityError = exports.ConflictError = exports.NotFoundError = exports.PermissionDeniedError = exports.AuthenticationError = exports.BadRequestError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIUserAbortError = exports.APIError = exports.OpenlayerError = void 0;
5
- const core_1 = require("./core.js");
6
- class OpenlayerError extends Error {
7
- }
8
- exports.OpenlayerError = OpenlayerError;
9
- class APIError extends OpenlayerError {
10
- constructor(status, error, message, headers) {
11
- super(`${APIError.makeMessage(status, error, message)}`);
12
- this.status = status;
13
- this.headers = headers;
14
- this.error = error;
15
- }
16
- static makeMessage(status, error, message) {
17
- const msg = error?.message ?
18
- typeof error.message === 'string' ?
19
- error.message
20
- : JSON.stringify(error.message)
21
- : error ? JSON.stringify(error)
22
- : message;
23
- if (status && msg) {
24
- return `${status} ${msg}`;
25
- }
26
- if (status) {
27
- return `${status} status code (no body)`;
28
- }
29
- if (msg) {
30
- return msg;
31
- }
32
- return '(no status code or body)';
33
- }
34
- static generate(status, errorResponse, message, headers) {
35
- if (!status || !headers) {
36
- return new APIConnectionError({ message, cause: (0, core_1.castToError)(errorResponse) });
37
- }
38
- const error = errorResponse;
39
- if (status === 400) {
40
- return new BadRequestError(status, error, message, headers);
41
- }
42
- if (status === 401) {
43
- return new AuthenticationError(status, error, message, headers);
44
- }
45
- if (status === 403) {
46
- return new PermissionDeniedError(status, error, message, headers);
47
- }
48
- if (status === 404) {
49
- return new NotFoundError(status, error, message, headers);
50
- }
51
- if (status === 409) {
52
- return new ConflictError(status, error, message, headers);
53
- }
54
- if (status === 422) {
55
- return new UnprocessableEntityError(status, error, message, headers);
56
- }
57
- if (status === 429) {
58
- return new RateLimitError(status, error, message, headers);
59
- }
60
- if (status >= 500) {
61
- return new InternalServerError(status, error, message, headers);
62
- }
63
- return new APIError(status, error, message, headers);
64
- }
65
- }
66
- exports.APIError = APIError;
67
- class APIUserAbortError extends APIError {
68
- constructor({ message } = {}) {
69
- super(undefined, undefined, message || 'Request was aborted.', undefined);
70
- }
71
- }
72
- exports.APIUserAbortError = APIUserAbortError;
73
- class APIConnectionError extends APIError {
74
- constructor({ message, cause }) {
75
- super(undefined, undefined, message || 'Connection error.', undefined);
76
- // in some environments the 'cause' property is already declared
77
- // @ts-ignore
78
- if (cause)
79
- this.cause = cause;
80
- }
81
- }
82
- exports.APIConnectionError = APIConnectionError;
83
- class APIConnectionTimeoutError extends APIConnectionError {
84
- constructor({ message } = {}) {
85
- super({ message: message ?? 'Request timed out.' });
86
- }
87
- }
88
- exports.APIConnectionTimeoutError = APIConnectionTimeoutError;
89
- class BadRequestError extends APIError {
90
- }
91
- exports.BadRequestError = BadRequestError;
92
- class AuthenticationError extends APIError {
93
- }
94
- exports.AuthenticationError = AuthenticationError;
95
- class PermissionDeniedError extends APIError {
96
- }
97
- exports.PermissionDeniedError = PermissionDeniedError;
98
- class NotFoundError extends APIError {
99
- }
100
- exports.NotFoundError = NotFoundError;
101
- class ConflictError extends APIError {
102
- }
103
- exports.ConflictError = ConflictError;
104
- class UnprocessableEntityError extends APIError {
105
- }
106
- exports.UnprocessableEntityError = UnprocessableEntityError;
107
- class RateLimitError extends APIError {
108
- }
109
- exports.RateLimitError = RateLimitError;
110
- class InternalServerError extends APIError {
111
- }
112
- exports.InternalServerError = InternalServerError;
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/error instead */
5
+ tslib_1.__exportStar(require("./core/error.js"), exports);
113
6
  //# sourceMappingURL=error.js.map
package/error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;CAAG;AAA5C,wCAA4C;AAE5C,MAAa,QAIX,SAAQ,cAAc;IAQtB,YAAY,MAAe,EAAE,KAAa,EAAE,OAA2B,EAAE,OAAiB;QACxF,KAAK,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAEO,MAAM,CAAC,WAAW,CAAC,MAA0B,EAAE,KAAU,EAAE,OAA2B;QAC5F,MAAM,GAAG,GACP,KAAK,EAAE,OAAO,CAAC,CAAC;YACd,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC;gBACjC,KAAK,CAAC,OAAO;gBACf,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC;YACjC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;gBAC/B,CAAC,CAAC,OAAO,CAAC;QAEZ,IAAI,MAAM,IAAI,GAAG,EAAE,CAAC;YAClB,OAAO,GAAG,MAAM,IAAI,GAAG,EAAE,CAAC;QAC5B,CAAC;QACD,IAAI,MAAM,EAAE,CAAC;YACX,OAA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AG;AAApE,sDAAoE;AAEpE,MAAa,aAAc,SAAQ,QAAsB;CAAG;AAA5D,sCAA4D;AAE5D,MAAa,aAAc,SAAQ,QAAsB;CAAG;AAA5D,sCAA4D;AAE5D,MAAa,wBAAyB,SAAQ,QAAsB;CAAG;AAAvE,4DAAuE;AAEvE,MAAa,cAAe,SAAQ,QAAsB;CAAG;AAA7D,wCAA6D;AAE7D,MAAa,mBAAoB,SAAQ,QAAyB;CAAG;AAArE,kDAAqE"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,0DAA6B"}
package/error.mjs CHANGED
@@ -1,97 +1,2 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { castToError } from "./core.mjs";
3
- export class OpenlayerError extends Error {
4
- }
5
- export class APIError extends OpenlayerError {
6
- constructor(status, error, message, headers) {
7
- super(`${APIError.makeMessage(status, error, message)}`);
8
- this.status = status;
9
- this.headers = headers;
10
- this.error = error;
11
- }
12
- static makeMessage(status, error, message) {
13
- const msg = error?.message ?
14
- typeof error.message === 'string' ?
15
- error.message
16
- : JSON.stringify(error.message)
17
- : error ? JSON.stringify(error)
18
- : message;
19
- if (status && msg) {
20
- return `${status} ${msg}`;
21
- }
22
- if (status) {
23
- return `${status} status code (no body)`;
24
- }
25
- if (msg) {
26
- return msg;
27
- }
28
- return '(no status code or body)';
29
- }
30
- static generate(status, errorResponse, message, headers) {
31
- if (!status || !headers) {
32
- return new APIConnectionError({ message, cause: castToError(errorResponse) });
33
- }
34
- const error = errorResponse;
35
- if (status === 400) {
36
- return new BadRequestError(status, error, message, headers);
37
- }
38
- if (status === 401) {
39
- return new AuthenticationError(status, error, message, headers);
40
- }
41
- if (status === 403) {
42
- return new PermissionDeniedError(status, error, message, headers);
43
- }
44
- if (status === 404) {
45
- return new NotFoundError(status, error, message, headers);
46
- }
47
- if (status === 409) {
48
- return new ConflictError(status, error, message, headers);
49
- }
50
- if (status === 422) {
51
- return new UnprocessableEntityError(status, error, message, headers);
52
- }
53
- if (status === 429) {
54
- return new RateLimitError(status, error, message, headers);
55
- }
56
- if (status >= 500) {
57
- return new InternalServerError(status, error, message, headers);
58
- }
59
- return new APIError(status, error, message, headers);
60
- }
61
- }
62
- export class APIUserAbortError extends APIError {
63
- constructor({ message } = {}) {
64
- super(undefined, undefined, message || 'Request was aborted.', undefined);
65
- }
66
- }
67
- export class APIConnectionError extends APIError {
68
- constructor({ message, cause }) {
69
- super(undefined, undefined, message || 'Connection error.', undefined);
70
- // in some environments the 'cause' property is already declared
71
- // @ts-ignore
72
- if (cause)
73
- this.cause = cause;
74
- }
75
- }
76
- export class APIConnectionTimeoutError extends APIConnectionError {
77
- constructor({ message } = {}) {
78
- super({ message: message ?? 'Request timed out.' });
79
- }
80
- }
81
- export class BadRequestError extends APIError {
82
- }
83
- export class AuthenticationError extends APIError {
84
- }
85
- export class PermissionDeniedError extends APIError {
86
- }
87
- export class NotFoundError extends APIError {
88
- }
89
- export class ConflictError extends APIError {
90
- }
91
- export class UnprocessableEntityError extends APIError {
92
- }
93
- export class RateLimitError extends APIError {
94
- }
95
- export class InternalServerError extends APIError {
96
- }
1
+ export * from "./core/error.mjs";
97
2
  //# sourceMappingURL=error.mjs.map
package/error.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAW;AAE/B,MAAM,OAAO,cAAe,SAAQ,KAAK;CAAG;AAE5C,MAAM,OAAO,QAIX,SAAQ,cAAc;IAQtB,YAAY,MAAe,EAAE,KAAa,EAAE,OAA2B,EAAE,OAAiB;QACxF,KAAK,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,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;IAC/E,YAAY,EAAE,OAAO,EAAE,KAAK,EAA+D;QACzF,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,IAAI,mBAAmB,EAAE,SAAS,CAAC,CAAC;QACvE,gEAAgE;QAChE,aAAa;QACb,IAAI,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAChC,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,kBAAkB;IAC/D,YAAY,EAAE,OAAO,KAA2B,EAAE;QAChD,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,OAAO,eAAgB,SAAQ,QAAsB;CAAG;AAE9D,MAAM,OAAO,mBAAoB,SAAQ,QAAsB;CAAG;AAElE,MAAM,OAAO,qBAAsB,SAAQ,QAAsB;CAAG;AAEpE,MAAM,OAAO,aAAc,SAAQ,QAAsB;CAAG;AAE5D,MAAM,OAAO,aAAc,SAAQ,QAAsB;CAAG;AAE5D,MAAM,OAAO,wBAAyB,SAAQ,QAAsB;CAAG;AAEvE,MAAM,OAAO,cAAe,SAAQ,QAAsB;CAAG;AAE7D,MAAM,OAAO,mBAAoB,SAAQ,QAAyB;CAAG"}
1
+ {"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":""}
package/index.d.mts CHANGED
@@ -1,124 +1,6 @@
1
- import { type Agent } from "./_shims/index.js";
2
- import * as Core from "./core.js";
3
- import * as Errors from "./error.js";
4
- import * as Uploads from "./uploads.js";
5
- import * as API from "./resources/index.js";
6
- import { CommitRetrieveResponse, Commits } from "./resources/commits/commits.js";
7
- import { InferencePipelineRetrieveParams, InferencePipelineRetrieveResponse, InferencePipelineUpdateParams, InferencePipelineUpdateResponse, InferencePipelines } from "./resources/inference-pipelines/inference-pipelines.js";
8
- import { ProjectCreateParams, ProjectCreateResponse, ProjectListParams, ProjectListResponse, Projects } from "./resources/projects/projects.js";
9
- import { Storage } from "./resources/storage/storage.js";
10
- export interface ClientOptions {
11
- /**
12
- * Defaults to process.env['OPENLAYER_API_KEY'].
13
- */
14
- apiKey?: string | null | undefined;
15
- /**
16
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
17
- *
18
- * Defaults to process.env['OPENLAYER_BASE_URL'].
19
- */
20
- baseURL?: string | null | undefined;
21
- /**
22
- * The maximum amount of time (in milliseconds) that the client should wait for a response
23
- * from the server before timing out a single request.
24
- *
25
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
26
- * much longer than this timeout before the promise succeeds or fails.
27
- *
28
- * @unit milliseconds
29
- */
30
- timeout?: number | undefined;
31
- /**
32
- * An HTTP agent used to manage HTTP(S) connections.
33
- *
34
- * If not provided, an agent will be constructed by default in the Node.js environment,
35
- * otherwise no agent is used.
36
- */
37
- httpAgent?: Agent | undefined;
38
- /**
39
- * Specify a custom `fetch` function implementation.
40
- *
41
- * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
42
- * defined globally.
43
- */
44
- fetch?: Core.Fetch | undefined;
45
- /**
46
- * The maximum number of times that the client will retry a request in case of a
47
- * temporary failure, like a network error or a 5XX error from the server.
48
- *
49
- * @default 2
50
- */
51
- maxRetries?: number | undefined;
52
- /**
53
- * Default headers to include with every request to the API.
54
- *
55
- * These can be removed in individual requests by explicitly setting the
56
- * header to `undefined` or `null` in request options.
57
- */
58
- defaultHeaders?: Core.Headers | undefined;
59
- /**
60
- * Default query parameters to include with every request to the API.
61
- *
62
- * These can be removed in individual requests by explicitly setting the
63
- * param to `undefined` in request options.
64
- */
65
- defaultQuery?: Core.DefaultQuery | undefined;
66
- }
67
- /**
68
- * API Client for interfacing with the Openlayer API.
69
- */
70
- export declare class Openlayer extends Core.APIClient {
71
- #private;
72
- apiKey: string | null;
73
- private _options;
74
- /**
75
- * API Client for interfacing with the Openlayer API.
76
- *
77
- * @param {string | null | undefined} [opts.apiKey=process.env['OPENLAYER_API_KEY'] ?? null]
78
- * @param {string} [opts.baseURL=process.env['OPENLAYER_BASE_URL'] ?? https://api.openlayer.com/v1] - Override the default base URL for the API.
79
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
80
- * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
81
- * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
82
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
83
- * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
84
- * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
85
- */
86
- constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
87
- projects: API.Projects;
88
- commits: API.Commits;
89
- inferencePipelines: API.InferencePipelines;
90
- storage: API.Storage;
91
- protected defaultQuery(): Core.DefaultQuery | undefined;
92
- protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
93
- protected validateHeaders(headers: Core.Headers, customHeaders: Core.Headers): void;
94
- protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
95
- protected stringifyQuery(query: Record<string, unknown>): string;
96
- static Openlayer: typeof Openlayer;
97
- static DEFAULT_TIMEOUT: number;
98
- static OpenlayerError: typeof Errors.OpenlayerError;
99
- static APIError: typeof Errors.APIError;
100
- static APIConnectionError: typeof Errors.APIConnectionError;
101
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
102
- static APIUserAbortError: typeof Errors.APIUserAbortError;
103
- static NotFoundError: typeof Errors.NotFoundError;
104
- static ConflictError: typeof Errors.ConflictError;
105
- static RateLimitError: typeof Errors.RateLimitError;
106
- static BadRequestError: typeof Errors.BadRequestError;
107
- static AuthenticationError: typeof Errors.AuthenticationError;
108
- static InternalServerError: typeof Errors.InternalServerError;
109
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
110
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
111
- static toFile: typeof Uploads.toFile;
112
- static fileFromPath: typeof Uploads.fileFromPath;
113
- }
114
- export declare namespace Openlayer {
115
- export type RequestOptions = Core.RequestOptions;
116
- export { Projects as Projects, type ProjectCreateResponse as ProjectCreateResponse, type ProjectListResponse as ProjectListResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, };
117
- export { Commits as Commits, type CommitRetrieveResponse as CommitRetrieveResponse };
118
- export { InferencePipelines as InferencePipelines, type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse, type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse, type InferencePipelineRetrieveParams as InferencePipelineRetrieveParams, type InferencePipelineUpdateParams as InferencePipelineUpdateParams, };
119
- export { Storage as Storage };
120
- }
121
- export { toFile, fileFromPath } from "./uploads.js";
122
- export { OpenlayerError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
123
- export default Openlayer;
124
- //# sourceMappingURL=index.d.ts.map
1
+ export { Openlayer as default } from "./client.mjs";
2
+ export { type Uploadable, toFile } from "./core/uploads.mjs";
3
+ export { APIPromise } from "./core/api-promise.mjs";
4
+ export { Openlayer, type ClientOptions } from "./client.mjs";
5
+ export { OpenlayerError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
6
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,IAAI,OAAO,EAAE;OAExB,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE;OACjC,EACL,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
package/index.d.ts CHANGED
@@ -1,124 +1,6 @@
1
- import { type Agent } from "./_shims/index.js";
2
- import * as Core from "./core.js";
3
- import * as Errors from "./error.js";
4
- import * as Uploads from "./uploads.js";
5
- import * as API from "./resources/index.js";
6
- import { CommitRetrieveResponse, Commits } from "./resources/commits/commits.js";
7
- import { InferencePipelineRetrieveParams, InferencePipelineRetrieveResponse, InferencePipelineUpdateParams, InferencePipelineUpdateResponse, InferencePipelines } from "./resources/inference-pipelines/inference-pipelines.js";
8
- import { ProjectCreateParams, ProjectCreateResponse, ProjectListParams, ProjectListResponse, Projects } from "./resources/projects/projects.js";
9
- import { Storage } from "./resources/storage/storage.js";
10
- export interface ClientOptions {
11
- /**
12
- * Defaults to process.env['OPENLAYER_API_KEY'].
13
- */
14
- apiKey?: string | null | undefined;
15
- /**
16
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
17
- *
18
- * Defaults to process.env['OPENLAYER_BASE_URL'].
19
- */
20
- baseURL?: string | null | undefined;
21
- /**
22
- * The maximum amount of time (in milliseconds) that the client should wait for a response
23
- * from the server before timing out a single request.
24
- *
25
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
26
- * much longer than this timeout before the promise succeeds or fails.
27
- *
28
- * @unit milliseconds
29
- */
30
- timeout?: number | undefined;
31
- /**
32
- * An HTTP agent used to manage HTTP(S) connections.
33
- *
34
- * If not provided, an agent will be constructed by default in the Node.js environment,
35
- * otherwise no agent is used.
36
- */
37
- httpAgent?: Agent | undefined;
38
- /**
39
- * Specify a custom `fetch` function implementation.
40
- *
41
- * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
42
- * defined globally.
43
- */
44
- fetch?: Core.Fetch | undefined;
45
- /**
46
- * The maximum number of times that the client will retry a request in case of a
47
- * temporary failure, like a network error or a 5XX error from the server.
48
- *
49
- * @default 2
50
- */
51
- maxRetries?: number | undefined;
52
- /**
53
- * Default headers to include with every request to the API.
54
- *
55
- * These can be removed in individual requests by explicitly setting the
56
- * header to `undefined` or `null` in request options.
57
- */
58
- defaultHeaders?: Core.Headers | undefined;
59
- /**
60
- * Default query parameters to include with every request to the API.
61
- *
62
- * These can be removed in individual requests by explicitly setting the
63
- * param to `undefined` in request options.
64
- */
65
- defaultQuery?: Core.DefaultQuery | undefined;
66
- }
67
- /**
68
- * API Client for interfacing with the Openlayer API.
69
- */
70
- export declare class Openlayer extends Core.APIClient {
71
- #private;
72
- apiKey: string | null;
73
- private _options;
74
- /**
75
- * API Client for interfacing with the Openlayer API.
76
- *
77
- * @param {string | null | undefined} [opts.apiKey=process.env['OPENLAYER_API_KEY'] ?? null]
78
- * @param {string} [opts.baseURL=process.env['OPENLAYER_BASE_URL'] ?? https://api.openlayer.com/v1] - Override the default base URL for the API.
79
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
80
- * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
81
- * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
82
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
83
- * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
84
- * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
85
- */
86
- constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
87
- projects: API.Projects;
88
- commits: API.Commits;
89
- inferencePipelines: API.InferencePipelines;
90
- storage: API.Storage;
91
- protected defaultQuery(): Core.DefaultQuery | undefined;
92
- protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
93
- protected validateHeaders(headers: Core.Headers, customHeaders: Core.Headers): void;
94
- protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
95
- protected stringifyQuery(query: Record<string, unknown>): string;
96
- static Openlayer: typeof Openlayer;
97
- static DEFAULT_TIMEOUT: number;
98
- static OpenlayerError: typeof Errors.OpenlayerError;
99
- static APIError: typeof Errors.APIError;
100
- static APIConnectionError: typeof Errors.APIConnectionError;
101
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
102
- static APIUserAbortError: typeof Errors.APIUserAbortError;
103
- static NotFoundError: typeof Errors.NotFoundError;
104
- static ConflictError: typeof Errors.ConflictError;
105
- static RateLimitError: typeof Errors.RateLimitError;
106
- static BadRequestError: typeof Errors.BadRequestError;
107
- static AuthenticationError: typeof Errors.AuthenticationError;
108
- static InternalServerError: typeof Errors.InternalServerError;
109
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
110
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
111
- static toFile: typeof Uploads.toFile;
112
- static fileFromPath: typeof Uploads.fileFromPath;
113
- }
114
- export declare namespace Openlayer {
115
- export type RequestOptions = Core.RequestOptions;
116
- export { Projects as Projects, type ProjectCreateResponse as ProjectCreateResponse, type ProjectListResponse as ProjectListResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectListParams as ProjectListParams, };
117
- export { Commits as Commits, type CommitRetrieveResponse as CommitRetrieveResponse };
118
- export { InferencePipelines as InferencePipelines, type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse, type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse, type InferencePipelineRetrieveParams as InferencePipelineRetrieveParams, type InferencePipelineUpdateParams as InferencePipelineUpdateParams, };
119
- export { Storage as Storage };
120
- }
121
- export { toFile, fileFromPath } from "./uploads.js";
122
- export { OpenlayerError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
123
- export default Openlayer;
1
+ export { Openlayer as default } from "./client.js";
2
+ export { type Uploadable, toFile } from "./core/uploads.js";
3
+ export { APIPromise } from "./core/api-promise.js";
4
+ export { Openlayer, type ClientOptions } from "./client.js";
5
+ export { OpenlayerError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.js";
124
6
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,6BAA6B,EAC7B,+BAA+B,EAC/B,kBAAkB,EACnB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEnC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEpC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAE9B;;;;;OAKG;IACH,KAAK,CAAC,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