@katerai/sdk 0.6.0 → 0.8.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 (321) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +23 -16
  3. package/client.d.mts +10 -13
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +10 -13
  6. package/client.d.ts.map +1 -1
  7. package/client.js +37 -15
  8. package/client.js.map +1 -1
  9. package/client.mjs +37 -15
  10. package/client.mjs.map +1 -1
  11. package/internal/utils/log.d.mts.map +1 -1
  12. package/internal/utils/log.d.ts.map +1 -1
  13. package/internal/utils/log.js +2 -1
  14. package/internal/utils/log.js.map +1 -1
  15. package/internal/utils/log.mjs +2 -1
  16. package/internal/utils/log.mjs.map +1 -1
  17. package/package.json +2 -2
  18. package/resources/index.d.mts +0 -2
  19. package/resources/index.d.mts.map +1 -1
  20. package/resources/index.d.ts +0 -2
  21. package/resources/index.d.ts.map +1 -1
  22. package/resources/index.js +1 -5
  23. package/resources/index.js.map +1 -1
  24. package/resources/index.mjs +0 -2
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/v1/compiler.d.mts +1116 -0
  27. package/resources/v1/compiler.d.mts.map +1 -0
  28. package/resources/v1/compiler.d.ts +1116 -0
  29. package/resources/v1/compiler.d.ts.map +1 -0
  30. package/resources/v1/compiler.js +70 -0
  31. package/resources/v1/compiler.js.map +1 -0
  32. package/resources/v1/compiler.mjs +66 -0
  33. package/resources/v1/compiler.mjs.map +1 -0
  34. package/resources/v1/connections.d.mts +216 -1
  35. package/resources/v1/connections.d.mts.map +1 -1
  36. package/resources/v1/connections.d.ts +216 -1
  37. package/resources/v1/connections.d.ts.map +1 -1
  38. package/resources/v1/connections.js +22 -2
  39. package/resources/v1/connections.js.map +1 -1
  40. package/resources/v1/connections.mjs +20 -1
  41. package/resources/v1/connections.mjs.map +1 -1
  42. package/resources/v1/index.d.mts +3 -6
  43. package/resources/v1/index.d.mts.map +1 -1
  44. package/resources/v1/index.d.ts +3 -6
  45. package/resources/v1/index.d.ts.map +1 -1
  46. package/resources/v1/index.js +7 -13
  47. package/resources/v1/index.js.map +1 -1
  48. package/resources/v1/index.mjs +2 -5
  49. package/resources/v1/index.mjs.map +1 -1
  50. package/resources/v1/tenants/groups.d.mts +5 -5
  51. package/resources/v1/tenants/groups.d.mts.map +1 -1
  52. package/resources/v1/tenants/groups.d.ts +5 -5
  53. package/resources/v1/tenants/groups.d.ts.map +1 -1
  54. package/resources/v1/tenants/groups.js +1 -1
  55. package/resources/v1/tenants/groups.js.map +1 -1
  56. package/resources/v1/tenants/groups.mjs +1 -1
  57. package/resources/v1/tenants/groups.mjs.map +1 -1
  58. package/resources/v1/tenants/index.d.mts +2 -4
  59. package/resources/v1/tenants/index.d.mts.map +1 -1
  60. package/resources/v1/tenants/index.d.ts +2 -4
  61. package/resources/v1/tenants/index.d.ts.map +1 -1
  62. package/resources/v1/tenants/index.js +1 -5
  63. package/resources/v1/tenants/index.js.map +1 -1
  64. package/resources/v1/tenants/index.mjs +0 -2
  65. package/resources/v1/tenants/index.mjs.map +1 -1
  66. package/resources/v1/tenants/tenants.d.mts +72 -151
  67. package/resources/v1/tenants/tenants.d.mts.map +1 -1
  68. package/resources/v1/tenants/tenants.d.ts +72 -151
  69. package/resources/v1/tenants/tenants.d.ts.map +1 -1
  70. package/resources/v1/tenants/tenants.js +29 -72
  71. package/resources/v1/tenants/tenants.js.map +1 -1
  72. package/resources/v1/tenants/tenants.mjs +29 -72
  73. package/resources/v1/tenants/tenants.mjs.map +1 -1
  74. package/resources/v1/v1.d.mts +9 -21
  75. package/resources/v1/v1.d.mts.map +1 -1
  76. package/resources/v1/v1.d.ts +9 -21
  77. package/resources/v1/v1.d.ts.map +1 -1
  78. package/resources/v1/v1.js +6 -18
  79. package/resources/v1/v1.js.map +1 -1
  80. package/resources/v1/v1.mjs +6 -18
  81. package/resources/v1/v1.mjs.map +1 -1
  82. package/src/client.ts +48 -23
  83. package/src/internal/utils/log.ts +1 -0
  84. package/src/resources/index.ts +0 -2
  85. package/src/resources/v1/compiler.ts +1484 -0
  86. package/src/resources/v1/connections.ts +277 -1
  87. package/src/resources/v1/index.ts +23 -43
  88. package/src/resources/v1/tenants/groups.ts +5 -5
  89. package/src/resources/v1/tenants/index.ts +5 -24
  90. package/src/resources/v1/tenants/tenants.ts +89 -213
  91. package/src/resources/v1/v1.ts +49 -101
  92. package/src/version.ts +1 -1
  93. package/version.d.mts +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
  96. package/version.mjs +1 -1
  97. package/resources/healthz.d.mts +0 -16
  98. package/resources/healthz.d.mts.map +0 -1
  99. package/resources/healthz.d.ts +0 -16
  100. package/resources/healthz.d.ts.map +0 -1
  101. package/resources/healthz.js +0 -15
  102. package/resources/healthz.js.map +0 -1
  103. package/resources/healthz.mjs +0 -11
  104. package/resources/healthz.mjs.map +0 -1
  105. package/resources/readyz.d.mts +0 -16
  106. package/resources/readyz.d.mts.map +0 -1
  107. package/resources/readyz.d.ts +0 -16
  108. package/resources/readyz.d.ts.map +0 -1
  109. package/resources/readyz.js +0 -15
  110. package/resources/readyz.js.map +0 -1
  111. package/resources/readyz.mjs +0 -11
  112. package/resources/readyz.mjs.map +0 -1
  113. package/resources/v1/connections/connections.d.mts +0 -1470
  114. package/resources/v1/connections/connections.d.mts.map +0 -1
  115. package/resources/v1/connections/connections.d.ts +0 -1470
  116. package/resources/v1/connections/connections.d.ts.map +0 -1
  117. package/resources/v1/connections/connections.js +0 -163
  118. package/resources/v1/connections/connections.js.map +0 -1
  119. package/resources/v1/connections/connections.mjs +0 -158
  120. package/resources/v1/connections/connections.mjs.map +0 -1
  121. package/resources/v1/connections/databases.d.mts +0 -25
  122. package/resources/v1/connections/databases.d.mts.map +0 -1
  123. package/resources/v1/connections/databases.d.ts +0 -25
  124. package/resources/v1/connections/databases.d.ts.map +0 -1
  125. package/resources/v1/connections/databases.js +0 -26
  126. package/resources/v1/connections/databases.js.map +0 -1
  127. package/resources/v1/connections/databases.mjs +0 -22
  128. package/resources/v1/connections/databases.mjs.map +0 -1
  129. package/resources/v1/connections/index.d.mts +0 -5
  130. package/resources/v1/connections/index.d.mts.map +0 -1
  131. package/resources/v1/connections/index.d.ts +0 -5
  132. package/resources/v1/connections/index.d.ts.map +0 -1
  133. package/resources/v1/connections/index.js +0 -13
  134. package/resources/v1/connections/index.js.map +0 -1
  135. package/resources/v1/connections/index.mjs +0 -6
  136. package/resources/v1/connections/index.mjs.map +0 -1
  137. package/resources/v1/connections/views.d.mts +0 -77
  138. package/resources/v1/connections/views.d.mts.map +0 -1
  139. package/resources/v1/connections/views.d.ts +0 -77
  140. package/resources/v1/connections/views.d.ts.map +0 -1
  141. package/resources/v1/connections/views.js +0 -24
  142. package/resources/v1/connections/views.js.map +0 -1
  143. package/resources/v1/connections/views.mjs +0 -20
  144. package/resources/v1/connections/views.mjs.map +0 -1
  145. package/resources/v1/connections/yaml.d.mts +0 -57
  146. package/resources/v1/connections/yaml.d.mts.map +0 -1
  147. package/resources/v1/connections/yaml.d.ts +0 -57
  148. package/resources/v1/connections/yaml.d.ts.map +0 -1
  149. package/resources/v1/connections/yaml.js +0 -22
  150. package/resources/v1/connections/yaml.js.map +0 -1
  151. package/resources/v1/connections/yaml.mjs +0 -18
  152. package/resources/v1/connections/yaml.mjs.map +0 -1
  153. package/resources/v1/github/github.d.mts +0 -99
  154. package/resources/v1/github/github.d.mts.map +0 -1
  155. package/resources/v1/github/github.d.ts +0 -99
  156. package/resources/v1/github/github.d.ts.map +0 -1
  157. package/resources/v1/github/github.js +0 -49
  158. package/resources/v1/github/github.js.map +0 -1
  159. package/resources/v1/github/github.mjs +0 -44
  160. package/resources/v1/github/github.mjs.map +0 -1
  161. package/resources/v1/github/index.d.mts +0 -5
  162. package/resources/v1/github/index.d.mts.map +0 -1
  163. package/resources/v1/github/index.d.ts +0 -5
  164. package/resources/v1/github/index.d.ts.map +0 -1
  165. package/resources/v1/github/index.js +0 -13
  166. package/resources/v1/github/index.js.map +0 -1
  167. package/resources/v1/github/index.mjs +0 -6
  168. package/resources/v1/github/index.mjs.map +0 -1
  169. package/resources/v1/github/repos.d.mts +0 -54
  170. package/resources/v1/github/repos.d.mts.map +0 -1
  171. package/resources/v1/github/repos.d.ts +0 -54
  172. package/resources/v1/github/repos.d.ts.map +0 -1
  173. package/resources/v1/github/repos.js +0 -22
  174. package/resources/v1/github/repos.js.map +0 -1
  175. package/resources/v1/github/repos.mjs +0 -18
  176. package/resources/v1/github/repos.mjs.map +0 -1
  177. package/resources/v1/github/scaffold.d.mts +0 -29
  178. package/resources/v1/github/scaffold.d.mts.map +0 -1
  179. package/resources/v1/github/scaffold.d.ts +0 -29
  180. package/resources/v1/github/scaffold.d.ts.map +0 -1
  181. package/resources/v1/github/scaffold.js +0 -21
  182. package/resources/v1/github/scaffold.js.map +0 -1
  183. package/resources/v1/github/scaffold.mjs +0 -17
  184. package/resources/v1/github/scaffold.mjs.map +0 -1
  185. package/resources/v1/github/webhooks.d.mts +0 -28
  186. package/resources/v1/github/webhooks.d.mts.map +0 -1
  187. package/resources/v1/github/webhooks.d.ts +0 -28
  188. package/resources/v1/github/webhooks.d.ts.map +0 -1
  189. package/resources/v1/github/webhooks.js +0 -27
  190. package/resources/v1/github/webhooks.js.map +0 -1
  191. package/resources/v1/github/webhooks.mjs +0 -23
  192. package/resources/v1/github/webhooks.mjs.map +0 -1
  193. package/resources/v1/github.d.mts +0 -2
  194. package/resources/v1/github.d.mts.map +0 -1
  195. package/resources/v1/github.d.ts +0 -2
  196. package/resources/v1/github.d.ts.map +0 -1
  197. package/resources/v1/github.js +0 -6
  198. package/resources/v1/github.js.map +0 -1
  199. package/resources/v1/github.mjs +0 -3
  200. package/resources/v1/github.mjs.map +0 -1
  201. package/resources/v1/groups/groups.d.mts +0 -162
  202. package/resources/v1/groups/groups.d.mts.map +0 -1
  203. package/resources/v1/groups/groups.d.ts +0 -162
  204. package/resources/v1/groups/groups.d.ts.map +0 -1
  205. package/resources/v1/groups/groups.js +0 -81
  206. package/resources/v1/groups/groups.js.map +0 -1
  207. package/resources/v1/groups/groups.mjs +0 -76
  208. package/resources/v1/groups/groups.mjs.map +0 -1
  209. package/resources/v1/groups/index.d.mts +0 -3
  210. package/resources/v1/groups/index.d.mts.map +0 -1
  211. package/resources/v1/groups/index.d.ts +0 -3
  212. package/resources/v1/groups/index.d.ts.map +0 -1
  213. package/resources/v1/groups/index.js +0 -9
  214. package/resources/v1/groups/index.js.map +0 -1
  215. package/resources/v1/groups/index.mjs +0 -4
  216. package/resources/v1/groups/index.mjs.map +0 -1
  217. package/resources/v1/groups/tenants.d.mts +0 -55
  218. package/resources/v1/groups/tenants.d.mts.map +0 -1
  219. package/resources/v1/groups/tenants.d.ts +0 -55
  220. package/resources/v1/groups/tenants.d.ts.map +0 -1
  221. package/resources/v1/groups/tenants.js +0 -39
  222. package/resources/v1/groups/tenants.js.map +0 -1
  223. package/resources/v1/groups/tenants.mjs +0 -35
  224. package/resources/v1/groups/tenants.mjs.map +0 -1
  225. package/resources/v1/groups.d.mts +0 -2
  226. package/resources/v1/groups.d.mts.map +0 -1
  227. package/resources/v1/groups.d.ts +0 -2
  228. package/resources/v1/groups.d.ts.map +0 -1
  229. package/resources/v1/groups.js +0 -6
  230. package/resources/v1/groups.js.map +0 -1
  231. package/resources/v1/groups.mjs +0 -3
  232. package/resources/v1/groups.mjs.map +0 -1
  233. package/resources/v1/me.d.mts +0 -43
  234. package/resources/v1/me.d.mts.map +0 -1
  235. package/resources/v1/me.d.ts +0 -43
  236. package/resources/v1/me.d.ts.map +0 -1
  237. package/resources/v1/me.js +0 -20
  238. package/resources/v1/me.js.map +0 -1
  239. package/resources/v1/me.mjs +0 -16
  240. package/resources/v1/me.mjs.map +0 -1
  241. package/resources/v1/org/client.d.mts +0 -53
  242. package/resources/v1/org/client.d.mts.map +0 -1
  243. package/resources/v1/org/client.d.ts +0 -53
  244. package/resources/v1/org/client.d.ts.map +0 -1
  245. package/resources/v1/org/client.js +0 -25
  246. package/resources/v1/org/client.js.map +0 -1
  247. package/resources/v1/org/client.mjs +0 -21
  248. package/resources/v1/org/client.mjs.map +0 -1
  249. package/resources/v1/org/index.d.mts +0 -4
  250. package/resources/v1/org/index.d.mts.map +0 -1
  251. package/resources/v1/org/index.d.ts +0 -4
  252. package/resources/v1/org/index.d.ts.map +0 -1
  253. package/resources/v1/org/index.js +0 -11
  254. package/resources/v1/org/index.js.map +0 -1
  255. package/resources/v1/org/index.mjs +0 -5
  256. package/resources/v1/org/index.mjs.map +0 -1
  257. package/resources/v1/org/org.d.mts +0 -14
  258. package/resources/v1/org/org.d.mts.map +0 -1
  259. package/resources/v1/org/org.d.ts +0 -14
  260. package/resources/v1/org/org.d.ts.map +0 -1
  261. package/resources/v1/org/org.js +0 -21
  262. package/resources/v1/org/org.js.map +0 -1
  263. package/resources/v1/org/org.mjs +0 -16
  264. package/resources/v1/org/org.mjs.map +0 -1
  265. package/resources/v1/org/users.d.mts +0 -87
  266. package/resources/v1/org/users.d.mts.map +0 -1
  267. package/resources/v1/org/users.d.ts +0 -87
  268. package/resources/v1/org/users.d.ts.map +0 -1
  269. package/resources/v1/org/users.js +0 -60
  270. package/resources/v1/org/users.js.map +0 -1
  271. package/resources/v1/org/users.mjs +0 -56
  272. package/resources/v1/org/users.mjs.map +0 -1
  273. package/resources/v1/org.d.mts +0 -2
  274. package/resources/v1/org.d.mts.map +0 -1
  275. package/resources/v1/org.d.ts +0 -2
  276. package/resources/v1/org.d.ts.map +0 -1
  277. package/resources/v1/org.js +0 -6
  278. package/resources/v1/org.js.map +0 -1
  279. package/resources/v1/org.mjs +0 -3
  280. package/resources/v1/org.mjs.map +0 -1
  281. package/resources/v1/tenants/batch.d.mts +0 -159
  282. package/resources/v1/tenants/batch.d.mts.map +0 -1
  283. package/resources/v1/tenants/batch.d.ts +0 -159
  284. package/resources/v1/tenants/batch.d.ts.map +0 -1
  285. package/resources/v1/tenants/batch.js +0 -42
  286. package/resources/v1/tenants/batch.js.map +0 -1
  287. package/resources/v1/tenants/batch.mjs +0 -38
  288. package/resources/v1/tenants/batch.mjs.map +0 -1
  289. package/resources/v1/tenants/import.d.mts +0 -126
  290. package/resources/v1/tenants/import.d.mts.map +0 -1
  291. package/resources/v1/tenants/import.d.ts +0 -126
  292. package/resources/v1/tenants/import.d.ts.map +0 -1
  293. package/resources/v1/tenants/import.js +0 -50
  294. package/resources/v1/tenants/import.js.map +0 -1
  295. package/resources/v1/tenants/import.mjs +0 -46
  296. package/resources/v1/tenants/import.mjs.map +0 -1
  297. package/src/resources/healthz.ts +0 -20
  298. package/src/resources/readyz.ts +0 -20
  299. package/src/resources/v1/connections/connections.ts +0 -1905
  300. package/src/resources/v1/connections/databases.ts +0 -42
  301. package/src/resources/v1/connections/index.ts +0 -33
  302. package/src/resources/v1/connections/views.ts +0 -112
  303. package/src/resources/v1/connections/yaml.ts +0 -81
  304. package/src/resources/v1/github/github.ts +0 -165
  305. package/src/resources/v1/github/index.ts +0 -20
  306. package/src/resources/v1/github/repos.ts +0 -85
  307. package/src/resources/v1/github/scaffold.ts +0 -44
  308. package/src/resources/v1/github/webhooks.ts +0 -60
  309. package/src/resources/v1/github.ts +0 -3
  310. package/src/resources/v1/groups/groups.ts +0 -218
  311. package/src/resources/v1/groups/index.ts +0 -10
  312. package/src/resources/v1/groups/tenants.ts +0 -78
  313. package/src/resources/v1/groups.ts +0 -3
  314. package/src/resources/v1/me.ts +0 -62
  315. package/src/resources/v1/org/client.ts +0 -81
  316. package/src/resources/v1/org/index.ts +0 -11
  317. package/src/resources/v1/org/org.ts +0 -32
  318. package/src/resources/v1/org/users.ts +0 -127
  319. package/src/resources/v1/org.ts +0 -3
  320. package/src/resources/v1/tenants/batch.ts +0 -200
  321. package/src/resources/v1/tenants/import.ts +0 -158
