@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,3380 @@
1
+ import "./credential-6aOEGqMH.js";
2
+ import "./oauth-login-CJsT_3EE.js";
3
+ import "./oauth-session-BlIlcd8Q.js";
4
+ import "./session-properties-COtlxAcK.js";
5
+ import "./features-SMSfJhB6.js";
6
+ import "./tag-qzjGGci8.js";
7
+ import { _ as WaitOptions, f as RequestOptions, g as TransportRequestOptions, h as Transport, n as ClientOptions, t as ClientCredentials, yt as ServerProfile } from "./transport-BsXqRujn.js";
8
+ import { t as ListResult } from "./list-BT_bBm9Z.js";
9
+ import "./requirements-Dx_ZVzl7.js";
10
+ import "./requirement-check-glU7wqhQ.js";
11
+ import { n as Page } from "./paginate-COuL0Gzl.js";
12
+ import { a as PollOptions } from "./poll-CIwnee7h.js";
13
+ import "./json-BksZpXDC.js";
14
+ import { i as CreatedApiKey, r as ApiKeyCreateInput, t as ApiKey } from "./api-key-DJeN1-7G.js";
15
+ import { i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-BxBzr5Uj.js";
16
+ import { c as CollectionId, g as CollectionTreeNode, i as Collection, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-DGnTvD6R.js";
17
+ import "./content-translation-zfUkE_OG.js";
18
+ import "./cron-DThzerR6.js";
19
+ import { _ as DashcardDetail, a as DashboardCopyInput, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-DtLXVgtf.js";
20
+ import { a as DataActionExecuteInput, c as DataActionUpdateInput, n as DataAction, o as DataActionExecuteResult } from "./data-action-CkXVrOUH.js";
21
+ import "./data-app-CqP5_fpB.js";
22
+ import { o as DatabaseSyncResult, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-BxqDmfcj.js";
23
+ import { r as QueryMetadata, t as CompiledQuery } from "./dataset-BBNGPVec.js";
24
+ import "./dependency-arB8Cr2H.js";
25
+ import { a as DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "./document-tLd6pYWe.js";
26
+ import { a as EidTranslateResult, i as EidTranslateInput } from "./eid-translation-CH6NPWd-.js";
27
+ import "./embedding-oU3gqfgX.js";
28
+ import "./erd-BdeFEeSy.js";
29
+ import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, p as FieldValues, s as FieldDetail } from "./field-p9Rme2zB.js";
30
+ import "./git-sync-C99SVdJ9.js";
31
+ import { i as GlossaryUpdateInput, r as GlossaryCreateInput, t as Glossary } from "./glossary-CHK3elPj.js";
32
+ import "./library-B9pEq7qP.js";
33
+ import "./measure-CgH14YQZ.js";
34
+ import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-DcYloqOQ.js";
35
+ import "./moderation-review-B4RUTZ6_.js";
36
+ import { l as NotificationCreateInput, r as Notification, x as NotificationUpdateInput } from "./notification-D1MThyKE.js";
37
+ import { s as ParameterValues } from "./parameter-ak-J-IOj.js";
38
+ import { a as PermissionsGraph } from "./permission-BnCQw5Kp.js";
39
+ import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-0LG3K6qO.js";
40
+ import { n as ExportFormat, t as DatasetQuery } from "./query-Xsin530u.js";
41
+ import "./replacement-BGyggp-G.js";
42
+ import "./search-Cm5IxKss.js";
43
+ import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
44
+ import "./revision-Dyl-8p7d.js";
45
+ import { t as Setting } from "./setting-DXuQGXGF.js";
46
+ import { n as SetupResult, t as SetupInput } from "./setup-JqcJ2unJ.js";
47
+ import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-C_Ilx7tR.js";
48
+ import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, y as TableQueryMetadata } from "./table-Od6uvDVW.js";
49
+ import { i as TimelineEvent, l as TimelineUpdateInput, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "./timeline-BK45hy-h.js";
50
+ import "./transform-C5thnJwW.js";
51
+ import "./transform-dag-run-BgZwv1yx.js";
52
+ import "./transform-inspector-CMCh8WKV.js";
53
+ import "./transform-job-D8jTQtdX.js";
54
+ import "./transform-python-DtL3xxMj.js";
55
+ import "./transform-tag-C6j5EUkX.js";
56
+ import "./transform-test-CeMzDpUC.js";
57
+ import { r as UploadUpdateResult, t as UploadResult } from "./upload-UPfZFdbH.js";
58
+ import { t as CurrentUser } from "./user-Sqqv7rqh.js";
59
+ import { n as CardListParams, r as CardQueryParams, t as CardExportParams } from "./card-DN0sLkCG.js";
60
+ import { i as CollectionTreeParams, n as CollectionItemPageOptions, r as CollectionListParams, t as CollectionItemListParams } from "./collection-fFahL-ub.js";
61
+ import { t as CsvFile } from "./csv-upload--K35QedP.js";
62
+ import { r as DashcardCardIssue, t as DashboardListParams } from "./dashboard-CM7RmNeE.js";
63
+ import { n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "./database-B0JNZjDN.js";
64
+ import { n as DatasetNativeParams, t as DatasetExportParams } from "./dataset-BUirJ1rO.js";
65
+ import { i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "./dependency-CzpXmeu7.js";
66
+ import { t as ErdParams } from "./erd-CbV7xvAc.js";
67
+ import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, t as FieldRemappingParams } from "./field-D1Pfk-0S.js";
68
+ import { a as SyncRemoteChangesParams, i as SyncImportParams, n as SyncExportParams, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "./git-sync-BTf1aYHr.js";
69
+ import { t as GlossaryListParams } from "./glossary-DFvnz-E5.js";
70
+ import { t as MeasureArchiveParams } from "./measure-lPz8qnwz.js";
71
+ import { t as NotificationListParams } from "./notification-Cp5GJErS.js";
72
+ import { t as PulseListParams } from "./pulse-BzKmz3Yn.js";
73
+ import { t as ReplacementRunListParams } from "./replacement-CVebCuNp.js";
74
+ import { n as SearchParams, t as SearchPage } from "./search-Cten2h0I.js";
75
+ import { t as SegmentArchiveParams } from "./segment-DQLX6r1E.js";
76
+ import { t as SnippetListParams } from "./snippet-Djn0rL21.js";
77
+ import { t as TableListParams } from "./table-CDZbLNow.js";
78
+ import { n as TimelineListParams, t as TimelineEventsParams } from "./timeline-BTs6fuRp.js";
79
+ import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, r as TransformRunPageParams, t as TransformDagParams } from "./transform-WASQAXeA.js";
80
+ import { t as TransformJobRunParams } from "./transform-job-DmTwKxhc.js";
81
+ import { t as TransformTestListParams } from "./transform-test-CR_i54IV.js";
82
+ import { t as UploadCsvParams } from "./upload-B5YjVkSW.js";
83
+ //#region src/resources/metric.d.ts
84
+ interface MetricDimensionListParams {
85
+ query?: string | undefined;
86
+ "with-addable"?: boolean | undefined;
87
+ "include-orphaned"?: boolean | undefined;
88
+ }
89
+ declare function metricResource(transport: Transport): {
90
+ query: (definition: {
91
+ expression: MetricMathExpression;
92
+ filters?: {
93
+ "lib/uuid": string;
94
+ filter: MetricFilterClause;
95
+ }[] | null | undefined;
96
+ projections?: {
97
+ type: "metric" | "measure";
98
+ id: number;
99
+ "lib/uuid": string;
100
+ projection: ["dimension", {
101
+ "lib/uuid"?: string | undefined;
102
+ "display-name"?: string | null | undefined;
103
+ "effective-type"?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
104
+ "semantic-type"?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
105
+ "temporal-unit"?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | null | undefined;
106
+ binning?: {
107
+ strategy: "default";
108
+ } | {
109
+ strategy: "bin-width";
110
+ "bin-width": number;
111
+ } | {
112
+ strategy: "num-bins";
113
+ "num-bins": number;
114
+ } | null | undefined;
115
+ }, string][];
116
+ }[] | null | undefined;
117
+ }, options?: RequestOptions | undefined) => Promise<{
118
+ [x: string]: unknown;
119
+ status: string;
120
+ row_count?: number | undefined;
121
+ data?: {
122
+ [x: string]: unknown;
123
+ rows: unknown[][];
124
+ cols: {
125
+ [x: string]: unknown;
126
+ name: string;
127
+ display_name?: string | null | undefined;
128
+ base_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
129
+ effective_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
130
+ semantic_type?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
131
+ database_type?: string | null | undefined;
132
+ id?: number | null | undefined;
133
+ }[];
134
+ rows_truncated?: number | undefined;
135
+ pivot_rows_truncated?: number | undefined;
136
+ } | undefined;
137
+ cached?: string | null | undefined;
138
+ error?: string | null | undefined;
139
+ error_type?: string | null | undefined;
140
+ }>;
141
+ breakoutValues: (definition: {
142
+ expression: MetricMathExpression;
143
+ filters?: {
144
+ "lib/uuid": string;
145
+ filter: MetricFilterClause;
146
+ }[] | null | undefined;
147
+ projections?: {
148
+ type: "metric" | "measure";
149
+ id: number;
150
+ "lib/uuid": string;
151
+ projection: ["dimension", {
152
+ "lib/uuid"?: string | undefined;
153
+ "display-name"?: string | null | undefined;
154
+ "effective-type"?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
155
+ "semantic-type"?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
156
+ "temporal-unit"?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | null | undefined;
157
+ binning?: {
158
+ strategy: "default";
159
+ } | {
160
+ strategy: "bin-width";
161
+ "bin-width": number;
162
+ } | {
163
+ strategy: "num-bins";
164
+ "num-bins": number;
165
+ } | null | undefined;
166
+ }, string][];
167
+ }[] | null | undefined;
168
+ }, options?: RequestOptions | undefined) => Promise<{
169
+ [x: string]: unknown;
170
+ values: unknown[];
171
+ col: {
172
+ [x: string]: unknown;
173
+ name?: string | undefined;
174
+ display_name?: string | undefined;
175
+ base_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
176
+ effective_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
177
+ semantic_type?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
178
+ };
179
+ }>;
180
+ dimensions: (id: number, params?: MetricDimensionListParams | undefined, options?: RequestOptions | undefined) => Promise<{
181
+ [x: string]: unknown;
182
+ added: {
183
+ [x: string]: unknown;
184
+ id: string;
185
+ name: string | null;
186
+ display_name: string | null;
187
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
188
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
189
+ description?: string | null | undefined;
190
+ has_field_values?: "list" | "search" | "none" | undefined;
191
+ status?: "status/active" | "status/orphaned" | undefined;
192
+ status_message?: string | undefined;
193
+ sources?: {
194
+ [x: string]: unknown;
195
+ type: "field";
196
+ "field-id": number | null;
197
+ }[] | undefined;
198
+ group?: {
199
+ [x: string]: unknown;
200
+ id: string;
201
+ type: "main" | "connection";
202
+ display_name: string;
203
+ } | undefined;
204
+ dimension_interestingness?: number | undefined;
205
+ default_temporal_unit?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | undefined;
206
+ default?: boolean | null | undefined;
207
+ }[];
208
+ addable: {
209
+ [x: string]: unknown;
210
+ group: {
211
+ [x: string]: unknown;
212
+ id: string;
213
+ type: "main" | "connection";
214
+ display_name: string;
215
+ } | null;
216
+ dimensions: {
217
+ [x: string]: unknown;
218
+ id: string;
219
+ name: string | null;
220
+ display_name: string | null;
221
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
222
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
223
+ mapping_target: [string, {
224
+ [x: string]: unknown;
225
+ }, ...unknown[]];
226
+ description?: string | null | undefined;
227
+ has_field_values?: "list" | "search" | "none" | undefined;
228
+ status?: "status/active" | "status/orphaned" | undefined;
229
+ status_message?: string | undefined;
230
+ sources?: {
231
+ [x: string]: unknown;
232
+ type: "field";
233
+ "field-id": number | null;
234
+ }[] | undefined;
235
+ group?: {
236
+ [x: string]: unknown;
237
+ id: string;
238
+ type: "main" | "connection";
239
+ display_name: string;
240
+ } | undefined;
241
+ dimension_interestingness?: number | undefined;
242
+ default_temporal_unit?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | undefined;
243
+ default?: boolean | null | undefined;
244
+ }[];
245
+ }[];
246
+ }>;
247
+ };
248
+ //#endregion
249
+ //#region src/client.d.ts
250
+ declare function createClient(config: ClientCredentials, options: ClientOptions): {
251
+ apiKey: {
252
+ list: (options?: RequestOptions) => Promise<ListResult<ApiKey>>;
253
+ create: (params: ApiKeyCreateInput, options?: RequestOptions) => Promise<CreatedApiKey>;
254
+ delete: (id: number, options?: RequestOptions) => Promise<void>;
255
+ };
256
+ card: {
257
+ list: (params?: CardListParams, options?: RequestOptions) => Promise<ListResult<Card>>;
258
+ get: (id: number, options?: RequestOptions) => Promise<CardDetail>;
259
+ create: (params: CardCreateInput, options?: RequestOptions) => Promise<CardDetail>;
260
+ update: (id: number, params: CardUpdateInput, options?: RequestOptions) => Promise<CardDetail>;
261
+ archive: (id: number, options?: RequestOptions) => Promise<CardDetail>;
262
+ query: (id: number, params: CardQueryParams, options?: RequestOptions) => Promise<CardQueryResult>;
263
+ exportQuery: (id: number, format: ExportFormat, params: CardExportParams, options?: RequestOptions) => Promise<ReadableStream<Uint8Array>>;
264
+ queryMetadata: (id: number, options?: RequestOptions) => Promise<QueryMetadata>;
265
+ };
266
+ collection: {
267
+ list: (params?: CollectionListParams, options?: RequestOptions) => Promise<ListResult<Collection>>;
268
+ get: (ref: CollectionId, options?: RequestOptions) => Promise<Collection>;
269
+ create: (params: CollectionCreateInput, options?: RequestOptions) => Promise<Collection>;
270
+ update: (ref: CollectionId, params: CollectionUpdateInput, options?: RequestOptions) => Promise<Collection>;
271
+ archive: (ref: CollectionId, options?: RequestOptions) => Promise<Collection>;
272
+ itemPages: (ref: string | number, params?: CollectionItemListParams | undefined, options?: CollectionItemPageOptions | undefined) => AsyncIterable<Page<{
273
+ [x: string]: unknown;
274
+ id: number;
275
+ model: "transform" | "collection" | "card" | "dashboard" | "dataset" | "document" | "metric" | "measure" | "pulse" | "snippet" | "table" | "timeline" | "exploration" | "no_models" | "indexed-entity" | "action";
276
+ name: string;
277
+ archived: boolean | null;
278
+ description?: string | null | undefined;
279
+ collection_id?: string | number | null | undefined;
280
+ collection_position?: number | null | undefined;
281
+ display?: string | null | undefined;
282
+ location?: string | null | undefined;
283
+ entity_id?: string | null | undefined;
284
+ database_id?: number | null | undefined;
285
+ dashboard_id?: number | null | undefined;
286
+ }>>;
287
+ tree: (params?: CollectionTreeParams, options?: RequestOptions) => Promise<ListResult<CollectionTreeNode>>;
288
+ };
289
+ contentTranslation: {
290
+ download: (options?: RequestOptions | undefined) => Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
291
+ upload: (file: CsvFile, options?: RequestOptions | undefined) => Promise<{
292
+ success: true;
293
+ }>;
294
+ };
295
+ dashboard: {
296
+ list: (params?: DashboardListParams, options?: RequestOptions) => Promise<ListResult<Dashboard>>;
297
+ get: (id: number, options?: RequestOptions) => Promise<DashboardDetail>;
298
+ create: (params: DashboardCreateInput, options?: RequestOptions) => Promise<Dashboard>;
299
+ update: (id: number, params: DashboardUpdateInput, options?: RequestOptions) => Promise<DashboardDetail>;
300
+ archive: (id: number, options?: RequestOptions) => Promise<Dashboard>;
301
+ copy: (id: number, params?: DashboardCopyInput, options?: RequestOptions) => Promise<DashboardCopy>;
302
+ updateDashcard: (dashboardId: number, dashcardId: number, params: DashcardPatchInput, options?: RequestOptions) => Promise<DashcardDetail>;
303
+ checkCardReferences: (dashcards: ReadonlyArray<unknown> | null | undefined, options?: RequestOptions) => Promise<DashcardCardIssue[]>;
304
+ parameterValues: (dashboardId: number, parameterId: string, constraints?: DashboardParameterConstraints, options?: RequestOptions) => Promise<ParameterValues>;
305
+ searchParameterValues: (dashboardId: number, parameterId: string, query: string, constraints?: DashboardParameterConstraints, options?: RequestOptions) => Promise<ParameterValues>;
306
+ };
307
+ dataAction: {
308
+ list: (options?: RequestOptions) => Promise<ListResult<DataAction>>;
309
+ get: (id: number, options?: RequestOptions) => Promise<DataAction>;
310
+ create: (params: {
311
+ name: string;
312
+ type: "query";
313
+ database_id: number;
314
+ dataset_query: {
315
+ [x: string]: unknown;
316
+ };
317
+ parameters?: {
318
+ [x: string]: unknown;
319
+ id: string;
320
+ type: string;
321
+ target: unknown;
322
+ name?: string | undefined;
323
+ slug?: string | undefined;
324
+ required?: boolean | undefined;
325
+ }[] | undefined;
326
+ collection_id?: number | null | undefined;
327
+ description?: string | null | undefined;
328
+ visualization_settings?: unknown;
329
+ }, options?: RequestOptions | undefined) => Promise<{
330
+ [x: string]: unknown;
331
+ id: number;
332
+ name: string;
333
+ description: string | null;
334
+ type: string;
335
+ model_id: number | null;
336
+ parameters: {
337
+ [x: string]: unknown;
338
+ id: string;
339
+ type: string;
340
+ name?: string | undefined;
341
+ slug?: string | undefined;
342
+ target?: unknown;
343
+ required?: boolean | undefined;
344
+ }[] | null;
345
+ visualization_settings: unknown;
346
+ archived: boolean;
347
+ public_uuid: string | null;
348
+ entity_id: string | null;
349
+ creator_id: number;
350
+ created_at: string;
351
+ updated_at: string;
352
+ collection_id: number | null;
353
+ database_id?: number | null | undefined;
354
+ dataset_query?: unknown;
355
+ }>;
356
+ update: (id: number, params: DataActionUpdateInput, options?: RequestOptions) => Promise<DataAction>;
357
+ archive: (id: number, options?: RequestOptions) => Promise<DataAction>;
358
+ delete: (id: number, options?: RequestOptions) => Promise<void>;
359
+ execute: (id: number, params: DataActionExecuteInput, options?: RequestOptions) => Promise<DataActionExecuteResult>;
360
+ };
361
+ dataApp: {
362
+ list: (filter?: {
363
+ available?: boolean | undefined;
364
+ } | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
365
+ [x: string]: unknown;
366
+ id: number;
367
+ name: string;
368
+ display_name: string;
369
+ description: string | null;
370
+ version: number;
371
+ outdated: boolean;
372
+ bundle_path: string;
373
+ enabled: boolean;
374
+ allowed_hosts: string[];
375
+ resource_collection_id: number;
376
+ bundle_hash: string | null;
377
+ created_at: string;
378
+ updated_at: string;
379
+ } | {
380
+ name: string;
381
+ display_name: string;
382
+ }>>;
383
+ get: (slug: string, options?: RequestOptions | undefined) => Promise<{
384
+ [x: string]: unknown;
385
+ id: number;
386
+ name: string;
387
+ display_name: string;
388
+ description: string | null;
389
+ version: number;
390
+ outdated: boolean;
391
+ bundle_path: string;
392
+ enabled: boolean;
393
+ allowed_hosts: string[];
394
+ resource_collection_id: number;
395
+ bundle_hash: string | null;
396
+ created_at: string;
397
+ updated_at: string;
398
+ } | {
399
+ name: string;
400
+ display_name: string;
401
+ }>;
402
+ create: (params: {
403
+ name: string;
404
+ display_name?: string | undefined;
405
+ description?: string | null | undefined;
406
+ version?: number | undefined;
407
+ bundle_path?: string | undefined;
408
+ allowed_hosts?: string[] | undefined;
409
+ enabled?: boolean | undefined;
410
+ }, options?: RequestOptions | undefined) => Promise<{
411
+ [x: string]: unknown;
412
+ id: number;
413
+ name: string;
414
+ display_name: string;
415
+ description: string | null;
416
+ version: number;
417
+ outdated: boolean;
418
+ bundle_path: string;
419
+ enabled: boolean;
420
+ allowed_hosts: string[];
421
+ resource_collection_id: number;
422
+ bundle_hash: string | null;
423
+ created_at: string;
424
+ updated_at: string;
425
+ }>;
426
+ update: (slug: string, params: {
427
+ display_name?: string | undefined;
428
+ description?: string | null | undefined;
429
+ version?: number | undefined;
430
+ bundle_path?: string | undefined;
431
+ allowed_hosts?: string[] | undefined;
432
+ enabled?: boolean | undefined;
433
+ }, options?: RequestOptions | undefined) => Promise<{
434
+ [x: string]: unknown;
435
+ id: number;
436
+ name: string;
437
+ display_name: string;
438
+ description: string | null;
439
+ version: number;
440
+ outdated: boolean;
441
+ bundle_path: string;
442
+ enabled: boolean;
443
+ allowed_hosts: string[];
444
+ resource_collection_id: number;
445
+ bundle_hash: string | null;
446
+ created_at: string;
447
+ updated_at: string;
448
+ }>;
449
+ replaceBundle: (slug: string, bundle: string, options?: RequestOptions | undefined) => Promise<{
450
+ [x: string]: unknown;
451
+ id: number;
452
+ name: string;
453
+ display_name: string;
454
+ description: string | null;
455
+ version: number;
456
+ outdated: boolean;
457
+ bundle_path: string;
458
+ enabled: boolean;
459
+ allowed_hosts: string[];
460
+ resource_collection_id: number;
461
+ bundle_hash: string | null;
462
+ created_at: string;
463
+ updated_at: string;
464
+ }>;
465
+ typedSchema: (slug: string, options?: RequestOptions | undefined) => Promise<string>;
466
+ delete: (slug: string, options?: RequestOptions | undefined) => Promise<void>;
467
+ };
468
+ database: {
469
+ list: (params?: DatabaseListParams, options?: RequestOptions) => Promise<ListResult<Database>>;
470
+ get: (id: number, params?: DatabaseGetParams, options?: RequestOptions) => Promise<Database>;
471
+ update: (id: number, params: DatabaseUpdateInput, options?: RequestOptions) => Promise<DatabaseWithSettings>;
472
+ schemas: (id: number, options?: RequestOptions) => Promise<ListResult<string>>;
473
+ schemaTables: (id: number, schema: string, options?: RequestOptions) => Promise<ListResult<Table>>;
474
+ syncSchema: (id: number, params?: DatabaseSyncSchemaParams, options?: RequestOptions) => Promise<DatabaseSyncResult>;
475
+ rescanValues: (id: number, options?: RequestOptions) => Promise<DatabaseSyncResult>;
476
+ };
477
+ dataset: {
478
+ query: (body: unknown, options?: RequestOptions) => Promise<CardQueryResult>;
479
+ native: (datasetQuery: DatasetQuery, params?: DatasetNativeParams, options?: RequestOptions) => Promise<CompiledQuery>;
480
+ queryMetadata: (datasetQuery: DatasetQuery, options?: RequestOptions) => Promise<QueryMetadata>;
481
+ exportQuery: (format: ExportFormat, params: DatasetExportParams, options?: RequestOptions) => Promise<ReadableStream<Uint8Array>>;
482
+ };
483
+ dependency: {
484
+ graph: (type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox", id: number, options?: RequestOptions | undefined) => Promise<{
485
+ [x: string]: unknown;
486
+ nodes: {
487
+ [x: string]: unknown;
488
+ id: number;
489
+ type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
490
+ data: {
491
+ [x: string]: unknown;
492
+ name?: string | null | undefined;
493
+ display_name?: string | null | undefined;
494
+ description?: string | null | undefined;
495
+ type?: "query" | "metric" | "model" | "question" | "implicit" | null | undefined;
496
+ display?: string | null | undefined;
497
+ database_id?: number | null | undefined;
498
+ db_id?: number | null | undefined;
499
+ schema?: string | null | undefined;
500
+ collection_id?: string | number | null | undefined;
501
+ collection?: {
502
+ [x: string]: unknown;
503
+ id: string | number;
504
+ name: string;
505
+ authority_level: "official" | null;
506
+ is_personal?: boolean | undefined;
507
+ } | null | undefined;
508
+ dashboard_id?: number | null | undefined;
509
+ dashboard?: {
510
+ [x: string]: unknown;
511
+ id: number;
512
+ name: string;
513
+ } | null | undefined;
514
+ document_id?: number | null | undefined;
515
+ document?: {
516
+ [x: string]: unknown;
517
+ id: number;
518
+ name: string;
519
+ } | null | undefined;
520
+ db?: {
521
+ [x: string]: unknown;
522
+ id: number;
523
+ name: string;
524
+ } | null | undefined;
525
+ table_id?: number | null | undefined;
526
+ table?: {
527
+ [x: string]: unknown;
528
+ id: number;
529
+ name: string;
530
+ display_name: string;
531
+ } | null | undefined;
532
+ view_count?: number | null | undefined;
533
+ };
534
+ dependents_count: Partial<Record<"transform" | "dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "model" | "action" | "sandbox" | "question", number>> | null;
535
+ }[];
536
+ edges: {
537
+ [x: string]: unknown;
538
+ from_entity_type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
539
+ from_entity_id: number;
540
+ to_entity_type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
541
+ to_entity_id: number;
542
+ }[];
543
+ }>;
544
+ dependents: (type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox", id: number, params?: DependencyDependentsParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
545
+ [x: string]: unknown;
546
+ id: number;
547
+ type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
548
+ data: {
549
+ [x: string]: unknown;
550
+ name?: string | null | undefined;
551
+ display_name?: string | null | undefined;
552
+ description?: string | null | undefined;
553
+ type?: "query" | "metric" | "model" | "question" | "implicit" | null | undefined;
554
+ display?: string | null | undefined;
555
+ database_id?: number | null | undefined;
556
+ db_id?: number | null | undefined;
557
+ schema?: string | null | undefined;
558
+ collection_id?: string | number | null | undefined;
559
+ collection?: {
560
+ [x: string]: unknown;
561
+ id: string | number;
562
+ name: string;
563
+ authority_level: "official" | null;
564
+ is_personal?: boolean | undefined;
565
+ } | null | undefined;
566
+ dashboard_id?: number | null | undefined;
567
+ dashboard?: {
568
+ [x: string]: unknown;
569
+ id: number;
570
+ name: string;
571
+ } | null | undefined;
572
+ document_id?: number | null | undefined;
573
+ document?: {
574
+ [x: string]: unknown;
575
+ id: number;
576
+ name: string;
577
+ } | null | undefined;
578
+ db?: {
579
+ [x: string]: unknown;
580
+ id: number;
581
+ name: string;
582
+ } | null | undefined;
583
+ table_id?: number | null | undefined;
584
+ table?: {
585
+ [x: string]: unknown;
586
+ id: number;
587
+ name: string;
588
+ display_name: string;
589
+ } | null | undefined;
590
+ view_count?: number | null | undefined;
591
+ };
592
+ dependents_count: Partial<Record<"transform" | "dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "model" | "action" | "sandbox" | "question", number>> | null;
593
+ }>>;
594
+ broken: (type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox", id: number, params?: DependencyBrokenParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
595
+ [x: string]: unknown;
596
+ id: number;
597
+ type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
598
+ data: {
599
+ [x: string]: unknown;
600
+ name?: string | null | undefined;
601
+ display_name?: string | null | undefined;
602
+ description?: string | null | undefined;
603
+ type?: "query" | "metric" | "model" | "question" | "implicit" | null | undefined;
604
+ display?: string | null | undefined;
605
+ database_id?: number | null | undefined;
606
+ db_id?: number | null | undefined;
607
+ schema?: string | null | undefined;
608
+ collection_id?: string | number | null | undefined;
609
+ collection?: {
610
+ [x: string]: unknown;
611
+ id: string | number;
612
+ name: string;
613
+ authority_level: "official" | null;
614
+ is_personal?: boolean | undefined;
615
+ } | null | undefined;
616
+ dashboard_id?: number | null | undefined;
617
+ dashboard?: {
618
+ [x: string]: unknown;
619
+ id: number;
620
+ name: string;
621
+ } | null | undefined;
622
+ document_id?: number | null | undefined;
623
+ document?: {
624
+ [x: string]: unknown;
625
+ id: number;
626
+ name: string;
627
+ } | null | undefined;
628
+ db?: {
629
+ [x: string]: unknown;
630
+ id: number;
631
+ name: string;
632
+ } | null | undefined;
633
+ table_id?: number | null | undefined;
634
+ table?: {
635
+ [x: string]: unknown;
636
+ id: number;
637
+ name: string;
638
+ display_name: string;
639
+ } | null | undefined;
640
+ view_count?: number | null | undefined;
641
+ };
642
+ }>>;
643
+ unreferencedPages: (params?: DependencyItemListParams | undefined, options?: DependencyItemPageOptions | undefined) => AsyncIterable<Page<{
644
+ [x: string]: unknown;
645
+ id: number;
646
+ type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
647
+ data: {
648
+ [x: string]: unknown;
649
+ name?: string | null | undefined;
650
+ display_name?: string | null | undefined;
651
+ description?: string | null | undefined;
652
+ type?: "query" | "metric" | "model" | "question" | "implicit" | null | undefined;
653
+ display?: string | null | undefined;
654
+ database_id?: number | null | undefined;
655
+ db_id?: number | null | undefined;
656
+ schema?: string | null | undefined;
657
+ collection_id?: string | number | null | undefined;
658
+ collection?: {
659
+ [x: string]: unknown;
660
+ id: string | number;
661
+ name: string;
662
+ authority_level: "official" | null;
663
+ is_personal?: boolean | undefined;
664
+ } | null | undefined;
665
+ dashboard_id?: number | null | undefined;
666
+ dashboard?: {
667
+ [x: string]: unknown;
668
+ id: number;
669
+ name: string;
670
+ } | null | undefined;
671
+ document_id?: number | null | undefined;
672
+ document?: {
673
+ [x: string]: unknown;
674
+ id: number;
675
+ name: string;
676
+ } | null | undefined;
677
+ db?: {
678
+ [x: string]: unknown;
679
+ id: number;
680
+ name: string;
681
+ } | null | undefined;
682
+ table_id?: number | null | undefined;
683
+ table?: {
684
+ [x: string]: unknown;
685
+ id: number;
686
+ name: string;
687
+ display_name: string;
688
+ } | null | undefined;
689
+ view_count?: number | null | undefined;
690
+ };
691
+ dependents_count: Partial<Record<"transform" | "dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "model" | "action" | "sandbox" | "question", number>> | null;
692
+ }>>;
693
+ breakingPages: (params?: DependencyItemListParams | undefined, options?: DependencyItemPageOptions | undefined) => AsyncIterable<Page<{
694
+ [x: string]: unknown;
695
+ id: number;
696
+ type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
697
+ data: {
698
+ [x: string]: unknown;
699
+ name?: string | null | undefined;
700
+ display_name?: string | null | undefined;
701
+ description?: string | null | undefined;
702
+ type?: "query" | "metric" | "model" | "question" | "implicit" | null | undefined;
703
+ display?: string | null | undefined;
704
+ database_id?: number | null | undefined;
705
+ db_id?: number | null | undefined;
706
+ schema?: string | null | undefined;
707
+ collection_id?: string | number | null | undefined;
708
+ collection?: {
709
+ [x: string]: unknown;
710
+ id: string | number;
711
+ name: string;
712
+ authority_level: "official" | null;
713
+ is_personal?: boolean | undefined;
714
+ } | null | undefined;
715
+ dashboard_id?: number | null | undefined;
716
+ dashboard?: {
717
+ [x: string]: unknown;
718
+ id: number;
719
+ name: string;
720
+ } | null | undefined;
721
+ document_id?: number | null | undefined;
722
+ document?: {
723
+ [x: string]: unknown;
724
+ id: number;
725
+ name: string;
726
+ } | null | undefined;
727
+ db?: {
728
+ [x: string]: unknown;
729
+ id: number;
730
+ name: string;
731
+ } | null | undefined;
732
+ table_id?: number | null | undefined;
733
+ table?: {
734
+ [x: string]: unknown;
735
+ id: number;
736
+ name: string;
737
+ display_name: string;
738
+ } | null | undefined;
739
+ view_count?: number | null | undefined;
740
+ };
741
+ dependents_count: Partial<Record<"transform" | "dashboard" | "document" | "metric" | "measure" | "segment" | "snippet" | "table" | "model" | "action" | "sandbox" | "question", number>> | null;
742
+ dependents_errors?: {
743
+ [x: string]: unknown;
744
+ id: number;
745
+ analyzed_entity_type: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "snippet" | "table" | "action" | "sandbox";
746
+ analyzed_entity_id: number;
747
+ error_type: "missing-column" | "missing-table-alias" | "missing-table" | "missing-card" | "duplicate-column" | "syntax-error" | "validation-exception-error";
748
+ error_detail?: string | null | undefined;
749
+ source_entity_type?: "transform" | "card" | "table" | null | undefined;
750
+ source_entity_id?: number | null | undefined;
751
+ }[] | null | undefined;
752
+ }>>;
753
+ };
754
+ document: {
755
+ list: (options?: RequestOptions) => Promise<ListResult<Document>>;
756
+ get: (id: number, options?: RequestOptions) => Promise<Document>;
757
+ create: (params: DocumentCreateInput, options?: RequestOptions) => Promise<Document>;
758
+ update: (id: number, params: DocumentUpdateInput, options?: RequestOptions) => Promise<Document>;
759
+ archive: (id: number, options?: RequestOptions) => Promise<Document>;
760
+ copy: (id: number, params?: {
761
+ name?: string | null | undefined;
762
+ collection_id?: number | null | undefined;
763
+ collection_position?: number | null | undefined;
764
+ } | undefined, options?: RequestOptions | undefined) => Promise<{
765
+ [x: string]: unknown;
766
+ id: number;
767
+ name: string;
768
+ document: {
769
+ [x: string]: unknown;
770
+ type: string;
771
+ text?: string | undefined;
772
+ attrs?: Record<string, unknown> | undefined;
773
+ marks?: Record<string, unknown>[] | undefined;
774
+ content?: {
775
+ [x: string]: unknown;
776
+ type: string;
777
+ text?: string | undefined;
778
+ attrs?: Record<string, unknown> | undefined;
779
+ marks?: Record<string, unknown>[] | undefined;
780
+ content?: /*elided*/ any[] | undefined;
781
+ }[] | undefined;
782
+ } | null;
783
+ entity_id: string | null;
784
+ collection_id: number | null;
785
+ creator_id: number;
786
+ archived: boolean;
787
+ created_at: string;
788
+ updated_at: string;
789
+ collection_position?: number | null | undefined;
790
+ creator?: {
791
+ [x: string]: unknown;
792
+ id: number;
793
+ email: string;
794
+ first_name: string | null;
795
+ last_name: string | null;
796
+ } | null | undefined;
797
+ can_write?: boolean | undefined;
798
+ can_delete?: boolean | undefined;
799
+ can_restore?: boolean | undefined;
800
+ is_remote_synced?: boolean | undefined;
801
+ }>;
802
+ };
803
+ eidTranslation: {
804
+ translate: (params: EidTranslateInput, options?: RequestOptions) => Promise<EidTranslateResult>;
805
+ };
806
+ erd: {
807
+ get: (params: ErdParams, options?: RequestOptions | undefined) => Promise<{
808
+ [x: string]: unknown;
809
+ nodes: {
810
+ [x: string]: unknown;
811
+ table_id: number;
812
+ name: string;
813
+ display_name: string;
814
+ description: string | null;
815
+ owner: {
816
+ [x: string]: unknown;
817
+ email: string;
818
+ id?: number | undefined;
819
+ first_name?: string | null | undefined;
820
+ last_name?: string | null | undefined;
821
+ } | null;
822
+ schema: string | null;
823
+ visibility_type: "hidden" | "technical" | "cruft" | null;
824
+ db_id: number;
825
+ fields: {
826
+ [x: string]: unknown;
827
+ id: number;
828
+ name: string;
829
+ display_name: string;
830
+ database_type: string;
831
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
832
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
833
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
834
+ fk_target_field_id: number | null;
835
+ fk_target_table_id: number | null;
836
+ }[];
837
+ }[];
838
+ edges: {
839
+ [x: string]: unknown;
840
+ source_table_id: number;
841
+ source_field_id: number;
842
+ target_table_id: number;
843
+ target_field_id: number;
844
+ relationship: "one-to-one" | "many-to-one";
845
+ }[];
846
+ }>;
847
+ };
848
+ field: {
849
+ get: (id: number, options?: RequestOptions) => Promise<FieldDetail>;
850
+ update: (id: number, params: FieldUpdateInput, options?: RequestOptions) => Promise<FieldDetail>;
851
+ setDataSensitivity: (id: number, params: FieldSetDataSensitivityParams, options?: RequestOptions | undefined) => Promise<{
852
+ [x: string]: unknown;
853
+ id: number;
854
+ table_id: number;
855
+ name: string;
856
+ display_name: string;
857
+ description: string | null;
858
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode";
859
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
860
+ coercion_strategy: "Coercion/String->Temporal" | "Coercion/ISO8601->Temporal" | "Coercion/ISO8601->DateTime" | "Coercion/ISO8601->Time" | "Coercion/ISO8601->Date" | "Coercion/YYYYMMDDHHMMSSString->Temporal" | "Coercion/Bytes->Temporal" | "Coercion/YYYYMMDDHHMMSSBytes->Temporal" | "Coercion/ISO8601Bytes->Temporal" | "Coercion/Number->Temporal" | "Coercion/UNIXTime->Temporal" | "Coercion/UNIXSeconds->DateTime" | "Coercion/UNIXMilliSeconds->DateTime" | "Coercion/UNIXMicroSeconds->DateTime" | "Coercion/UNIXNanoSeconds->DateTime" | "Coercion/Temporal->Temporal" | "Coercion/DateTime->Date" | "Coercion/String->Number" | "Coercion/String->Float" | "Coercion/String->Integer" | "Coercion/Float->Integer" | null;
861
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
862
+ fk_target_field_id: number | null;
863
+ database_is_pk: boolean | null;
864
+ parent_id: number | null;
865
+ nfc_path: string[] | null;
866
+ data_sensitivity: "SEC_KEY" | "SYS_TELEMETRY" | "PHI" | "BIO_GEN" | "PCI_FIN" | "SENS_PERS" | "PII" | "CORP_IP" | "BIZ_CONF" | "PUBLIC" | null;
867
+ database_type?: string | null | undefined;
868
+ has_field_values?: "list" | "search" | "none" | "auto-list" | null | undefined;
869
+ visibility_type?: "hidden" | "details-only" | "normal" | "retired" | "sensitive" | null | undefined;
870
+ active?: boolean | undefined;
871
+ position?: number | undefined;
872
+ }>;
873
+ search: (id: number, searchId: number, params: FieldSearchParams, options?: RequestOptions) => Promise<FieldSearchMatches>;
874
+ remapping: (id: number, remappedId: number, params: FieldRemappingParams, options?: RequestOptions) => Promise<FieldRemappedValue | null>;
875
+ summary: (id: number, options?: RequestOptions) => Promise<FieldSummary>;
876
+ values: (id: number, options?: RequestOptions) => Promise<FieldValues>;
877
+ };
878
+ gitSync: {
879
+ currentTask: (options?: RequestOptions | undefined) => Promise<{
880
+ [x: string]: unknown;
881
+ id: number;
882
+ sync_task_type: "import" | "export";
883
+ status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
884
+ progress: number | null;
885
+ started_at: string;
886
+ ended_at?: string | null | undefined;
887
+ last_progress_report_at?: string | null | undefined;
888
+ version?: string | null | undefined;
889
+ initiated_by?: number | null | undefined;
890
+ cancelled?: boolean | null | undefined;
891
+ error_message?: string | null | undefined;
892
+ conflicts?: string[] | null | undefined;
893
+ } | null>;
894
+ cancelTask: (options?: RequestOptions | undefined) => Promise<{
895
+ [x: string]: unknown;
896
+ id: number;
897
+ sync_task_type: "import" | "export";
898
+ status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
899
+ progress: number | null;
900
+ started_at: string;
901
+ ended_at?: string | null | undefined;
902
+ last_progress_report_at?: string | null | undefined;
903
+ version?: string | null | undefined;
904
+ initiated_by?: number | null | undefined;
905
+ cancelled?: boolean | null | undefined;
906
+ error_message?: string | null | undefined;
907
+ conflicts?: string[] | null | undefined;
908
+ }>;
909
+ isDirty: (options?: RequestOptions | undefined) => Promise<boolean>;
910
+ dirty: (options?: RequestOptions | undefined) => Promise<ListResult<{
911
+ [x: string]: unknown;
912
+ id: number;
913
+ name: string | null;
914
+ model: string;
915
+ sync_status: string;
916
+ collection_id?: number | null | undefined;
917
+ description?: string | null | undefined;
918
+ display?: string | null | undefined;
919
+ query_type?: string | null | undefined;
920
+ table_id?: number | null | undefined;
921
+ table_name?: string | null | undefined;
922
+ }>>;
923
+ hasRemoteChanges: (params?: SyncRemoteChangesParams | undefined, options?: RequestOptions | undefined) => Promise<{
924
+ has_changes: boolean;
925
+ remote_version: string | null;
926
+ local_version: string | null;
927
+ cached: boolean;
928
+ }>;
929
+ import: (params?: SyncImportParams | undefined, options?: RequestOptions | undefined) => Promise<{
930
+ message: string | null;
931
+ task_id: number | null;
932
+ final?: {
933
+ [x: string]: unknown;
934
+ id: number;
935
+ sync_task_type: "import" | "export";
936
+ status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
937
+ progress: number | null;
938
+ started_at: string;
939
+ ended_at?: string | null | undefined;
940
+ last_progress_report_at?: string | null | undefined;
941
+ version?: string | null | undefined;
942
+ initiated_by?: number | null | undefined;
943
+ cancelled?: boolean | null | undefined;
944
+ error_message?: string | null | undefined;
945
+ conflicts?: string[] | null | undefined;
946
+ } | null | undefined;
947
+ }>;
948
+ export: (params?: SyncExportParams | undefined, options?: RequestOptions | undefined) => Promise<{
949
+ message: string;
950
+ task_id: number;
951
+ branch: string | null;
952
+ final?: {
953
+ [x: string]: unknown;
954
+ id: number;
955
+ sync_task_type: "import" | "export";
956
+ status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
957
+ progress: number | null;
958
+ started_at: string;
959
+ ended_at?: string | null | undefined;
960
+ last_progress_report_at?: string | null | undefined;
961
+ version?: string | null | undefined;
962
+ initiated_by?: number | null | undefined;
963
+ cancelled?: boolean | null | undefined;
964
+ error_message?: string | null | undefined;
965
+ conflicts?: string[] | null | undefined;
966
+ } | null | undefined;
967
+ }>;
968
+ exportPreflight: (params: SyncExportPreflightParams, options?: RequestOptions | undefined) => Promise<{
969
+ [x: string]: unknown;
970
+ has_changes: boolean;
971
+ clean: boolean;
972
+ conflicts: string[];
973
+ summary: {
974
+ added: number;
975
+ updated: number;
976
+ removed: number;
977
+ };
978
+ force_push_casualties: {
979
+ deleted: string[];
980
+ overwritten: string[];
981
+ };
982
+ reason: "history-rewritten" | null;
983
+ }>;
984
+ stash: (params: SyncStashParams, options?: RequestOptions | undefined) => Promise<{
985
+ status: "success";
986
+ message: string;
987
+ task_id: number;
988
+ final?: {
989
+ [x: string]: unknown;
990
+ id: number;
991
+ sync_task_type: "import" | "export";
992
+ status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
993
+ progress: number | null;
994
+ started_at: string;
995
+ ended_at?: string | null | undefined;
996
+ last_progress_report_at?: string | null | undefined;
997
+ version?: string | null | undefined;
998
+ initiated_by?: number | null | undefined;
999
+ cancelled?: boolean | null | undefined;
1000
+ error_message?: string | null | undefined;
1001
+ conflicts?: string[] | null | undefined;
1002
+ } | null | undefined;
1003
+ }>;
1004
+ branches: (options?: RequestOptions | undefined) => Promise<ListResult<string>>;
1005
+ createBranch: (params: SyncCreateBranchParams, options?: RequestOptions | undefined) => Promise<{
1006
+ status: "success";
1007
+ message: string;
1008
+ }>;
1009
+ setCollectionSynced: (collectionId: number, synced: boolean, options?: RequestOptions | undefined) => Promise<{
1010
+ success: boolean;
1011
+ task_id?: number | undefined;
1012
+ }>;
1013
+ syncedCollections: (options?: RequestOptions | undefined) => Promise<ListResult<{
1014
+ id: string | number;
1015
+ name: string;
1016
+ is_remote_synced?: boolean | null | undefined;
1017
+ }>>;
1018
+ remoteUrl: (options?: RequestOptions) => Promise<string | null>;
1019
+ branch: (options?: RequestOptions) => Promise<string | null>;
1020
+ remote: (options?: RequestOptions) => Promise<{
1021
+ configured: boolean;
1022
+ sync_type: string;
1023
+ branch: string | null;
1024
+ }>;
1025
+ trackedBranch: (options?: RequestOptions) => Promise<string>;
1026
+ waitForTask: (wait: PollOptions, options?: RequestOptions | undefined) => Promise<{
1027
+ [x: string]: unknown;
1028
+ id: number;
1029
+ sync_task_type: "import" | "export";
1030
+ status: "running" | "successful" | "errored" | "cancelled" | "timed-out" | "conflict";
1031
+ progress: number | null;
1032
+ started_at: string;
1033
+ ended_at?: string | null | undefined;
1034
+ last_progress_report_at?: string | null | undefined;
1035
+ version?: string | null | undefined;
1036
+ initiated_by?: number | null | undefined;
1037
+ cancelled?: boolean | null | undefined;
1038
+ error_message?: string | null | undefined;
1039
+ conflicts?: string[] | null | undefined;
1040
+ } | null>;
1041
+ };
1042
+ glossary: {
1043
+ list: (params?: GlossaryListParams, options?: RequestOptions) => Promise<ListResult<Glossary>>;
1044
+ create: (params: GlossaryCreateInput, options?: RequestOptions) => Promise<Glossary>;
1045
+ update: (id: number, params: GlossaryUpdateInput, options?: RequestOptions) => Promise<Glossary>;
1046
+ delete: (id: number, options?: RequestOptions) => Promise<void>;
1047
+ };
1048
+ library: {
1049
+ get: (options?: RequestOptions | undefined) => Promise<{
1050
+ [x: string]: unknown;
1051
+ id: string | number;
1052
+ name: string;
1053
+ effective_children: {
1054
+ id: string | number;
1055
+ name: string;
1056
+ description: string | null;
1057
+ type: "library" | "instance-analytics" | "trash" | "library-data" | "library-metrics" | "library-dashboards" | "tenant-specific-root-collection" | null;
1058
+ is_remote_synced: boolean | null;
1059
+ }[];
1060
+ description?: string | null | undefined;
1061
+ archived?: boolean | undefined;
1062
+ location?: string | null | undefined;
1063
+ parent_id?: string | number | null | undefined;
1064
+ personal_owner_id?: number | null | undefined;
1065
+ is_personal?: boolean | undefined;
1066
+ authority_level?: "official" | null | undefined;
1067
+ type?: "library" | "instance-analytics" | "trash" | "library-data" | "library-metrics" | "library-dashboards" | "tenant-specific-root-collection" | null | undefined;
1068
+ namespace?: "data-apps" | "transforms" | "snippets" | "analytics" | "shared-tenant-collection" | "tenant-specific" | "data-actions" | null | undefined;
1069
+ entity_id?: string | null | undefined;
1070
+ slug?: string | undefined;
1071
+ can_write?: boolean | undefined;
1072
+ is_remote_synced?: boolean | null | undefined;
1073
+ } | null>;
1074
+ create: (options?: RequestOptions | undefined) => Promise<{
1075
+ [x: string]: unknown;
1076
+ id: string | number;
1077
+ name: string;
1078
+ effective_children: {
1079
+ id: string | number;
1080
+ name: string;
1081
+ description: string | null;
1082
+ type: "library" | "instance-analytics" | "trash" | "library-data" | "library-metrics" | "library-dashboards" | "tenant-specific-root-collection" | null;
1083
+ is_remote_synced: boolean | null;
1084
+ }[];
1085
+ description?: string | null | undefined;
1086
+ archived?: boolean | undefined;
1087
+ location?: string | null | undefined;
1088
+ parent_id?: string | number | null | undefined;
1089
+ personal_owner_id?: number | null | undefined;
1090
+ is_personal?: boolean | undefined;
1091
+ authority_level?: "official" | null | undefined;
1092
+ type?: "library" | "instance-analytics" | "trash" | "library-data" | "library-metrics" | "library-dashboards" | "tenant-specific-root-collection" | null | undefined;
1093
+ namespace?: "data-apps" | "transforms" | "snippets" | "analytics" | "shared-tenant-collection" | "tenant-specific" | "data-actions" | null | undefined;
1094
+ entity_id?: string | null | undefined;
1095
+ slug?: string | undefined;
1096
+ can_write?: boolean | undefined;
1097
+ is_remote_synced?: boolean | null | undefined;
1098
+ }>;
1099
+ ensureDataCollectionId: (options?: RequestOptions | undefined) => Promise<number>;
1100
+ publishTables: (params: {
1101
+ collection_id: number;
1102
+ database_ids?: number[] | undefined;
1103
+ schema_ids?: string[] | undefined;
1104
+ table_ids?: number[] | undefined;
1105
+ }, options?: RequestOptions | undefined) => Promise<{
1106
+ [x: string]: unknown;
1107
+ id: string | number;
1108
+ name: string;
1109
+ description?: string | null | undefined;
1110
+ archived?: boolean | undefined;
1111
+ location?: string | null | undefined;
1112
+ parent_id?: string | number | null | undefined;
1113
+ personal_owner_id?: number | null | undefined;
1114
+ is_personal?: boolean | undefined;
1115
+ authority_level?: "official" | null | undefined;
1116
+ type?: "library" | "instance-analytics" | "trash" | "library-data" | "library-metrics" | "library-dashboards" | "tenant-specific-root-collection" | null | undefined;
1117
+ namespace?: "data-apps" | "transforms" | "snippets" | "analytics" | "shared-tenant-collection" | "tenant-specific" | "data-actions" | null | undefined;
1118
+ entity_id?: string | null | undefined;
1119
+ slug?: string | undefined;
1120
+ can_write?: boolean | undefined;
1121
+ is_remote_synced?: boolean | null | undefined;
1122
+ } | null>;
1123
+ unpublishTables: (params: {
1124
+ database_ids?: number[] | undefined;
1125
+ schema_ids?: string[] | undefined;
1126
+ table_ids?: number[] | undefined;
1127
+ }, options?: RequestOptions | undefined) => Promise<void>;
1128
+ };
1129
+ measure: {
1130
+ list: (options?: RequestOptions | undefined) => Promise<ListResult<{
1131
+ [x: string]: unknown;
1132
+ id: number;
1133
+ name: string;
1134
+ description: string | null;
1135
+ archived: boolean;
1136
+ table_id: number;
1137
+ definition: unknown;
1138
+ creator_id: number;
1139
+ entity_id: string | null;
1140
+ created_at: string;
1141
+ updated_at: string;
1142
+ dimensions?: unknown[] | null | undefined;
1143
+ dimension_mappings?: unknown[] | null | undefined;
1144
+ definition_description?: string | null | undefined;
1145
+ result_column_name?: string | null | undefined;
1146
+ }>>;
1147
+ get: (id: number, options?: RequestOptions | undefined) => Promise<{
1148
+ [x: string]: unknown;
1149
+ id: number;
1150
+ name: string;
1151
+ description: string | null;
1152
+ archived: boolean;
1153
+ table_id: number;
1154
+ definition: unknown;
1155
+ creator_id: number;
1156
+ entity_id: string | null;
1157
+ created_at: string;
1158
+ updated_at: string;
1159
+ dimensions?: unknown[] | null | undefined;
1160
+ dimension_mappings?: unknown[] | null | undefined;
1161
+ definition_description?: string | null | undefined;
1162
+ result_column_name?: string | null | undefined;
1163
+ }>;
1164
+ create: (params: {
1165
+ [x: string]: unknown;
1166
+ name: string;
1167
+ table_id: number;
1168
+ definition: Record<string, unknown>;
1169
+ description?: string | null | undefined;
1170
+ }, options?: RequestOptions | undefined) => Promise<{
1171
+ [x: string]: unknown;
1172
+ id: number;
1173
+ name: string;
1174
+ description: string | null;
1175
+ archived: boolean;
1176
+ table_id: number;
1177
+ definition: unknown;
1178
+ creator_id: number;
1179
+ entity_id: string | null;
1180
+ created_at: string;
1181
+ updated_at: string;
1182
+ dimensions?: unknown[] | null | undefined;
1183
+ dimension_mappings?: unknown[] | null | undefined;
1184
+ definition_description?: string | null | undefined;
1185
+ result_column_name?: string | null | undefined;
1186
+ }>;
1187
+ update: (id: number, params: {
1188
+ [x: string]: unknown;
1189
+ revision_message: string;
1190
+ name?: string | null | undefined;
1191
+ definition?: Record<string, unknown> | null | undefined;
1192
+ archived?: boolean | null | undefined;
1193
+ description?: string | null | undefined;
1194
+ }, options?: RequestOptions | undefined) => Promise<{
1195
+ [x: string]: unknown;
1196
+ id: number;
1197
+ name: string;
1198
+ description: string | null;
1199
+ archived: boolean;
1200
+ table_id: number;
1201
+ definition: unknown;
1202
+ creator_id: number;
1203
+ entity_id: string | null;
1204
+ created_at: string;
1205
+ updated_at: string;
1206
+ dimensions?: unknown[] | null | undefined;
1207
+ dimension_mappings?: unknown[] | null | undefined;
1208
+ definition_description?: string | null | undefined;
1209
+ result_column_name?: string | null | undefined;
1210
+ }>;
1211
+ archive: (id: number, params: MeasureArchiveParams, options?: RequestOptions | undefined) => Promise<{
1212
+ [x: string]: unknown;
1213
+ id: number;
1214
+ name: string;
1215
+ description: string | null;
1216
+ archived: boolean;
1217
+ table_id: number;
1218
+ definition: unknown;
1219
+ creator_id: number;
1220
+ entity_id: string | null;
1221
+ created_at: string;
1222
+ updated_at: string;
1223
+ dimensions?: unknown[] | null | undefined;
1224
+ dimension_mappings?: unknown[] | null | undefined;
1225
+ definition_description?: string | null | undefined;
1226
+ result_column_name?: string | null | undefined;
1227
+ }>;
1228
+ };
1229
+ metric: {
1230
+ query: (definition: {
1231
+ expression: MetricMathExpression;
1232
+ filters?: {
1233
+ "lib/uuid": string;
1234
+ filter: MetricFilterClause;
1235
+ }[] | null | undefined;
1236
+ projections?: {
1237
+ type: "metric" | "measure";
1238
+ id: number;
1239
+ "lib/uuid": string;
1240
+ projection: ["dimension", {
1241
+ "lib/uuid"?: string | undefined;
1242
+ "display-name"?: string | null | undefined;
1243
+ "effective-type"?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
1244
+ "semantic-type"?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
1245
+ "temporal-unit"?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | null | undefined;
1246
+ binning?: {
1247
+ strategy: "default";
1248
+ } | {
1249
+ strategy: "bin-width";
1250
+ "bin-width": number;
1251
+ } | {
1252
+ strategy: "num-bins";
1253
+ "num-bins": number;
1254
+ } | null | undefined;
1255
+ }, string][];
1256
+ }[] | null | undefined;
1257
+ }, options?: RequestOptions | undefined) => Promise<{
1258
+ [x: string]: unknown;
1259
+ status: string;
1260
+ row_count?: number | undefined;
1261
+ data?: {
1262
+ [x: string]: unknown;
1263
+ rows: unknown[][];
1264
+ cols: {
1265
+ [x: string]: unknown;
1266
+ name: string;
1267
+ display_name?: string | null | undefined;
1268
+ base_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
1269
+ effective_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
1270
+ semantic_type?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
1271
+ database_type?: string | null | undefined;
1272
+ id?: number | null | undefined;
1273
+ }[];
1274
+ rows_truncated?: number | undefined;
1275
+ pivot_rows_truncated?: number | undefined;
1276
+ } | undefined;
1277
+ cached?: string | null | undefined;
1278
+ error?: string | null | undefined;
1279
+ error_type?: string | null | undefined;
1280
+ }>;
1281
+ breakoutValues: (definition: {
1282
+ expression: MetricMathExpression;
1283
+ filters?: {
1284
+ "lib/uuid": string;
1285
+ filter: MetricFilterClause;
1286
+ }[] | null | undefined;
1287
+ projections?: {
1288
+ type: "metric" | "measure";
1289
+ id: number;
1290
+ "lib/uuid": string;
1291
+ projection: ["dimension", {
1292
+ "lib/uuid"?: string | undefined;
1293
+ "display-name"?: string | null | undefined;
1294
+ "effective-type"?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
1295
+ "semantic-type"?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
1296
+ "temporal-unit"?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | null | undefined;
1297
+ binning?: {
1298
+ strategy: "default";
1299
+ } | {
1300
+ strategy: "bin-width";
1301
+ "bin-width": number;
1302
+ } | {
1303
+ strategy: "num-bins";
1304
+ "num-bins": number;
1305
+ } | null | undefined;
1306
+ }, string][];
1307
+ }[] | null | undefined;
1308
+ }, options?: RequestOptions | undefined) => Promise<{
1309
+ [x: string]: unknown;
1310
+ values: unknown[];
1311
+ col: {
1312
+ [x: string]: unknown;
1313
+ name?: string | undefined;
1314
+ display_name?: string | undefined;
1315
+ base_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
1316
+ effective_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
1317
+ semantic_type?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
1318
+ };
1319
+ }>;
1320
+ dimensions: (id: number, params?: MetricDimensionListParams | undefined, options?: RequestOptions | undefined) => Promise<{
1321
+ [x: string]: unknown;
1322
+ added: {
1323
+ [x: string]: unknown;
1324
+ id: string;
1325
+ name: string | null;
1326
+ display_name: string | null;
1327
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1328
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1329
+ description?: string | null | undefined;
1330
+ has_field_values?: "list" | "search" | "none" | undefined;
1331
+ status?: "status/active" | "status/orphaned" | undefined;
1332
+ status_message?: string | undefined;
1333
+ sources?: {
1334
+ [x: string]: unknown;
1335
+ type: "field";
1336
+ "field-id": number | null;
1337
+ }[] | undefined;
1338
+ group?: {
1339
+ [x: string]: unknown;
1340
+ id: string;
1341
+ type: "main" | "connection";
1342
+ display_name: string;
1343
+ } | undefined;
1344
+ dimension_interestingness?: number | undefined;
1345
+ default_temporal_unit?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | undefined;
1346
+ default?: boolean | null | undefined;
1347
+ }[];
1348
+ addable: {
1349
+ [x: string]: unknown;
1350
+ group: {
1351
+ [x: string]: unknown;
1352
+ id: string;
1353
+ type: "main" | "connection";
1354
+ display_name: string;
1355
+ } | null;
1356
+ dimensions: {
1357
+ [x: string]: unknown;
1358
+ id: string;
1359
+ name: string | null;
1360
+ display_name: string | null;
1361
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1362
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1363
+ mapping_target: [string, {
1364
+ [x: string]: unknown;
1365
+ }, ...unknown[]];
1366
+ description?: string | null | undefined;
1367
+ has_field_values?: "list" | "search" | "none" | undefined;
1368
+ status?: "status/active" | "status/orphaned" | undefined;
1369
+ status_message?: string | undefined;
1370
+ sources?: {
1371
+ [x: string]: unknown;
1372
+ type: "field";
1373
+ "field-id": number | null;
1374
+ }[] | undefined;
1375
+ group?: {
1376
+ [x: string]: unknown;
1377
+ id: string;
1378
+ type: "main" | "connection";
1379
+ display_name: string;
1380
+ } | undefined;
1381
+ dimension_interestingness?: number | undefined;
1382
+ default_temporal_unit?: "default" | "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | "second-of-minute" | "minute-of-hour" | "hour-of-day" | "day-of-week" | "day-of-month" | "day-of-year" | "week-of-year" | "month-of-year" | "quarter-of-year" | "year-of-era" | undefined;
1383
+ default?: boolean | null | undefined;
1384
+ }[];
1385
+ }[];
1386
+ }>;
1387
+ };
1388
+ moderationReview: {
1389
+ create: (params: {
1390
+ moderated_item_id: number;
1391
+ moderated_item_type: "card" | "dashboard";
1392
+ status?: "verified" | null | undefined;
1393
+ text?: string | null | undefined;
1394
+ }, options?: RequestOptions | undefined) => Promise<{
1395
+ [x: string]: unknown;
1396
+ id: number;
1397
+ moderated_item_id: number;
1398
+ moderated_item_type: "card" | "dashboard";
1399
+ moderator_id: number;
1400
+ status: "verified" | null;
1401
+ text: string | null;
1402
+ most_recent: boolean;
1403
+ created_at: string;
1404
+ updated_at: string;
1405
+ }>;
1406
+ };
1407
+ notification: {
1408
+ list: (params?: NotificationListParams, options?: RequestOptions) => Promise<ListResult<Notification>>;
1409
+ get: (id: number, options?: RequestOptions) => Promise<Notification>;
1410
+ create: (params: NotificationCreateInput, options?: RequestOptions) => Promise<Notification>;
1411
+ update: (id: number, params: NotificationUpdateInput, options?: RequestOptions) => Promise<Notification>;
1412
+ archive: (id: number, options?: RequestOptions) => Promise<Notification>;
1413
+ send: (id: number, options?: RequestOptions) => Promise<void>;
1414
+ };
1415
+ permission: {
1416
+ graph: (options?: RequestOptions) => Promise<PermissionsGraph>;
1417
+ databaseGraph: (id: number, options?: RequestOptions) => Promise<PermissionsGraph>;
1418
+ groupGraph: (id: number, options?: RequestOptions) => Promise<PermissionsGraph>;
1419
+ };
1420
+ pulse: {
1421
+ list: (params?: PulseListParams, options?: RequestOptions) => Promise<ListResult<Pulse>>;
1422
+ get: (id: number, options?: RequestOptions) => Promise<Pulse>;
1423
+ create: (params: PulseCreateInput, options?: RequestOptions) => Promise<Pulse>;
1424
+ update: (id: number, params: PulseUpdateInput, options?: RequestOptions) => Promise<Pulse>;
1425
+ archive: (id: number, options?: RequestOptions) => Promise<Pulse>;
1426
+ };
1427
+ replacement: {
1428
+ checkReplaceSource: (params: {
1429
+ source_entity_id: number;
1430
+ source_entity_type: "card" | "table";
1431
+ target_entity_id: number;
1432
+ target_entity_type: "card" | "table";
1433
+ }, options?: RequestOptions | undefined) => Promise<{
1434
+ success: boolean;
1435
+ errors?: ("cycle-detected" | "database-mismatch" | "incompatible-implicit-joins" | "affects-gtap-policies")[] | undefined;
1436
+ column_mappings?: ({
1437
+ source: {
1438
+ id: number | null;
1439
+ name: string;
1440
+ display_name: string;
1441
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1442
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1443
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1444
+ };
1445
+ target: {
1446
+ id: number | null;
1447
+ name: string;
1448
+ display_name: string;
1449
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1450
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1451
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1452
+ };
1453
+ errors?: ("column-type-mismatch" | "missing-primary-key" | "missing-foreign-key" | "foreign-key-mismatch")[] | undefined;
1454
+ } | {
1455
+ source: {
1456
+ id: number | null;
1457
+ name: string;
1458
+ display_name: string;
1459
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1460
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1461
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1462
+ };
1463
+ } | {
1464
+ target: {
1465
+ id: number | null;
1466
+ name: string;
1467
+ display_name: string;
1468
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1469
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1470
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1471
+ };
1472
+ })[] | undefined;
1473
+ }>;
1474
+ replaceSource: (params: {
1475
+ source_entity_id: number;
1476
+ source_entity_type: "card" | "table";
1477
+ target_entity_id: number;
1478
+ target_entity_type: "card" | "table";
1479
+ }, options?: RequestOptions | undefined) => Promise<{
1480
+ run_id: number;
1481
+ }>;
1482
+ replaceModelWithTransform: (params: {
1483
+ card_id: number;
1484
+ transform_name: string;
1485
+ transform_target: {
1486
+ [x: string]: unknown;
1487
+ type: "table";
1488
+ name: string;
1489
+ database?: number | undefined;
1490
+ schema?: string | null | undefined;
1491
+ } | {
1492
+ [x: string]: unknown;
1493
+ type: "table-incremental";
1494
+ name: string;
1495
+ "target-incremental-strategy": {
1496
+ [x: string]: unknown;
1497
+ type: "append";
1498
+ } | {
1499
+ [x: string]: unknown;
1500
+ type: "merge";
1501
+ "unique-key": {
1502
+ [x: string]: unknown;
1503
+ name?: string | undefined;
1504
+ "field-id"?: number | null | undefined;
1505
+ }[];
1506
+ };
1507
+ database?: number | undefined;
1508
+ schema?: string | null | undefined;
1509
+ };
1510
+ target_collection_id?: number | null | undefined;
1511
+ transform_tag_ids?: number[] | null | undefined;
1512
+ }, options?: RequestOptions | undefined) => Promise<{
1513
+ run_id: number;
1514
+ }>;
1515
+ listRuns: (params?: ReplacementRunListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
1516
+ [x: string]: unknown;
1517
+ id: number;
1518
+ status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
1519
+ is_active: true | null;
1520
+ source_entity_type: "transform" | "card" | "table";
1521
+ source_entity_id: number;
1522
+ target_entity_type: "transform" | "card" | "table";
1523
+ target_entity_id: number;
1524
+ progress: number | null;
1525
+ message: string | null;
1526
+ user_id: number | null;
1527
+ start_time: string;
1528
+ end_time: string | null;
1529
+ }>>;
1530
+ getRun: (id: number, options?: RequestOptions | undefined) => Promise<{
1531
+ [x: string]: unknown;
1532
+ id: number;
1533
+ status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
1534
+ is_active: true | null;
1535
+ source_entity_type: "transform" | "card" | "table";
1536
+ source_entity_id: number;
1537
+ target_entity_type: "transform" | "card" | "table";
1538
+ target_entity_id: number;
1539
+ progress: number | null;
1540
+ message: string | null;
1541
+ user_id: number | null;
1542
+ start_time: string;
1543
+ end_time: string | null;
1544
+ }>;
1545
+ cancelRun: (id: number, options?: RequestOptions | undefined) => Promise<void>;
1546
+ };
1547
+ revision: {
1548
+ list: (entity: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "transform-test", id: number, options?: RequestOptions | undefined) => Promise<ListResult<{
1549
+ [x: string]: unknown;
1550
+ id: number;
1551
+ timestamp: string;
1552
+ is_creation: boolean;
1553
+ is_reversion: boolean;
1554
+ most_recent: boolean;
1555
+ diff: {
1556
+ [x: string]: unknown;
1557
+ } | null;
1558
+ description: string;
1559
+ has_multiple_changes: boolean;
1560
+ user: {
1561
+ [x: string]: unknown;
1562
+ id: number;
1563
+ first_name: string | null;
1564
+ last_name: string | null;
1565
+ common_name: string;
1566
+ };
1567
+ }>>;
1568
+ revert: (params: {
1569
+ entity: "transform" | "card" | "dashboard" | "document" | "measure" | "segment" | "transform-test";
1570
+ id: number;
1571
+ revision_id: number;
1572
+ }, options?: RequestOptions | undefined) => Promise<{
1573
+ outcome: "reverted";
1574
+ revision: {
1575
+ [x: string]: unknown;
1576
+ id: number;
1577
+ timestamp: string;
1578
+ is_creation: boolean;
1579
+ is_reversion: boolean;
1580
+ most_recent: boolean;
1581
+ diff: {
1582
+ [x: string]: unknown;
1583
+ } | null;
1584
+ description: string;
1585
+ has_multiple_changes: boolean;
1586
+ user: {
1587
+ [x: string]: unknown;
1588
+ id: number;
1589
+ first_name: string | null;
1590
+ last_name: string | null;
1591
+ common_name: string;
1592
+ };
1593
+ };
1594
+ } | {
1595
+ outcome: "unchanged";
1596
+ revision: {
1597
+ [x: string]: unknown;
1598
+ id: number;
1599
+ model: string;
1600
+ model_id: number;
1601
+ user_id: number;
1602
+ object: {
1603
+ [x: string]: unknown;
1604
+ };
1605
+ timestamp: string;
1606
+ is_creation: boolean;
1607
+ is_reversion: boolean;
1608
+ most_recent: boolean;
1609
+ };
1610
+ }>;
1611
+ };
1612
+ search: {
1613
+ query: (params?: SearchParams | undefined, options?: RequestOptions | undefined) => Promise<SearchPage>;
1614
+ };
1615
+ segment: {
1616
+ list: (options?: RequestOptions) => Promise<ListResult<Segment>>;
1617
+ get: (id: number, options?: RequestOptions) => Promise<Segment>;
1618
+ create: (params: SegmentCreateInput, options?: RequestOptions) => Promise<Segment>;
1619
+ update: (id: number, params: SegmentUpdateInput, options?: RequestOptions) => Promise<Segment>;
1620
+ archive: (id: number, params: SegmentArchiveParams, options?: RequestOptions) => Promise<Segment>;
1621
+ };
1622
+ setting: {
1623
+ list: (options?: RequestOptions) => Promise<ListResult<Setting>>;
1624
+ get: (key: string, options?: RequestOptions) => Promise<unknown>;
1625
+ set: (key: string, value: unknown, options?: RequestOptions) => Promise<void>;
1626
+ };
1627
+ setup: {
1628
+ create: (params: SetupInput, options?: RequestOptions) => Promise<SetupResult>;
1629
+ };
1630
+ snippet: {
1631
+ list: (params?: SnippetListParams, options?: RequestOptions) => Promise<ListResult<Snippet>>;
1632
+ get: (id: number, options?: RequestOptions) => Promise<Snippet>;
1633
+ create: (params: SnippetCreateInput, options?: RequestOptions) => Promise<Snippet>;
1634
+ update: (id: number, params: SnippetUpdateInput, options?: RequestOptions) => Promise<Snippet>;
1635
+ archive: (id: number, options?: RequestOptions) => Promise<Snippet>;
1636
+ };
1637
+ table: {
1638
+ list: (params?: TableListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
1639
+ [x: string]: unknown;
1640
+ id: number;
1641
+ name: string;
1642
+ display_name: string;
1643
+ description: string | null;
1644
+ caveats: string | null;
1645
+ db_id: number;
1646
+ schema: string | null;
1647
+ entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
1648
+ data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
1649
+ estimated_row_count: number | null;
1650
+ active: boolean;
1651
+ visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
1652
+ is_published?: boolean | undefined;
1653
+ collection_id?: number | null | undefined;
1654
+ fields?: {
1655
+ [x: string]: unknown;
1656
+ id: number;
1657
+ table_id: number;
1658
+ name: string;
1659
+ display_name: string;
1660
+ description: string | null;
1661
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode";
1662
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1663
+ coercion_strategy: "Coercion/String->Temporal" | "Coercion/ISO8601->Temporal" | "Coercion/ISO8601->DateTime" | "Coercion/ISO8601->Time" | "Coercion/ISO8601->Date" | "Coercion/YYYYMMDDHHMMSSString->Temporal" | "Coercion/Bytes->Temporal" | "Coercion/YYYYMMDDHHMMSSBytes->Temporal" | "Coercion/ISO8601Bytes->Temporal" | "Coercion/Number->Temporal" | "Coercion/UNIXTime->Temporal" | "Coercion/UNIXSeconds->DateTime" | "Coercion/UNIXMilliSeconds->DateTime" | "Coercion/UNIXMicroSeconds->DateTime" | "Coercion/UNIXNanoSeconds->DateTime" | "Coercion/Temporal->Temporal" | "Coercion/DateTime->Date" | "Coercion/String->Number" | "Coercion/String->Float" | "Coercion/String->Integer" | "Coercion/Float->Integer" | null;
1664
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1665
+ fk_target_field_id: number | null;
1666
+ database_is_pk: boolean | null;
1667
+ parent_id: number | null;
1668
+ nfc_path: string[] | null;
1669
+ database_type?: string | null | undefined;
1670
+ has_field_values?: "list" | "search" | "none" | "auto-list" | null | undefined;
1671
+ visibility_type?: "hidden" | "details-only" | "normal" | "retired" | "sensitive" | null | undefined;
1672
+ active?: boolean | undefined;
1673
+ position?: number | undefined;
1674
+ }[] | undefined;
1675
+ }>>;
1676
+ get: (id: number, options?: RequestOptions) => Promise<Table>;
1677
+ update: (id: number, params: {
1678
+ [x: string]: unknown;
1679
+ display_name?: string | undefined;
1680
+ entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | undefined;
1681
+ visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
1682
+ description?: string | null | undefined;
1683
+ caveats?: string | null | undefined;
1684
+ points_of_interest?: string | null | undefined;
1685
+ show_in_getting_started?: boolean | undefined;
1686
+ field_order?: "custom" | "database" | "alphabetical" | "smart" | undefined;
1687
+ data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
1688
+ data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1689
+ data_layer?: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
1690
+ owner_email?: string | null | undefined;
1691
+ owner_user_id?: number | null | undefined;
1692
+ collection_id?: number | undefined;
1693
+ }, options?: RequestOptions | undefined) => Promise<{
1694
+ [x: string]: unknown;
1695
+ id: number;
1696
+ name: string;
1697
+ display_name: string;
1698
+ description: string | null;
1699
+ caveats: string | null;
1700
+ db_id: number;
1701
+ schema: string | null;
1702
+ entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
1703
+ data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
1704
+ estimated_row_count: number | null;
1705
+ active: boolean;
1706
+ visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
1707
+ is_published?: boolean | undefined;
1708
+ collection_id?: number | null | undefined;
1709
+ fields?: {
1710
+ [x: string]: unknown;
1711
+ id: number;
1712
+ table_id: number;
1713
+ name: string;
1714
+ display_name: string;
1715
+ description: string | null;
1716
+ base_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode";
1717
+ effective_type: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null;
1718
+ coercion_strategy: "Coercion/String->Temporal" | "Coercion/ISO8601->Temporal" | "Coercion/ISO8601->DateTime" | "Coercion/ISO8601->Time" | "Coercion/ISO8601->Date" | "Coercion/YYYYMMDDHHMMSSString->Temporal" | "Coercion/Bytes->Temporal" | "Coercion/YYYYMMDDHHMMSSBytes->Temporal" | "Coercion/ISO8601Bytes->Temporal" | "Coercion/Number->Temporal" | "Coercion/UNIXTime->Temporal" | "Coercion/UNIXSeconds->DateTime" | "Coercion/UNIXMilliSeconds->DateTime" | "Coercion/UNIXMicroSeconds->DateTime" | "Coercion/UNIXNanoSeconds->DateTime" | "Coercion/Temporal->Temporal" | "Coercion/DateTime->Date" | "Coercion/String->Number" | "Coercion/String->Float" | "Coercion/String->Integer" | "Coercion/Float->Integer" | null;
1719
+ semantic_type: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null;
1720
+ fk_target_field_id: number | null;
1721
+ database_is_pk: boolean | null;
1722
+ parent_id: number | null;
1723
+ nfc_path: string[] | null;
1724
+ database_type?: string | null | undefined;
1725
+ has_field_values?: "list" | "search" | "none" | "auto-list" | null | undefined;
1726
+ visibility_type?: "hidden" | "details-only" | "normal" | "retired" | "sensitive" | null | undefined;
1727
+ active?: boolean | undefined;
1728
+ position?: number | undefined;
1729
+ }[] | undefined;
1730
+ }>;
1731
+ queryMetadata: (id: number, options?: RequestOptions) => Promise<TableQueryMetadata>;
1732
+ fks: (id: number, options?: RequestOptions) => Promise<ListResult<TableForeignKey>>;
1733
+ syncSchema: (id: number, options?: RequestOptions) => Promise<TableSchemaSyncResult>;
1734
+ rescanValues: (id: number, options?: RequestOptions) => Promise<TableFieldValuesResult>;
1735
+ discardValues: (id: number, options?: RequestOptions) => Promise<TableFieldValuesResult>;
1736
+ bulkEdit: (params: {
1737
+ database_ids?: number[] | undefined;
1738
+ schema_ids?: string[] | undefined;
1739
+ table_ids?: number[] | undefined;
1740
+ data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
1741
+ data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1742
+ data_layer?: "internal" | "hidden" | "final" | null | undefined;
1743
+ entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
1744
+ owner_email?: string | null | undefined;
1745
+ owner_user_id?: number | null | undefined;
1746
+ }, options?: RequestOptions | undefined) => Promise<{
1747
+ accepted: true;
1748
+ database_ids?: number[] | undefined;
1749
+ schema_ids?: string[] | undefined;
1750
+ table_ids?: number[] | undefined;
1751
+ data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
1752
+ data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1753
+ data_layer?: "internal" | "hidden" | "final" | null | undefined;
1754
+ entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
1755
+ owner_email?: string | null | undefined;
1756
+ owner_user_id?: number | null | undefined;
1757
+ }>;
1758
+ bulkSyncSchema: (selectors: {
1759
+ database_ids?: number[] | undefined;
1760
+ schema_ids?: string[] | undefined;
1761
+ table_ids?: number[] | undefined;
1762
+ }, options?: RequestOptions | undefined) => Promise<{
1763
+ accepted: true;
1764
+ database_ids?: number[] | undefined;
1765
+ schema_ids?: string[] | undefined;
1766
+ table_ids?: number[] | undefined;
1767
+ }>;
1768
+ bulkRescanValues: (selectors: {
1769
+ database_ids?: number[] | undefined;
1770
+ schema_ids?: string[] | undefined;
1771
+ table_ids?: number[] | undefined;
1772
+ }, options?: RequestOptions | undefined) => Promise<{
1773
+ accepted: true;
1774
+ database_ids?: number[] | undefined;
1775
+ schema_ids?: string[] | undefined;
1776
+ table_ids?: number[] | undefined;
1777
+ }>;
1778
+ bulkDiscardValues: (selectors: {
1779
+ database_ids?: number[] | undefined;
1780
+ schema_ids?: string[] | undefined;
1781
+ table_ids?: number[] | undefined;
1782
+ }, options?: RequestOptions | undefined) => Promise<{
1783
+ accepted: true;
1784
+ database_ids?: number[] | undefined;
1785
+ schema_ids?: string[] | undefined;
1786
+ table_ids?: number[] | undefined;
1787
+ }>;
1788
+ appendCsv: (id: number, file: CsvFile, options?: RequestOptions) => Promise<UploadUpdateResult>;
1789
+ replaceCsv: (id: number, file: CsvFile, options?: RequestOptions) => Promise<UploadUpdateResult>;
1790
+ };
1791
+ timeline: {
1792
+ list: (params?: TimelineListParams, options?: RequestOptions) => Promise<ListResult<Timeline>>;
1793
+ get: (id: number, options?: RequestOptions) => Promise<Timeline>;
1794
+ events: (id: number, params?: TimelineEventsParams, options?: RequestOptions) => Promise<ListResult<TimelineEvent>>;
1795
+ create: (params: TimelineCreateInput, options?: RequestOptions) => Promise<Timeline>;
1796
+ update: (id: number, params: TimelineUpdateInput, options?: RequestOptions) => Promise<Timeline>;
1797
+ archive: (id: number, options?: RequestOptions) => Promise<Timeline>;
1798
+ delete: (id: number, options?: RequestOptions) => Promise<void>;
1799
+ };
1800
+ timelineEvent: {
1801
+ get: (id: number, options?: RequestOptions) => Promise<TimelineEvent>;
1802
+ create: (params: TimelineEventCreateInput, options?: RequestOptions) => Promise<TimelineEvent>;
1803
+ update: (id: number, params: TimelineEventUpdateInput, options?: RequestOptions) => Promise<TimelineEvent>;
1804
+ archive: (id: number, options?: RequestOptions) => Promise<TimelineEvent>;
1805
+ delete: (id: number, options?: RequestOptions) => Promise<void>;
1806
+ };
1807
+ transform: {
1808
+ list: (options?: RequestOptions | undefined) => Promise<ListResult<{
1809
+ [x: string]: unknown;
1810
+ id: number;
1811
+ name: string;
1812
+ description: string | null;
1813
+ source: {
1814
+ [x: string]: unknown;
1815
+ type: "query";
1816
+ query: unknown;
1817
+ "source-incremental-strategy"?: {
1818
+ [x: string]: unknown;
1819
+ type: "checkpoint";
1820
+ "checkpoint-filter-field-id"?: number | undefined;
1821
+ } | undefined;
1822
+ } | {
1823
+ [x: string]: unknown;
1824
+ type: "python";
1825
+ body: string;
1826
+ "source-tables": {
1827
+ [x: string]: unknown;
1828
+ alias: string;
1829
+ table_id?: number | null | undefined;
1830
+ database_id?: number | null | undefined;
1831
+ schema?: string | null | undefined;
1832
+ table?: string | null | undefined;
1833
+ }[];
1834
+ "source-database"?: number | undefined;
1835
+ "source-incremental-strategy"?: {
1836
+ [x: string]: unknown;
1837
+ type: "checkpoint";
1838
+ "checkpoint-filter-field-id"?: number | undefined;
1839
+ } | undefined;
1840
+ };
1841
+ target: {
1842
+ [x: string]: unknown;
1843
+ type: "table";
1844
+ name: string;
1845
+ database?: number | undefined;
1846
+ schema?: string | null | undefined;
1847
+ } | {
1848
+ [x: string]: unknown;
1849
+ type: "table-incremental";
1850
+ name: string;
1851
+ "target-incremental-strategy": {
1852
+ [x: string]: unknown;
1853
+ type: "append";
1854
+ } | {
1855
+ [x: string]: unknown;
1856
+ type: "merge";
1857
+ "unique-key": {
1858
+ [x: string]: unknown;
1859
+ name?: string | undefined;
1860
+ "field-id"?: number | null | undefined;
1861
+ }[];
1862
+ };
1863
+ database?: number | undefined;
1864
+ schema?: string | null | undefined;
1865
+ };
1866
+ source_type: "native" | "python" | "mbql";
1867
+ entity_id: string | null;
1868
+ created_at: string;
1869
+ updated_at: string;
1870
+ creator_id: number;
1871
+ collection_id: number | null;
1872
+ target_table_id: number | null;
1873
+ source_database_id?: number | null | undefined;
1874
+ target_db_id?: number | null | undefined;
1875
+ run_trigger?: "none" | "global-schedule" | null | undefined;
1876
+ last_run?: {
1877
+ [x: string]: unknown;
1878
+ id: number;
1879
+ transform_id: number;
1880
+ run_method: "manual" | "cron";
1881
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
1882
+ start_time: string;
1883
+ message: string | null;
1884
+ user_id: number | null;
1885
+ end_time?: string | null | undefined;
1886
+ } | null | undefined;
1887
+ tag_ids?: number[] | undefined;
1888
+ }>>;
1889
+ get: (id: number, options?: RequestOptions | undefined) => Promise<{
1890
+ [x: string]: unknown;
1891
+ id: number;
1892
+ name: string;
1893
+ description: string | null;
1894
+ source: {
1895
+ [x: string]: unknown;
1896
+ type: "query";
1897
+ query: unknown;
1898
+ "source-incremental-strategy"?: {
1899
+ [x: string]: unknown;
1900
+ type: "checkpoint";
1901
+ "checkpoint-filter-field-id"?: number | undefined;
1902
+ } | undefined;
1903
+ } | {
1904
+ [x: string]: unknown;
1905
+ type: "python";
1906
+ body: string;
1907
+ "source-tables": {
1908
+ [x: string]: unknown;
1909
+ alias: string;
1910
+ table_id?: number | null | undefined;
1911
+ database_id?: number | null | undefined;
1912
+ schema?: string | null | undefined;
1913
+ table?: string | null | undefined;
1914
+ }[];
1915
+ "source-database"?: number | undefined;
1916
+ "source-incremental-strategy"?: {
1917
+ [x: string]: unknown;
1918
+ type: "checkpoint";
1919
+ "checkpoint-filter-field-id"?: number | undefined;
1920
+ } | undefined;
1921
+ };
1922
+ target: {
1923
+ [x: string]: unknown;
1924
+ type: "table";
1925
+ name: string;
1926
+ database?: number | undefined;
1927
+ schema?: string | null | undefined;
1928
+ } | {
1929
+ [x: string]: unknown;
1930
+ type: "table-incremental";
1931
+ name: string;
1932
+ "target-incremental-strategy": {
1933
+ [x: string]: unknown;
1934
+ type: "append";
1935
+ } | {
1936
+ [x: string]: unknown;
1937
+ type: "merge";
1938
+ "unique-key": {
1939
+ [x: string]: unknown;
1940
+ name?: string | undefined;
1941
+ "field-id"?: number | null | undefined;
1942
+ }[];
1943
+ };
1944
+ database?: number | undefined;
1945
+ schema?: string | null | undefined;
1946
+ };
1947
+ source_type: "native" | "python" | "mbql";
1948
+ entity_id: string | null;
1949
+ created_at: string;
1950
+ updated_at: string;
1951
+ creator_id: number;
1952
+ collection_id: number | null;
1953
+ target_table_id: number | null;
1954
+ source_database_id?: number | null | undefined;
1955
+ target_db_id?: number | null | undefined;
1956
+ run_trigger?: "none" | "global-schedule" | null | undefined;
1957
+ last_run?: {
1958
+ [x: string]: unknown;
1959
+ id: number;
1960
+ transform_id: number;
1961
+ run_method: "manual" | "cron";
1962
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
1963
+ start_time: string;
1964
+ message: string | null;
1965
+ user_id: number | null;
1966
+ end_time?: string | null | undefined;
1967
+ } | null | undefined;
1968
+ tag_ids?: number[] | undefined;
1969
+ }>;
1970
+ create: (params: {
1971
+ [x: string]: unknown;
1972
+ name: string;
1973
+ source: {
1974
+ [x: string]: unknown;
1975
+ type: "query";
1976
+ query: unknown;
1977
+ "source-incremental-strategy"?: {
1978
+ [x: string]: unknown;
1979
+ type: "checkpoint";
1980
+ "checkpoint-filter-field-id"?: number | undefined;
1981
+ } | undefined;
1982
+ } | {
1983
+ [x: string]: unknown;
1984
+ type: "python";
1985
+ body: string;
1986
+ "source-tables": ({
1987
+ [x: string]: unknown;
1988
+ alias: string;
1989
+ database_id: number;
1990
+ schema?: string | null | undefined;
1991
+ table?: string | undefined;
1992
+ table_id?: number | null | undefined;
1993
+ } | {
1994
+ [x: string]: unknown;
1995
+ alias: string;
1996
+ table_id: number;
1997
+ database_id?: null | undefined;
1998
+ schema?: null | undefined;
1999
+ table?: null | undefined;
2000
+ })[];
2001
+ "source-database"?: number | undefined;
2002
+ "source-incremental-strategy"?: {
2003
+ [x: string]: unknown;
2004
+ type: "checkpoint";
2005
+ "checkpoint-filter-field-id"?: number | undefined;
2006
+ } | undefined;
2007
+ };
2008
+ target: {
2009
+ [x: string]: unknown;
2010
+ type: "table";
2011
+ name: string;
2012
+ database?: number | undefined;
2013
+ schema?: string | null | undefined;
2014
+ } | {
2015
+ [x: string]: unknown;
2016
+ type: "table-incremental";
2017
+ name: string;
2018
+ "target-incremental-strategy": {
2019
+ [x: string]: unknown;
2020
+ type: "append";
2021
+ } | {
2022
+ [x: string]: unknown;
2023
+ type: "merge";
2024
+ "unique-key": {
2025
+ [x: string]: unknown;
2026
+ name?: string | undefined;
2027
+ "field-id"?: number | null | undefined;
2028
+ }[];
2029
+ };
2030
+ database?: number | undefined;
2031
+ schema?: string | null | undefined;
2032
+ };
2033
+ description?: string | null | undefined;
2034
+ run_trigger?: "none" | "global-schedule" | undefined;
2035
+ tag_ids?: number[] | undefined;
2036
+ collection_id?: number | null | undefined;
2037
+ owner_user_id?: number | null | undefined;
2038
+ owner_email?: string | null | undefined;
2039
+ }, options?: RequestOptions | undefined) => Promise<{
2040
+ [x: string]: unknown;
2041
+ id: number;
2042
+ name: string;
2043
+ description: string | null;
2044
+ source: {
2045
+ [x: string]: unknown;
2046
+ type: "query";
2047
+ query: unknown;
2048
+ "source-incremental-strategy"?: {
2049
+ [x: string]: unknown;
2050
+ type: "checkpoint";
2051
+ "checkpoint-filter-field-id"?: number | undefined;
2052
+ } | undefined;
2053
+ } | {
2054
+ [x: string]: unknown;
2055
+ type: "python";
2056
+ body: string;
2057
+ "source-tables": {
2058
+ [x: string]: unknown;
2059
+ alias: string;
2060
+ table_id?: number | null | undefined;
2061
+ database_id?: number | null | undefined;
2062
+ schema?: string | null | undefined;
2063
+ table?: string | null | undefined;
2064
+ }[];
2065
+ "source-database"?: number | undefined;
2066
+ "source-incremental-strategy"?: {
2067
+ [x: string]: unknown;
2068
+ type: "checkpoint";
2069
+ "checkpoint-filter-field-id"?: number | undefined;
2070
+ } | undefined;
2071
+ };
2072
+ target: {
2073
+ [x: string]: unknown;
2074
+ type: "table";
2075
+ name: string;
2076
+ database?: number | undefined;
2077
+ schema?: string | null | undefined;
2078
+ } | {
2079
+ [x: string]: unknown;
2080
+ type: "table-incremental";
2081
+ name: string;
2082
+ "target-incremental-strategy": {
2083
+ [x: string]: unknown;
2084
+ type: "append";
2085
+ } | {
2086
+ [x: string]: unknown;
2087
+ type: "merge";
2088
+ "unique-key": {
2089
+ [x: string]: unknown;
2090
+ name?: string | undefined;
2091
+ "field-id"?: number | null | undefined;
2092
+ }[];
2093
+ };
2094
+ database?: number | undefined;
2095
+ schema?: string | null | undefined;
2096
+ };
2097
+ source_type: "native" | "python" | "mbql";
2098
+ entity_id: string | null;
2099
+ created_at: string;
2100
+ updated_at: string;
2101
+ creator_id: number;
2102
+ collection_id: number | null;
2103
+ target_table_id: number | null;
2104
+ source_database_id?: number | null | undefined;
2105
+ target_db_id?: number | null | undefined;
2106
+ run_trigger?: "none" | "global-schedule" | null | undefined;
2107
+ last_run?: {
2108
+ [x: string]: unknown;
2109
+ id: number;
2110
+ transform_id: number;
2111
+ run_method: "manual" | "cron";
2112
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2113
+ start_time: string;
2114
+ message: string | null;
2115
+ user_id: number | null;
2116
+ end_time?: string | null | undefined;
2117
+ } | null | undefined;
2118
+ tag_ids?: number[] | undefined;
2119
+ }>;
2120
+ update: (id: number, params: {
2121
+ [x: string]: unknown;
2122
+ name?: string | undefined;
2123
+ description?: string | null | undefined;
2124
+ source?: {
2125
+ [x: string]: unknown;
2126
+ type: "query";
2127
+ query: unknown;
2128
+ "source-incremental-strategy"?: {
2129
+ [x: string]: unknown;
2130
+ type: "checkpoint";
2131
+ "checkpoint-filter-field-id"?: number | undefined;
2132
+ } | undefined;
2133
+ } | {
2134
+ [x: string]: unknown;
2135
+ type: "python";
2136
+ body: string;
2137
+ "source-tables": ({
2138
+ [x: string]: unknown;
2139
+ alias: string;
2140
+ database_id: number;
2141
+ schema?: string | null | undefined;
2142
+ table?: string | undefined;
2143
+ table_id?: number | null | undefined;
2144
+ } | {
2145
+ [x: string]: unknown;
2146
+ alias: string;
2147
+ table_id: number;
2148
+ database_id?: null | undefined;
2149
+ schema?: null | undefined;
2150
+ table?: null | undefined;
2151
+ })[];
2152
+ "source-database"?: number | undefined;
2153
+ "source-incremental-strategy"?: {
2154
+ [x: string]: unknown;
2155
+ type: "checkpoint";
2156
+ "checkpoint-filter-field-id"?: number | undefined;
2157
+ } | undefined;
2158
+ } | undefined;
2159
+ target?: {
2160
+ [x: string]: unknown;
2161
+ type: "table";
2162
+ name: string;
2163
+ database?: number | undefined;
2164
+ schema?: string | null | undefined;
2165
+ } | {
2166
+ [x: string]: unknown;
2167
+ type: "table-incremental";
2168
+ name: string;
2169
+ "target-incremental-strategy": {
2170
+ [x: string]: unknown;
2171
+ type: "append";
2172
+ } | {
2173
+ [x: string]: unknown;
2174
+ type: "merge";
2175
+ "unique-key": {
2176
+ [x: string]: unknown;
2177
+ name?: string | undefined;
2178
+ "field-id"?: number | null | undefined;
2179
+ }[];
2180
+ };
2181
+ database?: number | undefined;
2182
+ schema?: string | null | undefined;
2183
+ } | undefined;
2184
+ run_trigger?: "none" | "global-schedule" | undefined;
2185
+ tag_ids?: number[] | undefined;
2186
+ collection_id?: number | null | undefined;
2187
+ owner_user_id?: number | null | undefined;
2188
+ owner_email?: string | null | undefined;
2189
+ }, options?: RequestOptions | undefined) => Promise<{
2190
+ [x: string]: unknown;
2191
+ id: number;
2192
+ name: string;
2193
+ description: string | null;
2194
+ source: {
2195
+ [x: string]: unknown;
2196
+ type: "query";
2197
+ query: unknown;
2198
+ "source-incremental-strategy"?: {
2199
+ [x: string]: unknown;
2200
+ type: "checkpoint";
2201
+ "checkpoint-filter-field-id"?: number | undefined;
2202
+ } | undefined;
2203
+ } | {
2204
+ [x: string]: unknown;
2205
+ type: "python";
2206
+ body: string;
2207
+ "source-tables": {
2208
+ [x: string]: unknown;
2209
+ alias: string;
2210
+ table_id?: number | null | undefined;
2211
+ database_id?: number | null | undefined;
2212
+ schema?: string | null | undefined;
2213
+ table?: string | null | undefined;
2214
+ }[];
2215
+ "source-database"?: number | undefined;
2216
+ "source-incremental-strategy"?: {
2217
+ [x: string]: unknown;
2218
+ type: "checkpoint";
2219
+ "checkpoint-filter-field-id"?: number | undefined;
2220
+ } | undefined;
2221
+ };
2222
+ target: {
2223
+ [x: string]: unknown;
2224
+ type: "table";
2225
+ name: string;
2226
+ database?: number | undefined;
2227
+ schema?: string | null | undefined;
2228
+ } | {
2229
+ [x: string]: unknown;
2230
+ type: "table-incremental";
2231
+ name: string;
2232
+ "target-incremental-strategy": {
2233
+ [x: string]: unknown;
2234
+ type: "append";
2235
+ } | {
2236
+ [x: string]: unknown;
2237
+ type: "merge";
2238
+ "unique-key": {
2239
+ [x: string]: unknown;
2240
+ name?: string | undefined;
2241
+ "field-id"?: number | null | undefined;
2242
+ }[];
2243
+ };
2244
+ database?: number | undefined;
2245
+ schema?: string | null | undefined;
2246
+ };
2247
+ source_type: "native" | "python" | "mbql";
2248
+ entity_id: string | null;
2249
+ created_at: string;
2250
+ updated_at: string;
2251
+ creator_id: number;
2252
+ collection_id: number | null;
2253
+ target_table_id: number | null;
2254
+ source_database_id?: number | null | undefined;
2255
+ target_db_id?: number | null | undefined;
2256
+ run_trigger?: "none" | "global-schedule" | null | undefined;
2257
+ last_run?: {
2258
+ [x: string]: unknown;
2259
+ id: number;
2260
+ transform_id: number;
2261
+ run_method: "manual" | "cron";
2262
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2263
+ start_time: string;
2264
+ message: string | null;
2265
+ user_id: number | null;
2266
+ end_time?: string | null | undefined;
2267
+ } | null | undefined;
2268
+ tag_ids?: number[] | undefined;
2269
+ }>;
2270
+ delete: (id: number, options?: RequestOptions | undefined) => Promise<void>;
2271
+ deleteTable: (id: number, options?: RequestOptions | undefined) => Promise<void>;
2272
+ dependencies: (id: number, options?: RequestOptions | undefined) => Promise<ListResult<{
2273
+ [x: string]: unknown;
2274
+ id: number;
2275
+ name: string;
2276
+ description: string | null;
2277
+ source: {
2278
+ [x: string]: unknown;
2279
+ type: "query";
2280
+ query: unknown;
2281
+ "source-incremental-strategy"?: {
2282
+ [x: string]: unknown;
2283
+ type: "checkpoint";
2284
+ "checkpoint-filter-field-id"?: number | undefined;
2285
+ } | undefined;
2286
+ } | {
2287
+ [x: string]: unknown;
2288
+ type: "python";
2289
+ body: string;
2290
+ "source-tables": {
2291
+ [x: string]: unknown;
2292
+ alias: string;
2293
+ table_id?: number | null | undefined;
2294
+ database_id?: number | null | undefined;
2295
+ schema?: string | null | undefined;
2296
+ table?: string | null | undefined;
2297
+ }[];
2298
+ "source-database"?: number | undefined;
2299
+ "source-incremental-strategy"?: {
2300
+ [x: string]: unknown;
2301
+ type: "checkpoint";
2302
+ "checkpoint-filter-field-id"?: number | undefined;
2303
+ } | undefined;
2304
+ };
2305
+ target: {
2306
+ [x: string]: unknown;
2307
+ type: "table";
2308
+ name: string;
2309
+ database?: number | undefined;
2310
+ schema?: string | null | undefined;
2311
+ } | {
2312
+ [x: string]: unknown;
2313
+ type: "table-incremental";
2314
+ name: string;
2315
+ "target-incremental-strategy": {
2316
+ [x: string]: unknown;
2317
+ type: "append";
2318
+ } | {
2319
+ [x: string]: unknown;
2320
+ type: "merge";
2321
+ "unique-key": {
2322
+ [x: string]: unknown;
2323
+ name?: string | undefined;
2324
+ "field-id"?: number | null | undefined;
2325
+ }[];
2326
+ };
2327
+ database?: number | undefined;
2328
+ schema?: string | null | undefined;
2329
+ };
2330
+ source_type: "native" | "python" | "mbql";
2331
+ entity_id: string | null;
2332
+ created_at: string;
2333
+ updated_at: string;
2334
+ creator_id: number;
2335
+ collection_id: number | null;
2336
+ target_table_id: number | null;
2337
+ source_database_id?: number | null | undefined;
2338
+ target_db_id?: number | null | undefined;
2339
+ run_trigger?: "none" | "global-schedule" | null | undefined;
2340
+ last_run?: {
2341
+ [x: string]: unknown;
2342
+ id: number;
2343
+ transform_id: number;
2344
+ run_method: "manual" | "cron";
2345
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2346
+ start_time: string;
2347
+ message: string | null;
2348
+ user_id: number | null;
2349
+ end_time?: string | null | undefined;
2350
+ } | null | undefined;
2351
+ tag_ids?: number[] | undefined;
2352
+ }>>;
2353
+ cancel: (id: number, options?: RequestOptions | undefined) => Promise<void>;
2354
+ getRun: (runId: number, options?: RequestOptions | undefined) => Promise<{
2355
+ [x: string]: unknown;
2356
+ id: number;
2357
+ transform_id: number | null;
2358
+ run_method: "manual" | "cron";
2359
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2360
+ is_active: boolean | null;
2361
+ start_time: string;
2362
+ message: string | null;
2363
+ user_id: number | null;
2364
+ end_time?: string | null | undefined;
2365
+ }>;
2366
+ runPages: (params?: TransformRunPageParams | undefined, options?: TransformRunPageOptions | undefined) => AsyncIterable<Page<{
2367
+ [x: string]: unknown;
2368
+ id: number;
2369
+ transform_id: number | null;
2370
+ run_method: "manual" | "cron";
2371
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2372
+ is_active: boolean | null;
2373
+ start_time: string;
2374
+ message: string | null;
2375
+ user_id: number | null;
2376
+ end_time?: string | null | undefined;
2377
+ }>>;
2378
+ runSummaryPages: (params?: TransformRunSummaryPageParams | undefined, options?: TransformRunPageOptions | undefined) => AsyncIterable<Page<{
2379
+ [x: string]: unknown;
2380
+ run_type: "transform" | "job" | "dag";
2381
+ id: number;
2382
+ entity_id: number | null;
2383
+ name: string | null;
2384
+ direction: "upstream" | "downstream" | null;
2385
+ transform_count: number | null;
2386
+ run_method: "manual" | "cron" | null;
2387
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2388
+ is_active: boolean | null;
2389
+ start_time: string;
2390
+ message: string | null;
2391
+ user_id: number | null;
2392
+ end_time?: string | null | undefined;
2393
+ }>>;
2394
+ resetCheckpoint: (id: number, options?: RequestOptions | undefined) => Promise<void>;
2395
+ runDag: (id: number, params: TransformDagParams, options?: RequestOptions | undefined) => Promise<{
2396
+ message: string;
2397
+ dag_run_id: number | null;
2398
+ }>;
2399
+ dagTransforms: (id: number, params: TransformDagParams, options?: RequestOptions | undefined) => Promise<ListResult<{
2400
+ id: number;
2401
+ name: string;
2402
+ }>>;
2403
+ run: (id: number, params?: TransformRunParams | undefined, options?: RequestOptions | undefined) => Promise<{
2404
+ message: string;
2405
+ run_id: number | null;
2406
+ final: {
2407
+ [x: string]: unknown;
2408
+ id: number;
2409
+ transform_id: number | null;
2410
+ run_method: "manual" | "cron";
2411
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2412
+ is_active: boolean | null;
2413
+ start_time: string;
2414
+ message: string | null;
2415
+ user_id: number | null;
2416
+ end_time?: string | null | undefined;
2417
+ } | null;
2418
+ target_table_id?: number | null | undefined;
2419
+ }>;
2420
+ };
2421
+ transformDagRun: {
2422
+ transformRuns: (runId: number, options?: RequestOptions | undefined) => Promise<ListResult<{
2423
+ [x: string]: unknown;
2424
+ id: number;
2425
+ transform_id: number | null;
2426
+ run_method: "manual" | "cron";
2427
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2428
+ is_active: boolean | null;
2429
+ start_time: string;
2430
+ message: string | null;
2431
+ user_id: number | null;
2432
+ job_run_id: number | null;
2433
+ dag_run_id: number | null;
2434
+ end_time?: string | null | undefined;
2435
+ }>>;
2436
+ cancel: (runId: number, options?: RequestOptions | undefined) => Promise<void>;
2437
+ };
2438
+ transformInspector: {
2439
+ discover: (id: number, options?: RequestOptions | undefined) => Promise<{
2440
+ [x: string]: unknown;
2441
+ name: string;
2442
+ status: "not-run" | "ready";
2443
+ sources: {
2444
+ [x: string]: unknown;
2445
+ table_id: number;
2446
+ table_name: string;
2447
+ db_id: number;
2448
+ column_count: number;
2449
+ fields: {
2450
+ [x: string]: unknown;
2451
+ id: number;
2452
+ name: string;
2453
+ base_type: string;
2454
+ display_name?: string | null | undefined;
2455
+ semantic_type?: string | null | undefined;
2456
+ stats?: {
2457
+ [x: string]: unknown;
2458
+ distinct_count?: number | undefined;
2459
+ nil_percent?: number | undefined;
2460
+ min?: number | undefined;
2461
+ max?: number | undefined;
2462
+ avg?: number | undefined;
2463
+ q1?: number | undefined;
2464
+ q3?: number | undefined;
2465
+ earliest?: string | undefined;
2466
+ latest?: string | undefined;
2467
+ } | null | undefined;
2468
+ }[];
2469
+ schema?: string | null | undefined;
2470
+ }[];
2471
+ available_lenses: {
2472
+ [x: string]: unknown;
2473
+ id: string;
2474
+ display_name: string;
2475
+ description?: string | null | undefined;
2476
+ complexity?: {
2477
+ [x: string]: unknown;
2478
+ level: "fast" | "slow" | "very-slow";
2479
+ score?: number | undefined;
2480
+ } | undefined;
2481
+ }[];
2482
+ description?: string | null | undefined;
2483
+ target?: {
2484
+ [x: string]: unknown;
2485
+ table_id: number;
2486
+ table_name: string;
2487
+ db_id: number;
2488
+ column_count: number;
2489
+ fields: {
2490
+ [x: string]: unknown;
2491
+ id: number;
2492
+ name: string;
2493
+ base_type: string;
2494
+ display_name?: string | null | undefined;
2495
+ semantic_type?: string | null | undefined;
2496
+ stats?: {
2497
+ [x: string]: unknown;
2498
+ distinct_count?: number | undefined;
2499
+ nil_percent?: number | undefined;
2500
+ min?: number | undefined;
2501
+ max?: number | undefined;
2502
+ avg?: number | undefined;
2503
+ q1?: number | undefined;
2504
+ q3?: number | undefined;
2505
+ earliest?: string | undefined;
2506
+ latest?: string | undefined;
2507
+ } | null | undefined;
2508
+ }[];
2509
+ schema?: string | null | undefined;
2510
+ } | null | undefined;
2511
+ visited_fields?: {
2512
+ [x: string]: unknown;
2513
+ all?: number[] | undefined;
2514
+ } | null | undefined;
2515
+ }>;
2516
+ lens: (id: number, lensId: string, params?: {
2517
+ join_step?: number | undefined;
2518
+ } | undefined, options?: RequestOptions | undefined) => Promise<{
2519
+ [x: string]: unknown;
2520
+ id: string;
2521
+ display_name: string;
2522
+ sections: {
2523
+ [x: string]: unknown;
2524
+ id: string;
2525
+ title: string;
2526
+ description?: string | null | undefined;
2527
+ layout?: "flat" | "comparison" | undefined;
2528
+ }[];
2529
+ cards: {
2530
+ [x: string]: unknown;
2531
+ id: string;
2532
+ title: string;
2533
+ display: "table" | "hidden" | "progress" | "bar" | "row" | "line" | "area" | "pie" | "scalar" | "gauge";
2534
+ dataset_query: {
2535
+ [x: string]: unknown;
2536
+ };
2537
+ section_id?: string | null | undefined;
2538
+ metadata?: {
2539
+ [x: string]: unknown;
2540
+ join_step?: number | undefined;
2541
+ join_alias?: string | undefined;
2542
+ join_strategy?: string | undefined;
2543
+ dedup_key?: unknown[] | undefined;
2544
+ depends_on_cards?: string[] | undefined;
2545
+ group_id?: string | undefined;
2546
+ group_role?: "output" | "input" | undefined;
2547
+ group_order?: number | undefined;
2548
+ card_type?: string | undefined;
2549
+ } | undefined;
2550
+ }[];
2551
+ complexity?: {
2552
+ [x: string]: unknown;
2553
+ level: "fast" | "slow" | "very-slow";
2554
+ score?: number | undefined;
2555
+ } | undefined;
2556
+ summary?: {
2557
+ [x: string]: unknown;
2558
+ text?: string | null | undefined;
2559
+ highlights?: {
2560
+ [x: string]: unknown;
2561
+ label: string;
2562
+ value?: unknown;
2563
+ card_id?: string | undefined;
2564
+ }[] | undefined;
2565
+ alerts?: {
2566
+ [x: string]: unknown;
2567
+ }[] | undefined;
2568
+ } | undefined;
2569
+ drill_lenses?: {
2570
+ [x: string]: unknown;
2571
+ id: string;
2572
+ display_name: string;
2573
+ description?: string | null | undefined;
2574
+ complexity?: {
2575
+ [x: string]: unknown;
2576
+ level: "fast" | "slow" | "very-slow";
2577
+ score?: number | undefined;
2578
+ } | undefined;
2579
+ }[] | undefined;
2580
+ alert_triggers?: {
2581
+ [x: string]: unknown;
2582
+ id: string;
2583
+ condition: {
2584
+ [x: string]: unknown;
2585
+ name: string;
2586
+ };
2587
+ severity: "warning" | "info" | "error";
2588
+ message: string;
2589
+ metadata?: {
2590
+ [x: string]: unknown;
2591
+ join_step?: number | undefined;
2592
+ join_alias?: string | undefined;
2593
+ join_strategy?: string | undefined;
2594
+ } | undefined;
2595
+ }[] | undefined;
2596
+ drill_lens_triggers?: {
2597
+ [x: string]: unknown;
2598
+ lens_id: string;
2599
+ condition: {
2600
+ [x: string]: unknown;
2601
+ name: string;
2602
+ };
2603
+ params?: {
2604
+ [x: string]: unknown;
2605
+ join_step?: number | undefined;
2606
+ } | undefined;
2607
+ reason?: string | undefined;
2608
+ metadata?: {
2609
+ [x: string]: unknown;
2610
+ join_step?: number | undefined;
2611
+ join_alias?: string | undefined;
2612
+ join_strategy?: string | undefined;
2613
+ } | undefined;
2614
+ }[] | undefined;
2615
+ }>;
2616
+ query: (id: number, lensId: string, params: {
2617
+ query: {
2618
+ [x: string]: unknown;
2619
+ };
2620
+ lens_params?: {
2621
+ join_step?: number | undefined;
2622
+ } | null | undefined;
2623
+ }, options?: RequestOptions | undefined) => Promise<{
2624
+ [x: string]: unknown;
2625
+ status: string;
2626
+ row_count?: number | undefined;
2627
+ data?: {
2628
+ [x: string]: unknown;
2629
+ rows: unknown[][];
2630
+ cols: {
2631
+ [x: string]: unknown;
2632
+ name: string;
2633
+ display_name?: string | null | undefined;
2634
+ base_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | undefined;
2635
+ effective_type?: "type/*" | "type/field-values-unsupported" | "type/fingerprint-unsupported" | "type/Large" | "type/Number" | "type/Integer" | "type/BigInteger" | "type/Float" | "type/Double" | "type/Decimal" | "type/Text" | "type/UUID" | "type/OracleCLOB" | "type/Temporal" | "type/HasDate" | "type/HasTime" | "type/Date" | "type/Time" | "type/TimeWithTZ" | "type/TimeWithLocalTZ" | "type/TimeWithZoneOffset" | "type/DateTime" | "type/DateTimeWithTZ" | "type/DateTimeWithLocalTZ" | "type/DateTimeWithZoneOffset" | "type/DateTimeWithZoneID" | "type/Instant" | "type/Interval" | "type/Boolean" | "type/DruidHyperUnique" | "type/SnowflakeVariant" | "type/TextLike" | "type/MongoBSONID" | "type/MongoBinData" | "type/MySQLEnum" | "type/PostgresEnum" | "type/PostgresBitString" | "type/IPAddress" | "type/Collection" | "type/Dictionary" | "type/Array" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | null | undefined;
2636
+ semantic_type?: "type/IPAddress" | "type/Structured" | "type/JSON" | "type/DruidJSON" | "type/XML" | "type/AvatarURL" | "type/Birthdate" | "type/CancelationDate" | "type/CancelationTime" | "type/CancelationTimestamp" | "type/City" | "type/Comment" | "type/Coordinate" | "type/Cost" | "type/Country" | "type/CreationDate" | "type/CreationTime" | "type/CreationTimestamp" | "type/Currency" | "type/DeletionDate" | "type/DeletionTime" | "type/DeletionTimestamp" | "type/Description" | "type/Discount" | "type/Duration" | "type/Email" | "type/GrossMargin" | "type/ImageURL" | "type/Income" | "type/JoinDate" | "type/JoinTime" | "type/JoinTimestamp" | "type/Latitude" | "type/Longitude" | "type/Name" | "type/Percentage" | "type/Price" | "type/Quantity" | "type/Score" | "type/SerializedJSON" | "type/Share" | "type/State" | "type/Title" | "type/URL" | "type/UpdatedDate" | "type/UpdatedTime" | "type/UpdatedTimestamp" | "type/ZipCode" | "Semantic/*" | "Relation/*" | "type/Location" | "type/Address" | "type/Category" | "type/Enum" | "type/Product" | "type/Company" | "type/Subscription" | "type/Source" | "type/CreationTemporal" | "type/JoinTemporal" | "type/CancelationTemporal" | "type/DeletionTemporal" | "type/UpdatedTemporal" | "type/User" | "type/Author" | "type/Owner" | "type/FK" | "type/PK" | null | undefined;
2637
+ database_type?: string | null | undefined;
2638
+ id?: number | null | undefined;
2639
+ }[];
2640
+ rows_truncated?: number | undefined;
2641
+ pivot_rows_truncated?: number | undefined;
2642
+ } | undefined;
2643
+ cached?: string | null | undefined;
2644
+ error?: string | null | undefined;
2645
+ error_type?: string | null | undefined;
2646
+ }>;
2647
+ };
2648
+ transformJob: {
2649
+ list: (options?: RequestOptions | undefined) => Promise<ListResult<{
2650
+ [x: string]: unknown;
2651
+ id: number;
2652
+ name: string;
2653
+ description: string | null;
2654
+ schedule: string;
2655
+ ui_display_type: "cron/raw" | "cron/builder";
2656
+ entity_id: string | null;
2657
+ created_at: string;
2658
+ updated_at: string;
2659
+ active: boolean | null;
2660
+ built_in_type?: string | null | undefined;
2661
+ tag_ids?: number[] | undefined;
2662
+ last_run?: {
2663
+ [x: string]: unknown;
2664
+ id: number;
2665
+ job_id: number;
2666
+ run_method: "manual" | "cron";
2667
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2668
+ start_time: string;
2669
+ message: string | null;
2670
+ created_at: string;
2671
+ updated_at: string;
2672
+ end_time?: string | null | undefined;
2673
+ } | null | undefined;
2674
+ next_run?: {
2675
+ [x: string]: unknown;
2676
+ start_time: string;
2677
+ } | null | undefined;
2678
+ }>>;
2679
+ get: (id: number, options?: RequestOptions | undefined) => Promise<{
2680
+ [x: string]: unknown;
2681
+ id: number;
2682
+ name: string;
2683
+ description: string | null;
2684
+ schedule: string;
2685
+ ui_display_type: "cron/raw" | "cron/builder";
2686
+ entity_id: string | null;
2687
+ created_at: string;
2688
+ updated_at: string;
2689
+ active: boolean | null;
2690
+ built_in_type?: string | null | undefined;
2691
+ tag_ids?: number[] | undefined;
2692
+ last_run?: {
2693
+ [x: string]: unknown;
2694
+ id: number;
2695
+ job_id: number;
2696
+ run_method: "manual" | "cron";
2697
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2698
+ start_time: string;
2699
+ message: string | null;
2700
+ created_at: string;
2701
+ updated_at: string;
2702
+ end_time?: string | null | undefined;
2703
+ } | null | undefined;
2704
+ next_run?: {
2705
+ [x: string]: unknown;
2706
+ start_time: string;
2707
+ } | null | undefined;
2708
+ }>;
2709
+ create: (params: {
2710
+ [x: string]: unknown;
2711
+ name: string;
2712
+ schedule: string;
2713
+ description?: string | null | undefined;
2714
+ ui_display_type?: "cron/raw" | "cron/builder" | undefined;
2715
+ tag_ids?: number[] | undefined;
2716
+ }, options?: RequestOptions | undefined) => Promise<{
2717
+ [x: string]: unknown;
2718
+ id: number;
2719
+ name: string;
2720
+ description: string | null;
2721
+ schedule: string;
2722
+ ui_display_type: "cron/raw" | "cron/builder";
2723
+ entity_id: string | null;
2724
+ created_at: string;
2725
+ updated_at: string;
2726
+ active: boolean | null;
2727
+ built_in_type?: string | null | undefined;
2728
+ tag_ids?: number[] | undefined;
2729
+ last_run?: {
2730
+ [x: string]: unknown;
2731
+ id: number;
2732
+ job_id: number;
2733
+ run_method: "manual" | "cron";
2734
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2735
+ start_time: string;
2736
+ message: string | null;
2737
+ created_at: string;
2738
+ updated_at: string;
2739
+ end_time?: string | null | undefined;
2740
+ } | null | undefined;
2741
+ next_run?: {
2742
+ [x: string]: unknown;
2743
+ start_time: string;
2744
+ } | null | undefined;
2745
+ }>;
2746
+ update: (id: number, params: {
2747
+ [x: string]: unknown;
2748
+ name?: string | undefined;
2749
+ description?: string | null | undefined;
2750
+ schedule?: string | undefined;
2751
+ ui_display_type?: "cron/raw" | "cron/builder" | undefined;
2752
+ active?: boolean | undefined;
2753
+ tag_ids?: number[] | undefined;
2754
+ }, options?: RequestOptions | undefined) => Promise<{
2755
+ [x: string]: unknown;
2756
+ id: number;
2757
+ name: string;
2758
+ description: string | null;
2759
+ schedule: string;
2760
+ ui_display_type: "cron/raw" | "cron/builder";
2761
+ entity_id: string | null;
2762
+ created_at: string;
2763
+ updated_at: string;
2764
+ active: boolean | null;
2765
+ built_in_type?: string | null | undefined;
2766
+ tag_ids?: number[] | undefined;
2767
+ last_run?: {
2768
+ [x: string]: unknown;
2769
+ id: number;
2770
+ job_id: number;
2771
+ run_method: "manual" | "cron";
2772
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2773
+ start_time: string;
2774
+ message: string | null;
2775
+ created_at: string;
2776
+ updated_at: string;
2777
+ end_time?: string | null | undefined;
2778
+ } | null | undefined;
2779
+ next_run?: {
2780
+ [x: string]: unknown;
2781
+ start_time: string;
2782
+ } | null | undefined;
2783
+ }>;
2784
+ delete: (id: number, options?: RequestOptions | undefined) => Promise<void>;
2785
+ run: (id: number, params?: TransformJobRunParams | undefined, options?: RequestOptions | undefined) => Promise<{
2786
+ message: string;
2787
+ started: boolean | null;
2788
+ run_id: number | null;
2789
+ }>;
2790
+ transforms: (id: number, options?: RequestOptions | undefined) => Promise<ListResult<{
2791
+ [x: string]: unknown;
2792
+ id: number;
2793
+ name: string;
2794
+ description: string | null;
2795
+ source: {
2796
+ [x: string]: unknown;
2797
+ type: "query";
2798
+ query: unknown;
2799
+ "source-incremental-strategy"?: {
2800
+ [x: string]: unknown;
2801
+ type: "checkpoint";
2802
+ "checkpoint-filter-field-id"?: number | undefined;
2803
+ } | undefined;
2804
+ } | {
2805
+ [x: string]: unknown;
2806
+ type: "python";
2807
+ body: string;
2808
+ "source-tables": {
2809
+ [x: string]: unknown;
2810
+ alias: string;
2811
+ table_id?: number | null | undefined;
2812
+ database_id?: number | null | undefined;
2813
+ schema?: string | null | undefined;
2814
+ table?: string | null | undefined;
2815
+ }[];
2816
+ "source-database"?: number | undefined;
2817
+ "source-incremental-strategy"?: {
2818
+ [x: string]: unknown;
2819
+ type: "checkpoint";
2820
+ "checkpoint-filter-field-id"?: number | undefined;
2821
+ } | undefined;
2822
+ };
2823
+ target: {
2824
+ [x: string]: unknown;
2825
+ type: "table";
2826
+ name: string;
2827
+ database?: number | undefined;
2828
+ schema?: string | null | undefined;
2829
+ } | {
2830
+ [x: string]: unknown;
2831
+ type: "table-incremental";
2832
+ name: string;
2833
+ "target-incremental-strategy": {
2834
+ [x: string]: unknown;
2835
+ type: "append";
2836
+ } | {
2837
+ [x: string]: unknown;
2838
+ type: "merge";
2839
+ "unique-key": {
2840
+ [x: string]: unknown;
2841
+ name?: string | undefined;
2842
+ "field-id"?: number | null | undefined;
2843
+ }[];
2844
+ };
2845
+ database?: number | undefined;
2846
+ schema?: string | null | undefined;
2847
+ };
2848
+ source_type: "native" | "python" | "mbql";
2849
+ entity_id: string | null;
2850
+ created_at: string;
2851
+ updated_at: string;
2852
+ creator_id: number;
2853
+ collection_id: number | null;
2854
+ target_table_id: number | null;
2855
+ source_database_id?: number | null | undefined;
2856
+ target_db_id?: number | null | undefined;
2857
+ run_trigger?: "none" | "global-schedule" | null | undefined;
2858
+ last_run?: {
2859
+ [x: string]: unknown;
2860
+ id: number;
2861
+ transform_id: number;
2862
+ run_method: "manual" | "cron";
2863
+ status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2864
+ start_time: string;
2865
+ message: string | null;
2866
+ user_id: number | null;
2867
+ end_time?: string | null | undefined;
2868
+ } | null | undefined;
2869
+ tag_ids?: number[] | undefined;
2870
+ }>>;
2871
+ setActive: (active: boolean, options?: RequestOptions | undefined) => Promise<{
2872
+ updated: number;
2873
+ failed: number;
2874
+ }>;
2875
+ };
2876
+ transformPython: {
2877
+ getLibrary: (path: string, options?: RequestOptions | undefined) => Promise<{
2878
+ [x: string]: unknown;
2879
+ path: string;
2880
+ source: string | null;
2881
+ created_at: string;
2882
+ updated_at: string;
2883
+ }>;
2884
+ updateLibrary: (path: string, params: {
2885
+ source: string;
2886
+ }, options?: RequestOptions | undefined) => Promise<{
2887
+ [x: string]: unknown;
2888
+ path: string;
2889
+ source: string | null;
2890
+ created_at: string;
2891
+ updated_at: string;
2892
+ }>;
2893
+ testRun: (params: {
2894
+ code: string;
2895
+ source_tables: ({
2896
+ [x: string]: unknown;
2897
+ alias: string;
2898
+ database_id: number;
2899
+ schema?: string | null | undefined;
2900
+ table?: string | undefined;
2901
+ table_id?: number | null | undefined;
2902
+ } | {
2903
+ [x: string]: unknown;
2904
+ alias: string;
2905
+ table_id: number;
2906
+ database_id?: null | undefined;
2907
+ schema?: null | undefined;
2908
+ table?: null | undefined;
2909
+ })[];
2910
+ output_row_limit?: number | undefined;
2911
+ per_input_row_limit?: number | undefined;
2912
+ }, options?: RequestOptions | undefined) => Promise<{
2913
+ outcome: "succeeded";
2914
+ logs: string;
2915
+ output: {
2916
+ cols: {
2917
+ [x: string]: unknown;
2918
+ name: string;
2919
+ }[];
2920
+ rows: unknown[];
2921
+ };
2922
+ } | {
2923
+ outcome: "failed";
2924
+ logs: string;
2925
+ error: {
2926
+ [x: string]: unknown;
2927
+ message: string;
2928
+ };
2929
+ }>;
2930
+ };
2931
+ transformTag: {
2932
+ list: (options?: RequestOptions | undefined) => Promise<ListResult<{
2933
+ [x: string]: unknown;
2934
+ id: number;
2935
+ name: string;
2936
+ entity_id: string | null;
2937
+ built_in_type: string | null;
2938
+ }>>;
2939
+ create: (params: {
2940
+ [x: string]: unknown;
2941
+ name: string;
2942
+ }, options?: RequestOptions | undefined) => Promise<{
2943
+ [x: string]: unknown;
2944
+ id: number;
2945
+ name: string;
2946
+ entity_id: string | null;
2947
+ built_in_type: string | null;
2948
+ }>;
2949
+ update: (id: number, params: {
2950
+ [x: string]: unknown;
2951
+ name: string;
2952
+ }, options?: RequestOptions | undefined) => Promise<{
2953
+ [x: string]: unknown;
2954
+ id: number;
2955
+ name: string;
2956
+ entity_id: string | null;
2957
+ built_in_type: string | null;
2958
+ }>;
2959
+ delete: (id: number, options?: RequestOptions | undefined) => Promise<void>;
2960
+ };
2961
+ transformTest: {
2962
+ list: (params?: TransformTestListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
2963
+ [x: string]: unknown;
2964
+ id: number;
2965
+ entity_id: string;
2966
+ transform_id: number;
2967
+ creator_id: number;
2968
+ name: string;
2969
+ description: string | null;
2970
+ inputs: ({
2971
+ [x: string]: unknown;
2972
+ table: {
2973
+ [x: string]: unknown;
2974
+ name: string;
2975
+ schema?: string | null | undefined;
2976
+ };
2977
+ format: "sql";
2978
+ sql: string;
2979
+ } | {
2980
+ [x: string]: unknown;
2981
+ table: {
2982
+ [x: string]: unknown;
2983
+ name: string;
2984
+ schema?: string | null | undefined;
2985
+ };
2986
+ format: "rows";
2987
+ columns: {
2988
+ [x: string]: unknown;
2989
+ name: string;
2990
+ cast_type: string;
2991
+ }[];
2992
+ rows: Record<string, string | number | boolean | null>[];
2993
+ })[];
2994
+ expectations: ({
2995
+ [x: string]: unknown;
2996
+ type: "equals";
2997
+ name: string;
2998
+ format: "sql";
2999
+ sql: string;
3000
+ } | {
3001
+ [x: string]: unknown;
3002
+ type: "equals";
3003
+ name: string;
3004
+ format: "rows";
3005
+ columns: {
3006
+ [x: string]: unknown;
3007
+ name: string;
3008
+ cast_type: string;
3009
+ }[];
3010
+ rows: Record<string, string | number | boolean | null>[];
3011
+ } | {
3012
+ [x: string]: unknown;
3013
+ type: "empty";
3014
+ name: string;
3015
+ sql: string;
3016
+ })[];
3017
+ created_at: string;
3018
+ updated_at: string;
3019
+ }>>;
3020
+ get: (id: number, options?: RequestOptions | undefined) => Promise<{
3021
+ [x: string]: unknown;
3022
+ id: number;
3023
+ entity_id: string;
3024
+ transform_id: number;
3025
+ creator_id: number;
3026
+ name: string;
3027
+ description: string | null;
3028
+ inputs: ({
3029
+ [x: string]: unknown;
3030
+ table: {
3031
+ [x: string]: unknown;
3032
+ name: string;
3033
+ schema?: string | null | undefined;
3034
+ };
3035
+ format: "sql";
3036
+ sql: string;
3037
+ } | {
3038
+ [x: string]: unknown;
3039
+ table: {
3040
+ [x: string]: unknown;
3041
+ name: string;
3042
+ schema?: string | null | undefined;
3043
+ };
3044
+ format: "rows";
3045
+ columns: {
3046
+ [x: string]: unknown;
3047
+ name: string;
3048
+ cast_type: string;
3049
+ }[];
3050
+ rows: Record<string, string | number | boolean | null>[];
3051
+ })[];
3052
+ expectations: ({
3053
+ [x: string]: unknown;
3054
+ type: "equals";
3055
+ name: string;
3056
+ format: "sql";
3057
+ sql: string;
3058
+ } | {
3059
+ [x: string]: unknown;
3060
+ type: "equals";
3061
+ name: string;
3062
+ format: "rows";
3063
+ columns: {
3064
+ [x: string]: unknown;
3065
+ name: string;
3066
+ cast_type: string;
3067
+ }[];
3068
+ rows: Record<string, string | number | boolean | null>[];
3069
+ } | {
3070
+ [x: string]: unknown;
3071
+ type: "empty";
3072
+ name: string;
3073
+ sql: string;
3074
+ })[];
3075
+ created_at: string;
3076
+ updated_at: string;
3077
+ }>;
3078
+ create: (params: {
3079
+ transform_id: number;
3080
+ name: string;
3081
+ inputs: ({
3082
+ [x: string]: unknown;
3083
+ table: {
3084
+ [x: string]: unknown;
3085
+ name: string;
3086
+ schema?: string | null | undefined;
3087
+ };
3088
+ format: "sql";
3089
+ sql: string;
3090
+ } | {
3091
+ [x: string]: unknown;
3092
+ table: {
3093
+ [x: string]: unknown;
3094
+ name: string;
3095
+ schema?: string | null | undefined;
3096
+ };
3097
+ format: "rows";
3098
+ columns: {
3099
+ [x: string]: unknown;
3100
+ name: string;
3101
+ cast_type: string;
3102
+ }[];
3103
+ rows: Record<string, string | number | boolean | null>[];
3104
+ })[];
3105
+ expectations: ({
3106
+ [x: string]: unknown;
3107
+ type: "equals";
3108
+ name: string;
3109
+ format: "sql";
3110
+ sql: string;
3111
+ } | {
3112
+ [x: string]: unknown;
3113
+ type: "equals";
3114
+ name: string;
3115
+ format: "rows";
3116
+ columns: {
3117
+ [x: string]: unknown;
3118
+ name: string;
3119
+ cast_type: string;
3120
+ }[];
3121
+ rows: Record<string, string | number | boolean | null>[];
3122
+ } | {
3123
+ [x: string]: unknown;
3124
+ type: "empty";
3125
+ name: string;
3126
+ sql: string;
3127
+ })[];
3128
+ description?: string | null | undefined;
3129
+ }, options?: RequestOptions | undefined) => Promise<{
3130
+ [x: string]: unknown;
3131
+ id: number;
3132
+ entity_id: string;
3133
+ transform_id: number;
3134
+ creator_id: number;
3135
+ name: string;
3136
+ description: string | null;
3137
+ inputs: ({
3138
+ [x: string]: unknown;
3139
+ table: {
3140
+ [x: string]: unknown;
3141
+ name: string;
3142
+ schema?: string | null | undefined;
3143
+ };
3144
+ format: "sql";
3145
+ sql: string;
3146
+ } | {
3147
+ [x: string]: unknown;
3148
+ table: {
3149
+ [x: string]: unknown;
3150
+ name: string;
3151
+ schema?: string | null | undefined;
3152
+ };
3153
+ format: "rows";
3154
+ columns: {
3155
+ [x: string]: unknown;
3156
+ name: string;
3157
+ cast_type: string;
3158
+ }[];
3159
+ rows: Record<string, string | number | boolean | null>[];
3160
+ })[];
3161
+ expectations: ({
3162
+ [x: string]: unknown;
3163
+ type: "equals";
3164
+ name: string;
3165
+ format: "sql";
3166
+ sql: string;
3167
+ } | {
3168
+ [x: string]: unknown;
3169
+ type: "equals";
3170
+ name: string;
3171
+ format: "rows";
3172
+ columns: {
3173
+ [x: string]: unknown;
3174
+ name: string;
3175
+ cast_type: string;
3176
+ }[];
3177
+ rows: Record<string, string | number | boolean | null>[];
3178
+ } | {
3179
+ [x: string]: unknown;
3180
+ type: "empty";
3181
+ name: string;
3182
+ sql: string;
3183
+ })[];
3184
+ created_at: string;
3185
+ updated_at: string;
3186
+ }>;
3187
+ update: (id: number, params: {
3188
+ transform_id?: number | undefined;
3189
+ name?: string | undefined;
3190
+ description?: string | null | undefined;
3191
+ inputs?: ({
3192
+ [x: string]: unknown;
3193
+ table: {
3194
+ [x: string]: unknown;
3195
+ name: string;
3196
+ schema?: string | null | undefined;
3197
+ };
3198
+ format: "sql";
3199
+ sql: string;
3200
+ } | {
3201
+ [x: string]: unknown;
3202
+ table: {
3203
+ [x: string]: unknown;
3204
+ name: string;
3205
+ schema?: string | null | undefined;
3206
+ };
3207
+ format: "rows";
3208
+ columns: {
3209
+ [x: string]: unknown;
3210
+ name: string;
3211
+ cast_type: string;
3212
+ }[];
3213
+ rows: Record<string, string | number | boolean | null>[];
3214
+ })[] | undefined;
3215
+ expectations?: ({
3216
+ [x: string]: unknown;
3217
+ type: "equals";
3218
+ name: string;
3219
+ format: "sql";
3220
+ sql: string;
3221
+ } | {
3222
+ [x: string]: unknown;
3223
+ type: "equals";
3224
+ name: string;
3225
+ format: "rows";
3226
+ columns: {
3227
+ [x: string]: unknown;
3228
+ name: string;
3229
+ cast_type: string;
3230
+ }[];
3231
+ rows: Record<string, string | number | boolean | null>[];
3232
+ } | {
3233
+ [x: string]: unknown;
3234
+ type: "empty";
3235
+ name: string;
3236
+ sql: string;
3237
+ })[] | undefined;
3238
+ }, options?: RequestOptions | undefined) => Promise<{
3239
+ [x: string]: unknown;
3240
+ id: number;
3241
+ entity_id: string;
3242
+ transform_id: number;
3243
+ creator_id: number;
3244
+ name: string;
3245
+ description: string | null;
3246
+ inputs: ({
3247
+ [x: string]: unknown;
3248
+ table: {
3249
+ [x: string]: unknown;
3250
+ name: string;
3251
+ schema?: string | null | undefined;
3252
+ };
3253
+ format: "sql";
3254
+ sql: string;
3255
+ } | {
3256
+ [x: string]: unknown;
3257
+ table: {
3258
+ [x: string]: unknown;
3259
+ name: string;
3260
+ schema?: string | null | undefined;
3261
+ };
3262
+ format: "rows";
3263
+ columns: {
3264
+ [x: string]: unknown;
3265
+ name: string;
3266
+ cast_type: string;
3267
+ }[];
3268
+ rows: Record<string, string | number | boolean | null>[];
3269
+ })[];
3270
+ expectations: ({
3271
+ [x: string]: unknown;
3272
+ type: "equals";
3273
+ name: string;
3274
+ format: "sql";
3275
+ sql: string;
3276
+ } | {
3277
+ [x: string]: unknown;
3278
+ type: "equals";
3279
+ name: string;
3280
+ format: "rows";
3281
+ columns: {
3282
+ [x: string]: unknown;
3283
+ name: string;
3284
+ cast_type: string;
3285
+ }[];
3286
+ rows: Record<string, string | number | boolean | null>[];
3287
+ } | {
3288
+ [x: string]: unknown;
3289
+ type: "empty";
3290
+ name: string;
3291
+ sql: string;
3292
+ })[];
3293
+ created_at: string;
3294
+ updated_at: string;
3295
+ }>;
3296
+ delete: (id: number, options?: RequestOptions | undefined) => Promise<void>;
3297
+ run: (id: number, options?: RequestOptions | undefined) => Promise<{
3298
+ [x: string]: unknown;
3299
+ status: "failed" | "error" | "passed";
3300
+ expectations: ({
3301
+ [x: string]: unknown;
3302
+ name: string;
3303
+ type: "equals";
3304
+ status: "failed" | "passed";
3305
+ columns: {
3306
+ [x: string]: unknown;
3307
+ name: string;
3308
+ database_type: string;
3309
+ }[];
3310
+ "row-counts": {
3311
+ [x: string]: unknown;
3312
+ actual: number;
3313
+ expected: number;
3314
+ };
3315
+ "extra-rows": Record<string, string | number | boolean | null>[];
3316
+ "missing-rows": Record<string, string | number | boolean | null>[];
3317
+ "cell-mismatches": {
3318
+ [x: string]: unknown;
3319
+ column: string;
3320
+ expected: string | number | boolean | null;
3321
+ actual: string | number | boolean | null;
3322
+ }[];
3323
+ truncated: number;
3324
+ } | {
3325
+ [x: string]: unknown;
3326
+ name: string;
3327
+ type: "equals";
3328
+ status: "error";
3329
+ error: {
3330
+ [x: string]: unknown;
3331
+ type: string;
3332
+ message: string;
3333
+ };
3334
+ } | {
3335
+ [x: string]: unknown;
3336
+ name: string;
3337
+ type: "empty";
3338
+ status: "passed";
3339
+ } | {
3340
+ [x: string]: unknown;
3341
+ name: string;
3342
+ type: "empty";
3343
+ status: "failed";
3344
+ columns: {
3345
+ [x: string]: unknown;
3346
+ name: string;
3347
+ database_type: string;
3348
+ }[];
3349
+ sample: Record<string, string | number | boolean | null>[];
3350
+ truncated: number;
3351
+ } | {
3352
+ [x: string]: unknown;
3353
+ name: string;
3354
+ type: "empty";
3355
+ status: "error";
3356
+ error: {
3357
+ [x: string]: unknown;
3358
+ type: string;
3359
+ message: string;
3360
+ };
3361
+ })[];
3362
+ tables: Record<string, string>;
3363
+ }>;
3364
+ };
3365
+ upload: {
3366
+ createFromCsv: (file: CsvFile, params: UploadCsvParams, options?: RequestOptions) => Promise<UploadResult>;
3367
+ };
3368
+ user: {
3369
+ current: (options?: RequestOptions) => Promise<CurrentUser>;
3370
+ };
3371
+ server: (options?: WaitOptions) => Promise<ServerProfile>;
3372
+ verifiedServer: (options?: WaitOptions) => Promise<ServerProfile>;
3373
+ probesSettled: () => Promise<void>;
3374
+ requestParsed: <T>(schema: import("zod").ZodType<T>, path: string, opts?: TransportRequestOptions) => Promise<T>;
3375
+ requestRaw: (path: string, opts?: TransportRequestOptions) => Promise<Response>;
3376
+ requestStream: (path: string, opts?: TransportRequestOptions) => Promise<ReadableStream<Uint8Array>>;
3377
+ };
3378
+ type MetabaseClient = ReturnType<typeof createClient>;
3379
+ //#endregion
3380
+ export { metricResource as i, createClient as n, MetricDimensionListParams as r, MetabaseClient as t };