@katerai/sdk 0.1.2

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 (577) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +201 -0
  3. package/README.md +385 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +188 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +188 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +486 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +482 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +86 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +80 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/package.json +137 -0
  231. package/resource.d.mts +2 -0
  232. package/resource.d.mts.map +1 -0
  233. package/resource.d.ts +2 -0
  234. package/resource.d.ts.map +1 -0
  235. package/resource.js +6 -0
  236. package/resource.js.map +1 -0
  237. package/resource.mjs +2 -0
  238. package/resource.mjs.map +1 -0
  239. package/resources/index.d.mts +2 -0
  240. package/resources/index.d.mts.map +1 -0
  241. package/resources/index.d.ts +2 -0
  242. package/resources/index.d.ts.map +1 -0
  243. package/resources/index.js +7 -0
  244. package/resources/index.js.map +1 -0
  245. package/resources/index.mjs +3 -0
  246. package/resources/index.mjs.map +1 -0
  247. package/resources/v1/api-keys.d.mts +142 -0
  248. package/resources/v1/api-keys.d.mts.map +1 -0
  249. package/resources/v1/api-keys.d.ts +142 -0
  250. package/resources/v1/api-keys.d.ts.map +1 -0
  251. package/resources/v1/api-keys.js +66 -0
  252. package/resources/v1/api-keys.js.map +1 -0
  253. package/resources/v1/api-keys.mjs +62 -0
  254. package/resources/v1/api-keys.mjs.map +1 -0
  255. package/resources/v1/connections/connections.d.mts +638 -0
  256. package/resources/v1/connections/connections.d.mts.map +1 -0
  257. package/resources/v1/connections/connections.d.ts +638 -0
  258. package/resources/v1/connections/connections.d.ts.map +1 -0
  259. package/resources/v1/connections/connections.js +67 -0
  260. package/resources/v1/connections/connections.js.map +1 -0
  261. package/resources/v1/connections/connections.mjs +62 -0
  262. package/resources/v1/connections/connections.mjs.map +1 -0
  263. package/resources/v1/connections/databases.d.mts +25 -0
  264. package/resources/v1/connections/databases.d.mts.map +1 -0
  265. package/resources/v1/connections/databases.d.ts +25 -0
  266. package/resources/v1/connections/databases.d.ts.map +1 -0
  267. package/resources/v1/connections/databases.js +26 -0
  268. package/resources/v1/connections/databases.js.map +1 -0
  269. package/resources/v1/connections/databases.mjs +22 -0
  270. package/resources/v1/connections/databases.mjs.map +1 -0
  271. package/resources/v1/connections/index.d.mts +3 -0
  272. package/resources/v1/connections/index.d.mts.map +1 -0
  273. package/resources/v1/connections/index.d.ts +3 -0
  274. package/resources/v1/connections/index.d.ts.map +1 -0
  275. package/resources/v1/connections/index.js +9 -0
  276. package/resources/v1/connections/index.js.map +1 -0
  277. package/resources/v1/connections/index.mjs +4 -0
  278. package/resources/v1/connections/index.mjs.map +1 -0
  279. package/resources/v1/connections.d.mts +2 -0
  280. package/resources/v1/connections.d.mts.map +1 -0
  281. package/resources/v1/connections.d.ts +2 -0
  282. package/resources/v1/connections.d.ts.map +1 -0
  283. package/resources/v1/connections.js +6 -0
  284. package/resources/v1/connections.js.map +1 -0
  285. package/resources/v1/connections.mjs +3 -0
  286. package/resources/v1/connections.mjs.map +1 -0
  287. package/resources/v1/github/admin.d.mts +33 -0
  288. package/resources/v1/github/admin.d.mts.map +1 -0
  289. package/resources/v1/github/admin.d.ts +33 -0
  290. package/resources/v1/github/admin.d.ts.map +1 -0
  291. package/resources/v1/github/admin.js +17 -0
  292. package/resources/v1/github/admin.js.map +1 -0
  293. package/resources/v1/github/admin.mjs +13 -0
  294. package/resources/v1/github/admin.mjs.map +1 -0
  295. package/resources/v1/github/github.d.mts +87 -0
  296. package/resources/v1/github/github.d.mts.map +1 -0
  297. package/resources/v1/github/github.d.ts +87 -0
  298. package/resources/v1/github/github.d.ts.map +1 -0
  299. package/resources/v1/github/github.js +53 -0
  300. package/resources/v1/github/github.js.map +1 -0
  301. package/resources/v1/github/github.mjs +48 -0
  302. package/resources/v1/github/github.mjs.map +1 -0
  303. package/resources/v1/github/index.d.mts +6 -0
  304. package/resources/v1/github/index.d.mts.map +1 -0
  305. package/resources/v1/github/index.d.ts +6 -0
  306. package/resources/v1/github/index.d.ts.map +1 -0
  307. package/resources/v1/github/index.js +15 -0
  308. package/resources/v1/github/index.js.map +1 -0
  309. package/resources/v1/github/index.mjs +7 -0
  310. package/resources/v1/github/index.mjs.map +1 -0
  311. package/resources/v1/github/repos.d.mts +54 -0
  312. package/resources/v1/github/repos.d.mts.map +1 -0
  313. package/resources/v1/github/repos.d.ts +54 -0
  314. package/resources/v1/github/repos.d.ts.map +1 -0
  315. package/resources/v1/github/repos.js +22 -0
  316. package/resources/v1/github/repos.js.map +1 -0
  317. package/resources/v1/github/repos.mjs +18 -0
  318. package/resources/v1/github/repos.mjs.map +1 -0
  319. package/resources/v1/github/scaffold.d.mts +44 -0
  320. package/resources/v1/github/scaffold.d.mts.map +1 -0
  321. package/resources/v1/github/scaffold.d.ts +44 -0
  322. package/resources/v1/github/scaffold.d.ts.map +1 -0
  323. package/resources/v1/github/scaffold.js +27 -0
  324. package/resources/v1/github/scaffold.js.map +1 -0
  325. package/resources/v1/github/scaffold.mjs +23 -0
  326. package/resources/v1/github/scaffold.mjs.map +1 -0
  327. package/resources/v1/github/webhooks.d.mts +16 -0
  328. package/resources/v1/github/webhooks.d.mts.map +1 -0
  329. package/resources/v1/github/webhooks.d.ts +16 -0
  330. package/resources/v1/github/webhooks.d.ts.map +1 -0
  331. package/resources/v1/github/webhooks.js +15 -0
  332. package/resources/v1/github/webhooks.js.map +1 -0
  333. package/resources/v1/github/webhooks.mjs +11 -0
  334. package/resources/v1/github/webhooks.mjs.map +1 -0
  335. package/resources/v1/github.d.mts +2 -0
  336. package/resources/v1/github.d.mts.map +1 -0
  337. package/resources/v1/github.d.ts +2 -0
  338. package/resources/v1/github.d.ts.map +1 -0
  339. package/resources/v1/github.js +6 -0
  340. package/resources/v1/github.js.map +1 -0
  341. package/resources/v1/github.mjs +3 -0
  342. package/resources/v1/github.mjs.map +1 -0
  343. package/resources/v1/groups/groups.d.mts +162 -0
  344. package/resources/v1/groups/groups.d.mts.map +1 -0
  345. package/resources/v1/groups/groups.d.ts +162 -0
  346. package/resources/v1/groups/groups.d.ts.map +1 -0
  347. package/resources/v1/groups/groups.js +81 -0
  348. package/resources/v1/groups/groups.js.map +1 -0
  349. package/resources/v1/groups/groups.mjs +76 -0
  350. package/resources/v1/groups/groups.mjs.map +1 -0
  351. package/resources/v1/groups/index.d.mts +3 -0
  352. package/resources/v1/groups/index.d.mts.map +1 -0
  353. package/resources/v1/groups/index.d.ts +3 -0
  354. package/resources/v1/groups/index.d.ts.map +1 -0
  355. package/resources/v1/groups/index.js +9 -0
  356. package/resources/v1/groups/index.js.map +1 -0
  357. package/resources/v1/groups/index.mjs +4 -0
  358. package/resources/v1/groups/index.mjs.map +1 -0
  359. package/resources/v1/groups/tenants.d.mts +55 -0
  360. package/resources/v1/groups/tenants.d.mts.map +1 -0
  361. package/resources/v1/groups/tenants.d.ts +55 -0
  362. package/resources/v1/groups/tenants.d.ts.map +1 -0
  363. package/resources/v1/groups/tenants.js +39 -0
  364. package/resources/v1/groups/tenants.js.map +1 -0
  365. package/resources/v1/groups/tenants.mjs +35 -0
  366. package/resources/v1/groups/tenants.mjs.map +1 -0
  367. package/resources/v1/groups.d.mts +2 -0
  368. package/resources/v1/groups.d.mts.map +1 -0
  369. package/resources/v1/groups.d.ts +2 -0
  370. package/resources/v1/groups.d.ts.map +1 -0
  371. package/resources/v1/groups.js +6 -0
  372. package/resources/v1/groups.js.map +1 -0
  373. package/resources/v1/groups.mjs +3 -0
  374. package/resources/v1/groups.mjs.map +1 -0
  375. package/resources/v1/index.d.mts +9 -0
  376. package/resources/v1/index.d.mts.map +1 -0
  377. package/resources/v1/index.d.ts +9 -0
  378. package/resources/v1/index.d.ts.map +1 -0
  379. package/resources/v1/index.js +21 -0
  380. package/resources/v1/index.js.map +1 -0
  381. package/resources/v1/index.mjs +10 -0
  382. package/resources/v1/index.mjs.map +1 -0
  383. package/resources/v1/me.d.mts +51 -0
  384. package/resources/v1/me.d.mts.map +1 -0
  385. package/resources/v1/me.d.ts +51 -0
  386. package/resources/v1/me.d.ts.map +1 -0
  387. package/resources/v1/me.js +29 -0
  388. package/resources/v1/me.js.map +1 -0
  389. package/resources/v1/me.mjs +25 -0
  390. package/resources/v1/me.mjs.map +1 -0
  391. package/resources/v1/org/client.d.mts +53 -0
  392. package/resources/v1/org/client.d.mts.map +1 -0
  393. package/resources/v1/org/client.d.ts +53 -0
  394. package/resources/v1/org/client.d.ts.map +1 -0
  395. package/resources/v1/org/client.js +25 -0
  396. package/resources/v1/org/client.js.map +1 -0
  397. package/resources/v1/org/client.mjs +21 -0
  398. package/resources/v1/org/client.mjs.map +1 -0
  399. package/resources/v1/org/index.d.mts +4 -0
  400. package/resources/v1/org/index.d.mts.map +1 -0
  401. package/resources/v1/org/index.d.ts +4 -0
  402. package/resources/v1/org/index.d.ts.map +1 -0
  403. package/resources/v1/org/index.js +11 -0
  404. package/resources/v1/org/index.js.map +1 -0
  405. package/resources/v1/org/index.mjs +5 -0
  406. package/resources/v1/org/index.mjs.map +1 -0
  407. package/resources/v1/org/org.d.mts +14 -0
  408. package/resources/v1/org/org.d.mts.map +1 -0
  409. package/resources/v1/org/org.d.ts +14 -0
  410. package/resources/v1/org/org.d.ts.map +1 -0
  411. package/resources/v1/org/org.js +21 -0
  412. package/resources/v1/org/org.js.map +1 -0
  413. package/resources/v1/org/org.mjs +16 -0
  414. package/resources/v1/org/org.mjs.map +1 -0
  415. package/resources/v1/org/users.d.mts +87 -0
  416. package/resources/v1/org/users.d.mts.map +1 -0
  417. package/resources/v1/org/users.d.ts +87 -0
  418. package/resources/v1/org/users.d.ts.map +1 -0
  419. package/resources/v1/org/users.js +60 -0
  420. package/resources/v1/org/users.js.map +1 -0
  421. package/resources/v1/org/users.mjs +56 -0
  422. package/resources/v1/org/users.mjs.map +1 -0
  423. package/resources/v1/org.d.mts +2 -0
  424. package/resources/v1/org.d.mts.map +1 -0
  425. package/resources/v1/org.d.ts +2 -0
  426. package/resources/v1/org.d.ts.map +1 -0
  427. package/resources/v1/org.js +6 -0
  428. package/resources/v1/org.js.map +1 -0
  429. package/resources/v1/org.mjs +3 -0
  430. package/resources/v1/org.mjs.map +1 -0
  431. package/resources/v1/tenants/batch.d.mts +159 -0
  432. package/resources/v1/tenants/batch.d.mts.map +1 -0
  433. package/resources/v1/tenants/batch.d.ts +159 -0
  434. package/resources/v1/tenants/batch.d.ts.map +1 -0
  435. package/resources/v1/tenants/batch.js +42 -0
  436. package/resources/v1/tenants/batch.js.map +1 -0
  437. package/resources/v1/tenants/batch.mjs +38 -0
  438. package/resources/v1/tenants/batch.mjs.map +1 -0
  439. package/resources/v1/tenants/import.d.mts +126 -0
  440. package/resources/v1/tenants/import.d.mts.map +1 -0
  441. package/resources/v1/tenants/import.d.ts +126 -0
  442. package/resources/v1/tenants/import.d.ts.map +1 -0
  443. package/resources/v1/tenants/import.js +50 -0
  444. package/resources/v1/tenants/import.js.map +1 -0
  445. package/resources/v1/tenants/import.mjs +46 -0
  446. package/resources/v1/tenants/import.mjs.map +1 -0
  447. package/resources/v1/tenants/index.d.mts +4 -0
  448. package/resources/v1/tenants/index.d.mts.map +1 -0
  449. package/resources/v1/tenants/index.d.ts +4 -0
  450. package/resources/v1/tenants/index.d.ts.map +1 -0
  451. package/resources/v1/tenants/index.js +11 -0
  452. package/resources/v1/tenants/index.js.map +1 -0
  453. package/resources/v1/tenants/index.mjs +5 -0
  454. package/resources/v1/tenants/index.mjs.map +1 -0
  455. package/resources/v1/tenants/tenants.d.mts +205 -0
  456. package/resources/v1/tenants/tenants.d.mts.map +1 -0
  457. package/resources/v1/tenants/tenants.d.ts +205 -0
  458. package/resources/v1/tenants/tenants.d.ts.map +1 -0
  459. package/resources/v1/tenants/tenants.js +97 -0
  460. package/resources/v1/tenants/tenants.js.map +1 -0
  461. package/resources/v1/tenants/tenants.mjs +92 -0
  462. package/resources/v1/tenants/tenants.mjs.map +1 -0
  463. package/resources/v1/tenants.d.mts +2 -0
  464. package/resources/v1/tenants.d.mts.map +1 -0
  465. package/resources/v1/tenants.d.ts +2 -0
  466. package/resources/v1/tenants.d.ts.map +1 -0
  467. package/resources/v1/tenants.js +6 -0
  468. package/resources/v1/tenants.js.map +1 -0
  469. package/resources/v1/tenants.mjs +3 -0
  470. package/resources/v1/tenants.mjs.map +1 -0
  471. package/resources/v1/v1.d.mts +34 -0
  472. package/resources/v1/v1.d.mts.map +1 -0
  473. package/resources/v1/v1.d.ts +34 -0
  474. package/resources/v1/v1.d.ts.map +1 -0
  475. package/resources/v1/v1.js +41 -0
  476. package/resources/v1/v1.js.map +1 -0
  477. package/resources/v1/v1.mjs +36 -0
  478. package/resources/v1/v1.mjs.map +1 -0
  479. package/resources/v1.d.mts +2 -0
  480. package/resources/v1.d.mts.map +1 -0
  481. package/resources/v1.d.ts +2 -0
  482. package/resources/v1.d.ts.map +1 -0
  483. package/resources/v1.js +6 -0
  484. package/resources/v1.js.map +1 -0
  485. package/resources/v1.mjs +3 -0
  486. package/resources/v1.mjs.map +1 -0
  487. package/resources.d.mts +2 -0
  488. package/resources.d.mts.map +1 -0
  489. package/resources.d.ts +2 -0
  490. package/resources.d.ts.map +1 -0
  491. package/resources.js +5 -0
  492. package/resources.js.map +1 -0
  493. package/resources.mjs +2 -0
  494. package/resources.mjs.map +1 -0
  495. package/src/api-promise.ts +2 -0
  496. package/src/client.ts +761 -0
  497. package/src/core/README.md +3 -0
  498. package/src/core/api-promise.ts +92 -0
  499. package/src/core/error.ts +130 -0
  500. package/src/core/resource.ts +11 -0
  501. package/src/core/uploads.ts +2 -0
  502. package/src/error.ts +2 -0
  503. package/src/index.ts +22 -0
  504. package/src/internal/README.md +3 -0
  505. package/src/internal/builtin-types.ts +93 -0
  506. package/src/internal/detect-platform.ts +196 -0
  507. package/src/internal/errors.ts +33 -0
  508. package/src/internal/headers.ts +97 -0
  509. package/src/internal/parse.ts +50 -0
  510. package/src/internal/request-options.ts +91 -0
  511. package/src/internal/shim-types.ts +26 -0
  512. package/src/internal/shims.ts +107 -0
  513. package/src/internal/to-file.ts +154 -0
  514. package/src/internal/types.ts +95 -0
  515. package/src/internal/uploads.ts +187 -0
  516. package/src/internal/utils/base64.ts +40 -0
  517. package/src/internal/utils/bytes.ts +32 -0
  518. package/src/internal/utils/env.ts +18 -0
  519. package/src/internal/utils/log.ts +127 -0
  520. package/src/internal/utils/path.ts +88 -0
  521. package/src/internal/utils/sleep.ts +3 -0
  522. package/src/internal/utils/uuid.ts +17 -0
  523. package/src/internal/utils/values.ts +105 -0
  524. package/src/internal/utils.ts +8 -0
  525. package/src/lib/.keep +4 -0
  526. package/src/resource.ts +2 -0
  527. package/src/resources/index.ts +3 -0
  528. package/src/resources/v1/api-keys.ts +186 -0
  529. package/src/resources/v1/connections/connections.ts +804 -0
  530. package/src/resources/v1/connections/databases.ts +42 -0
  531. package/src/resources/v1/connections/index.ts +12 -0
  532. package/src/resources/v1/connections.ts +3 -0
  533. package/src/resources/v1/github/admin.ts +56 -0
  534. package/src/resources/v1/github/github.ts +145 -0
  535. package/src/resources/v1/github/index.ts +19 -0
  536. package/src/resources/v1/github/repos.ts +85 -0
  537. package/src/resources/v1/github/scaffold.ts +71 -0
  538. package/src/resources/v1/github/webhooks.ts +20 -0
  539. package/src/resources/v1/github.ts +3 -0
  540. package/src/resources/v1/groups/groups.ts +218 -0
  541. package/src/resources/v1/groups/index.ts +10 -0
  542. package/src/resources/v1/groups/tenants.ts +78 -0
  543. package/src/resources/v1/groups.ts +3 -0
  544. package/src/resources/v1/index.ts +43 -0
  545. package/src/resources/v1/me.ts +78 -0
  546. package/src/resources/v1/org/client.ts +81 -0
  547. package/src/resources/v1/org/index.ts +11 -0
  548. package/src/resources/v1/org/org.ts +32 -0
  549. package/src/resources/v1/org/users.ts +127 -0
  550. package/src/resources/v1/org.ts +3 -0
  551. package/src/resources/v1/tenants/batch.ts +200 -0
  552. package/src/resources/v1/tenants/import.ts +158 -0
  553. package/src/resources/v1/tenants/index.ts +27 -0
  554. package/src/resources/v1/tenants/tenants.ts +290 -0
  555. package/src/resources/v1/tenants.ts +3 -0
  556. package/src/resources/v1/v1.ts +116 -0
  557. package/src/resources/v1.ts +3 -0
  558. package/src/resources.ts +1 -0
  559. package/src/tsconfig.json +11 -0
  560. package/src/uploads.ts +2 -0
  561. package/src/version.ts +1 -0
  562. package/uploads.d.mts +2 -0
  563. package/uploads.d.mts.map +1 -0
  564. package/uploads.d.ts +2 -0
  565. package/uploads.d.ts.map +1 -0
  566. package/uploads.js +6 -0
  567. package/uploads.js.map +1 -0
  568. package/uploads.mjs +2 -0
  569. package/uploads.mjs.map +1 -0
  570. package/version.d.mts +2 -0
  571. package/version.d.mts.map +1 -0
  572. package/version.d.ts +2 -0
  573. package/version.d.ts.map +1 -0
  574. package/version.js +5 -0
  575. package/version.js.map +1 -0
  576. package/version.mjs +2 -0
  577. package/version.mjs.map +1 -0