@@ -1,3 +1,22 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./connections/index.mjs";
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Connections extends APIResource {
4
+ /**
5
+ * List warehouse connections for the client.
6
+ *
7
+ * Filter connections by approval status using the `status` query parameter:
8
+ *
9
+ * - `approved` (default): Only approved connections (is_pending_approval=false)
10
+ * - `pending`: Only connections awaiting PR approval (is_pending_approval=true)
11
+ * - `all`: All connections regardless of approval status
12
+ *
13
+ * Pending connections include their approval PR URLs when available. Returns empty
14
+ * list if GitHub is not configured.
15
+ *
16
+ * RLS: Filtered to current client (DualClientRLSDB).
17
+ */
18
+ listConnections(query = {}, options) {
19
+ return this._client.get('/api/v1/connections', { query, ...options });
20
+ }
21
+ }
3
22
  //# sourceMappingURL=connections.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
1
+ {"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/v1/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;OAaG;IACH,eAAe,CACb,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -1,8 +1,5 @@
1
- export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionApproveSyncResponse, type ConnectionListSyncsResponse, type ConnectionRetrieveCredentialResponse, type ConnectionRetrieveSchemaResponse, type ConnectionRetrieveSyncStatusResponse, type ConnectionStreamSyncProgressResponse, type ConnectionSyncResponse, type ConnectionUpdateCredentialsResponse, type ConnectionCreateParams, type ConnectionUpdateParams, type ConnectionListParams, type ConnectionApproveSyncParams, type ConnectionListSyncsParams, type ConnectionRetrieveSyncStatusParams, type ConnectionStreamSyncProgressParams, type ConnectionUpdateCredentialsParams, } from "./connections/index.mjs";
2
- export { GitHub, type GitHubCallbackResponse, type GitHubConnectResponse, type GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse, type GitHubCallbackParams, type GitHubConnectParams, } from "./github/index.mjs";
3
- export { Groups, type GroupDetail, type GroupListResponse, type GroupCreateParams, type GroupUpdateParams, } from "./groups/index.mjs";
4
- export { Me, type ClientUser, type ClientUserRole } from "./me.mjs";
5
- export { Org } from "./org/index.mjs";
6
- export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants/index.mjs";
1
+ export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler.mjs";
2
+ export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.mjs";
3
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.mjs";
7
4
  export { V1 } from "./v1.mjs";
