@nebula-ai/sdk 1.3.0 → 1.4.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 (423) hide show
  1. package/LICENSE +18 -4
  2. package/README.md +42 -346
  3. package/dist/index.cjs +1268 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +2824 -0
  6. package/dist/index.d.ts +2824 -0
  7. package/dist/index.js +1244 -0
  8. package/dist/index.js.map +1 -0
  9. package/package.json +40 -141
  10. package/CHANGELOG.md +0 -35
  11. package/api-promise.d.mts +0 -2
  12. package/api-promise.d.mts.map +0 -1
  13. package/api-promise.d.ts +0 -2
  14. package/api-promise.d.ts.map +0 -1
  15. package/api-promise.js +0 -6
  16. package/api-promise.js.map +0 -1
  17. package/api-promise.mjs +0 -2
  18. package/api-promise.mjs.map +0 -1
  19. package/client.d.mts +0 -205
  20. package/client.d.mts.map +0 -1
  21. package/client.d.ts +0 -205
  22. package/client.d.ts.map +0 -1
  23. package/client.js +0 -505
  24. package/client.js.map +0 -1
  25. package/client.mjs +0 -501
  26. package/client.mjs.map +0 -1
  27. package/core/api-promise.d.mts +0 -46
  28. package/core/api-promise.d.mts.map +0 -1
  29. package/core/api-promise.d.ts +0 -46
  30. package/core/api-promise.d.ts.map +0 -1
  31. package/core/api-promise.js +0 -74
  32. package/core/api-promise.js.map +0 -1
  33. package/core/api-promise.mjs +0 -70
  34. package/core/api-promise.mjs.map +0 -1
  35. package/core/error.d.mts +0 -46
  36. package/core/error.d.mts.map +0 -1
  37. package/core/error.d.ts +0 -46
  38. package/core/error.d.ts.map +0 -1
  39. package/core/error.js +0 -113
  40. package/core/error.js.map +0 -1
  41. package/core/error.mjs +0 -97
  42. package/core/error.mjs.map +0 -1
  43. package/core/resource.d.mts +0 -6
  44. package/core/resource.d.mts.map +0 -1
  45. package/core/resource.d.ts +0 -6
  46. package/core/resource.d.ts.map +0 -1
  47. package/core/resource.js +0 -11
  48. package/core/resource.js.map +0 -1
  49. package/core/resource.mjs +0 -7
  50. package/core/resource.mjs.map +0 -1
  51. package/core/uploads.d.mts +0 -3
  52. package/core/uploads.d.mts.map +0 -1
  53. package/core/uploads.d.ts +0 -3
  54. package/core/uploads.d.ts.map +0 -1
  55. package/core/uploads.js +0 -6
  56. package/core/uploads.js.map +0 -1
  57. package/core/uploads.mjs +0 -2
  58. package/core/uploads.mjs.map +0 -1
  59. package/error.d.mts +0 -2
  60. package/error.d.mts.map +0 -1
  61. package/error.d.ts +0 -2
  62. package/error.d.ts.map +0 -1
  63. package/error.js +0 -6
  64. package/error.js.map +0 -1
  65. package/error.mjs +0 -2
  66. package/error.mjs.map +0 -1
  67. package/index.d.mts +0 -13
  68. package/index.d.mts.map +0 -1
  69. package/index.d.ts +0 -13
  70. package/index.d.ts.map +0 -1
  71. package/index.js +0 -43
  72. package/index.js.map +0 -1
  73. package/index.mjs +0 -13
  74. package/index.mjs.map +0 -1
  75. package/internal/builtin-types.d.mts +0 -73
  76. package/internal/builtin-types.d.mts.map +0 -1
  77. package/internal/builtin-types.d.ts +0 -73
  78. package/internal/builtin-types.d.ts.map +0 -1
  79. package/internal/builtin-types.js +0 -4
  80. package/internal/builtin-types.js.map +0 -1
  81. package/internal/builtin-types.mjs +0 -3
  82. package/internal/builtin-types.mjs.map +0 -1
  83. package/internal/detect-platform.d.mts +0 -15
  84. package/internal/detect-platform.d.mts.map +0 -1
  85. package/internal/detect-platform.d.ts +0 -15
  86. package/internal/detect-platform.d.ts.map +0 -1
  87. package/internal/detect-platform.js +0 -162
  88. package/internal/detect-platform.js.map +0 -1
  89. package/internal/detect-platform.mjs +0 -157
  90. package/internal/detect-platform.mjs.map +0 -1
  91. package/internal/errors.d.mts +0 -3
  92. package/internal/errors.d.mts.map +0 -1
  93. package/internal/errors.d.ts +0 -3
  94. package/internal/errors.d.ts.map +0 -1
  95. package/internal/errors.js +0 -41
  96. package/internal/errors.js.map +0 -1
  97. package/internal/errors.mjs +0 -36
  98. package/internal/errors.mjs.map +0 -1
  99. package/internal/headers.d.mts +0 -20
  100. package/internal/headers.d.mts.map +0 -1
  101. package/internal/headers.d.ts +0 -20
  102. package/internal/headers.d.ts.map +0 -1
  103. package/internal/headers.js +0 -79
  104. package/internal/headers.js.map +0 -1
  105. package/internal/headers.mjs +0 -74
  106. package/internal/headers.mjs.map +0 -1
  107. package/internal/parse.d.mts +0 -12
  108. package/internal/parse.d.mts.map +0 -1
  109. package/internal/parse.d.ts +0 -12
  110. package/internal/parse.d.ts.map +0 -1
  111. package/internal/parse.js +0 -40
  112. package/internal/parse.js.map +0 -1
  113. package/internal/parse.mjs +0 -37
  114. package/internal/parse.mjs.map +0 -1
  115. package/internal/qs/formats.d.mts +0 -7
  116. package/internal/qs/formats.d.mts.map +0 -1
  117. package/internal/qs/formats.d.ts +0 -7
  118. package/internal/qs/formats.d.ts.map +0 -1
  119. package/internal/qs/formats.js +0 -13
  120. package/internal/qs/formats.js.map +0 -1
  121. package/internal/qs/formats.mjs +0 -9
  122. package/internal/qs/formats.mjs.map +0 -1
  123. package/internal/qs/index.d.mts +0 -10
  124. package/internal/qs/index.d.mts.map +0 -1
  125. package/internal/qs/index.d.ts +0 -10
  126. package/internal/qs/index.d.ts.map +0 -1
  127. package/internal/qs/index.js +0 -14
  128. package/internal/qs/index.js.map +0 -1
  129. package/internal/qs/index.mjs +0 -10
  130. package/internal/qs/index.mjs.map +0 -1
  131. package/internal/qs/stringify.d.mts +0 -3
  132. package/internal/qs/stringify.d.mts.map +0 -1
  133. package/internal/qs/stringify.d.ts +0 -3
  134. package/internal/qs/stringify.d.ts.map +0 -1
  135. package/internal/qs/stringify.js +0 -277
  136. package/internal/qs/stringify.js.map +0 -1
  137. package/internal/qs/stringify.mjs +0 -274
  138. package/internal/qs/stringify.mjs.map +0 -1
  139. package/internal/qs/types.d.mts +0 -57
  140. package/internal/qs/types.d.mts.map +0 -1
  141. package/internal/qs/types.d.ts +0 -57
  142. package/internal/qs/types.d.ts.map +0 -1
  143. package/internal/qs/types.js +0 -3
  144. package/internal/qs/types.js.map +0 -1
  145. package/internal/qs/types.mjs +0 -2
  146. package/internal/qs/types.mjs.map +0 -1
  147. package/internal/qs/utils.d.mts +0 -15
  148. package/internal/qs/utils.d.mts.map +0 -1
  149. package/internal/qs/utils.d.ts +0 -15
  150. package/internal/qs/utils.d.ts.map +0 -1
  151. package/internal/qs/utils.js +0 -230
  152. package/internal/qs/utils.js.map +0 -1
  153. package/internal/qs/utils.mjs +0 -217
  154. package/internal/qs/utils.mjs.map +0 -1
  155. package/internal/request-options.d.mts +0 -79
  156. package/internal/request-options.d.mts.map +0 -1
  157. package/internal/request-options.d.ts +0 -79
  158. package/internal/request-options.d.ts.map +0 -1
  159. package/internal/request-options.js +0 -14
  160. package/internal/request-options.js.map +0 -1
  161. package/internal/request-options.mjs +0 -10
  162. package/internal/request-options.mjs.map +0 -1
  163. package/internal/shim-types.d.mts +0 -17
  164. package/internal/shim-types.d.mts.map +0 -1
  165. package/internal/shim-types.d.ts +0 -17
  166. package/internal/shim-types.d.ts.map +0 -1
  167. package/internal/shim-types.js +0 -4
  168. package/internal/shim-types.js.map +0 -1
  169. package/internal/shim-types.mjs +0 -3
  170. package/internal/shim-types.mjs.map +0 -1
  171. package/internal/shims.d.mts +0 -20
  172. package/internal/shims.d.mts.map +0 -1
  173. package/internal/shims.d.ts +0 -20
  174. package/internal/shims.d.ts.map +0 -1
  175. package/internal/shims.js +0 -92
  176. package/internal/shims.js.map +0 -1
  177. package/internal/shims.mjs +0 -85
  178. package/internal/shims.mjs.map +0 -1
  179. package/internal/to-file.d.mts +0 -45
  180. package/internal/to-file.d.mts.map +0 -1
  181. package/internal/to-file.d.ts +0 -45
  182. package/internal/to-file.d.ts.map +0 -1
  183. package/internal/to-file.js +0 -91
  184. package/internal/to-file.js.map +0 -1
  185. package/internal/to-file.mjs +0 -88
  186. package/internal/to-file.mjs.map +0 -1
  187. package/internal/tslib.js +0 -81
  188. package/internal/tslib.mjs +0 -17
  189. package/internal/types.d.mts +0 -69
  190. package/internal/types.d.mts.map +0 -1
  191. package/internal/types.d.ts +0 -69
  192. package/internal/types.d.ts.map +0 -1
  193. package/internal/types.js +0 -4
  194. package/internal/types.js.map +0 -1
  195. package/internal/types.mjs +0 -3
  196. package/internal/types.mjs.map +0 -1
  197. package/internal/uploads.d.mts +0 -42
  198. package/internal/uploads.d.mts.map +0 -1
  199. package/internal/uploads.d.ts +0 -42
  200. package/internal/uploads.d.ts.map +0 -1
  201. package/internal/uploads.js +0 -141
  202. package/internal/uploads.js.map +0 -1
  203. package/internal/uploads.mjs +0 -131
  204. package/internal/uploads.mjs.map +0 -1
  205. package/internal/utils/base64.d.mts +0 -3
  206. package/internal/utils/base64.d.mts.map +0 -1
  207. package/internal/utils/base64.d.ts +0 -3
  208. package/internal/utils/base64.d.ts.map +0 -1
  209. package/internal/utils/base64.js +0 -38
  210. package/internal/utils/base64.js.map +0 -1
  211. package/internal/utils/base64.mjs +0 -33
  212. package/internal/utils/base64.mjs.map +0 -1
  213. package/internal/utils/bytes.d.mts +0 -4
  214. package/internal/utils/bytes.d.mts.map +0 -1
  215. package/internal/utils/bytes.d.ts +0 -4
  216. package/internal/utils/bytes.d.ts.map +0 -1
  217. package/internal/utils/bytes.js +0 -31
  218. package/internal/utils/bytes.js.map +0 -1
  219. package/internal/utils/bytes.mjs +0 -26
  220. package/internal/utils/bytes.mjs.map +0 -1
  221. package/internal/utils/env.d.mts +0 -9
  222. package/internal/utils/env.d.mts.map +0 -1
  223. package/internal/utils/env.d.ts +0 -9
  224. package/internal/utils/env.d.ts.map +0 -1
  225. package/internal/utils/env.js +0 -22
  226. package/internal/utils/env.js.map +0 -1
  227. package/internal/utils/env.mjs +0 -18
  228. package/internal/utils/env.mjs.map +0 -1
  229. package/internal/utils/log.d.mts +0 -37
  230. package/internal/utils/log.d.mts.map +0 -1
  231. package/internal/utils/log.d.ts +0 -37
  232. package/internal/utils/log.d.ts.map +0 -1
  233. package/internal/utils/log.js +0 -86
  234. package/internal/utils/log.js.map +0 -1
  235. package/internal/utils/log.mjs +0 -80
  236. package/internal/utils/log.mjs.map +0 -1
  237. package/internal/utils/path.d.mts +0 -15
  238. package/internal/utils/path.d.mts.map +0 -1
  239. package/internal/utils/path.d.ts +0 -15
  240. package/internal/utils/path.d.ts.map +0 -1
  241. package/internal/utils/path.js +0 -79
  242. package/internal/utils/path.js.map +0 -1
  243. package/internal/utils/path.mjs +0 -74
  244. package/internal/utils/path.mjs.map +0 -1
  245. package/internal/utils/query.d.mts +0 -2
  246. package/internal/utils/query.d.mts.map +0 -1
  247. package/internal/utils/query.d.ts +0 -2
  248. package/internal/utils/query.d.ts.map +0 -1
  249. package/internal/utils/query.js +0 -10
  250. package/internal/utils/query.js.map +0 -1
  251. package/internal/utils/query.mjs +0 -6
  252. package/internal/utils/query.mjs.map +0 -1
  253. package/internal/utils/sleep.d.mts +0 -2
  254. package/internal/utils/sleep.d.mts.map +0 -1
  255. package/internal/utils/sleep.d.ts +0 -2
  256. package/internal/utils/sleep.d.ts.map +0 -1
  257. package/internal/utils/sleep.js +0 -7
  258. package/internal/utils/sleep.js.map +0 -1
  259. package/internal/utils/sleep.mjs +0 -3
  260. package/internal/utils/sleep.mjs.map +0 -1
  261. package/internal/utils/uuid.d.mts +0 -5
  262. package/internal/utils/uuid.d.mts.map +0 -1
  263. package/internal/utils/uuid.d.ts +0 -5
  264. package/internal/utils/uuid.d.ts.map +0 -1
  265. package/internal/utils/uuid.js +0 -19
  266. package/internal/utils/uuid.js.map +0 -1
  267. package/internal/utils/uuid.mjs +0 -15
  268. package/internal/utils/uuid.mjs.map +0 -1
  269. package/internal/utils/values.d.mts +0 -18
  270. package/internal/utils/values.d.mts.map +0 -1
  271. package/internal/utils/values.d.ts +0 -18
  272. package/internal/utils/values.d.ts.map +0 -1
  273. package/internal/utils/values.js +0 -112
  274. package/internal/utils/values.js.map +0 -1
  275. package/internal/utils/values.mjs +0 -94
  276. package/internal/utils/values.mjs.map +0 -1
  277. package/internal/utils.d.mts +0 -8
  278. package/internal/utils.d.mts.map +0 -1
  279. package/internal/utils.d.ts +0 -8
  280. package/internal/utils.d.ts.map +0 -1
  281. package/internal/utils.js +0 -12
  282. package/internal/utils.js.map +0 -1
  283. package/internal/utils.mjs +0 -9
  284. package/internal/utils.mjs.map +0 -1
  285. package/lib/dx.d.mts +0 -96
  286. package/lib/dx.d.mts.map +0 -1
  287. package/lib/dx.d.ts +0 -96
  288. package/lib/dx.d.ts.map +0 -1
  289. package/lib/dx.js +0 -239
  290. package/lib/dx.js.map +0 -1
  291. package/lib/dx.mjs +0 -235
  292. package/lib/dx.mjs.map +0 -1
  293. package/resource.d.mts +0 -2
  294. package/resource.d.mts.map +0 -1
  295. package/resource.d.ts +0 -2
  296. package/resource.d.ts.map +0 -1
  297. package/resource.js +0 -6
  298. package/resource.js.map +0 -1
  299. package/resource.mjs +0 -2
  300. package/resource.mjs.map +0 -1
  301. package/resources/collections.d.mts +0 -289
  302. package/resources/collections.d.mts.map +0 -1
  303. package/resources/collections.d.ts +0 -289
  304. package/resources/collections.d.ts.map +0 -1
  305. package/resources/collections.js +0 -72
  306. package/resources/collections.js.map +0 -1
  307. package/resources/collections.mjs +0 -68
  308. package/resources/collections.mjs.map +0 -1
  309. package/resources/connectors.d.mts +0 -148
  310. package/resources/connectors.d.mts.map +0 -1
  311. package/resources/connectors.d.ts +0 -148
  312. package/resources/connectors.d.ts.map +0 -1
  313. package/resources/connectors.js +0 -50
  314. package/resources/connectors.js.map +0 -1
  315. package/resources/connectors.mjs +0 -46
  316. package/resources/connectors.mjs.map +0 -1
  317. package/resources/index.d.mts +0 -6
  318. package/resources/index.d.mts.map +0 -1
  319. package/resources/index.d.ts +0 -6
  320. package/resources/index.d.ts.map +0 -1
  321. package/resources/index.js +0 -13
  322. package/resources/index.js.map +0 -1
  323. package/resources/index.mjs +0 -6
  324. package/resources/index.mjs.map +0 -1
  325. package/resources/memories.d.mts +0 -1737
  326. package/resources/memories.d.mts.map +0 -1
  327. package/resources/memories.d.ts +0 -1737
  328. package/resources/memories.d.ts.map +0 -1
  329. package/resources/memories.js +0 -157
  330. package/resources/memories.js.map +0 -1
  331. package/resources/memories.mjs +0 -153
  332. package/resources/memories.mjs.map +0 -1
  333. package/resources/snapshots.d.mts +0 -281
  334. package/resources/snapshots.d.mts.map +0 -1
  335. package/resources/snapshots.d.ts +0 -281
  336. package/resources/snapshots.d.ts.map +0 -1
  337. package/resources/snapshots.js +0 -22
  338. package/resources/snapshots.js.map +0 -1
  339. package/resources/snapshots.mjs +0 -18
  340. package/resources/snapshots.mjs.map +0 -1
  341. package/resources/top-level.d.mts +0 -14
  342. package/resources/top-level.d.mts.map +0 -1
  343. package/resources/top-level.d.ts +0 -14
  344. package/resources/top-level.d.ts.map +0 -1
  345. package/resources/top-level.js +0 -4
  346. package/resources/top-level.js.map +0 -1
  347. package/resources/top-level.mjs +0 -3
  348. package/resources/top-level.mjs.map +0 -1
  349. package/resources.d.mts +0 -2
  350. package/resources.d.mts.map +0 -1
  351. package/resources.d.ts +0 -2
  352. package/resources.d.ts.map +0 -1
  353. package/resources.js +0 -5
  354. package/resources.js.map +0 -1
  355. package/resources.mjs +0 -2
  356. package/resources.mjs.map +0 -1
  357. package/src/api-promise.ts +0 -2
  358. package/src/client.ts +0 -892
  359. package/src/core/README.md +0 -3
  360. package/src/core/api-promise.ts +0 -92
  361. package/src/core/error.ts +0 -130
  362. package/src/core/resource.ts +0 -11
  363. package/src/core/uploads.ts +0 -2
  364. package/src/error.ts +0 -2
  365. package/src/index.ts +0 -36
  366. package/src/internal/README.md +0 -3
  367. package/src/internal/builtin-types.ts +0 -93
  368. package/src/internal/detect-platform.ts +0 -196
  369. package/src/internal/errors.ts +0 -33
  370. package/src/internal/headers.ts +0 -97
  371. package/src/internal/parse.ts +0 -56
  372. package/src/internal/qs/LICENSE.md +0 -13
  373. package/src/internal/qs/README.md +0 -3
  374. package/src/internal/qs/formats.ts +0 -10
  375. package/src/internal/qs/index.ts +0 -13
  376. package/src/internal/qs/stringify.ts +0 -385
  377. package/src/internal/qs/types.ts +0 -71
  378. package/src/internal/qs/utils.ts +0 -265
  379. package/src/internal/request-options.ts +0 -93
  380. package/src/internal/shim-types.ts +0 -26
  381. package/src/internal/shims.ts +0 -107
  382. package/src/internal/to-file.ts +0 -154
  383. package/src/internal/types.ts +0 -95
  384. package/src/internal/uploads.ts +0 -187
  385. package/src/internal/utils/base64.ts +0 -40
  386. package/src/internal/utils/bytes.ts +0 -32
  387. package/src/internal/utils/env.ts +0 -18
  388. package/src/internal/utils/log.ts +0 -127
  389. package/src/internal/utils/path.ts +0 -88
  390. package/src/internal/utils/query.ts +0 -7
  391. package/src/internal/utils/sleep.ts +0 -3
  392. package/src/internal/utils/uuid.ts +0 -17
  393. package/src/internal/utils/values.ts +0 -105
  394. package/src/internal/utils.ts +0 -9
  395. package/src/lib/.keep +0 -4
  396. package/src/lib/dx.ts +0 -459
  397. package/src/resource.ts +0 -2
  398. package/src/resources/collections.ts +0 -474
  399. package/src/resources/connectors.ts +0 -236
  400. package/src/resources/index.ts +0 -56
  401. package/src/resources/memories.ts +0 -2409
  402. package/src/resources/snapshots.ts +0 -387
  403. package/src/resources/top-level.ts +0 -19
  404. package/src/resources.ts +0 -1
  405. package/src/tsconfig.json +0 -11
  406. package/src/uploads.ts +0 -2
  407. package/src/version.ts +0 -1
  408. package/uploads.d.mts +0 -2
  409. package/uploads.d.mts.map +0 -1
  410. package/uploads.d.ts +0 -2
  411. package/uploads.d.ts.map +0 -1
  412. package/uploads.js +0 -6
  413. package/uploads.js.map +0 -1
  414. package/uploads.mjs +0 -2
  415. package/uploads.mjs.map +0 -1
  416. package/version.d.mts +0 -2
  417. package/version.d.mts.map +0 -1
  418. package/version.d.ts +0 -2
  419. package/version.d.ts.map +0 -1
  420. package/version.js +0 -5
  421. package/version.js.map +0 -1
  422. package/version.mjs +0 -2
  423. package/version.mjs.map +0 -1