@@ -0,0 +1,55 @@
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 Tenants extends APIResource {
5
+ /**
6
+ * Add tenants to a group.
7
+ *
8
+ * Accepts a list of tenant IDs. Returns detailed results showing which tenants
9
+ * were added, which were already members, and which don't exist.
10
+ *
11
+ * RLS: Filtered to current client (ClientRLSDB).
12
+ *
13
+ * Raises: GroupNotFoundError: If group doesn't exist (404)
14
+ */
15
+ add(groupID: string, body: TenantAddParams, options?: RequestOptions): APIPromise<TenantAddResponse>;
16
+ /**
17
+ * Remove a tenant from a group.
18
+ *
19
+ * RLS: Filtered to current client (ClientRLSDB).
20
+ *
21
+ * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
22
+ * tenant is not a member of the group (404)
23
+ */
24
+ remove(tenantID: string, params: TenantRemoveParams, options?: RequestOptions): APIPromise<void>;
25
+ }
26
+ /**
27
+ * Response model for add tenants operation.
28
+ */
29
+ export interface TenantAddResponse {
30
+ /**
31
+ * Tenant IDs that were successfully added
32
+ */
33
+ added: Array<string>;
34
+ /**
35
+ * Tenant IDs that were already members
36
+ */
37
+ already_in_group: Array<string>;
38
+ /**
39
+ * Tenant IDs that don't exist
40
+ */
41
+ not_found: Array<string>;
42
+ }
43
+ export interface TenantAddParams {
44
+ /**
45
+ * List of tenant IDs to add to the group
46
+ */
47
+ tenant_ids: Array<string>;
48
+ }
49
+ export interface TenantRemoveParams {
50
+ group_id: string;
51
+ }
52
+ export declare namespace Tenants {
53
+ export { type TenantAddResponse as TenantAddResponse, type TenantAddParams as TenantAddParams, type TenantRemoveParams as TenantRemoveParams, };
54
+ }
55
+ //# sourceMappingURL=tenants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIpG;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOjG;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,55 @@
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 Tenants extends APIResource {
5
+ /**
6
+ * Add tenants to a group.
7
+ *
8
+ * Accepts a list of tenant IDs. Returns detailed results showing which tenants
9
+ * were added, which were already members, and which don't exist.
10
+ *
11
+ * RLS: Filtered to current client (ClientRLSDB).
12
+ *
13
+ * Raises: GroupNotFoundError: If group doesn't exist (404)
14
+ */
15
+ add(groupID: string, body: TenantAddParams, options?: RequestOptions): APIPromise<TenantAddResponse>;
16
+ /**
17
+ * Remove a tenant from a group.
18
+ *
19
+ * RLS: Filtered to current client (ClientRLSDB).
20
+ *
21
+ * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
22
+ * tenant is not a member of the group (404)
23
+ */
24
+ remove(tenantID: string, params: TenantRemoveParams, options?: RequestOptions): APIPromise<void>;
25
+ }
26
+ /**
27
+ * Response model for add tenants operation.
28
+ */
29
+ export interface TenantAddResponse {
30
+ /**
31
+ * Tenant IDs that were successfully added
32
+ */
33
+ added: Array<string>;
34
+ /**
35
+ * Tenant IDs that were already members
36
+ */
37
+ already_in_group: Array<string>;
38
+ /**
39
+ * Tenant IDs that don't exist
40
+ */
41
+ not_found: Array<string>;
42
+ }
43
+ export interface TenantAddParams {
44
+ /**
45
+ * List of tenant IDs to add to the group
46
+ */
47
+ tenant_ids: Array<string>;
48
+ }
49
+ export interface TenantRemoveParams {
50
+ group_id: string;
51
+ }
52
+ export declare namespace Tenants {
53
+ export { type TenantAddResponse as TenantAddResponse, type TenantAddParams as TenantAddParams, type TenantRemoveParams as TenantRemoveParams, };
54
+ }
55
+ //# sourceMappingURL=tenants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIpG;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOjG;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,39 @@
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.Tenants = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const headers_1 = require("../../../internal/headers.js");
7
+ const path_1 = require("../../../internal/utils/path.js");
8
+ class Tenants extends resource_1.APIResource {
9
+ /**
10
+ * Add tenants to a group.
11
+ *
12
+ * Accepts a list of tenant IDs. Returns detailed results showing which tenants
13
+ * were added, which were already members, and which don't exist.
14
+ *
15
+ * RLS: Filtered to current client (ClientRLSDB).
16
+ *
17
+ * Raises: GroupNotFoundError: If group doesn't exist (404)
18
+ */
19
+ add(groupID, body, options) {
20
+ return this._client.post((0, path_1.path) `/api/v1/groups/${groupID}/tenants`, { body, ...options });
21
+ }
22
+ /**
23
+ * Remove a tenant from a group.
24
+ *
25
+ * RLS: Filtered to current client (ClientRLSDB).
26
+ *
27
+ * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
28
+ * tenant is not a member of the group (404)
29
+ */
30
+ remove(tenantID, params, options) {
31
+ const { group_id } = params;
32
+ return this._client.delete((0, path_1.path) `/api/v1/groups/${group_id}/tenants/${tenantID}`, {
33
+ ...options,
34
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
35
+ });
36
+ }
37
+ }
38
+ exports.Tenants = Tenants;
39
+ //# sourceMappingURL=tenants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAe,EAAE,IAAqB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,QAAQ,YAAY,QAAQ,EAAE,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,0BA8BC"}
@@ -0,0 +1,35 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../internal/headers.mjs";
4
+ import { path } from "../../../internal/utils/path.mjs";
5
+ export class Tenants extends APIResource {
6
+ /**
7
+ * Add tenants to a group.
8
+ *
9
+ * Accepts a list of tenant IDs. Returns detailed results showing which tenants
10
+ * were added, which were already members, and which don't exist.
11
+ *
12
+ * RLS: Filtered to current client (ClientRLSDB).
13
+ *
14
+ * Raises: GroupNotFoundError: If group doesn't exist (404)
15
+ */
16
+ add(groupID, body, options) {
17
+ return this._client.post(path `/api/v1/groups/${groupID}/tenants`, { body, ...options });
18
+ }
19
+ /**
20
+ * Remove a tenant from a group.
21
+ *
22
+ * RLS: Filtered to current client (ClientRLSDB).
23
+ *
24
+ * Raises: GroupNotFoundError: If group doesn't exist (404) TenantNotFoundError: If
25
+ * tenant is not a member of the group (404)
26
+ */
27
+ remove(tenantID, params, options) {
28
+ const { group_id } = params;
29
+ return this._client.delete(path `/api/v1/groups/${group_id}/tenants/${tenantID}`, {
30
+ ...options,
31
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
+ });
33
+ }
34
+ }
35
+ //# sourceMappingURL=tenants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/groups/tenants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAe,EAAE,IAAqB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,QAAQ,YAAY,QAAQ,EAAE,EAAE;YAC/E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./groups/index.mjs";
2
+ //# sourceMappingURL=groups.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./groups/index.js";
2
+ //# sourceMappingURL=groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./groups/index.js"), exports);
6
+ //# sourceMappingURL=groups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./groups/index.mjs";
3
+ //# sourceMappingURL=groups.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v1/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,9 @@
1
+ export { APIKeys, type APIKey, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyCreateParams, } from "./api-keys.mjs";
2
+ export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse, type ConnectionCreateParams, } from "./connections/index.mjs";
3
+ export { GitHub, type GitHubCheckInstallationsResponse, type GitHubDisconnectResponse, type GitHubGetStatusResponse, type GitHubSyncResponse, } from "./github/index.mjs";
4
+ export { Groups, type GroupDetail, type GroupListResponse, type GroupCreateParams, type GroupUpdateParams, } from "./groups/index.mjs";
5
+ export { Me, type ClientUser, type ClientUserRole, type MeGetConnectionsResponse } from "./me.mjs";
6
+ export { Org } from "./org/index.mjs";
7
+ export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants/index.mjs";
8
+ export { V1 } from "./v1.mjs";
9
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,MAAM,EACN,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,EAAE,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,wBAAwB,EAAE;OAC3E,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,EAAE,EAAE"}
@@ -0,0 +1,9 @@
1
+ export { APIKeys, type APIKey, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyCreateParams, } from "./api-keys.js";
2
+ export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionRetrieveCredentialResponse, type ConnectionSyncResponse, type ConnectionCreateParams, } from "./connections/index.js";
3
+ export { GitHub, type GitHubCheckInstallationsResponse, type GitHubDisconnectResponse, type GitHubGetStatusResponse, type GitHubSyncResponse, } from "./github/index.js";
4
+ export { Groups, type GroupDetail, type GroupListResponse, type GroupCreateParams, type GroupUpdateParams, } from "./groups/index.js";
5
+ export { Me, type ClientUser, type ClientUserRole, type MeGetConnectionsResponse } from "./me.js";
6
+ export { Org } from "./org/index.js";
7
+ export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants/index.js";
8
+ export { V1 } from "./v1.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,MAAM,EACN,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,EAAE,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,wBAAwB,EAAE;OAC3E,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,EAAE,EAAE"}
@@ -0,0 +1,21 @@
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.V1 = exports.Tenants = exports.Org = exports.Me = exports.Groups = exports.GitHub = exports.Connections = exports.APIKeys = void 0;
5
+ var api_keys_1 = require("./api-keys.js");
6
+ Object.defineProperty(exports, "APIKeys", { enumerable: true, get: function () { return api_keys_1.APIKeys; } });
7
+ var index_1 = require("./connections/index.js");
8
+ Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return index_1.Connections; } });
9
+ var index_2 = require("./github/index.js");
10
+ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return index_2.GitHub; } });
11
+ var index_3 = require("./groups/index.js");
12
+ Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return index_3.Groups; } });
13
+ var me_1 = require("./me.js");
14
+ Object.defineProperty(exports, "Me", { enumerable: true, get: function () { return me_1.Me; } });
15
+ var index_4 = require("./org/index.js");
16
+ Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return index_4.Org; } });
17
+ var index_5 = require("./tenants/index.js");
18
+ Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return index_5.Tenants; } });
19
+ var v1_1 = require("./v1.js");
20
+ Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,mGAAA,OAAO,OAAA;AAMT,gDAQ6B;AAP3B,oGAAA,WAAW,OAAA;AAQb,2CAMwB;AALtB,+FAAA,MAAM,OAAA;AAMR,2CAMwB;AALtB,+FAAA,MAAM,OAAA;AAMR,8BAA+F;AAAtF,wFAAA,EAAE,OAAA;AACX,wCAAkC;AAAzB,4FAAA,GAAG,OAAA;AACZ,4CAOyB;AANvB,gGAAA,OAAO,OAAA;AAOT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -0,0 +1,10 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { APIKeys, } from "./api-keys.mjs";
3
+ export { Connections, } from "./connections/index.mjs";
4
+ export { GitHub, } from "./github/index.mjs";
5
+ export { Groups, } from "./groups/index.mjs";
6
+ export { Me } from "./me.mjs";
7
+ export { Org } from "./org/index.mjs";
8
+ export { Tenants, } from "./tenants/index.mjs";
9
+ export { V1 } from "./v1.mjs";
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAOZ;OACM,EACL,MAAM,GAKP;OACM,EACL,MAAM,GAKP;OACM,EAAE,EAAE,EAAuE;OAC3E,EAAE,GAAG,EAAE;OACP,EACL,OAAO,GAMR;OACM,EAAE,EAAE,EAAE"}
@@ -0,0 +1,51 @@
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 Me extends APIResource {
5
+ /**
6
+ * Get the current authenticated user's information.
7
+ *
8
+ * Returns the user's profile within their active organization. This endpoint only
9
+ * requires authentication - no special permissions needed.
10
+ *
11
+ * RLS: Filtered to current user's data only (RLSDB).
12
+ */
13
+ retrieve(options?: RequestOptions): APIPromise<ClientUser>;
14
+ /**
15
+ * Get connections accessible to the current user.
16
+ *
17
+ * Currently returns all connections in the user's organization. All org users have
18
+ * access to all org connections.
19
+ */
20
+ getConnections(options?: RequestOptions): APIPromise<MeGetConnectionsResponse>;
21
+ }
22
+ /**
23
+ * Response schema for a client user.
24
+ */
25
+ export interface ClientUser {
26
+ id: string;
27
+ client_id: string;
28
+ created_at: string;
29
+ email: string;
30
+ email_confirmed: boolean;
31
+ /**
32
+ * Role of a user within a client organization.
33
+ */
34
+ role: ClientUserRole;
35
+ updated_at: string;
36
+ first_name?: string | null;
37
+ last_name?: string | null;
38
+ picture_url?: string | null;
39
+ propel_auth_created_at?: string | null;
40
+ propel_auth_last_active_at?: string | null;
41
+ username?: string | null;
42
+ }
43
+ /**
44
+ * Role of a user within a client organization.
45
+ */
46
+ export type ClientUserRole = 'Admin' | 'Developer' | 'Viewer';
47
+ export type MeGetConnectionsResponse = Array<unknown>;
48
+ export declare namespace Me {
49
+ export { type ClientUser as ClientUser, type ClientUserRole as ClientUserRole, type MeGetConnectionsResponse as MeGetConnectionsResponse, };
50
+ }
51
+ //# sourceMappingURL=me.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI1D;;;;;OAKG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,51 @@
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 Me extends APIResource {
5
+ /**
6
+ * Get the current authenticated user's information.
7
+ *
8
+ * Returns the user's profile within their active organization. This endpoint only
9
+ * requires authentication - no special permissions needed.
10
+ *
11
+ * RLS: Filtered to current user's data only (RLSDB).
12
+ */
13
+ retrieve(options?: RequestOptions): APIPromise<ClientUser>;
14
+ /**
15
+ * Get connections accessible to the current user.
16
+ *
17
+ * Currently returns all connections in the user's organization. All org users have
18
+ * access to all org connections.
19
+ */
20
+ getConnections(options?: RequestOptions): APIPromise<MeGetConnectionsResponse>;
21
+ }
22
+ /**
23
+ * Response schema for a client user.
24
+ */
25
+ export interface ClientUser {
26
+ id: string;
27
+ client_id: string;
28
+ created_at: string;
29
+ email: string;
30
+ email_confirmed: boolean;
31
+ /**
32
+ * Role of a user within a client organization.
33
+ */
34
+ role: ClientUserRole;
35
+ updated_at: string;
36
+ first_name?: string | null;
37
+ last_name?: string | null;
38
+ picture_url?: string | null;
39
+ propel_auth_created_at?: string | null;
40
+ propel_auth_last_active_at?: string | null;
41
+ username?: string | null;
42
+ }
43
+ /**
44
+ * Role of a user within a client organization.
45
+ */
46
+ export type ClientUserRole = 'Admin' | 'Developer' | 'Viewer';
47
+ export type MeGetConnectionsResponse = Array<unknown>;
48
+ export declare namespace Me {
49
+ export { type ClientUser as ClientUser, type ClientUserRole as ClientUserRole, type MeGetConnectionsResponse as MeGetConnectionsResponse, };
50
+ }
51
+ //# sourceMappingURL=me.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI1D;;;;;OAKG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;IAEd,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,29 @@
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.Me = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Me extends resource_1.APIResource {
7
+ /**
8
+ * Get the current authenticated user's information.
9
+ *
10
+ * Returns the user's profile within their active organization. This endpoint only
11
+ * requires authentication - no special permissions needed.
12
+ *
13
+ * RLS: Filtered to current user's data only (RLSDB).
14
+ */
15
+ retrieve(options) {
16
+ return this._client.get('/api/v1/me', options);
17
+ }
18
+ /**
19
+ * Get connections accessible to the current user.
20
+ *
21
+ * Currently returns all connections in the user's organization. All org users have
22
+ * access to all org connections.
23
+ */
24
+ getConnections(options) {
25
+ return this._client.get('/api/v1/me/connection', options);
26
+ }
27
+ }
28
+ exports.Me = Me;
29
+ //# sourceMappingURL=me.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.js","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAtBD,gBAsBC"}
@@ -0,0 +1,25 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Me extends APIResource {
4
+ /**
5
+ * Get the current authenticated user's information.
6
+ *
7
+ * Returns the user's profile within their active organization. This endpoint only
8
+ * requires authentication - no special permissions needed.
9
+ *
10
+ * RLS: Filtered to current user's data only (RLSDB).
11
+ */
12
+ retrieve(options) {
13
+ return this._client.get('/api/v1/me', options);
14
+ }
15
+ /**
16
+ * Get connections accessible to the current user.
17
+ *
18
+ * Currently returns all connections in the user's organization. All org users have
19
+ * access to all org connections.
20
+ */
21
+ getConnections(options) {
22
+ return this._client.get('/api/v1/me/connection', options);
23
+ }
24
+ }
25
+ //# sourceMappingURL=me.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"me.mjs","sourceRoot":"","sources":["../../src/resources/v1/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF"}
@@ -0,0 +1,53 @@
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 ClientResource extends APIResource {
5
+ /**
6
+ * Get the current user's organization details.
7
+ *
8
+ * RLS: Filtered to current client (ClientRLSDB).
9
+ */
10
+ retrieve(options?: RequestOptions): APIPromise<Client>;
11
+ /**
12
+ * Update the current user's organization details.
13
+ *
14
+ * RLS: Filtered to current client (ClientRLSDB).
15
+ */
16
+ update(body: ClientUpdateParams, options?: RequestOptions): APIPromise<Client>;
17
+ }
18
+ /**
19
+ * Response schema for a client/organization.
20
+ */
21
+ export interface Client {
22
+ id: string;
23
+ can_auto_join_by_domain: boolean;
24
+ created_at: string;
25
+ members_must_have_matching_domain: boolean;
26
+ name: string;
27
+ /**
28
+ * Type of tenancy for a client.
29
+ */
30
+ tenancy_type: TenancyType;
31
+ updated_at: string;
32
+ domain?: string | null;
33
+ logo_url?: string | null;
34
+ }
35
+ /**
36
+ * Type of tenancy for a client.
37
+ */
38
+ export type TenancyType = 'row' | 'database' | 'none';
39
+ export interface ClientUpdateParams {
40
+ can_auto_join_by_domain?: boolean | null;
41
+ domain?: string | null;
42
+ logo_url?: string | null;
43
+ members_must_have_matching_domain?: boolean | null;
44
+ name?: string | null;
45
+ /**
46
+ * Type of tenancy for a client.
47
+ */
48
+ tenancy_type?: TenancyType | null;
49
+ }
50
+ export declare namespace ClientResource {
51
+ export { type Client as Client, type TenancyType as TenancyType, type ClientUpdateParams as ClientUpdateParams, };
52
+ }
53
+ //# sourceMappingURL=client.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAItD;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,uBAAuB,EAAE,OAAO,CAAC;IAEjC,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC,EAAE,OAAO,CAAC;IAE3C,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,WAAW,CAAC;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,uBAAuB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iCAAiC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,53 @@
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 ClientResource extends APIResource {
5
+ /**
6
+ * Get the current user's organization details.
7
+ *
8
+ * RLS: Filtered to current client (ClientRLSDB).
9
+ */
10
+ retrieve(options?: RequestOptions): APIPromise<Client>;
11
+ /**
12
+ * Update the current user's organization details.
13
+ *
14
+ * RLS: Filtered to current client (ClientRLSDB).
15
+ */
16
+ update(body: ClientUpdateParams, options?: RequestOptions): APIPromise<Client>;
17
+ }
18
+ /**
19
+ * Response schema for a client/organization.
20
+ */
21
+ export interface Client {
22
+ id: string;
23
+ can_auto_join_by_domain: boolean;
24
+ created_at: string;
25
+ members_must_have_matching_domain: boolean;
26
+ name: string;
27
+ /**
28
+ * Type of tenancy for a client.
29
+ */
30
+ tenancy_type: TenancyType;
31
+ updated_at: string;
32
+ domain?: string | null;
33
+ logo_url?: string | null;
34
+ }
35
+ /**
36
+ * Type of tenancy for a client.
37
+ */
38
+ export type TenancyType = 'row' | 'database' | 'none';
39
+ export interface ClientUpdateParams {
40
+ can_auto_join_by_domain?: boolean | null;
41
+ domain?: string | null;
42
+ logo_url?: string | null;
43
+ members_must_have_matching_domain?: boolean | null;
44
+ name?: string | null;
45
+ /**
46
+ * Type of tenancy for a client.
47
+ */
48
+ tenancy_type?: TenancyType | null;
49
+ }
50
+ export declare namespace ClientResource {
51
+ export { type Client as Client, type TenancyType as TenancyType, type ClientUpdateParams as ClientUpdateParams, };
52
+ }
53
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAItD;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG/E;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,uBAAuB,EAAE,OAAO,CAAC;IAEjC,UAAU,EAAE,MAAM,CAAC;IAEnB,iCAAiC,EAAE,OAAO,CAAC;IAE3C,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,WAAW,CAAC;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,uBAAuB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iCAAiC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,25 @@
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.ClientResource = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ class ClientResource extends resource_1.APIResource {
7
+ /**
8
+ * Get the current user's organization details.
9
+ *
10
+ * RLS: Filtered to current client (ClientRLSDB).
11
+ */
12
+ retrieve(options) {
13
+ return this._client.get('/api/v1/org/client', options);
14
+ }
15
+ /**
16
+ * Update the current user's organization details.
17
+ *
18
+ * RLS: Filtered to current client (ClientRLSDB).
19
+ */
20
+ update(body, options) {
21
+ return this._client.patch('/api/v1/org/client', { body, ...options });
22
+ }
23
+ }
24
+ exports.ClientResource = ClientResource;
25
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/resources/v1/org/client.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAlBD,wCAkBC"}