8
5
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,mCAAmC,EACxC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,GACvC;OACM,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;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;OAC5C,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,EAAE,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
@@ -1,8 +1,5 @@
1
- export { Connections, type Connection, type DatabaseConfig, type ConnectionListResponse, type ConnectionApproveSyncResponse, type ConnectionListSyncsResponse, type ConnectionRetrieveCredentialResponse, type ConnectionRetrieveSchemaResponse, type ConnectionRetrieveSyncStatusResponse, type ConnectionStreamSyncProgressResponse, type ConnectionSyncResponse, type ConnectionUpdateCredentialsResponse, type ConnectionCreateParams, type ConnectionUpdateParams, type ConnectionListParams, type ConnectionApproveSyncParams, type ConnectionListSyncsParams, type ConnectionRetrieveSyncStatusParams, type ConnectionStreamSyncProgressParams, type ConnectionUpdateCredentialsParams, } from "./connections/index.js";
2
- export { GitHub, type GitHubCallbackResponse, type GitHubConnectResponse, type GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse, type GitHubCallbackParams, type GitHubConnectParams, } from "./github/index.js";
3
- export { Groups, type GroupDetail, type GroupListResponse, type GroupCreateParams, type GroupUpdateParams, } from "./groups/index.js";
4
- export { Me, type ClientUser, type ClientUserRole } from "./me.js";
5
- export { Org } from "./org/index.js";
6
- export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants/index.js";
1
+ export { Compiler, type ChartConfig, type CompilerErrorItem, type InlineField, type Manifest, type ManifestEntry, type RefWithLabel, type SubqueryCondition, type CompilerCompileResponse, type CompilerResolveResponse, type CompilerValidateResponse, type CompilerCompileParams, type CompilerResolveParams, type CompilerValidateParams, } from "./compiler.js";
2
+ export { Connections, type Connection, type ConnectionListConnectionsResponse, type ConnectionListConnectionsParams, } from "./connections.js";
3
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants/index.js";
7
4
  export { V1 } from "./v1.js";
