@metabase/client 0.0.0-stage → 0.1.0

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