@@ -1,289 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- export declare class Collections extends APIResource {
5
- /**
6
- * Create a new collection and automatically add the creating user to it.
7
- *
8
- * This endpoint allows authenticated users to create a new collection with a
9
- * specified name and optional description. The user creating the collection is
10
- * automatically added as a member.
11
- */
12
- create(body: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse>;
13
- /**
14
- * Get details of a specific collection.
15
- *
16
- * This endpoint retrieves detailed information about a single collection
17
- * identified by its UUID. The user must have access to the collection to view its
18
- * details.
19
- */
20
- retrieve(id: string, options?: RequestOptions): APIPromise<CollectionRetrieveResponse>;
21
- /**
22
- * Update an existing collection's configuration.
23
- *
24
- * This endpoint allows updating the name, description, and access settings of an
25
- * existing collection. The user must have appropriate permissions to modify the
26
- * collection.
27
- */
28
- update(id: string, body: CollectionUpdateParams, options?: RequestOptions): APIPromise<CollectionUpdateResponse>;
29
- /**
30
- * Returns a paginated list of collections the authenticated user has access to.
31
- *
32
- * Results can be filtered by providing specific collection IDs. Regular users will
33
- * only see collections they own or have access to. Superusers can see all
34
- * collections.
35
- *
36
- * The collections are returned in order of last modification, with most recent
37
- * first.
38
- */
39
- list(query?: CollectionListParams | null | undefined, options?: RequestOptions): APIPromise<CollectionListResponse>;
40
- /**
41
- * Delete an existing collection.
42
- *
43
- * This endpoint allows deletion of a collection identified by its UUID. The user
44
- * must have appropriate permissions to delete the collection. Deleting a
45
- * collection removes all associations but does not delete the engrams within it.
46
- */
47
- delete(id: string, options?: RequestOptions): APIPromise<CollectionDeleteResponse>;
48
- /**
49
- * Retrieve a collection by its (owner_id, name) combination.
50
- *
51
- * The authenticated user can only fetch collections they own, or, if superuser,
52
- * from anyone.
53
- */
54
- retrieveByName(collectionName: string, query?: CollectionRetrieveByNameParams | null | undefined, options?: RequestOptions): APIPromise<CollectionRetrieveByNameResponse>;
55
- }
56
- export interface CollectionCreateResponse {
57
- results: CollectionCreateResponse.Results;
58
- }
59
- export declare namespace CollectionCreateResponse {
60
- interface Results {
61
- id: string;
62
- created_at: string;
63
- description: string | null;
64
- engram_count: number;
65
- graph_collection_status: string;
66
- graph_sync_status: string;
67
- name: string;
68
- owner_id: string | null;
69
- updated_at: string;
70
- user_count: number;
71
- access_tier?: string | null;
72
- cache_policy?: string | null;
73
- chain_type?: string | null;
74
- contract_address?: string | null;
75
- creator_royalty_bps?: number | null;
76
- has_preview_access?: boolean | null;
77
- is_forked?: boolean | null;
78
- marketplace_metadata?: {
79
- [key: string]: unknown;
80
- } | null;
81
- memory_count?: number | null;
82
- nft_collection_address?: string | null;
83
- owner_email?: string | null;
84
- owner_name?: string | null;
85
- preview_query_limit?: number | null;
86
- purchase_price_usd?: string | null;
87
- rental_price_monthly_usd?: string | null;
88
- workspace_id?: string | null;
89
- }
90
- }
91
- export interface CollectionRetrieveResponse {
92
- results: CollectionRetrieveResponse.Results;
93
- }
94
- export declare namespace CollectionRetrieveResponse {
95
- interface Results {
96
- id: string;
97
- created_at: string;
98
- description: string | null;
99
- engram_count: number;
100
- graph_collection_status: string;
101
- graph_sync_status: string;
102
- name: string;
103
- owner_id: string | null;
104
- updated_at: string;
105
- user_count: number;
106
- access_tier?: string | null;
107
- cache_policy?: string | null;
108
- chain_type?: string | null;
109
- contract_address?: string | null;
110
- creator_royalty_bps?: number | null;
111
- has_preview_access?: boolean | null;
112
- is_forked?: boolean | null;
113
- marketplace_metadata?: {
114
- [key: string]: unknown;
115
- } | null;
116
- memory_count?: number | null;
117
- nft_collection_address?: string | null;
118
- owner_email?: string | null;
119
- owner_name?: string | null;
120
- preview_query_limit?: number | null;
121
- purchase_price_usd?: string | null;
122
- rental_price_monthly_usd?: string | null;
123
- workspace_id?: string | null;
124
- }
125
- }
126
- export interface CollectionUpdateResponse {
127
- results: CollectionUpdateResponse.Results;
128
- }
129
- export declare namespace CollectionUpdateResponse {
130
- interface Results {
131
- id: string;
132
- created_at: string;
133
- description: string | null;
134
- engram_count: number;
135
- graph_collection_status: string;
136
- graph_sync_status: string;
137
- name: string;
138
- owner_id: string | null;
139
- updated_at: string;
140
- user_count: number;
141
- access_tier?: string | null;
142
- cache_policy?: string | null;
143
- chain_type?: string | null;
144
- contract_address?: string | null;
145
- creator_royalty_bps?: number | null;
146
- has_preview_access?: boolean | null;
147
- is_forked?: boolean | null;
148
- marketplace_metadata?: {
149
- [key: string]: unknown;
150
- } | null;
151
- memory_count?: number | null;
152
- nft_collection_address?: string | null;
153
- owner_email?: string | null;
154
- owner_name?: string | null;
155
- preview_query_limit?: number | null;
156
- purchase_price_usd?: string | null;
157
- rental_price_monthly_usd?: string | null;
158
- workspace_id?: string | null;
159
- }
160
- }
161
- export interface CollectionListResponse {
162
- results: Array<CollectionListResponse.Result>;
163
- total_entries: number;
164
- }
165
- export declare namespace CollectionListResponse {
166
- interface Result {
167
- id: string;
168
- created_at: string;
169
- description: string | null;
170
- engram_count: number;
171
- graph_collection_status: string;
172
- graph_sync_status: string;
173
- name: string;
174
- owner_id: string | null;
175
- updated_at: string;
176
- user_count: number;
177
- access_tier?: string | null;
178
- cache_policy?: string | null;
179
- chain_type?: string | null;
180
- contract_address?: string | null;
181
- creator_royalty_bps?: number | null;
182
- has_preview_access?: boolean | null;
183
- is_forked?: boolean | null;
184
- marketplace_metadata?: {
185
- [key: string]: unknown;
186
- } | null;
187
- memory_count?: number | null;
188
- nft_collection_address?: string | null;
189
- owner_email?: string | null;
190
- owner_name?: string | null;
191
- preview_query_limit?: number | null;
192
- purchase_price_usd?: string | null;
193
- rental_price_monthly_usd?: string | null;
194
- workspace_id?: string | null;
195
- }
196
- }
197
- export interface CollectionDeleteResponse {
198
- results: CollectionDeleteResponse.Results;
199
- }
200
- export declare namespace CollectionDeleteResponse {
201
- interface Results {
202
- success: boolean;
203
- }
204
- }
205
- export interface CollectionRetrieveByNameResponse {
206
- results: CollectionRetrieveByNameResponse.Results;
207
- }
208
- export declare namespace CollectionRetrieveByNameResponse {
209
- interface Results {
210
- id: string;
211
- created_at: string;
212
- description: string | null;
213
- engram_count: number;
214
- graph_collection_status: string;
215
- graph_sync_status: string;
216
- name: string;
217
- owner_id: string | null;
218
- updated_at: string;
219
- user_count: number;
220
- access_tier?: string | null;
221
- cache_policy?: string | null;
222
- chain_type?: string | null;
223
- contract_address?: string | null;
224
- creator_royalty_bps?: number | null;
225
- has_preview_access?: boolean | null;
226
- is_forked?: boolean | null;
227
- marketplace_metadata?: {
228
- [key: string]: unknown;
229
- } | null;
230
- memory_count?: number | null;
231
- nft_collection_address?: string | null;
232
- owner_email?: string | null;
233
- owner_name?: string | null;
234
- preview_query_limit?: number | null;
235
- purchase_price_usd?: string | null;
236
- rental_price_monthly_usd?: string | null;
237
- workspace_id?: string | null;
238
- }
239
- }
240
- export interface CollectionCreateParams {
241
- name: string;
242
- description?: string | null;
243
- workspace_id?: string | null;
244
- }
245
- export interface CollectionUpdateParams {
246
- access_tier?: string | null;
247
- description?: string | null;
248
- generate_description?: boolean;
249
- name?: string | null;
250
- }
251
- export interface CollectionListParams {
252
- /**
253
- * A list of collection IDs to retrieve. If not provided, all collections will be
254
- * returned.
255
- */
256
- ids?: Array<string>;
257
- /**
258
- * Specifies a limit on the number of objects to return, ranging between 1 and 100.
259
- * Defaults to 100.
260
- */
261
- limit?: number;
262
- /**
263
- * Filter collections by name (case-insensitive exact match).
264
- */
265
- name?: string | null;
266
- /**
267
- * Specifies the number of objects to skip. Defaults to 0.
268
- */
269
- offset?: number;
270
- /**
271
- * If true, only returns collections owned by the user, not all accessible
272
- * collections.
273
- */
274
- owner_only?: boolean;
275
- /**
276
- * Filter by workspace ID. Pass a UUID to scope to a workspace, or omit for all.
277
- */
278
- workspace_id?: string | null;
279
- }
280
- export interface CollectionRetrieveByNameParams {
281
- /**
282
- * (Superuser only) Specify the owner_id to retrieve a collection by name
283
- */
284
- owner_id?: string | null;
285
- }
286
- export declare namespace Collections {
287
- export { type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionRetrieveByNameResponse as CollectionRetrieveByNameResponse, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, type CollectionRetrieveByNameParams as CollectionRetrieveByNameParams, };
288
- }
289
- //# sourceMappingURL=collections.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collections.d.mts","sourceRoot":"","sources":["../src/resources/collections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;OAMG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIlF;;;;;OAKG;IACH,cAAc,CACZ,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC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;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -1,289 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- export declare class Collections extends APIResource {
5
- /**
6
- * Create a new collection and automatically add the creating user to it.
7
- *
8
- * This endpoint allows authenticated users to create a new collection with a
9
- * specified name and optional description. The user creating the collection is
10
- * automatically added as a member.
11
- */
12
- create(body: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse>;
13
- /**
14
- * Get details of a specific collection.
15
- *
16
- * This endpoint retrieves detailed information about a single collection
17
- * identified by its UUID. The user must have access to the collection to view its
18
- * details.
19
- */
20
- retrieve(id: string, options?: RequestOptions): APIPromise<CollectionRetrieveResponse>;
21
- /**
22
- * Update an existing collection's configuration.
23
- *
24
- * This endpoint allows updating the name, description, and access settings of an
25
- * existing collection. The user must have appropriate permissions to modify the
26
- * collection.
27
- */
28
- update(id: string, body: CollectionUpdateParams, options?: RequestOptions): APIPromise<CollectionUpdateResponse>;
29
- /**
30
- * Returns a paginated list of collections the authenticated user has access to.
31
- *
32
- * Results can be filtered by providing specific collection IDs. Regular users will
33
- * only see collections they own or have access to. Superusers can see all
34
- * collections.
35
- *
36
- * The collections are returned in order of last modification, with most recent
37
- * first.
38
- */
39
- list(query?: CollectionListParams | null | undefined, options?: RequestOptions): APIPromise<CollectionListResponse>;
40
- /**
41
- * Delete an existing collection.
42
- *
43
- * This endpoint allows deletion of a collection identified by its UUID. The user
44
- * must have appropriate permissions to delete the collection. Deleting a
45
- * collection removes all associations but does not delete the engrams within it.
46
- */
47
- delete(id: string, options?: RequestOptions): APIPromise<CollectionDeleteResponse>;
48
- /**
49
- * Retrieve a collection by its (owner_id, name) combination.
50
- *
51
- * The authenticated user can only fetch collections they own, or, if superuser,
52
- * from anyone.
53
- */
54
- retrieveByName(collectionName: string, query?: CollectionRetrieveByNameParams | null | undefined, options?: RequestOptions): APIPromise<CollectionRetrieveByNameResponse>;
55
- }
56
- export interface CollectionCreateResponse {
57
- results: CollectionCreateResponse.Results;
58
- }
59
- export declare namespace CollectionCreateResponse {
60
- interface Results {
61
- id: string;
62
- created_at: string;
63
- description: string | null;
64
- engram_count: number;
65
- graph_collection_status: string;
66
- graph_sync_status: string;
67
- name: string;
68
- owner_id: string | null;
69
- updated_at: string;
70
- user_count: number;
71
- access_tier?: string | null;
72
- cache_policy?: string | null;
73
- chain_type?: string | null;
74
- contract_address?: string | null;
75
- creator_royalty_bps?: number | null;
76
- has_preview_access?: boolean | null;
77
- is_forked?: boolean | null;
78
- marketplace_metadata?: {
79
- [key: string]: unknown;
80
- } | null;
81
- memory_count?: number | null;
82
- nft_collection_address?: string | null;
83
- owner_email?: string | null;
84
- owner_name?: string | null;
85
- preview_query_limit?: number | null;
86
- purchase_price_usd?: string | null;
87
- rental_price_monthly_usd?: string | null;
88
- workspace_id?: string | null;
89
- }
90
- }
91
- export interface CollectionRetrieveResponse {
92
- results: CollectionRetrieveResponse.Results;
93
- }
94
- export declare namespace CollectionRetrieveResponse {
95
- interface Results {
96
- id: string;
97
- created_at: string;
98
- description: string | null;
99
- engram_count: number;
100
- graph_collection_status: string;
101
- graph_sync_status: string;
102
- name: string;
103
- owner_id: string | null;
104
- updated_at: string;
105
- user_count: number;
106
- access_tier?: string | null;
107
- cache_policy?: string | null;
108
- chain_type?: string | null;
109
- contract_address?: string | null;
110
- creator_royalty_bps?: number | null;
111
- has_preview_access?: boolean | null;
112
- is_forked?: boolean | null;
113
- marketplace_metadata?: {
114
- [key: string]: unknown;
115
- } | null;
116
- memory_count?: number | null;
117
- nft_collection_address?: string | null;
118
- owner_email?: string | null;
119
- owner_name?: string | null;
120
- preview_query_limit?: number | null;
121
- purchase_price_usd?: string | null;
122
- rental_price_monthly_usd?: string | null;
123
- workspace_id?: string | null;
124
- }
125
- }
126
- export interface CollectionUpdateResponse {
127
- results: CollectionUpdateResponse.Results;
128
- }
129
- export declare namespace CollectionUpdateResponse {
130
- interface Results {
131
- id: string;
132
- created_at: string;
133
- description: string | null;
134
- engram_count: number;
135
- graph_collection_status: string;
136
- graph_sync_status: string;
137
- name: string;
138
- owner_id: string | null;
139
- updated_at: string;
140
- user_count: number;
141
- access_tier?: string | null;
142
- cache_policy?: string | null;
143
- chain_type?: string | null;
144
- contract_address?: string | null;
145
- creator_royalty_bps?: number | null;
146
- has_preview_access?: boolean | null;
147
- is_forked?: boolean | null;
148
- marketplace_metadata?: {
149
- [key: string]: unknown;
150
- } | null;
151
- memory_count?: number | null;
152
- nft_collection_address?: string | null;
153
- owner_email?: string | null;
154
- owner_name?: string | null;
155
- preview_query_limit?: number | null;
156
- purchase_price_usd?: string | null;
157
- rental_price_monthly_usd?: string | null;
158
- workspace_id?: string | null;
159
- }
160
- }
161
- export interface CollectionListResponse {
162
- results: Array<CollectionListResponse.Result>;
163
- total_entries: number;
164
- }
165
- export declare namespace CollectionListResponse {
166
- interface Result {
167
- id: string;
168
- created_at: string;
169
- description: string | null;
170
- engram_count: number;
171
- graph_collection_status: string;
172
- graph_sync_status: string;
173
- name: string;
174
- owner_id: string | null;
175
- updated_at: string;
176
- user_count: number;
177
- access_tier?: string | null;
178
- cache_policy?: string | null;
179
- chain_type?: string | null;
180
- contract_address?: string | null;
181
- creator_royalty_bps?: number | null;
182
- has_preview_access?: boolean | null;
183
- is_forked?: boolean | null;
184
- marketplace_metadata?: {
185
- [key: string]: unknown;
186
- } | null;
187
- memory_count?: number | null;
188
- nft_collection_address?: string | null;
189
- owner_email?: string | null;
190
- owner_name?: string | null;
191
- preview_query_limit?: number | null;
192
- purchase_price_usd?: string | null;
193
- rental_price_monthly_usd?: string | null;
194
- workspace_id?: string | null;
195
- }
196
- }
197
- export interface CollectionDeleteResponse {
198
- results: CollectionDeleteResponse.Results;
199
- }
200
- export declare namespace CollectionDeleteResponse {
201
- interface Results {
202
- success: boolean;
203
- }
204
- }
205
- export interface CollectionRetrieveByNameResponse {
206
- results: CollectionRetrieveByNameResponse.Results;
207
- }
208
- export declare namespace CollectionRetrieveByNameResponse {
209
- interface Results {
210
- id: string;
211
- created_at: string;
212
- description: string | null;
213
- engram_count: number;
214
- graph_collection_status: string;
215
- graph_sync_status: string;
216
- name: string;
217
- owner_id: string | null;
218
- updated_at: string;
219
- user_count: number;
220
- access_tier?: string | null;
221
- cache_policy?: string | null;
222
- chain_type?: string | null;
223
- contract_address?: string | null;
224
- creator_royalty_bps?: number | null;
225
- has_preview_access?: boolean | null;
226
- is_forked?: boolean | null;
227
- marketplace_metadata?: {
228
- [key: string]: unknown;
229
- } | null;
230
- memory_count?: number | null;
231
- nft_collection_address?: string | null;
232
- owner_email?: string | null;
233
- owner_name?: string | null;
234
- preview_query_limit?: number | null;
235
- purchase_price_usd?: string | null;
236
- rental_price_monthly_usd?: string | null;
237
- workspace_id?: string | null;
238
- }
239
- }
240
- export interface CollectionCreateParams {
241
- name: string;
242
- description?: string | null;
243
- workspace_id?: string | null;
244
- }
245
- export interface CollectionUpdateParams {
246
- access_tier?: string | null;
247
- description?: string | null;
248
- generate_description?: boolean;
249
- name?: string | null;
250
- }
251
- export interface CollectionListParams {
252
- /**
253
- * A list of collection IDs to retrieve. If not provided, all collections will be
254
- * returned.
255
- */
256
- ids?: Array<string>;
257
- /**
258
- * Specifies a limit on the number of objects to return, ranging between 1 and 100.
259
- * Defaults to 100.
260
- */
261
- limit?: number;
262
- /**
263
- * Filter collections by name (case-insensitive exact match).
264
- */
265
- name?: string | null;
266
- /**
267
- * Specifies the number of objects to skip. Defaults to 0.
268
- */
269
- offset?: number;
270
- /**
271
- * If true, only returns collections owned by the user, not all accessible
272
- * collections.
273
- */
274
- owner_only?: boolean;
275
- /**
276
- * Filter by workspace ID. Pass a UUID to scope to a workspace, or omit for all.
277
- */
278
- workspace_id?: string | null;
279
- }
280
- export interface CollectionRetrieveByNameParams {
281
- /**
282
- * (Superuser only) Specify the owner_id to retrieve a collection by name
283
- */
284
- owner_id?: string | null;
285
- }
286
- export declare namespace Collections {
287
- export { type CollectionCreateResponse as CollectionCreateResponse, type CollectionRetrieveResponse as CollectionRetrieveResponse, type CollectionUpdateResponse as CollectionUpdateResponse, type CollectionListResponse as CollectionListResponse, type CollectionDeleteResponse as CollectionDeleteResponse, type CollectionRetrieveByNameResponse as CollectionRetrieveByNameResponse, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, type CollectionRetrieveByNameParams as CollectionRetrieveByNameParams, };
288
- }
289
- //# sourceMappingURL=collections.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../src/resources/collections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,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ACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -1,72 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Collections = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const path_1 = require("../internal/utils/path.js");
7
- class Collections extends resource_1.APIResource {
8
- /**
9
- * Create a new collection and automatically add the creating user to it.
10
- *
11
- * This endpoint allows authenticated users to create a new collection with a
12
- * specified name and optional description. The user creating the collection is
13
- * automatically added as a member.
14
- */
15
- create(body, options) {
16
- return this._client.post('/v1/collections', { body, ...options });
17
- }
18
- /**
19
- * Get details of a specific collection.
20
- *
21
- * This endpoint retrieves detailed information about a single collection
22
- * identified by its UUID. The user must have access to the collection to view its
23
- * details.
24
- */
25
- retrieve(id, options) {
26
- return this._client.get((0, path_1.path) `/v1/collections/${id}`, options);
27
- }
28
- /**
29
- * Update an existing collection's configuration.
30
- *
31
- * This endpoint allows updating the name, description, and access settings of an
32
- * existing collection. The user must have appropriate permissions to modify the
33
- * collection.
34
- */
35
- update(id, body, options) {
36
- return this._client.post((0, path_1.path) `/v1/collections/${id}`, { body, ...options });
37
- }
38
- /**
39
- * Returns a paginated list of collections the authenticated user has access to.
40
- *
41
- * Results can be filtered by providing specific collection IDs. Regular users will
42
- * only see collections they own or have access to. Superusers can see all
43
- * collections.
44
- *
45
- * The collections are returned in order of last modification, with most recent
46
- * first.
47
- */
48
- list(query = {}, options) {
49
- return this._client.get('/v1/collections', { query, ...options });
50
- }
51
- /**
52
- * Delete an existing collection.
53
- *
54
- * This endpoint allows deletion of a collection identified by its UUID. The user
55
- * must have appropriate permissions to delete the collection. Deleting a
56
- * collection removes all associations but does not delete the engrams within it.
57
- */
58
- delete(id, options) {
59
- return this._client.delete((0, path_1.path) `/v1/collections/${id}`, options);
60
- }
61
- /**
62
- * Retrieve a collection by its (owner_id, name) combination.
63
- *
64
- * The authenticated user can only fetch collections they own, or, if superuser,
65
- * from anyone.
66
- */
67
- retrieveByName(collectionName, query = {}, options) {
68
- return this._client.get((0, path_1.path) `/v1/collections/name/${collectionName}`, { query, ...options });
69
- }
70
- }
71
- exports.Collections = Collections;
72
- //# sourceMappingURL=collections.js.map