8
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,mCAAmC,EACxC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,GACvC;OACM,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;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;OAC5C,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,EAAE,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC;OACM,EAAE,EAAE,EAAE"}
@@ -1,19 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.V1 = exports.Tenants = exports.Org = exports.Me = exports.Groups = exports.GitHub = exports.Connections = void 0;
5
- var index_1 = require("./connections/index.js");
6
- Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return index_1.Connections; } });
7
- var index_2 = require("./github/index.js");
8
- Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return index_2.GitHub; } });
9
- var index_3 = require("./groups/index.js");
10
- Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return index_3.Groups; } });
11
- var me_1 = require("./me.js");
12
- Object.defineProperty(exports, "Me", { enumerable: true, get: function () { return me_1.Me; } });
13
- var index_4 = require("./org/index.js");
14
- Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return index_4.Org; } });
15
- var index_5 = require("./tenants/index.js");
16
- Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return index_5.Tenants; } });
4
+ exports.V1 = exports.Tenants = exports.Connections = exports.Compiler = void 0;
5
+ var compiler_1 = require("./compiler.js");
6
+ Object.defineProperty(exports, "Compiler", { enumerable: true, get: function () { return compiler_1.Compiler; } });
7
+ var connections_1 = require("./connections.js");
8
+ Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
9
+ var index_1 = require("./tenants/index.js");
10
+ Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return index_1.Tenants; } });
17
11
  var v1_1 = require("./v1.js");
