@metabase/client 0.0.0-stage → 0.1.1

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 (337) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE +661 -0
  3. package/README.md +490 -2
  4. package/dist/api-key-DJeN1-7G.d.ts +46 -0
  5. package/dist/auth/credential.d.ts +2 -0
  6. package/dist/auth/credential.js +61 -0
  7. package/dist/auth/oauth-login.d.ts +2 -0
  8. package/dist/auth/oauth-login.js +2 -0
  9. package/dist/auth/oauth-session.d.ts +2 -0
  10. package/dist/auth/oauth-session.js +31 -0
  11. package/dist/card-BxBzr5Uj.d.ts +1392 -0
  12. package/dist/card-DN0sLkCG.d.ts +33 -0
  13. package/dist/client-DdXLlH1B.d.ts +3380 -0
  14. package/dist/client.d.ts +2 -0
  15. package/dist/client.js +99 -0
  16. package/dist/collection-DGnTvD6R.d.ts +294 -0
  17. package/dist/collection-fFahL-ub.d.ts +53 -0
  18. package/dist/content-translation-zfUkE_OG.d.ts +8 -0
  19. package/dist/credential-6aOEGqMH.d.ts +30 -0
  20. package/dist/cron-DThzerR6.d.ts +9 -0
  21. package/dist/csv-upload--K35QedP.d.ts +8 -0
  22. package/dist/dashboard-CM7RmNeE.d.ts +38 -0
  23. package/dist/dashboard-DtLXVgtf.d.ts +978 -0
  24. package/dist/data-action-CkXVrOUH.d.ts +97 -0
  25. package/dist/data-app-CqP5_fpB.d.ts +76 -0
  26. package/dist/database-B0JNZjDN.d.ts +27 -0
  27. package/dist/database-BxqDmfcj.d.ts +997 -0
  28. package/dist/dataset-BBNGPVec.d.ts +4144 -0
  29. package/dist/dataset-BUirJ1rO.d.ts +23 -0
  30. package/dist/dependency-CzpXmeu7.d.ts +299 -0
  31. package/dist/dependency-arB8Cr2H.d.ts +879 -0
  32. package/dist/document-tLd6pYWe.d.ts +115 -0
  33. package/dist/domain/api-key.d.ts +2 -0
  34. package/dist/domain/api-key.js +31 -0
  35. package/dist/domain/card.d.ts +2 -0
  36. package/dist/domain/card.js +140 -0
  37. package/dist/domain/collection.d.ts +2 -0
  38. package/dist/domain/collection.js +137 -0
  39. package/dist/domain/content-translation.d.ts +2 -0
  40. package/dist/domain/content-translation.js +5 -0
  41. package/dist/domain/cron.d.ts +2 -0
  42. package/dist/domain/cron.js +5 -0
  43. package/dist/domain/dashboard.d.ts +2 -0
  44. package/dist/domain/dashboard.js +211 -0
  45. package/dist/domain/data-action.d.ts +2 -0
  46. package/dist/domain/data-action.js +91 -0
  47. package/dist/domain/data-app.d.ts +2 -0
  48. package/dist/domain/data-app.js +52 -0
  49. package/dist/domain/database.d.ts +2 -0
  50. package/dist/domain/database.js +56 -0
  51. package/dist/domain/dataset.d.ts +2 -0
  52. package/dist/domain/dataset.js +56 -0
  53. package/dist/domain/dependency.d.ts +2 -0
  54. package/dist/domain/dependency.js +168 -0
  55. package/dist/domain/document.d.ts +2 -0
  56. package/dist/domain/document.js +94 -0
  57. package/dist/domain/eid-translation.d.ts +2 -0
  58. package/dist/domain/eid-translation.js +36 -0
  59. package/dist/domain/embedding.d.ts +2 -0
  60. package/dist/domain/embedding.js +9 -0
  61. package/dist/domain/erd.d.ts +2 -0
  62. package/dist/domain/erd.js +45 -0
  63. package/dist/domain/field.d.ts +2 -0
  64. package/dist/domain/field.js +274 -0
  65. package/dist/domain/git-sync.d.ts +2 -0
  66. package/dist/domain/git-sync.js +147 -0
  67. package/dist/domain/glossary.d.ts +2 -0
  68. package/dist/domain/glossary.js +30 -0
  69. package/dist/domain/library.d.ts +2 -0
  70. package/dist/domain/library.js +89 -0
  71. package/dist/domain/measure.d.ts +2 -0
  72. package/dist/domain/measure.js +43 -0
  73. package/dist/domain/metric.d.ts +2 -0
  74. package/dist/domain/metric.js +139 -0
  75. package/dist/domain/moderation-review.d.ts +2 -0
  76. package/dist/domain/moderation-review.js +31 -0
  77. package/dist/domain/notification.d.ts +2 -0
  78. package/dist/domain/notification.js +143 -0
  79. package/dist/domain/parameter.d.ts +2 -0
  80. package/dist/domain/parameter.js +109 -0
  81. package/dist/domain/permission.d.ts +2 -0
  82. package/dist/domain/permission.js +36 -0
  83. package/dist/domain/pulse.d.ts +2 -0
  84. package/dist/domain/pulse.js +140 -0
  85. package/dist/domain/query.d.ts +2 -0
  86. package/dist/domain/query.js +13 -0
  87. package/dist/domain/replacement.d.ts +2 -0
  88. package/dist/domain/replacement.js +93 -0
  89. package/dist/domain/revision.d.ts +2 -0
  90. package/dist/domain/revision.js +90 -0
  91. package/dist/domain/search.d.ts +2 -0
  92. package/dist/domain/search.js +63 -0
  93. package/dist/domain/segment.d.ts +2 -0
  94. package/dist/domain/segment.js +46 -0
  95. package/dist/domain/session-properties.d.ts +2 -0
  96. package/dist/domain/session-properties.js +14 -0
  97. package/dist/domain/setting.d.ts +2 -0
  98. package/dist/domain/setting.js +22 -0
  99. package/dist/domain/setup.d.ts +2 -0
  100. package/dist/domain/setup.js +21 -0
  101. package/dist/domain/snippet.d.ts +2 -0
  102. package/dist/domain/snippet.js +38 -0
  103. package/dist/domain/table.d.ts +2 -0
  104. package/dist/domain/table.js +187 -0
  105. package/dist/domain/text.d.ts +5 -0
  106. package/dist/domain/text.js +6 -0
  107. package/dist/domain/timeline.d.ts +2 -0
  108. package/dist/domain/timeline.js +97 -0
  109. package/dist/domain/transform-dag-run.d.ts +2 -0
  110. package/dist/domain/transform-dag-run.js +19 -0
  111. package/dist/domain/transform-inspector.d.ts +2 -0
  112. package/dist/domain/transform-inspector.js +142 -0
  113. package/dist/domain/transform-job.d.ts +2 -0
  114. package/dist/domain/transform-job.js +115 -0
  115. package/dist/domain/transform-python.d.ts +2 -0
  116. package/dist/domain/transform-python.js +51 -0
  117. package/dist/domain/transform-tag.d.ts +2 -0
  118. package/dist/domain/transform-tag.js +17 -0
  119. package/dist/domain/transform-test.d.ts +2 -0
  120. package/dist/domain/transform-test.js +176 -0
  121. package/dist/domain/transform.d.ts +2 -0
  122. package/dist/domain/transform.js +304 -0
  123. package/dist/domain/upload.d.ts +2 -0
  124. package/dist/domain/upload.js +13 -0
  125. package/dist/domain/user.d.ts +2 -0
  126. package/dist/domain/user.js +16 -0
  127. package/dist/eid-translation-CH6NPWd-.d.ts +143 -0
  128. package/dist/embedding-oU3gqfgX.d.ts +10 -0
  129. package/dist/erd-BdeFEeSy.d.ts +842 -0
  130. package/dist/erd-CbV7xvAc.d.ts +51 -0
  131. package/dist/errors-DdMlaXqq.js +330 -0
  132. package/dist/errors.d.ts +2 -0
  133. package/dist/errors.js +189 -0
  134. package/dist/features-SMSfJhB6.d.ts +295 -0
  135. package/dist/field-D1Pfk-0S.d.ts +50 -0
  136. package/dist/field-p9Rme2zB.d.ts +2549 -0
  137. package/dist/git-sync-BTf1aYHr.d.ts +205 -0
  138. package/dist/git-sync-C99SVdJ9.d.ts +258 -0
  139. package/dist/glossary-CHK3elPj.d.ts +35 -0
  140. package/dist/glossary-DFvnz-E5.d.ts +15 -0
  141. package/dist/http/errors.d.ts +2 -0
  142. package/dist/http/errors.js +2 -0
  143. package/dist/http/oauth.d.ts +2 -0
  144. package/dist/http/oauth.js +201 -0
  145. package/dist/http/retry.d.ts +19 -0
  146. package/dist/http/retry.js +33 -0
  147. package/dist/http/transport.d.ts +2 -0
  148. package/dist/http/transport.js +2 -0
  149. package/dist/index.d.ts +62 -0
  150. package/dist/index.js +64 -0
  151. package/dist/input-gate-registry-Dai7SfXb.js +14 -0
  152. package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
  153. package/dist/json-BksZpXDC.d.ts +19 -0
  154. package/dist/json-pointer.d.ts +5 -0
  155. package/dist/json-pointer.js +10 -0
  156. package/dist/json.d.ts +2 -0
  157. package/dist/json.js +44 -0
  158. package/dist/known-range-DTOBgTEC.d.ts +7 -0
  159. package/dist/library-B9pEq7qP.d.ts +230 -0
  160. package/dist/list-BT_bBm9Z.d.ts +7 -0
  161. package/dist/list.d.ts +2 -0
  162. package/dist/list.js +1 -0
  163. package/dist/measure-CgH14YQZ.d.ts +44 -0
  164. package/dist/measure-lPz8qnwz.d.ts +108 -0
  165. package/dist/metric-DcYloqOQ.d.ts +2655 -0
  166. package/dist/moderation-review-B4RUTZ6_.d.ts +56 -0
  167. package/dist/network-error-5g4U1iul.js +62 -0
  168. package/dist/notification-Cp5GJErS.d.ts +22 -0
  169. package/dist/notification-D1MThyKE.d.ts +443 -0
  170. package/dist/oauth-C4ordeoJ.d.ts +59 -0
  171. package/dist/oauth-login-CJsT_3EE.d.ts +19 -0
  172. package/dist/oauth-login-D734Jvbq.js +179 -0
  173. package/dist/oauth-session-BlIlcd8Q.d.ts +6 -0
  174. package/dist/paginate-COuL0Gzl.d.ts +24 -0
  175. package/dist/paginate.d.ts +2 -0
  176. package/dist/paginate.js +49 -0
  177. package/dist/parameter-ak-J-IOj.d.ts +190 -0
  178. package/dist/permission-BnCQw5Kp.d.ts +149 -0
  179. package/dist/poll-CIwnee7h.d.ts +15 -0
  180. package/dist/poll.d.ts +2 -0
  181. package/dist/poll.js +47 -0
  182. package/dist/predicates.d.ts +10 -0
  183. package/dist/predicates.js +18 -0
  184. package/dist/pulse-0LG3K6qO.d.ts +598 -0
  185. package/dist/pulse-BzKmz3Yn.d.ts +18 -0
  186. package/dist/query-Xsin530u.d.ts +23 -0
  187. package/dist/refusal-B9aeHMc9.js +130 -0
  188. package/dist/replacement-BGyggp-G.d.ts +2467 -0
  189. package/dist/replacement-CVebCuNp.d.ts +128 -0
  190. package/dist/requirement-check-glU7wqhQ.d.ts +17 -0
  191. package/dist/requirements-Dx_ZVzl7.d.ts +227 -0
  192. package/dist/resources/api-key.d.ts +11 -0
  193. package/dist/resources/api-key.js +35 -0
  194. package/dist/resources/card.d.ts +2 -0
  195. package/dist/resources/card.js +103 -0
  196. package/dist/resources/collection.d.ts +2 -0
  197. package/dist/resources/collection.js +134 -0
  198. package/dist/resources/content-translation.d.ts +11 -0
  199. package/dist/resources/content-translation.js +27 -0
  200. package/dist/resources/csv-upload.d.ts +2 -0
  201. package/dist/resources/csv-upload.js +9 -0
  202. package/dist/resources/dashboard.d.ts +2 -0
  203. package/dist/resources/dashboard.js +221 -0
  204. package/dist/resources/data-action.d.ts +60 -0
  205. package/dist/resources/data-action.js +79 -0
  206. package/dist/resources/data-app.d.ts +112 -0
  207. package/dist/resources/data-app.js +75 -0
  208. package/dist/resources/database.d.ts +2 -0
  209. package/dist/resources/database.js +103 -0
  210. package/dist/resources/dataset.d.ts +2 -0
  211. package/dist/resources/dataset.js +81 -0
  212. package/dist/resources/dependency.d.ts +2 -0
  213. package/dist/resources/dependency.js +156 -0
  214. package/dist/resources/document.d.ts +55 -0
  215. package/dist/resources/document.js +60 -0
  216. package/dist/resources/eid-translation.d.ts +8 -0
  217. package/dist/resources/eid-translation.js +19 -0
  218. package/dist/resources/erd.d.ts +2 -0
  219. package/dist/resources/erd.js +26 -0
  220. package/dist/resources/field.d.ts +2 -0
  221. package/dist/resources/field.js +99 -0
  222. package/dist/resources/git-sync.d.ts +2 -0
  223. package/dist/resources/git-sync.js +362 -0
  224. package/dist/resources/glossary.d.ts +2 -0
  225. package/dist/resources/glossary.js +51 -0
  226. package/dist/resources/library.d.ts +85 -0
  227. package/dist/resources/library.js +90 -0
  228. package/dist/resources/measure.d.ts +2 -0
  229. package/dist/resources/measure.js +57 -0
  230. package/dist/resources/metric.d.ts +2 -0
  231. package/dist/resources/metric.js +50 -0
  232. package/dist/resources/moderation-review.d.ts +23 -0
  233. package/dist/resources/moderation-review.js +24 -0
  234. package/dist/resources/notification.d.ts +2 -0
  235. package/dist/resources/notification.js +93 -0
  236. package/dist/resources/optional-parsed.d.ts +7 -0
  237. package/dist/resources/optional-parsed.js +14 -0
  238. package/dist/resources/permission.d.ts +10 -0
  239. package/dist/resources/permission.js +31 -0
  240. package/dist/resources/pivot-export.d.ts +10 -0
  241. package/dist/resources/pivot-export.js +16 -0
  242. package/dist/resources/pulse.d.ts +2 -0
  243. package/dist/resources/pulse.js +76 -0
  244. package/dist/resources/replacement.d.ts +2 -0
  245. package/dist/resources/replacement.js +82 -0
  246. package/dist/resources/request-body.d.ts +9 -0
  247. package/dist/resources/request-body.js +13 -0
  248. package/dist/resources/revision.d.ts +70 -0
  249. package/dist/resources/revision.js +46 -0
  250. package/dist/resources/search.d.ts +2 -0
  251. package/dist/resources/search.js +78 -0
  252. package/dist/resources/segment.d.ts +2 -0
  253. package/dist/resources/segment.js +55 -0
  254. package/dist/resources/setting.d.ts +11 -0
  255. package/dist/resources/setting.js +43 -0
  256. package/dist/resources/setup.d.ts +8 -0
  257. package/dist/resources/setup.js +18 -0
  258. package/dist/resources/snippet.d.ts +2 -0
  259. package/dist/resources/snippet.js +52 -0
  260. package/dist/resources/table.d.ts +2 -0
  261. package/dist/resources/table.js +274 -0
  262. package/dist/resources/timeline-event.d.ts +12 -0
  263. package/dist/resources/timeline-event.js +51 -0
  264. package/dist/resources/timeline.d.ts +2 -0
  265. package/dist/resources/timeline.js +82 -0
  266. package/dist/resources/transform-dag-run.d.ts +22 -0
  267. package/dist/resources/transform-dag-run.js +32 -0
  268. package/dist/resources/transform-inspector.d.ts +214 -0
  269. package/dist/resources/transform-inspector.js +47 -0
  270. package/dist/resources/transform-job.d.ts +2 -0
  271. package/dist/resources/transform-job.js +90 -0
  272. package/dist/resources/transform-python.d.ts +59 -0
  273. package/dist/resources/transform-python.js +57 -0
  274. package/dist/resources/transform-tag.d.ts +35 -0
  275. package/dist/resources/transform-tag.js +47 -0
  276. package/dist/resources/transform-test.d.ts +2 -0
  277. package/dist/resources/transform-test.js +75 -0
  278. package/dist/resources/transform.d.ts +2 -0
  279. package/dist/resources/transform.js +227 -0
  280. package/dist/resources/upload.d.ts +2 -0
  281. package/dist/resources/upload.js +48 -0
  282. package/dist/resources/user.d.ts +8 -0
  283. package/dist/resources/user.js +11 -0
  284. package/dist/revision-Dyl-8p7d.d.ts +106 -0
  285. package/dist/search-Cm5IxKss.d.ts +92 -0
  286. package/dist/search-Cten2h0I.d.ts +26 -0
  287. package/dist/segment-CbAgVO-5.d.ts +47 -0
  288. package/dist/segment-DQLX6r1E.d.ts +16 -0
  289. package/dist/session-properties-COtlxAcK.d.ts +15 -0
  290. package/dist/setting-DXuQGXGF.d.ts +25 -0
  291. package/dist/setup-JqcJ2unJ.d.ts +26 -0
  292. package/dist/signal.d.ts +8 -0
  293. package/dist/signal.js +25 -0
  294. package/dist/snippet-C_Ilx7tR.d.ts +41 -0
  295. package/dist/snippet-Djn0rL21.d.ts +16 -0
  296. package/dist/table-CDZbLNow.d.ts +176 -0
  297. package/dist/table-Od6uvDVW.d.ts +3234 -0
  298. package/dist/tag-qzjGGci8.d.ts +48 -0
  299. package/dist/timeline-BK45hy-h.d.ts +218 -0
  300. package/dist/timeline-BTs6fuRp.d.ts +21 -0
  301. package/dist/transform-C5thnJwW.d.ts +559 -0
  302. package/dist/transform-WASQAXeA.d.ts +652 -0
  303. package/dist/transform-dag-run-BgZwv1yx.d.ts +49 -0
  304. package/dist/transform-inspector-CMCh8WKV.d.ts +374 -0
  305. package/dist/transform-job-D8jTQtdX.d.ts +98 -0
  306. package/dist/transform-job-DmTwKxhc.d.ts +237 -0
  307. package/dist/transform-python-DtL3xxMj.d.ts +101 -0
  308. package/dist/transform-tag-C6j5EUkX.d.ts +25 -0
  309. package/dist/transform-test-CR_i54IV.d.ts +412 -0
  310. package/dist/transform-test-CeMzDpUC.d.ts +346 -0
  311. package/dist/transport-BsXqRujn.d.ts +476 -0
  312. package/dist/transport-HP7cyo9N.js +397 -0
  313. package/dist/upload-B5YjVkSW.d.ts +12 -0
  314. package/dist/upload-UPfZFdbH.d.ts +22 -0
  315. package/dist/url-CI0pxHOc.d.ts +7 -0
  316. package/dist/url.d.ts +2 -0
  317. package/dist/url.js +34 -0
  318. package/dist/user-Sqqv7rqh.d.ts +18 -0
  319. package/dist/version/capability-error.d.ts +2 -0
  320. package/dist/version/capability-error.js +42 -0
  321. package/dist/version/features.d.ts +2 -0
  322. package/dist/version/features.js +171 -0
  323. package/dist/version/input-gates.d.ts +2 -0
  324. package/dist/version/input-gates.js +13 -0
  325. package/dist/version/known-range.d.ts +2 -0
  326. package/dist/version/known-range.js +7 -0
  327. package/dist/version/probe.d.ts +2 -0
  328. package/dist/version/probe.js +30 -0
  329. package/dist/version/profile.d.ts +2 -0
  330. package/dist/version/profile.js +64 -0
  331. package/dist/version/requirement-check.d.ts +2 -0
  332. package/dist/version/requirement-check.js +62 -0
  333. package/dist/version/requirements.d.ts +2 -0
  334. package/dist/version/requirements.js +229 -0
  335. package/dist/version/tag.d.ts +2 -0
  336. package/dist/version/tag.js +52 -0
  337. package/package.json +66 -4