18
12
  Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
19
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAqB6B;AApB3B,oGAAA,WAAW,OAAA;AAqBb,2CAQwB;AAPtB,+FAAA,MAAM,OAAA;AAQR,2CAMwB;AALtB,+FAAA,MAAM,OAAA;AAMR,8BAAgE;AAAvD,wFAAA,EAAE,OAAA;AACX,wCAAkC;AAAzB,4FAAA,GAAG,OAAA;AACZ,4CAQyB;AAPvB,gGAAA,OAAO,OAAA;AAQT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAeoB;AAdlB,oGAAA,QAAQ,OAAA;AAeV,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,4CAMyB;AALvB,gGAAA,OAAO,OAAA;AAMT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -1,9 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Connections, } from "./connections/index.mjs";
3
- export { GitHub, } from "./github/index.mjs";
4
- export { Groups, } from "./groups/index.mjs";
5
- export { Me } from "./me.mjs";
6
- export { Org } from "./org/index.mjs";
2
+ export { Compiler, } from "./compiler.mjs";
3
+ export { Connections, } from "./connections.mjs";
7
4
  export { Tenants, } from "./tenants/index.mjs";
8
5
  export { V1 } from "./v1.mjs";
9
6
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAoBZ;OACM,EACL,MAAM,GAOP;OACM,EACL,MAAM,GAKP;OACM,EAAE,EAAE,EAAwC;OAC5C,EAAE,GAAG,EAAE;OACP,EACL,OAAO,GAOR;OACM,EAAE,EAAE,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAcT;OACM,EACL,WAAW,GAIZ;OACM,EACL,OAAO,GAKR;OACM,EAAE,EAAE,EAAE"}
@@ -10,18 +10,18 @@ export declare class Groups extends APIResource {
10
10
  *
11
11
  * RLS: Filtered to current client (ClientRLSDB).
12
12
  */
13
- retrieveSchema(options?: RequestOptions): APIPromise<GroupRetrieveSchemaResponse>;
13
+ getTenantGroupsSchema(options?: RequestOptions): APIPromise<GroupGetTenantGroupsSchemaResponse>;
14
14
  }
15
15
  /**
16
16
  * Schema for tenant group configuration files
17
17
  */
18
- export interface GroupRetrieveSchemaResponse {
18
+ export interface GroupGetTenantGroupsSchemaResponse {
19
19
  /**
20
20
  * Array of tenant group configurations
21
21
  */
22
- tenant_groups: Array<GroupRetrieveSchemaResponse.TenantGroup>;
22
+ tenant_groups: Array<GroupGetTenantGroupsSchemaResponse.TenantGroup>;
23
23
  }
24
- export declare namespace GroupRetrieveSchemaResponse {
24
+ export declare namespace GroupGetTenantGroupsSchemaResponse {
25
25
  interface TenantGroup {
26
26
  /**
27
27
  * Unique Kater identifier
@@ -38,6 +38,6 @@ export declare namespace GroupRetrieveSchemaResponse {
38
38
  }
39
39
  }
40
40
  export declare namespace Groups {
41
- export { type GroupRetrieveSchemaResponse as GroupRetrieveSchemaResponse };
41
+ export { type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
42
42
  }
43
43
  //# sourceMappingURL=groups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAGlF;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC;CAC/D;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
1
+ {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
@@ -10,18 +10,18 @@ export declare class Groups extends APIResource {
10
10
  *
11
11
  * RLS: Filtered to current client (ClientRLSDB).
12
12
  */
13
- retrieveSchema(options?: RequestOptions): APIPromise<GroupRetrieveSchemaResponse>;
13
+ getTenantGroupsSchema(options?: RequestOptions): APIPromise<GroupGetTenantGroupsSchemaResponse>;
14
14
  }
15
15
  /**
16
16
  * Schema for tenant group configuration files
17
17
  */
18
- export interface GroupRetrieveSchemaResponse {
18
+ export interface GroupGetTenantGroupsSchemaResponse {
19
19
  /**
20
20
  * Array of tenant group configurations
21
21
  */
22
- tenant_groups: Array<GroupRetrieveSchemaResponse.TenantGroup>;
22
+ tenant_groups: Array<GroupGetTenantGroupsSchemaResponse.TenantGroup>;
23
23
  }
24
- export declare namespace GroupRetrieveSchemaResponse {
24
+ export declare namespace GroupGetTenantGroupsSchemaResponse {
25
25
  interface TenantGroup {
26
26
  /**
27
27
  * Unique Kater identifier
@@ -38,6 +38,6 @@ export declare namespace GroupRetrieveSchemaResponse {
38
38
  }
39
39
  }
40
40
  export declare namespace Groups {
41
- export { type GroupRetrieveSchemaResponse as GroupRetrieveSchemaResponse };
41
+ export { type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
42
42
  }
43
43
  //# sourceMappingURL=groups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAGlF;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC;CAC/D;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
1
+ {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGhG;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC;CACtE;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
@@ -12,7 +12,7 @@ class Groups extends resource_1.APIResource {
12
12
  *
13
13
  * RLS: Filtered to current client (ClientRLSDB).
14
14
  */
15
- retrieveSchema(options) {
15
+ getTenantGroupsSchema(options) {
16
16
  return this._client.get('/api/v1/tenants/groups/schema', options);
17
17
  }
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAZD,wBAYC"}
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAZD,wBAYC"}
@@ -9,7 +9,7 @@ export class Groups extends APIResource {
9
9
  *
10
10
  * RLS: Filtered to current client (ClientRLSDB).
11
11
  */
12
- retrieveSchema(options) {
12
+ getTenantGroupsSchema(options) {
13
13
  return this._client.get('/api/v1/tenants/groups/schema', options);
14
14
  }
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
1
+ {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -1,5 +1,3 @@
1
- export { Batch, type BatchTenantError, type BatchTenantSuccess, type BatchCreateResponse, type BatchUpdateResponse, type BatchDeleteResponse, type BatchCreateParams, type BatchUpdateParams, type BatchDeleteParams, } from "./batch.mjs";
2
- export { Groups, type GroupRetrieveSchemaResponse } from "./groups.mjs";
3
- export { Import, type ImportTenants, type ImportFromCsvParams, type ImportFromWarehouseParams, } from "./import.mjs";
4
- export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants.mjs";
1
+ export { Groups, type GroupGetTenantGroupsSchemaResponse } from "./groups.mjs";
2
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.mjs";
5
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,2BAA2B,EAAE;OAC5C,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,kCAAkC,EAAE;OACnD,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC"}
@@ -1,5 +1,3 @@
1
- export { Batch, type BatchTenantError, type BatchTenantSuccess, type BatchCreateResponse, type BatchUpdateResponse, type BatchDeleteResponse, type BatchCreateParams, type BatchUpdateParams, type BatchDeleteParams, } from "./batch.js";
2
- export { Groups, type GroupRetrieveSchemaResponse } from "./groups.js";
3
- export { Import, type ImportTenants, type ImportFromCsvParams, type ImportFromWarehouseParams, } from "./import.js";
4
- export { Tenants, type CreateTenant, type Tenant, type TenantListResponse, type TenantRetrieveSchemaResponse, type TenantCreateParams, type TenantUpdateParams, } from "./tenants.js";
1
+ export { Groups, type GroupGetTenantGroupsSchemaResponse } from "./groups.js";
2
+ export { Tenants, type ImportTenantsResponse, type TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams, type TenantImportFromWarehouseParams, } from "./tenants.js";
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,2BAA2B,EAAE;OAC5C,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,kCAAkC,EAAE;OACnD,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,GACrC"}
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Tenants = exports.Import = exports.Groups = exports.Batch = void 0;
5
- var batch_1 = require("./batch.js");
6
- Object.defineProperty(exports, "Batch", { enumerable: true, get: function () { return batch_1.Batch; } });
4
+ exports.Tenants = exports.Groups = void 0;
7
5
  var groups_1 = require("./groups.js");
8
6
  Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
9
- var import_1 = require("./import.js");
10
- Object.defineProperty(exports, "Import", { enumerable: true, get: function () { return import_1.Import; } });
11
7
  var tenants_1 = require("./tenants.js");
12
8
  Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
13
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,sCAAoE;AAA3D,gGAAA,MAAM,OAAA;AACf,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAA2E;AAAlE,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA"}
@@ -1,6 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Batch, } from "./batch.mjs";
3
2
  export { Groups } from "./groups.mjs";
4
- export { Import, } from "./import.mjs";
5
3
  export { Tenants, } from "./tenants.mjs";
6
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GASN;OACM,EAAE,MAAM,EAAoC;OAC5C,EACL,MAAM,GAIP;OACM,EACL,OAAO,GAOR"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAA2C;OACnD,EACL,OAAO,GAKR"}
@@ -1,185 +1,112 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
- import * as BatchAPI from "./batch.mjs";
3
- import { Batch, BatchCreateParams, BatchCreateResponse, BatchDeleteParams, BatchDeleteResponse, BatchTenantError, BatchTenantSuccess, BatchUpdateParams, BatchUpdateResponse } from "./batch.mjs";
4
2
  import * as GroupsAPI from "./groups.mjs";
5
- import { GroupRetrieveSchemaResponse, Groups } from "./groups.mjs";
6
- import * as ImportAPI from "./import.mjs";
7
- import { Import, ImportFromCsvParams, ImportFromWarehouseParams, ImportTenants } from "./import.mjs";
3
+ import { GroupGetTenantGroupsSchemaResponse, Groups } from "./groups.mjs";
8
4
  import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { type Uploadable } from "../../../core/uploads.mjs";
9
6
  import { RequestOptions } from "../../../internal/request-options.mjs";
10
7
  export declare class Tenants extends APIResource {
11
- batch: BatchAPI.Batch;
12
- import: ImportAPI.Import;
13
8
  groups: GroupsAPI.Groups;
14
9
  /**
15
- * Create a new tenant.
16
- *
17
- * Validates the client's tenancy type and creates the tenant accordingly:
18
- *
19
- * - ROW tenancy: Creates tenant with optional group associations
20
- * - DATABASE tenancy: Requires database_name, creates tenant with database
21
- * association
22
- * - NONE tenancy: Returns error (tenant creation not allowed)
23
- *
24
- * RLS: Filtered to current client (ClientRLSDB).
25
- */
26
- create(body: TenantCreateParams, options?: RequestOptions): APIPromise<Tenant>;
27
- /**
28
- * Get a single tenant by ID.
10
+ * Get all tenants as a TenantSchema object.
29
11
  *
30
- * Returns the tenant with associated groups and databases.
12
+ * Returns tenants in the YAML-compatible schema format with group references.
13
+ * Supports content negotiation: JSON by default, YAML with Accept:
14
+ * application/yaml.
31
15
  *
32
16
  * RLS: Filtered to current client (ClientRLSDB).
33
- *
34
- * Raises: TenantNotFoundError: If tenant doesn't exist (404)
35
17
  */
36
- retrieve(tenantID: string, options?: RequestOptions): APIPromise<Tenant>;
18
+ getTenantsSchema(options?: RequestOptions): APIPromise<TenantGetTenantsSchemaResponse>;
37
19
  /**
38
- * Update a tenant.
39
- *
40
- * Updates tenant metadata, group associations, and/or database associations. Group
41
- * associations use replace semantics:
20
+ * Import tenants from a CSV file using upsert semantics.
42
21
  *
43
- * - Omit group_names to leave existing associations unchanged
44
- * - Pass empty list to remove all group associations
45
- * - Pass list of names to replace all associations
22
+ * Expected CSV format:
46
23
  *
47
- * Database associations (DATABASE tenancy only):
24
+ * - tenant_key (required): Unique tenant identifier
25
+ * - tenant_name (optional): Human-readable name
26
+ * - group_names (optional): Comma-separated list of group names
48
27
  *
49
- * - Both connection_id and database_name must be provided together
50
- * - Replaces existing database association
28
+ * Creates new tenants and updates existing ones with new name/groups. Groups are
29
+ * added additively (not replaced) and auto-created if needed.
51
30
  *
52
31
  * RLS: Filtered to current client (ClientRLSDB).
53
32
  *
54
- * Raises: TenantNotFoundError: If tenant doesn't exist (404)
33
+ * Raises: ValidationError: If CSV format is invalid (400)
34
+ * TenantCreationNotAllowedError: If tenancy type is NONE (400)
55
35
  */
56
- update(tenantID: string, body: TenantUpdateParams, options?: RequestOptions): APIPromise<Tenant>;
36
+ importFromCsv(body: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
57
37
  /**
58
- * List all tenants for the client.
38
+ * Import tenants from a warehouse table using upsert semantics.
59
39
  *
60
- * Returns tenants with their associated groups and databases.
40
+ * Creates new tenants and updates existing ones with new name/groups. Groups are
41
+ * added additively (not replaced).
61
42
  *
62
- * RLS: Filtered to current client (ClientRLSDB).
63
- */
64
- list(options?: RequestOptions): APIPromise<TenantListResponse>;
65
- /**
66
- * Delete a tenant.
43
+ * Streams data from the warehouse in batches to handle large datasets without
44
+ * loading everything into memory.
67
45
  *
68
- * Soft-deletes the tenant and its group/database associations.
46
+ * For tenants with groups, groups are aggregated per tenant key and auto-created
47
+ * if they don't exist.
69
48
  *
70
49
  * RLS: Filtered to current client (ClientRLSDB).
71
50
  *
72
- * Raises: TenantNotFoundError: If tenant doesn't exist (404)
51
+ * Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
52
+ * TenantCreationNotAllowedError: If tenancy type is NONE (400)
73
53
  */
74
- delete(tenantID: string, options?: RequestOptions): APIPromise<void>;
75
- /**
76
- * Get all tenants as a TenantSchema object.
77
- *
78
- * Returns tenants in the YAML-compatible schema format with group references.
79
- * Supports content negotiation: JSON by default, YAML with Accept:
80
- * application/yaml.
81
- *
82
- * RLS: Filtered to current client (ClientRLSDB).
83
- */
84
- retrieveSchema(options?: RequestOptions): APIPromise<TenantRetrieveSchemaResponse>;
54
+ importFromWarehouse(body: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
85
55
  }
86
56
  /**
87
- * Request model for creating a single tenant.
57
+ * Response model for tenant import operation.
88
58
  */
89
- export interface CreateTenant {
59
+ export interface ImportTenantsResponse {
90
60
  /**
91
- * Unique tenant identifier within the client
61
+ * Unique tenant keys found in source
92
62
  */
93
- tenant_key: string;
63
+ total_found: number;
94
64
  /**
95
- * Connection ID (required for DATABASE tenancy type)
65
+ * New tenants created
96
66
  */
97
- connection_id?: string | null;
67
+ total_imported: number;
98
68
  /**
99
- * Database name (required for DATABASE tenancy type)
69
+ * Existing tenants updated
100
70
  */
101
- database_name?: string | null;
71
+ total_updated: number;
102
72
  /**
103
- * List of group names to associate with the tenant
73
+ * Tenant-specific errors
104
74
  */
105
- group_names?: Array<string> | null;
75
+ errors?: Array<ImportTenantsResponse.Error>;
106
76
  /**
107
- * Human-readable tenant name
77
+ * Groups that were auto-created
108
78
  */
109
- tenant_name?: string | null;
79
+ groups_created?: Array<string>;
110
80
  }
111
- /**
112
- * Response model for a single tenant.
113
- */
114
- export interface Tenant {
81
+ export declare namespace ImportTenantsResponse {
115
82
  /**
116
- * Tenant ID
83
+ * Error for a single tenant during import.
117
84
  */
118
- id: string;
119
- /**
120
- * Creation timestamp
121
- */
122
- created_at: string;
123
- /**
124
- * Associated databases
125
- */
126
- databases: Array<Tenant.Database>;
127
- /**
128
- * Associated groups
129
- */
130
- groups: Array<Tenant.Group>;
131
- /**
132
- * Human-readable tenant name
133
- */
134
- name: string | null;
135
- /**
136
- * Unique tenant identifier
137
- */
138
- tenant_key: string;
139
- /**
140
- * Last update timestamp
141
- */
142
- updated_at: string;
143
- }
144
- export declare namespace Tenant {
145
- /**
146
- * Database information in tenant responses.
147
- */
148
- interface Database {
149
- /**
150
- * Database ID
151
- */
152
- id: string;
85
+ interface Error {
153
86
  /**
154
- * Database name
87
+ * Error code
155
88
  */
156
- name: string;
157
- }
158
- /**
159
- * Group information in tenant responses.
160
- */
161
- interface Group {
89
+ code: string;
162
90
  /**
163
- * Group ID
91
+ * Error message
164
92
  */
165
- id: string;
93
+ message: string;
166
94
  /**
167
- * Group name
95
+ * Tenant key that failed
168
96
  */
169
- name: string;
97
+ tenant_key: string;
170
98
  }
171
99
  }
172
- export type TenantListResponse = Array<Tenant>;
173
100
  /**
174
101
  * Schema for tenant configuration files
175
102
  */
176
- export interface TenantRetrieveSchemaResponse {
103
+ export interface TenantGetTenantsSchemaResponse {
177
104
  /**
178
105
  * Array of tenant configurations
179
106
  */
180
- tenants: Array<TenantRetrieveSchemaResponse.Tenant>;
107
+ tenants: Array<TenantGetTenantsSchemaResponse.Tenant>;
181
108
  }
182
- export declare namespace TenantRetrieveSchemaResponse {
109
+ export declare namespace TenantGetTenantsSchemaResponse {
183
110
  interface Tenant {
184
111
  /**
185
112
  * Unique Kater identifier
@@ -199,50 +126,44 @@ export declare namespace TenantRetrieveSchemaResponse {
199
126
  name?: string | null;
200
127
  }
201
128
  }
202
- export interface TenantCreateParams {
203
- /**
204
- * Unique tenant identifier within the client
205
- */
206
- tenant_key: string;
129
+ export interface TenantImportFromCsvParams {
207
130
  /**
208
- * Connection ID (required for DATABASE tenancy type)
131
+ * CSV file with tenant data
209
132
  */
210
- connection_id?: string | null;
133
+ file: Uploadable;
134
+ }
135
+ export interface TenantImportFromWarehouseParams {
211
136
  /**
212
- * Database name (required for DATABASE tenancy type)
137
+ * Warehouse connection ID to query
213
138
  */
214
- database_name?: string | null;
139
+ connection_id: string;
215
140
  /**
216
- * List of group names to associate with the tenant
141
+ * Database name containing the tenant table
217
142
  */
218
- group_names?: Array<string> | null;
143
+ database: string;
219
144
  /**
220
- * Human-readable tenant name
145
+ * Schema name containing the tenant table
221
146
  */
222
- tenant_name?: string | null;
223
- }
224
- export interface TenantUpdateParams {
147
+ schema: string;
225
148
  /**
226
- * Connection ID for database association (required with database_name)
149
+ * Table name containing tenant data
227
150
  */
228
- connection_id?: string | null;
151
+ table: string;
229
152
  /**
230
- * Database name for association (required with connection_id)
153
+ * Column name for tenant key
231
154
  */
232
- database_name?: string | null;
155
+ tenant_key_column: string;
233
156
  /**
234
- * New list of group names (replaces all existing associations)
157
+ * Column name for tenant group (optional)
235
158
  */
236
- group_names?: Array<string> | null;
159
+ tenant_group_column?: string | null;
237
160
  /**
238
- * New human-readable tenant name
161
+ * Column name for tenant display name (optional)
239
162
  */
240
- tenant_name?: string | null;
163
+ tenant_name_column?: string | null;
241
164
  }
242
165
  export declare namespace Tenants {
243
- export { type CreateTenant as CreateTenant, type Tenant as Tenant, type TenantListResponse as TenantListResponse, type TenantRetrieveSchemaResponse as TenantRetrieveSchemaResponse, type TenantCreateParams as TenantCreateParams, type TenantUpdateParams as TenantUpdateParams, };
244
- export { Batch as Batch, type BatchTenantError as BatchTenantError, type BatchTenantSuccess as BatchTenantSuccess, type BatchCreateResponse as BatchCreateResponse, type BatchUpdateResponse as BatchUpdateResponse, type BatchDeleteResponse as BatchDeleteResponse, type BatchCreateParams as BatchCreateParams, type BatchUpdateParams as BatchUpdateParams, type BatchDeleteParams as BatchDeleteParams, };
245
- export { Import as Import, type ImportTenants as ImportTenants, type ImportFromCsvParams as ImportFromCsvParams, type ImportFromWarehouseParams as ImportFromWarehouseParams, };
246
- export { Groups as Groups, type GroupRetrieveSchemaResponse as GroupRetrieveSchemaResponse };
166
+ export { type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
167
+ export { Groups as Groups, type GroupGetTenantGroupsSchemaResponse as GroupGetTenantGroupsSchemaResponse };
247
168
  }
248
169
  //# sourceMappingURL=tenants.d.mts.map