@@ -0,0 +1,115 @@
1
+ import { z } from "zod";
2
+ //#region src/domain/document.d.ts
3
+ declare const TipTapNode: z.ZodObject<{
4
+ type: z.ZodString;
5
+ text: z.ZodOptional<z.ZodString>;
6
+ attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
+ marks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
8
+ content: z.ZodOptional<z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$loose>>>;
9
+ }, z.core.$loose>;
10
+ type TipTapNode = z.infer<typeof TipTapNode>;
11
+ declare const TipTapNodeInput: z.ZodObject<{
12
+ type: z.ZodString;
13
+ text: z.ZodOptional<z.ZodString>;
14
+ attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ marks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ content: z.ZodOptional<z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$loose>>>;
17
+ }, z.core.$loose>;
18
+ type TipTapNodeInput = z.infer<typeof TipTapNodeInput>;
19
+ declare const Document: z.ZodObject<{
20
+ id: z.ZodNumber;
21
+ name: z.ZodString;
22
+ document: z.ZodNullable<z.ZodObject<{
23
+ type: z.ZodString;
24
+ text: z.ZodOptional<z.ZodString>;
25
+ attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
+ marks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ content: z.ZodOptional<z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$loose>>>;
28
+ }, z.core.$loose>>;
29
+ entity_id: z.ZodNullable<z.ZodString>;
30
+ collection_id: z.ZodNullable<z.ZodNumber>;
31
+ collection_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ creator_id: z.ZodNumber;
33
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
+ id: z.ZodNumber;
35
+ email: z.ZodString;
36
+ first_name: z.ZodNullable<z.ZodString>;
37
+ last_name: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$loose>>>;
39
+ archived: z.ZodBoolean;
40
+ can_write: z.ZodOptional<z.ZodBoolean>;
41
+ can_delete: z.ZodOptional<z.ZodBoolean>;
42
+ can_restore: z.ZodOptional<z.ZodBoolean>;
43
+ is_remote_synced: z.ZodOptional<z.ZodBoolean>;
44
+ created_at: z.ZodString;
45
+ updated_at: z.ZodString;
46
+ }, z.core.$loose>;
47
+ type Document = z.infer<typeof Document>;
48
+ declare const DocumentCompact: z.ZodObject<{
49
+ id: z.ZodNumber;
50
+ name: z.ZodString;
51
+ archived: z.ZodBoolean;
52
+ creator_id: z.ZodNumber;
53
+ collection_id: z.ZodNullable<z.ZodNumber>;
54
+ can_write: z.ZodOptional<z.ZodBoolean>;
55
+ }, z.core.$strip>;
56
+ type DocumentCompact = z.infer<typeof DocumentCompact>;
57
+ declare const DocumentCreateInput: z.ZodObject<{
58
+ name: z.ZodString;
59
+ document: z.ZodObject<{
60
+ type: z.ZodString;
61
+ text: z.ZodOptional<z.ZodString>;
62
+ attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63
+ marks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
64
+ content: z.ZodOptional<z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$loose>>>;
65
+ }, z.core.$loose>;
66
+ collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ collection_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
+ cards: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
69
+ name: z.ZodString;
70
+ dataset_query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
71
+ display: z.ZodString;
72
+ visualization_settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
73
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
75
+ parameter_mappings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
76
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ result_metadata: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
78
+ cache_ttl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
+ }, z.core.$loose>>>>;
80
+ }, z.core.$loose>;
81
+ type DocumentCreateInput = z.infer<typeof DocumentCreateInput>;
82
+ declare const DocumentUpdateInput: z.ZodObject<{
83
+ name: z.ZodOptional<z.ZodString>;
84
+ document: z.ZodOptional<z.ZodObject<{
85
+ type: z.ZodString;
86
+ text: z.ZodOptional<z.ZodString>;
87
+ attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
88
+ marks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
89
+ content: z.ZodOptional<z.ZodArray<z.ZodObject< /*elided*/ any, z.core.$loose>>>;
90
+ }, z.core.$loose>>;
91
+ collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
+ collection_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
93
+ archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
94
+ cards: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
95
+ name: z.ZodString;
96
+ dataset_query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
97
+ display: z.ZodString;
98
+ visualization_settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
99
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
101
+ parameter_mappings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
102
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ result_metadata: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
104
+ cache_ttl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
+ }, z.core.$loose>>>>;
106
+ }, z.core.$loose>;
107
+ type DocumentUpdateInput = z.infer<typeof DocumentUpdateInput>;
108
+ declare const DocumentCopyInput: z.ZodObject<{
109
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
+ collection_position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
+ }, z.core.$strict>;
113
+ type DocumentCopyInput = z.infer<typeof DocumentCopyInput>;
114
+ //#endregion
115
+ export { DocumentUpdateInput as a, DocumentCreateInput as i, DocumentCompact as n, TipTapNode as o, DocumentCopyInput as r, TipTapNodeInput as s, Document as t };
@@ -0,0 +1,2 @@
1
+ import { a as CreatedApiKeyCompact, i as CreatedApiKey, n as ApiKeyCompact, r as ApiKeyCreateInput, t as ApiKey } from "../api-key-DJeN1-7G.js";
2
+ export { ApiKey, ApiKeyCompact, ApiKeyCreateInput, CreatedApiKey, CreatedApiKeyCompact };
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ //#region src/domain/api-key.ts
3
+ const ApiKeyGroup = z.object({
4
+ id: z.number().int(),
5
+ name: z.string()
6
+ }).loose();
7
+ const ApiKey = z.object({
8
+ id: z.number().int(),
9
+ name: z.string(),
10
+ masked_key: z.string(),
11
+ group: ApiKeyGroup,
12
+ created_at: z.string(),
13
+ updated_at: z.string()
14
+ }).loose();
15
+ const ApiKeyCompact = ApiKey.pick({
16
+ id: true,
17
+ name: true,
18
+ masked_key: true
19
+ }).strip();
20
+ const CreatedApiKey = ApiKey.extend({ unmasked_key: z.string() });
21
+ const CreatedApiKeyCompact = CreatedApiKey.pick({
22
+ id: true,
23
+ name: true,
24
+ unmasked_key: true
25
+ }).strip();
26
+ const ApiKeyCreateInput = z.object({
27
+ name: z.string().min(1),
28
+ group_id: z.number().int().positive()
29
+ }).strict();
30
+ //#endregion
31
+ export { ApiKey, ApiKeyCompact, ApiKeyCreateInput, CreatedApiKey, CreatedApiKeyCompact };
@@ -0,0 +1,2 @@
1
+ import { a as CardListFilter, c as CardType, i as CardDetail, l as CardUpdateInput, n as CardCompact, o as CardQueryResult, r as CardCreateInput, s as CardQueryResultCompact, t as Card, u as ResultColumn } from "../card-BxBzr5Uj.js";
2
+ export { Card, CardCompact, CardCreateInput, CardDetail, CardListFilter, CardQueryResult, CardQueryResultCompact, CardType, CardUpdateInput, ResultColumn };
@@ -0,0 +1,140 @@
1
+ import { EmbeddingParams } from "./embedding.js";
2
+ import { FieldBaseType, FieldSemanticType } from "./field.js";
3
+ import { ModerationReview } from "./moderation-review.js";
4
+ import { Parameter, ParameterMapping } from "./parameter.js";
5
+ import { DatasetQuery } from "./query.js";
6
+ import { z } from "zod";
7
+ //#region src/domain/card.ts
8
+ const CardType = z.enum([
9
+ "question",
10
+ "model",
11
+ "metric"
12
+ ]);
13
+ const CardQueryType = z.enum(["native", "query"]);
14
+ const CardListFilter = z.enum([
15
+ "all",
16
+ "mine",
17
+ "bookmarked",
18
+ "database",
19
+ "table",
20
+ "archived",
21
+ "using_model",
22
+ "using_segment"
23
+ ]);
24
+ const ResultColumn = z.object({
25
+ name: z.string(),
26
+ display_name: z.string().nullable().optional(),
27
+ base_type: FieldBaseType.optional(),
28
+ effective_type: FieldBaseType.nullable().optional(),
29
+ semantic_type: FieldSemanticType.nullable().optional(),
30
+ database_type: z.string().nullable().optional(),
31
+ id: z.number().int().nullable().optional()
32
+ }).loose();
33
+ const Card = z.object({
34
+ id: z.number().int(),
35
+ name: z.string(),
36
+ type: CardType,
37
+ display: z.string(),
38
+ description: z.string().nullable(),
39
+ archived: z.boolean(),
40
+ query_type: CardQueryType.nullable(),
41
+ database_id: z.number().int().nullable(),
42
+ table_id: z.number().int().nullable(),
43
+ collection_id: z.number().int().nullable(),
44
+ dashboard_id: z.number().int().nullable().optional(),
45
+ entity_id: z.string().nullable(),
46
+ creator_id: z.number().int(),
47
+ dataset_query: z.unknown(),
48
+ visualization_settings: z.unknown(),
49
+ collection_position: z.number().int().nullable(),
50
+ moderation_reviews: z.array(ModerationReview).optional()
51
+ }).loose();
52
+ const CardDetail = Card.extend({
53
+ parameters: z.array(Parameter).nullable(),
54
+ result_metadata: z.array(ResultColumn).nullable()
55
+ });
56
+ const CardCompact = Card.pick({
57
+ id: true,
58
+ name: true,
59
+ type: true,
60
+ display: true,
61
+ archived: true,
62
+ database_id: true,
63
+ collection_id: true,
64
+ dashboard_id: true,
65
+ description: true
66
+ }).strip();
67
+ const CollectionIdOrEntityId = z.union([z.number().int().positive(), z.string().length(21).describe("collection entity_id (21-char NanoID)")]);
68
+ const CardCreateInput = z.object({
69
+ name: z.string().min(1),
70
+ type: CardType.nullable().optional(),
71
+ dataset_query: DatasetQuery,
72
+ display: z.string().min(1),
73
+ visualization_settings: z.record(z.string(), z.unknown()),
74
+ description: z.string().min(1).nullable().optional(),
75
+ entity_id: z.string().min(1).nullable().optional(),
76
+ collection_id: CollectionIdOrEntityId.nullable().optional(),
77
+ collection_position: z.number().int().positive().nullable().optional(),
78
+ cache_ttl: z.number().int().positive().nullable().optional(),
79
+ dashboard_id: z.number().int().positive().nullable().optional(),
80
+ dashboard_tab_id: z.number().int().positive().nullable().optional(),
81
+ parameters: z.array(Parameter).nullable().optional(),
82
+ parameter_mappings: z.array(ParameterMapping).nullable().optional(),
83
+ result_metadata: z.array(z.unknown()).nullable().optional()
84
+ }).loose();
85
+ const CardUpdateInput = z.object({
86
+ name: z.string().min(1).nullable().optional(),
87
+ type: CardType.nullable().optional(),
88
+ dataset_query: DatasetQuery.optional(),
89
+ display: z.string().min(1).nullable().optional(),
90
+ visualization_settings: z.record(z.string(), z.unknown()).nullable().optional(),
91
+ description: z.string().nullable().optional(),
92
+ archived: z.boolean().nullable().optional(),
93
+ enable_embedding: z.boolean().nullable().optional(),
94
+ embedding_type: z.string().nullable().optional(),
95
+ embedding_params: EmbeddingParams.nullable().optional(),
96
+ collection_id: z.number().int().positive().nullable().optional(),
97
+ collection_position: z.number().int().positive().nullable().optional(),
98
+ collection_preview: z.boolean().nullable().optional(),
99
+ cache_ttl: z.number().int().positive().nullable().optional(),
100
+ dashboard_id: z.number().int().positive().nullable().optional(),
101
+ dashboard_tab_id: z.number().int().positive().nullable().optional(),
102
+ parameters: z.array(Parameter).nullable().optional(),
103
+ parameter_mappings: z.array(ParameterMapping).nullable().optional(),
104
+ result_metadata: z.array(z.unknown()).nullable().optional()
105
+ }).loose();
106
+ const CardQueryData = z.object({
107
+ rows: z.array(z.array(z.unknown())),
108
+ cols: z.array(ResultColumn),
109
+ rows_truncated: z.number().int().optional(),
110
+ pivot_rows_truncated: z.number().int().optional()
111
+ }).loose();
112
+ const CardQueryResult = z.object({
113
+ status: z.string(),
114
+ row_count: z.number().int().nonnegative().optional(),
115
+ data: CardQueryData.optional(),
116
+ cached: z.string().nullable().optional(),
117
+ error: z.string().nullable().optional(),
118
+ error_type: z.string().nullable().optional()
119
+ }).loose();
120
+ const ResultColumnCompact = ResultColumn.pick({
121
+ name: true,
122
+ display_name: true,
123
+ base_type: true,
124
+ semantic_type: true
125
+ }).strip();
126
+ const CardQueryDataCompact = z.object({
127
+ rows: z.array(z.array(z.unknown())),
128
+ cols: z.array(ResultColumnCompact),
129
+ rows_truncated: CardQueryData.shape.rows_truncated,
130
+ pivot_rows_truncated: CardQueryData.shape.pivot_rows_truncated
131
+ }).strip();
132
+ const CardQueryResultCompact = CardQueryResult.pick({
133
+ status: true,
134
+ row_count: true,
135
+ cached: true,
136
+ error: true,
137
+ error_type: true
138
+ }).strip().extend({ data: CardQueryDataCompact.optional() });
139
+ //#endregion
140
+ export { Card, CardCompact, CardCreateInput, CardDetail, CardListFilter, CardQueryResult, CardQueryResultCompact, CardType, CardUpdateInput, ResultColumn };
@@ -0,0 +1,2 @@
1
+ import { _ as CollectionType, a as CollectionAuthorityLevel, c as CollectionId, d as CollectionItemFilterModel, f as CollectionItemModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, l as CollectionItem, m as CollectionNamespace, n as COLLECTION_ITEM_MODELS, o as CollectionCompact, p as CollectionListFilter, r as COLLECTION_PINNED_STATES, s as CollectionCreateInput, t as COLLECTION_ITEM_FILTER_MODELS, u as CollectionItemCompact, v as CollectionUpdateInput } from "../collection-DGnTvD6R.js";
2
+ export { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_ITEM_MODELS, COLLECTION_PINNED_STATES, Collection, CollectionAuthorityLevel, CollectionCompact, CollectionCreateInput, CollectionId, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionItemModel, CollectionListFilter, CollectionNamespace, CollectionPinnedState, CollectionTreeNode, CollectionType, CollectionUpdateInput };
@@ -0,0 +1,137 @@
1
+ import { NonBlankText } from "./text.js";
2
+ import { z } from "zod";
3
+ //#region src/domain/collection.ts
4
+ const CollectionId = z.union([z.number().int(), z.string()]);
5
+ const CollectionAuthorityLevel = z.enum(["official"]);
6
+ const CollectionType = z.enum([
7
+ "instance-analytics",
8
+ "trash",
9
+ "library",
10
+ "library-data",
11
+ "library-metrics",
12
+ "library-dashboards",
13
+ "tenant-specific-root-collection"
14
+ ]);
15
+ const CollectionNamespace = z.enum([
16
+ "transforms",
17
+ "snippets",
18
+ "analytics",
19
+ "shared-tenant-collection",
20
+ "tenant-specific",
21
+ "data-apps",
22
+ "data-actions"
23
+ ]);
24
+ const CollectionListFilter = z.enum([
25
+ "all",
26
+ "archived",
27
+ "personal"
28
+ ]);
29
+ const COLLECTION_ITEM_FILTER_MODELS = [
30
+ "card",
31
+ "dataset",
32
+ "metric",
33
+ "dashboard",
34
+ "snippet",
35
+ "collection",
36
+ "document",
37
+ "exploration",
38
+ "table",
39
+ "transform",
40
+ "measure",
41
+ "pulse",
42
+ "timeline",
43
+ "no_models"
44
+ ];
45
+ const CollectionItemFilterModel = z.enum(COLLECTION_ITEM_FILTER_MODELS);
46
+ const COLLECTION_ITEM_MODELS = [
47
+ ...COLLECTION_ITEM_FILTER_MODELS,
48
+ "indexed-entity",
49
+ "action"
50
+ ];
51
+ const CollectionItemModel = z.enum(COLLECTION_ITEM_MODELS);
52
+ const COLLECTION_PINNED_STATES = [
53
+ "all",
54
+ "is_pinned",
55
+ "is_not_pinned"
56
+ ];
57
+ const CollectionPinnedState = z.enum(COLLECTION_PINNED_STATES);
58
+ const Collection = z.object({
59
+ id: CollectionId,
60
+ name: z.string(),
61
+ description: z.string().nullable().optional(),
62
+ archived: z.boolean().optional(),
63
+ location: z.string().nullable().optional(),
64
+ parent_id: CollectionId.nullable().optional(),
65
+ personal_owner_id: z.number().int().nullable().optional(),
66
+ is_personal: z.boolean().optional(),
67
+ authority_level: CollectionAuthorityLevel.nullable().optional(),
68
+ type: CollectionType.nullable().optional(),
69
+ namespace: CollectionNamespace.nullable().optional(),
70
+ entity_id: z.string().nullable().optional(),
71
+ slug: z.string().optional(),
72
+ can_write: z.boolean().optional(),
73
+ is_remote_synced: z.boolean().nullable().optional()
74
+ }).loose();
75
+ const CollectionCompact = Collection.pick({
76
+ id: true,
77
+ name: true,
78
+ description: true,
79
+ archived: true,
80
+ location: true,
81
+ parent_id: true,
82
+ type: true,
83
+ namespace: true,
84
+ authority_level: true,
85
+ is_personal: true,
86
+ is_remote_synced: true
87
+ }).strip();
88
+ const CollectionItem = z.object({
89
+ id: z.number().int(),
90
+ model: CollectionItemModel,
91
+ name: z.string(),
92
+ description: z.string().nullable().optional(),
93
+ archived: z.boolean().nullable(),
94
+ collection_id: CollectionId.nullable().optional(),
95
+ collection_position: z.number().int().nullable().optional(),
96
+ display: z.string().nullable().optional(),
97
+ location: z.string().nullable().optional(),
98
+ entity_id: z.string().nullable().optional(),
99
+ database_id: z.number().int().nullable().optional(),
100
+ dashboard_id: z.number().int().nullable().optional()
101
+ }).loose();
102
+ const CollectionItemCompact = CollectionItem.pick({
103
+ id: true,
104
+ model: true,
105
+ name: true,
106
+ description: true,
107
+ archived: true,
108
+ collection_id: true
109
+ }).strip();
110
+ const CollectionTreeNode = z.object({
111
+ id: CollectionId,
112
+ name: z.string(),
113
+ description: z.string().nullable().optional(),
114
+ archived: z.boolean().optional(),
115
+ location: z.string().nullable().optional(),
116
+ type: CollectionType.nullable().optional(),
117
+ authority_level: CollectionAuthorityLevel.nullable().optional(),
118
+ here: z.array(CollectionItemModel).optional(),
119
+ below: z.array(CollectionItemModel).optional()
120
+ }).loose().extend({ children: z.lazy(() => z.array(CollectionTreeNode)) });
121
+ const CollectionCreateInput = z.object({
122
+ name: z.string().min(1),
123
+ description: z.string().min(1).nullable().optional(),
124
+ parent_id: z.number().int().positive().nullable().optional(),
125
+ namespace: CollectionNamespace.nullable().optional(),
126
+ authority_level: CollectionAuthorityLevel.nullable().optional()
127
+ }).loose();
128
+ const CollectionUpdateFields = z.object({
129
+ name: NonBlankText.optional(),
130
+ description: NonBlankText.nullable().optional(),
131
+ parent_id: z.number().int().positive().nullable().optional(),
132
+ authority_level: CollectionAuthorityLevel.nullable().optional(),
133
+ archived: z.boolean().optional()
134
+ }).strict();
135
+ const CollectionUpdateInput = CollectionUpdateFields.refine((patch) => Object.keys(patch).length > 0, `the patch is empty: give at least one of ${Object.keys(CollectionUpdateFields.shape).join(", ")}`);
136
+ //#endregion
137
+ export { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_ITEM_MODELS, COLLECTION_PINNED_STATES, Collection, CollectionAuthorityLevel, CollectionCompact, CollectionCreateInput, CollectionId, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionItemModel, CollectionListFilter, CollectionNamespace, CollectionPinnedState, CollectionTreeNode, CollectionType, CollectionUpdateInput };
@@ -0,0 +1,2 @@
1
+ import { t as ContentTranslationUploadResult } from "../content-translation-zfUkE_OG.js";
2
+ export { ContentTranslationUploadResult };
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ //#region src/domain/content-translation.ts
3
+ const ContentTranslationUploadResult = z.object({ success: z.literal(true) });
4
+ //#endregion
5
+ export { ContentTranslationUploadResult };
@@ -0,0 +1,2 @@
1
+ import { t as CronUiDisplayType } from "../cron-DThzerR6.js";
2
+ export { CronUiDisplayType };
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ //#region src/domain/cron.ts
3
+ const CronUiDisplayType = z.enum(["cron/raw", "cron/builder"]);
4
+ //#endregion
5
+ export { CronUiDisplayType };
@@ -0,0 +1,2 @@
1
+ import { S as dashboardDetailSchema, _ as DashcardDetail, a as DashboardCopyInput, b as DashcardVisualizationSettings, c as DashboardLayoutInput, d as DashboardTab, f as DashboardTabCompact, g as DashcardCompact, h as Dashcard, i as DashboardCopyCompact, l as DashboardListFilter, m as DashboardUpdateInput, n as DashboardCompact, o as DashboardCreateInput, p as DashboardUncopiedCard, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput, x as UnreadableCard, y as DashcardVirtualCard } from "../dashboard-DtLXVgtf.js";
2
+ export { Dashboard, DashboardCompact, DashboardCopy, DashboardCopyCompact, DashboardCopyInput, DashboardCreateInput, DashboardDetail, DashboardLayoutInput, DashboardListFilter, DashboardParameterConstraints, DashboardTab, DashboardTabCompact, DashboardUncopiedCard, DashboardUpdateInput, Dashcard, DashcardCompact, DashcardDetail, DashcardPatchInput, DashcardVirtualCard, DashcardVisualizationSettings, UnreadableCard, dashboardDetailSchema };
@@ -0,0 +1,211 @@
1
+ import { EmbeddingParams } from "./embedding.js";
2
+ import { Parameter, ParameterMapping } from "./parameter.js";
3
+ import { Card } from "./card.js";
4
+ import { NonBlankText } from "./text.js";
5
+ import { z } from "zod";
6
+ //#region src/domain/dashboard.ts
7
+ const DashboardWidth = z.enum(["fixed", "full"]);
8
+ const DashboardListFilter = z.enum([
9
+ "all",
10
+ "mine",
11
+ "archived"
12
+ ]);
13
+ const Dashcard = z.object({
14
+ id: z.number().int(),
15
+ dashboard_id: z.number().int(),
16
+ card_id: z.number().int().nullable(),
17
+ dashboard_tab_id: z.number().int().nullable(),
18
+ row: z.number().int(),
19
+ col: z.number().int(),
20
+ size_x: z.number().int(),
21
+ size_y: z.number().int(),
22
+ entity_id: z.string().nullable(),
23
+ visualization_settings: z.unknown(),
24
+ parameter_mappings: z.array(ParameterMapping).nullable(),
25
+ inline_parameters: z.array(z.string()).nullable()
26
+ }).loose();
27
+ const DashcardCompact = Dashcard.pick({
28
+ id: true,
29
+ dashboard_id: true,
30
+ card_id: true,
31
+ dashboard_tab_id: true,
32
+ row: true,
33
+ col: true,
34
+ size_x: true,
35
+ size_y: true,
36
+ parameter_mappings: true
37
+ }).strip();
38
+ /**
39
+ * What a dashcard that is not a chart of a card shows. `display` names it: `text`, `heading`,
40
+ * `link`, `iframe`, `placeholder`, or `action` for an action button. The server stores the
41
+ * settings without checking them, so `display` is an open string another client may leave out.
42
+ */
43
+ const DashcardVirtualCard = z.object({ display: z.string().optional() }).loose();
44
+ /**
45
+ * A dashcard's visualization settings. Every key is free-form except the two that say what a
46
+ * dashcard is when it is not a chart: `virtual_card`, and `text`, the Markdown a text or heading
47
+ * dashcard shows.
48
+ */
49
+ const DashcardVisualizationSettings = z.object({
50
+ virtual_card: DashcardVirtualCard.nullable().optional(),
51
+ text: z.string().nullable().optional()
52
+ }).loose();
53
+ /**
54
+ * A card the caller cannot read. The server cuts it down to its `id` before answering, so a
55
+ * dashboard the caller can read still lists it; a readable card always carries its `name`, which is
56
+ * what tells the two apart.
57
+ */
58
+ const UnreadableCard = z.object({
59
+ id: z.number().int(),
60
+ name: z.never().optional()
61
+ }).loose();
62
+ /**
63
+ * A dashcard as a dashboard read or write returns it, with its card whole in `card`. An action
64
+ * button bound to a model carries the model there and the action in `action_id`. A dashcard bound to
65
+ * no card (a text, heading, link, iframe or placeholder dashcard, or an action button bound to no
66
+ * model, which `visualization_settings.virtual_card` names) has `card_id` `null`, and its `card` reads as `null`.
67
+ */
68
+ const DashcardDetail = Dashcard.extend({
69
+ action_id: z.number().int().nullable(),
70
+ visualization_settings: DashcardVisualizationSettings,
71
+ card: z.union([Card, UnreadableCard]).nullable()
72
+ });
73
+ const DashboardTab = z.object({
74
+ id: z.number().int(),
75
+ dashboard_id: z.number().int(),
76
+ name: z.string(),
77
+ position: z.number().int().optional(),
78
+ entity_id: z.string().nullable().optional()
79
+ }).loose();
80
+ const DashboardTabCompact = DashboardTab.pick({
81
+ id: true,
82
+ dashboard_id: true,
83
+ name: true,
84
+ position: true
85
+ }).strip();
86
+ const Dashboard = z.object({
87
+ id: z.number().int(),
88
+ name: z.string(),
89
+ description: z.string().nullable(),
90
+ archived: z.boolean(),
91
+ collection_id: z.number().int().nullable(),
92
+ creator_id: z.number().int(),
93
+ entity_id: z.string().nullable(),
94
+ width: DashboardWidth,
95
+ auto_apply_filters: z.boolean(),
96
+ enable_embedding: z.boolean(),
97
+ public_uuid: z.string().nullable(),
98
+ cache_ttl: z.number().int().nullable(),
99
+ collection_position: z.number().int().nullable(),
100
+ parameters: z.array(Parameter).nullable(),
101
+ dashcards: z.array(Dashcard).optional(),
102
+ tabs: z.array(DashboardTab).optional()
103
+ }).loose();
104
+ const DashboardDetail = Dashboard.extend({
105
+ parameters: z.array(Parameter),
106
+ dashcards: z.array(DashcardDetail),
107
+ tabs: z.array(DashboardTab)
108
+ });
109
+ const NoCardStub = z.object({
110
+ id: z.never().optional(),
111
+ name: z.never().optional()
112
+ }).loose().transform(() => null);
113
+ const DashcardDetailWire = DashcardDetail.extend({ card: z.union([
114
+ Card,
115
+ UnreadableCard,
116
+ NoCardStub
117
+ ]).nullable() });
118
+ /**
119
+ * The dashboard `GET` and `PUT /api/dashboard/{id}` answer, read as `DashboardDetail`: the stub card
120
+ * of a dashcard bound to no card reads as `null`.
121
+ */
122
+ const dashboardDetailSchema = DashboardDetail.extend({ dashcards: z.array(DashcardDetailWire) });
123
+ const DashboardCompact = Dashboard.pick({
124
+ id: true,
125
+ name: true,
126
+ description: true,
127
+ archived: true,
128
+ collection_id: true
129
+ }).strip().extend({
130
+ dashcards: z.array(DashcardCompact).optional(),
131
+ tabs: z.array(DashboardTabCompact).optional()
132
+ });
133
+ const DashcardWrite = z.object({
134
+ id: z.number().int().describe("existing dashcard id; negative to create a new dashcard"),
135
+ card_id: z.number().int().positive().nullable().describe("card the dashcard renders; null for a virtual (text, heading, link) or action dashcard"),
136
+ size_x: z.number().int().positive(),
137
+ size_y: z.number().int().positive(),
138
+ row: z.number().int().nonnegative(),
139
+ col: z.number().int().nonnegative(),
140
+ parameter_mappings: z.array(ParameterMapping).nullable().optional(),
141
+ inline_parameters: z.array(z.string().min(1)).nullable().optional(),
142
+ series: z.array(z.record(z.string(), z.unknown())).nullable().optional()
143
+ }).loose();
144
+ const DashboardTabWrite = z.object({
145
+ id: z.number().int().describe("existing tab id; negative to create a new tab"),
146
+ name: z.string().min(1)
147
+ }).loose();
148
+ const DashboardCreateInput = z.object({
149
+ name: NonBlankText,
150
+ description: z.string().nullable().optional(),
151
+ parameters: z.array(Parameter).nullable().optional(),
152
+ cache_ttl: z.number().int().positive().nullable().optional(),
153
+ collection_id: z.number().int().positive().nullable().optional(),
154
+ collection_position: z.number().int().positive().nullable().optional()
155
+ }).strip();
156
+ const DashboardLayoutInput = z.object({
157
+ dashcards: z.array(DashcardWrite).optional(),
158
+ tabs: z.array(DashboardTabWrite).optional()
159
+ }).loose();
160
+ const DashboardUpdateInput = z.object({
161
+ name: z.string().min(1).nullable().optional(),
162
+ description: z.string().nullable().optional(),
163
+ caveats: z.string().nullable().optional(),
164
+ points_of_interest: z.string().nullable().optional(),
165
+ show_in_getting_started: z.boolean().nullable().optional(),
166
+ archived: z.boolean().nullable().optional(),
167
+ position: z.number().int().positive().nullable().optional(),
168
+ width: DashboardWidth.optional(),
169
+ enable_embedding: z.boolean().nullable().optional(),
170
+ embedding_type: z.string().nullable().optional(),
171
+ embedding_params: EmbeddingParams.nullable().optional(),
172
+ parameters: z.array(Parameter).nullable().optional(),
173
+ cache_ttl: z.number().int().positive().nullable().optional(),
174
+ collection_id: z.number().int().positive().nullable().optional(),
175
+ collection_position: z.number().int().positive().nullable().optional(),
176
+ dashcards: z.array(DashcardWrite).nullable().optional(),
177
+ tabs: z.array(DashboardTabWrite).nullable().optional()
178
+ }).loose();
179
+ const DashcardPatchInput = z.object({
180
+ row: z.number().int().nonnegative().optional(),
181
+ col: z.number().int().nonnegative().optional(),
182
+ size_x: z.number().int().positive().optional(),
183
+ size_y: z.number().int().positive().optional(),
184
+ dashboard_tab_id: z.number().int().nullable().optional(),
185
+ parameter_mappings: z.array(ParameterMapping).nullable().optional(),
186
+ inline_parameters: z.array(z.string().min(1)).nullable().optional(),
187
+ visualization_settings: z.unknown().optional(),
188
+ series: z.array(z.record(z.string(), z.unknown())).nullable().optional()
189
+ }).strict().refine((value) => Object.keys(value).length > 0, { message: "patch must contain at least one field" });
190
+ const DashboardCopyInput = z.object({
191
+ name: z.string().min(1).nullable().optional(),
192
+ description: z.string().nullable().optional(),
193
+ collection_id: z.number().int().positive().nullable().optional(),
194
+ collection_position: z.number().int().positive().nullable().optional(),
195
+ is_deep_copy: z.boolean().nullable().optional()
196
+ }).strict();
197
+ const DashboardUncopiedCard = z.object({ id: z.number().int() }).loose();
198
+ const DashboardCopy = Dashboard.extend({ uncopied: z.array(DashboardUncopiedCard).optional() });
199
+ const DashboardCopyCompact = DashboardCompact.extend({ uncopied: z.array(DashboardUncopiedCard.pick({ id: true }).strip()).optional() });
200
+ const ParameterConstraintValue = z.union([
201
+ z.string(),
202
+ z.number(),
203
+ z.boolean()
204
+ ]);
205
+ /**
206
+ * Values of other parameters on a dashboard, by parameter id, that narrow the values a linked
207
+ * parameter offers. An array sets several values for one parameter.
208
+ */
209
+ const DashboardParameterConstraints = z.record(z.string().min(1), z.union([ParameterConstraintValue, z.array(ParameterConstraintValue)]));
210
+ //#endregion
211
+ export { Dashboard, DashboardCompact, DashboardCopy, DashboardCopyCompact, DashboardCopyInput, DashboardCreateInput, DashboardDetail, DashboardLayoutInput, DashboardListFilter, DashboardParameterConstraints, DashboardTab, DashboardTabCompact, DashboardUncopiedCard, DashboardUpdateInput, Dashcard, DashcardCompact, DashcardDetail, DashcardPatchInput, DashcardVirtualCard, DashcardVisualizationSettings, UnreadableCard, dashboardDetailSchema };
@@ -0,0 +1,2 @@
1
+ import { a as DataActionExecuteInput, c as DataActionUpdateInput, i as DataActionCreateInput, l as dataActionSchema, n as DataAction, o as DataActionExecuteResult, r as DataActionCompact, s as DataActionParameter, t as DATA_ACTION_COLLECTION_GATE } from "../data-action-CkXVrOUH.js";
2
+ export { DATA_ACTION_COLLECTION_GATE, DataAction, DataActionCompact, DataActionCreateInput, DataActionExecuteInput, DataActionExecuteResult, DataActionParameter, DataActionUpdateInput, dataActionSchema };