@metabase/client 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +6 -4
  3. package/dist/api-key-DJeN1-7G.d.ts +46 -0
  4. package/dist/{card-B6merEUN.d.ts → card-BxBzr5Uj.d.ts} +11 -11
  5. package/dist/{card-BZx4NSr-.d.ts → card-DN0sLkCG.d.ts} +4 -4
  6. package/dist/{client-DNRvXFRm.d.ts → client-DdXLlH1B.d.ts} +270 -166
  7. package/dist/client.d.ts +1 -1
  8. package/dist/client.js +4 -0
  9. package/dist/{collection-Bib61WiV.d.ts → collection-DGnTvD6R.d.ts} +20 -20
  10. package/dist/{collection-CqtGPi4W.d.ts → collection-fFahL-ub.d.ts} +18 -4
  11. package/dist/{dashboard-XTe46250.d.ts → dashboard-CM7RmNeE.d.ts} +2 -2
  12. package/dist/{dashboard-z9i1VUZC.d.ts → dashboard-DtLXVgtf.d.ts} +21 -13
  13. package/dist/{data-action-rS27f2Ji.d.ts → data-action-CkXVrOUH.d.ts} +7 -5
  14. package/dist/data-app-CqP5_fpB.d.ts +76 -0
  15. package/dist/{database-DqTespfa.d.ts → database-B0JNZjDN.d.ts} +3 -3
  16. package/dist/{database-BLUMlywE.d.ts → database-BxqDmfcj.d.ts} +9 -9
  17. package/dist/{dataset-C6lX1-cr.d.ts → dataset-BBNGPVec.d.ts} +22 -22
  18. package/dist/{dataset-Cj3XuKLe.d.ts → dataset-BUirJ1rO.d.ts} +3 -3
  19. package/dist/{dependency-fN5_7a22.d.ts → dependency-CzpXmeu7.d.ts} +26 -26
  20. package/dist/{dependency-D8Qs5Xdx.d.ts → dependency-arB8Cr2H.d.ts} +147 -95
  21. package/dist/{document-oZNDbDfx.d.ts → document-tLd6pYWe.d.ts} +2 -2
  22. package/dist/domain/api-key.d.ts +2 -0
  23. package/dist/domain/api-key.js +31 -0
  24. package/dist/domain/card.d.ts +1 -1
  25. package/dist/domain/collection.d.ts +1 -1
  26. package/dist/domain/dashboard.d.ts +2 -2
  27. package/dist/domain/dashboard.js +21 -4
  28. package/dist/domain/data-action.d.ts +2 -2
  29. package/dist/domain/data-action.js +8 -2
  30. package/dist/domain/data-app.d.ts +2 -0
  31. package/dist/domain/data-app.js +52 -0
  32. package/dist/domain/database.d.ts +1 -1
  33. package/dist/domain/dataset.d.ts +1 -1
  34. package/dist/domain/dependency.d.ts +1 -1
  35. package/dist/domain/dependency.js +6 -3
  36. package/dist/domain/document.d.ts +1 -1
  37. package/dist/domain/eid-translation.d.ts +1 -1
  38. package/dist/domain/embedding.d.ts +1 -1
  39. package/dist/domain/field.d.ts +2 -2
  40. package/dist/domain/field.js +8 -2
  41. package/dist/domain/git-sync.d.ts +1 -1
  42. package/dist/domain/library.d.ts +2 -2
  43. package/dist/domain/library.js +8 -2
  44. package/dist/domain/measure.d.ts +1 -1
  45. package/dist/domain/measure.js +3 -1
  46. package/dist/domain/metric.d.ts +1 -1
  47. package/dist/domain/notification.d.ts +2 -2
  48. package/dist/domain/notification.js +6 -1
  49. package/dist/domain/pulse.d.ts +2 -2
  50. package/dist/domain/pulse.js +10 -3
  51. package/dist/domain/replacement.d.ts +1 -1
  52. package/dist/domain/revision.d.ts +2 -2
  53. package/dist/domain/revision.js +29 -2
  54. package/dist/domain/search.d.ts +1 -1
  55. package/dist/domain/segment.d.ts +1 -1
  56. package/dist/domain/segment.js +3 -1
  57. package/dist/domain/setup.d.ts +1 -1
  58. package/dist/domain/setup.js +1 -1
  59. package/dist/domain/snippet.d.ts +1 -1
  60. package/dist/domain/table.d.ts +2 -2
  61. package/dist/domain/table.js +35 -4
  62. package/dist/domain/timeline.d.ts +1 -1
  63. package/dist/domain/transform-inspector.d.ts +1 -1
  64. package/dist/domain/transform-job.d.ts +2 -2
  65. package/dist/domain/transform-job.js +8 -2
  66. package/dist/domain/transform-python.d.ts +2 -2
  67. package/dist/domain/transform-python.js +15 -3
  68. package/dist/domain/transform-tag.d.ts +1 -1
  69. package/dist/domain/transform-test.d.ts +1 -1
  70. package/dist/domain/transform.d.ts +2 -2
  71. package/dist/domain/transform.js +76 -7
  72. package/dist/domain/user.d.ts +1 -1
  73. package/dist/domain/user.js +1 -1
  74. package/dist/{eid-translation-nuhr8St2.d.ts → eid-translation-CH6NPWd-.d.ts} +15 -15
  75. package/dist/{embedding-Cz3RUJYf.d.ts → embedding-oU3gqfgX.d.ts} +1 -1
  76. package/dist/{erd-BujD227Y.d.ts → erd-CbV7xvAc.d.ts} +1 -1
  77. package/dist/errors.d.ts +1 -1
  78. package/dist/{features-CnFkUCj2.d.ts → features-SMSfJhB6.d.ts} +36 -2
  79. package/dist/{field-Bqn10Fq_.d.ts → field-D1Pfk-0S.d.ts} +2 -2
  80. package/dist/{field-BCRO19mk.d.ts → field-p9Rme2zB.d.ts} +6 -4
  81. package/dist/{git-sync-gAMKsZgN.d.ts → git-sync-BTf1aYHr.d.ts} +3 -3
  82. package/dist/{git-sync-DNXrNVCW.d.ts → git-sync-C99SVdJ9.d.ts} +2 -2
  83. package/dist/{glossary-CqFlzW33.d.ts → glossary-DFvnz-E5.d.ts} +1 -1
  84. package/dist/http/errors.d.ts +1 -1
  85. package/dist/http/transport.d.ts +1 -1
  86. package/dist/index.d.ts +43 -41
  87. package/dist/index.js +7 -5
  88. package/dist/input-gate-registry-Dai7SfXb.js +14 -0
  89. package/dist/input-gates-DwKoTJVQ.d.ts +28 -0
  90. package/dist/{json-CZvjc3--.d.ts → json-BksZpXDC.d.ts} +1 -1
  91. package/dist/json-pointer.d.ts +2 -1
  92. package/dist/json-pointer.js +4 -1
  93. package/dist/json.d.ts +1 -1
  94. package/dist/{library-Cx9h_RkU.d.ts → library-B9pEq7qP.d.ts} +8 -6
  95. package/dist/{measure-KuXdjZYJ.d.ts → measure-CgH14YQZ.d.ts} +1 -1
  96. package/dist/{measure-CuMqPbQX.d.ts → measure-lPz8qnwz.d.ts} +1 -1
  97. package/dist/{metric-yvehaVCS.d.ts → metric-DcYloqOQ.d.ts} +2 -2
  98. package/dist/{notification-BiegPoSD.d.ts → notification-Cp5GJErS.d.ts} +3 -3
  99. package/dist/{notification-BT2TDAd_.d.ts → notification-D1MThyKE.d.ts} +66 -2
  100. package/dist/{paginate-DZWvWvbm.d.ts → paginate-COuL0Gzl.d.ts} +1 -1
  101. package/dist/paginate.d.ts +1 -1
  102. package/dist/{pulse-CMc1Rwdj.d.ts → pulse-0LG3K6qO.d.ts} +7 -5
  103. package/dist/{pulse-dylocLd9.d.ts → pulse-BzKmz3Yn.d.ts} +2 -2
  104. package/dist/{replacement-CyvtbxGg.d.ts → replacement-BGyggp-G.d.ts} +5 -5
  105. package/dist/{replacement-S9U3gApY.d.ts → replacement-CVebCuNp.d.ts} +5 -5
  106. package/dist/{requirement-check-CIA5IHC1.d.ts → requirement-check-glU7wqhQ.d.ts} +2 -2
  107. package/dist/{requirements-C0txASN8.d.ts → requirements-Dx_ZVzl7.d.ts} +11 -1
  108. package/dist/resources/api-key.d.ts +11 -0
  109. package/dist/resources/api-key.js +35 -0
  110. package/dist/resources/card.d.ts +1 -1
  111. package/dist/resources/collection.d.ts +1 -1
  112. package/dist/resources/collection.js +29 -5
  113. package/dist/resources/content-translation.d.ts +1 -1
  114. package/dist/resources/content-translation.js +1 -1
  115. package/dist/resources/dashboard.d.ts +1 -1
  116. package/dist/resources/dashboard.js +8 -5
  117. package/dist/resources/data-action.d.ts +3 -48
  118. package/dist/resources/data-action.js +9 -9
  119. package/dist/resources/data-app.d.ts +112 -0
  120. package/dist/resources/data-app.js +75 -0
  121. package/dist/resources/database.d.ts +1 -1
  122. package/dist/resources/dataset.d.ts +1 -1
  123. package/dist/resources/dependency.d.ts +1 -1
  124. package/dist/resources/dependency.js +13 -7
  125. package/dist/resources/document.d.ts +2 -2
  126. package/dist/resources/eid-translation.d.ts +2 -2
  127. package/dist/resources/erd.d.ts +1 -1
  128. package/dist/resources/field.d.ts +1 -1
  129. package/dist/resources/field.js +3 -2
  130. package/dist/resources/git-sync.d.ts +1 -1
  131. package/dist/resources/git-sync.js +1 -1
  132. package/dist/resources/glossary.d.ts +1 -1
  133. package/dist/resources/library.d.ts +4 -4
  134. package/dist/resources/library.js +2 -2
  135. package/dist/resources/measure.d.ts +1 -1
  136. package/dist/resources/metric.d.ts +1 -1
  137. package/dist/resources/moderation-review.d.ts +1 -1
  138. package/dist/resources/notification.d.ts +1 -1
  139. package/dist/resources/notification.js +2 -2
  140. package/dist/resources/optional-parsed.d.ts +1 -1
  141. package/dist/resources/permission.d.ts +1 -1
  142. package/dist/resources/pivot-export.d.ts +1 -1
  143. package/dist/resources/pulse.d.ts +1 -1
  144. package/dist/resources/pulse.js +3 -2
  145. package/dist/resources/replacement.d.ts +1 -1
  146. package/dist/resources/revision.d.ts +3 -3
  147. package/dist/resources/revision.js +5 -10
  148. package/dist/resources/search.d.ts +1 -1
  149. package/dist/resources/search.js +23 -2
  150. package/dist/resources/segment.d.ts +1 -1
  151. package/dist/resources/setting.d.ts +1 -1
  152. package/dist/resources/setup.d.ts +2 -2
  153. package/dist/resources/snippet.d.ts +1 -1
  154. package/dist/resources/table.d.ts +1 -1
  155. package/dist/resources/table.js +9 -10
  156. package/dist/resources/timeline-event.d.ts +2 -2
  157. package/dist/resources/timeline.d.ts +1 -1
  158. package/dist/resources/transform-dag-run.d.ts +1 -1
  159. package/dist/resources/transform-inspector.d.ts +2 -2
  160. package/dist/resources/transform-job.d.ts +1 -1
  161. package/dist/resources/transform-python.d.ts +11 -4
  162. package/dist/resources/transform-python.js +3 -2
  163. package/dist/resources/transform-tag.d.ts +1 -1
  164. package/dist/resources/transform-test.d.ts +1 -1
  165. package/dist/resources/transform.d.ts +1 -1
  166. package/dist/resources/transform.js +13 -3
  167. package/dist/resources/upload.d.ts +1 -1
  168. package/dist/resources/user.d.ts +2 -2
  169. package/dist/{revision-CQBPhohA.d.ts → revision-Dyl-8p7d.d.ts} +8 -6
  170. package/dist/{search-NZR6iRBs.d.ts → search-Cm5IxKss.d.ts} +8 -8
  171. package/dist/{search-BxJipLN6.d.ts → search-Cten2h0I.d.ts} +2 -2
  172. package/dist/{segment-pj3wklGe.d.ts → segment-CbAgVO-5.d.ts} +1 -1
  173. package/dist/{segment-D2i34X9l.d.ts → segment-DQLX6r1E.d.ts} +2 -2
  174. package/dist/{setup-Ez_U7GmM.d.ts → setup-JqcJ2unJ.d.ts} +1 -1
  175. package/dist/signal.d.ts +1 -1
  176. package/dist/{snippet-hEV429Pv.d.ts → snippet-C_Ilx7tR.d.ts} +2 -2
  177. package/dist/{snippet-RnnWa4TL.d.ts → snippet-Djn0rL21.d.ts} +2 -2
  178. package/dist/{table-B_lfuaHc.d.ts → table-CDZbLNow.d.ts} +6 -6
  179. package/dist/{table-B3-UaPHa.d.ts → table-Od6uvDVW.d.ts} +19 -14
  180. package/dist/{timeline-folD3mQ_.d.ts → timeline-BK45hy-h.d.ts} +31 -31
  181. package/dist/{timeline-C2IEcRlP.d.ts → timeline-BTs6fuRp.d.ts} +2 -2
  182. package/dist/{transform-CDurgE1D.d.ts → transform-C5thnJwW.d.ts} +139 -23
  183. package/dist/{transform-CXOT5kFe.d.ts → transform-WASQAXeA.d.ts} +39 -25
  184. package/dist/{transform-inspector-BUYBt6--.d.ts → transform-inspector-CMCh8WKV.d.ts} +4 -4
  185. package/dist/{transform-job-CTJImaOd.d.ts → transform-job-D8jTQtdX.d.ts} +5 -3
  186. package/dist/{transform-job-29P6BULe.d.ts → transform-job-DmTwKxhc.d.ts} +4 -4
  187. package/dist/{transform-python-DdDnW6yK.d.ts → transform-python-DtL3xxMj.d.ts} +49 -4
  188. package/dist/{transform-tag-DVUIZTEM.d.ts → transform-tag-C6j5EUkX.d.ts} +1 -1
  189. package/dist/{transform-test-A-CJYT6B.d.ts → transform-test-CR_i54IV.d.ts} +1 -1
  190. package/dist/{transform-test-BwuyrHpT.d.ts → transform-test-CeMzDpUC.d.ts} +1 -1
  191. package/dist/{transport-E0ZaPNWJ.d.ts → transport-BsXqRujn.d.ts} +17 -3
  192. package/dist/{upload-B7PG3ePk.d.ts → upload-B5YjVkSW.d.ts} +1 -1
  193. package/dist/{user-2r0OBoO6.d.ts → user-Sqqv7rqh.d.ts} +2 -2
  194. package/dist/version/capability-error.d.ts +1 -1
  195. package/dist/version/features.d.ts +2 -2
  196. package/dist/version/features.js +30 -2
  197. package/dist/version/input-gates.d.ts +2 -0
  198. package/dist/version/input-gates.js +13 -0
  199. package/dist/version/probe.d.ts +1 -1
  200. package/dist/version/profile.d.ts +1 -1
  201. package/dist/version/requirement-check.d.ts +1 -1
  202. package/dist/version/requirements.d.ts +1 -1
  203. package/dist/version/requirements.js +10 -0
  204. package/package.json +3 -2
@@ -1,11 +1,12 @@
1
1
  import { PartialWriteError } from "../errors.js";
2
2
  import { CapabilityError } from "../version/capability-error.js";
3
3
  import { supersedingFeature } from "../version/requirement-check.js";
4
- import { Table, TableDataLayerTier, TableForeignKey, TableQueryMetadata, TableSelectors } from "../domain/table.js";
4
+ import { DATA_AUTHORITY_WITHDRAWAL_GATE, DATA_LAYER_MEDALLION_GATE, DATA_LAYER_TIER_GATE, Table, TableDataLayerTier, TableForeignKey, TableQueryMetadata, TableSelectors } from "../domain/table.js";
5
5
  import { t as explainer } from "../refusal-B9aeHMc9.js";
6
6
  import { buildCsvFormData } from "./csv-upload.js";
7
- import { fetchOptionalParsed } from "./optional-parsed.js";
8
7
  import { parseRequestBody } from "./request-body.js";
8
+ import { gateTriggered } from "../version/input-gates.js";
9
+ import { fetchOptionalParsed } from "./optional-parsed.js";
9
10
  import { z } from "zod";
10
11
  //#region src/resources/table.ts
11
12
  const TableApiList = z.array(Table);
@@ -28,14 +29,11 @@ function listParamFeatures(params) {
28
29
  return LIST_PARAM_FEATURES.filter(([param]) => params[param] === true).map(([, feature]) => feature);
29
30
  }
30
31
  function dataLayerFeatures(value, field) {
31
- return isTierName(value) ? [{
32
- feature: "tableDataLayerTiers",
32
+ return gateTriggered(DATA_LAYER_TIER_GATE, value) ? [{
33
+ feature: DATA_LAYER_TIER_GATE.feature,
33
34
  fields: [field]
34
35
  }] : [];
35
36
  }
36
- function isTierName(value) {
37
- return value !== null && value !== void 0 && TableDataLayerTier.safeParse(value).success;
38
- }
39
37
  const UPLOAD_UPDATE_PATHS = {
40
38
  append: "append-csv",
41
39
  replace: "replace-csv"
@@ -89,10 +87,11 @@ function tableResource(transport) {
89
87
  return updated;
90
88
  }
91
89
  async function refuseRewrittenDataLayer(value, options) {
92
- if (value === null || value === void 0 || isTierName(value)) return;
90
+ if (!gateTriggered(DATA_LAYER_MEDALLION_GATE, value)) return;
93
91
  const profile = await transport.preflightServer(options);
94
92
  if (profile === null) return;
95
- const failure = supersedingFeature("tableDataLayerTiers", profile, `data_layer "${value}" is a medallion name; this server names a table's layer ${TableDataLayerTier.options.join(", ")} and would map it onto one of those without a word`);
93
+ const detail = `data_layer "${value}" is a medallion name; this server names a table's layer ${TableDataLayerTier.options.join(", ")} and would map it onto one of those without a word`;
94
+ const failure = supersedingFeature(DATA_LAYER_MEDALLION_GATE.feature, profile, detail);
96
95
  if (failure !== null) transport.refuseBeforeSending(new CapabilityError(failure));
97
96
  }
98
97
  /** Get a table by id with its fields hydrated — the metadata the query builder runs on. */
@@ -168,7 +167,7 @@ function tableResource(transport) {
168
167
  };
169
168
  }
170
169
  async function requireDataAuthorityNull(value, options) {
171
- if (value === null) await transport.requireFeatures(["tableUserValueWithdrawal"], options);
170
+ if (gateTriggered(DATA_AUTHORITY_WITHDRAWAL_GATE, value)) await transport.requireFeatures([DATA_AUTHORITY_WITHDRAWAL_GATE.feature], options);
172
171
  }
173
172
  async function postSelection(path, selectors, options) {
174
173
  const body = parseRequestBody(TableSelectors, selectors, "table selectors");
@@ -1,5 +1,5 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-E0ZaPNWJ.js";
2
- import { i as TimelineEvent, o as TimelineEventCreateInput, s as TimelineEventUpdateInput } from "../timeline-folD3mQ_.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
+ import { i as TimelineEvent, o as TimelineEventCreateInput, s as TimelineEventUpdateInput } from "../timeline-BK45hy-h.js";
3
3
  //#region src/resources/timeline-event.d.ts
4
4
  declare function timelineEventResource(transport: Transport): {
5
5
  get: (id: number, options?: RequestOptions) => Promise<TimelineEvent>;
@@ -1,2 +1,2 @@
1
- import { n as TimelineListParams, r as timelineResource, t as TimelineEventsParams } from "../timeline-C2IEcRlP.js";
1
+ import { n as TimelineListParams, r as timelineResource, t as TimelineEventsParams } from "../timeline-BTs6fuRp.js";
2
2
  export { TimelineEventsParams, TimelineListParams, timelineResource };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
2
  import { t as ListResult } from "../list-BT_bBm9Z.js";
3
3
  //#region src/resources/transform-dag-run.d.ts
4
4
  declare function transformDagRunResource(transport: Transport): {
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
2
  //#region src/resources/transform-inspector.d.ts
3
3
  declare function transformInspectorResource(transport: Transport): {
4
4
  discover: (id: number, options?: RequestOptions | undefined) => Promise<{
@@ -149,7 +149,7 @@ declare function transformInspectorResource(transport: Transport): {
149
149
  [x: string]: unknown;
150
150
  name: string;
151
151
  };
152
- severity: "error" | "info" | "warning";
152
+ severity: "warning" | "info" | "error";
153
153
  message: string;
154
154
  metadata?: {
155
155
  [x: string]: unknown;
@@ -1,2 +1,2 @@
1
- import { n as transformJobResource, t as TransformJobRunParams } from "../transform-job-29P6BULe.js";
1
+ import { n as transformJobResource, t as TransformJobRunParams } from "../transform-job-DmTwKxhc.js";
2
2
  export { TransformJobRunParams, transformJobResource };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
2
  //#region src/resources/transform-python.d.ts
3
3
  declare function transformPythonResource(transport: Transport): {
4
4
  getLibrary: (path: string, options?: RequestOptions | undefined) => Promise<{
@@ -19,14 +19,21 @@ declare function transformPythonResource(transport: Transport): {
19
19
  }>;
20
20
  testRun: (params: {
21
21
  code: string;
22
- source_tables: {
22
+ source_tables: ({
23
23
  [x: string]: unknown;
24
24
  alias: string;
25
25
  database_id: number;
26
- schema: string | null;
26
+ schema?: string | null | undefined;
27
27
  table?: string | undefined;
28
28
  table_id?: number | null | undefined;
29
- }[];
29
+ } | {
30
+ [x: string]: unknown;
31
+ alias: string;
32
+ table_id: number;
33
+ database_id?: null | undefined;
34
+ schema?: null | undefined;
35
+ table?: null | undefined;
36
+ })[];
30
37
  output_row_limit?: number | undefined;
31
38
  per_input_row_limit?: number | undefined;
32
39
  }, options?: RequestOptions | undefined) => Promise<{
@@ -1,5 +1,5 @@
1
1
  import { t as explainer } from "../refusal-B9aeHMc9.js";
2
- import { PythonLibrary, PythonTestRunError, PythonTestRunOutput } from "../domain/transform-python.js";
2
+ import { PythonLibrary, PythonTestRunError, PythonTestRunOutput, pythonTestRunBody } from "../domain/transform-python.js";
3
3
  import { z } from "zod";
4
4
  //#region src/resources/transform-python.ts
5
5
  const PythonApiTestRun = z.union([z.object({
@@ -40,10 +40,11 @@ function transformPythonResource(transport) {
40
40
  * sizes are capped at 100 rows.
41
41
  */
42
42
  async function testRun(params, options = {}) {
43
+ const { features } = await transport.server(options);
43
44
  return transport.requestParsed(PythonApiTestRun, "/api/ee/transforms-python/test-run", {
44
45
  ...options,
45
46
  method: "POST",
46
- body: params
47
+ body: pythonTestRunBody(params, features)
47
48
  });
48
49
  }
49
50
  return {
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
2
  import { t as ListResult } from "../list-BT_bBm9Z.js";
3
3
  //#region src/resources/transform-tag.d.ts
4
4
  declare function transformTagResource(transport: Transport): {
@@ -1,2 +1,2 @@
1
- import { n as transformTestResource, t as TransformTestListParams } from "../transform-test-A-CJYT6B.js";
1
+ import { n as transformTestResource, t as TransformTestListParams } from "../transform-test-CR_i54IV.js";
2
2
  export { TransformTestListParams, transformTestResource };
@@ -1,2 +1,2 @@
1
- import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, o as transformResource, r as TransformRunPageParams, t as TransformDagParams } from "../transform-CXOT5kFe.js";
1
+ import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, o as transformResource, r as TransformRunPageParams, t as TransformDagParams } from "../transform-WASQAXeA.js";
2
2
  export { TransformDagParams, TransformRunPageOptions, TransformRunPageParams, TransformRunParams, TransformRunSummaryPageParams, transformResource };
@@ -2,7 +2,7 @@ import { TimeoutError } from "../errors.js";
2
2
  import { paginatePages } from "../paginate.js";
3
3
  import { t as explainer } from "../refusal-B9aeHMc9.js";
4
4
  import { pollUntil } from "../poll.js";
5
- import { TransformDagRunResult, TransformDagTransform, TransformRun, TransformRunSummary, isTransformRunFailed, isTransformRunTerminal, transformDetailSchema, transformRowSchema } from "../domain/transform.js";
5
+ import { TransformDagRunResult, TransformDagTransform, TransformRun, TransformRunSummary, isTransformRunFailed, isTransformRunTerminal, transformDetailSchema, transformRowSchema, transformSourceBody } from "../domain/transform.js";
6
6
  import { z } from "zod";
7
7
  //#region src/resources/transform.ts
8
8
  function transformListSchema(features) {
@@ -35,20 +35,30 @@ function transformResource(transport) {
35
35
  const { features } = await transport.server(options);
36
36
  return transport.requestParsed(transformDetailSchema(features), `/api/transform/${id}`, { ...options });
37
37
  }
38
+ async function writeBody(params, options) {
39
+ if (params.source === void 0) return params;
40
+ const { features } = await transport.server(options);
41
+ return {
42
+ ...params,
43
+ source: transformSourceBody(params.source, features)
44
+ };
45
+ }
38
46
  /** Create a transform — a query plus the warehouse table it writes — from a full body. */
39
47
  async function create(params, options = {}) {
48
+ const body = await writeBody(params, options);
40
49
  return requestTransform("/api/transform", {
41
50
  ...options,
42
51
  method: "POST",
43
- body: params
52
+ body
44
53
  });
45
54
  }
46
55
  /** Update a transform by id, patching only the fields the body carries. */
47
56
  async function update(id, params, options = {}) {
57
+ const body = await writeBody(params, options);
48
58
  return requestTransform(`/api/transform/${id}`, {
49
59
  ...options,
50
60
  method: "PUT",
51
- body: params
61
+ body
52
62
  });
53
63
  }
54
64
  /** Delete a transform by id, leaving any table it already materialized in place. */
@@ -1,2 +1,2 @@
1
- import { n as uploadResource, t as UploadCsvParams } from "../upload-B7PG3ePk.js";
1
+ import { n as uploadResource, t as UploadCsvParams } from "../upload-B5YjVkSW.js";
2
2
  export { UploadCsvParams, uploadResource };
@@ -1,5 +1,5 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-E0ZaPNWJ.js";
2
- import { t as CurrentUser } from "../user-2r0OBoO6.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
+ import { t as CurrentUser } from "../user-Sqqv7rqh.js";
3
3
  //#region src/resources/user.d.ts
4
4
  declare function userResource(transport: Transport): {
5
5
  current: (options?: RequestOptions) => Promise<CurrentUser>;
@@ -1,12 +1,13 @@
1
+ import { r as InputGate } from "./input-gates-DwKoTJVQ.js";
1
2
  import { z } from "zod";
2
3
  //#region src/domain/revision.d.ts
3
4
  declare const RevisionEntity: z.ZodEnum<{
5
+ transform: "transform";
4
6
  card: "card";
5
7
  dashboard: "dashboard";
6
8
  document: "document";
7
9
  measure: "measure";
8
10
  segment: "segment";
9
- transform: "transform";
10
11
  "transform-test": "transform-test";
11
12
  }>;
12
13
  type RevisionEntity = z.infer<typeof RevisionEntity>;
@@ -28,15 +29,15 @@ declare const Revision: z.ZodObject<{
28
29
  }, z.core.$loose>;
29
30
  type Revision = z.infer<typeof Revision>;
30
31
  declare const RevisionCompact: z.ZodObject<{
32
+ id: z.ZodNumber;
33
+ description: z.ZodString;
34
+ timestamp: z.ZodString;
31
35
  user: z.ZodObject<{
32
36
  id: z.ZodNumber;
33
37
  first_name: z.ZodNullable<z.ZodString>;
34
38
  last_name: z.ZodNullable<z.ZodString>;
35
39
  common_name: z.ZodString;
36
40
  }, z.core.$loose>;
37
- id: z.ZodNumber;
38
- description: z.ZodString;
39
- timestamp: z.ZodString;
40
41
  is_creation: z.ZodBoolean;
41
42
  is_reversion: z.ZodBoolean;
42
43
  }, z.core.$strip>;
@@ -53,14 +54,15 @@ declare const RevisionRow: z.ZodObject<{
53
54
  most_recent: z.ZodBoolean;
54
55
  }, z.core.$loose>;
55
56
  type RevisionRow = z.infer<typeof RevisionRow>;
57
+ declare const REVISION_ENTITY_GATES: readonly InputGate[];
56
58
  declare const RevisionRevertInput: z.ZodObject<{
57
59
  entity: z.ZodEnum<{
60
+ transform: "transform";
58
61
  card: "card";
59
62
  dashboard: "dashboard";
60
63
  document: "document";
61
64
  measure: "measure";
62
65
  segment: "segment";
63
- transform: "transform";
64
66
  "transform-test": "transform-test";
65
67
  }>;
66
68
  id: z.ZodNumber;
@@ -101,4 +103,4 @@ declare const RevisionRevert: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
103
  }, z.core.$strip>], "outcome">;
102
104
  type RevisionRevert = z.infer<typeof RevisionRevert>;
103
105
  //#endregion
104
- export { RevisionRevertInput as a, RevisionRevert as i, RevisionCompact as n, RevisionRow as o, RevisionEntity as r, Revision as t };
106
+ export { RevisionRevert as a, RevisionEntity as i, Revision as n, RevisionRevertInput as o, RevisionCompact as r, RevisionRow as s, REVISION_ENTITY_GATES as t };
@@ -2,8 +2,9 @@ import { z } from "zod";
2
2
  //#region src/domain/search.d.ts
3
3
  declare const SEARCH_MODELS: readonly ["card", "dataset", "metric", "dashboard", "collection", "database", "table", "segment", "measure", "document", "exploration", "action", "transform", "indexed-entity"];
4
4
  declare const SearchModel: z.ZodEnum<{
5
- card: "card";
5
+ transform: "transform";
6
6
  collection: "collection";
7
+ card: "card";
7
8
  dashboard: "dashboard";
8
9
  database: "database";
9
10
  dataset: "dataset";
@@ -12,7 +13,6 @@ declare const SearchModel: z.ZodEnum<{
12
13
  measure: "measure";
13
14
  segment: "segment";
14
15
  table: "table";
15
- transform: "transform";
16
16
  exploration: "exploration";
17
17
  "indexed-entity": "indexed-entity";
18
18
  action: "action";
@@ -22,8 +22,9 @@ declare const SearchResult: z.ZodObject<{
22
22
  id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
23
23
  name: z.ZodString;
24
24
  model: z.ZodEnum<{
25
- card: "card";
25
+ transform: "transform";
26
26
  collection: "collection";
27
+ card: "card";
27
28
  dashboard: "dashboard";
28
29
  database: "database";
29
30
  dataset: "dataset";
@@ -32,7 +33,6 @@ declare const SearchResult: z.ZodObject<{
32
33
  measure: "measure";
33
34
  segment: "segment";
34
35
  table: "table";
35
- transform: "transform";
36
36
  exploration: "exploration";
37
37
  "indexed-entity": "indexed-entity";
38
38
  action: "action";
@@ -60,12 +60,13 @@ declare const SearchResult: z.ZodObject<{
60
60
  }, z.core.$loose>;
61
61
  type SearchResult = z.infer<typeof SearchResult>;
62
62
  declare const SearchResultCompact: z.ZodObject<{
63
- name: z.ZodString;
64
63
  id: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
64
+ name: z.ZodString;
65
65
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  model: z.ZodEnum<{
67
- card: "card";
67
+ transform: "transform";
68
68
  collection: "collection";
69
+ card: "card";
69
70
  dashboard: "dashboard";
70
71
  database: "database";
71
72
  dataset: "dataset";
@@ -74,7 +75,6 @@ declare const SearchResultCompact: z.ZodObject<{
74
75
  measure: "measure";
75
76
  segment: "segment";
76
77
  table: "table";
77
- transform: "transform";
78
78
  exploration: "exploration";
79
79
  "indexed-entity": "indexed-entity";
80
80
  action: "action";
@@ -83,8 +83,8 @@ declare const SearchResultCompact: z.ZodObject<{
83
83
  database_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
84
  table_schema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
85
  dashboard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
86
- name: z.ZodString;
87
86
  id: z.ZodNumber;
87
+ name: z.ZodString;
88
88
  }, z.core.$strip>>>;
89
89
  }, z.core.$strip>;
90
90
  type SearchResultCompact = z.infer<typeof SearchResultCompact>;
@@ -1,5 +1,5 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
2
- import { n as SearchModel, r as SearchResult } from "./search-NZR6iRBs.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
2
+ import { n as SearchModel, r as SearchResult } from "./search-Cm5IxKss.js";
3
3
  //#region src/resources/search.d.ts
4
4
  interface SearchPage {
5
5
  data: SearchResult[];
@@ -18,8 +18,8 @@ declare const Segment: z.ZodObject<{
18
18
  }, z.core.$loose>;
19
19
  type Segment = z.infer<typeof Segment>;
20
20
  declare const SegmentCompact: z.ZodObject<{
21
- name: z.ZodString;
22
21
  id: z.ZodNumber;
22
+ name: z.ZodString;
23
23
  description: z.ZodNullable<z.ZodString>;
24
24
  archived: z.ZodBoolean;
25
25
  table_id: z.ZodNumber;
@@ -1,6 +1,6 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-pj3wklGe.js";
3
+ import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
4
4
  //#region src/resources/segment.d.ts
5
5
  interface SegmentArchiveParams {
6
6
  revision_message: string;
@@ -5,7 +5,7 @@ declare const SetupInput: z.ZodObject<{
5
5
  user: z.ZodObject<{
6
6
  first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- email: z.ZodEmail;
8
+ email: z.ZodString;
9
9
  password: z.ZodString;
10
10
  }, z.core.$loose>;
11
11
  prefs: z.ZodObject<{
package/dist/signal.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { X as MetabaseError } from "./transport-E0ZaPNWJ.js";
1
+ import { X as MetabaseError } from "./transport-BsXqRujn.js";
2
2
  //#region src/signal.d.ts
3
3
  declare function combineAborts(...signals: Array<AbortSignal | undefined>): AbortSignal;
4
4
  declare function throwIfAborted(...signals: Array<AbortSignal | undefined>): void;
@@ -15,11 +15,11 @@ declare const Snippet: z.ZodObject<{
15
15
  }, z.core.$loose>;
16
16
  type Snippet = z.infer<typeof Snippet>;
17
17
  declare const SnippetCompact: z.ZodObject<{
18
- name: z.ZodString;
19
18
  id: z.ZodNumber;
20
- collection_id: z.ZodNullable<z.ZodNumber>;
19
+ name: z.ZodString;
21
20
  description: z.ZodNullable<z.ZodString>;
22
21
  archived: z.ZodBoolean;
22
+ collection_id: z.ZodNullable<z.ZodNumber>;
23
23
  }, z.core.$strip>;
24
24
  type SnippetCompact = z.infer<typeof SnippetCompact>;
25
25
  declare const SnippetCreateInput: z.ZodObject<{
@@ -1,6 +1,6 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-hEV429Pv.js";
3
+ import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-C_Ilx7tR.js";
4
4
  //#region src/resources/snippet.d.ts
5
5
  interface SnippetListParams {
6
6
  archived?: boolean | undefined;
@@ -1,6 +1,6 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-E0ZaPNWJ.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { d as TableFieldValuesResult, f as TableForeignKey, h as TableQueryMetadata, l as TableDataSource, o as TableDataLayer, t as Table, v as TableSchemaSyncResult } from "./table-B3-UaPHa.js";
3
+ import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, p as TableDataSource, u as TableDataLayer, y as TableQueryMetadata } from "./table-Od6uvDVW.js";
4
4
  import { r as UploadUpdateResult } from "./upload-UPfZFdbH.js";
5
5
  import { t as CsvFile } from "./csv-upload--K35QedP.js";
6
6
  //#region src/resources/table.d.ts
@@ -67,9 +67,9 @@ declare function tableResource(transport: Transport): {
67
67
  caveats?: string | null | undefined;
68
68
  points_of_interest?: string | null | undefined;
69
69
  show_in_getting_started?: boolean | undefined;
70
- field_order?: "database" | "custom" | "alphabetical" | "smart" | undefined;
70
+ field_order?: "custom" | "database" | "alphabetical" | "smart" | undefined;
71
71
  data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
72
- data_source?: "unknown" | "upload" | "transform" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
72
+ data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
73
73
  data_layer?: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
74
74
  owner_email?: string | null | undefined;
75
75
  owner_user_id?: number | null | undefined;
@@ -122,7 +122,7 @@ declare function tableResource(transport: Transport): {
122
122
  schema_ids?: string[] | undefined;
123
123
  table_ids?: number[] | undefined;
124
124
  data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
125
- data_source?: "unknown" | "upload" | "transform" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
125
+ data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
126
126
  data_layer?: "internal" | "hidden" | "final" | null | undefined;
127
127
  entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
128
128
  owner_email?: string | null | undefined;
@@ -133,7 +133,7 @@ declare function tableResource(transport: Transport): {
133
133
  schema_ids?: string[] | undefined;
134
134
  table_ids?: number[] | undefined;
135
135
  data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
136
- data_source?: "unknown" | "upload" | "transform" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
136
+ data_source?: "unknown" | "transform" | "upload" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
137
137
  data_layer?: "internal" | "hidden" | "final" | null | undefined;
138
138
  entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
139
139
  owner_email?: string | null | undefined;
@@ -1,3 +1,4 @@
1
+ import { r as InputGate } from "./input-gates-DwKoTJVQ.js";
1
2
  import { z } from "zod";
2
3
  //#region src/domain/table.d.ts
3
4
  declare const TableVisibilityType: z.ZodEnum<{
@@ -1021,8 +1022,8 @@ declare const TableGetInclude: z.ZodEnum<{
1021
1022
  }>;
1022
1023
  type TableGetInclude = z.infer<typeof TableGetInclude>;
1023
1024
  declare const TableCompact: z.ZodObject<{
1024
- name: z.ZodString;
1025
1025
  id: z.ZodNumber;
1026
+ name: z.ZodString;
1026
1027
  description: z.ZodNullable<z.ZodString>;
1027
1028
  display_name: z.ZodString;
1028
1029
  db_id: z.ZodNumber;
@@ -1044,8 +1045,8 @@ declare const TableCompact: z.ZodObject<{
1044
1045
  }>>;
1045
1046
  is_published: z.ZodOptional<z.ZodBoolean>;
1046
1047
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1047
- name: z.ZodString;
1048
1048
  id: z.ZodNumber;
1049
+ name: z.ZodString;
1049
1050
  description: z.ZodNullable<z.ZodString>;
1050
1051
  display_name: z.ZodString;
1051
1052
  table_id: z.ZodNumber;
@@ -1214,8 +1215,8 @@ declare const TableCompact: z.ZodObject<{
1214
1215
  }, z.core.$strip>;
1215
1216
  type TableCompact = z.infer<typeof TableCompact>;
1216
1217
  declare const TableQueryMetadataCompact: z.ZodObject<{
1217
- name: z.ZodString;
1218
1218
  id: z.ZodNumber;
1219
+ name: z.ZodString;
1219
1220
  description: z.ZodNullable<z.ZodString>;
1220
1221
  display_name: z.ZodString;
1221
1222
  db_id: z.ZodNumber;
@@ -1237,8 +1238,8 @@ declare const TableQueryMetadataCompact: z.ZodObject<{
1237
1238
  }>>;
1238
1239
  is_published: z.ZodOptional<z.ZodBoolean>;
1239
1240
  fields: z.ZodArray<z.ZodObject<{
1240
- name: z.ZodString;
1241
1241
  id: z.ZodNumber;
1242
+ name: z.ZodString;
1242
1243
  description: z.ZodNullable<z.ZodString>;
1243
1244
  display_name: z.ZodString;
1244
1245
  table_id: z.ZodNumber;
@@ -1406,10 +1407,14 @@ declare const TableQueryMetadataCompact: z.ZodObject<{
1406
1407
  }, z.core.$strip>>;
1407
1408
  }, z.core.$strip>;
1408
1409
  type TableQueryMetadataCompact = z.infer<typeof TableQueryMetadataCompact>;
1410
+ declare const DATA_LAYER_TIER_GATE: InputGate;
1411
+ declare const DATA_LAYER_MEDALLION_GATE: InputGate;
1412
+ declare const TABLE_FROM_DEFINITION_GATE: InputGate;
1413
+ declare const DATA_AUTHORITY_WITHDRAWAL_GATE: InputGate;
1409
1414
  declare const TableDataSource: z.ZodEnum<{
1410
1415
  unknown: "unknown";
1411
- upload: "upload";
1412
1416
  transform: "transform";
1417
+ upload: "upload";
1413
1418
  ingested: "ingested";
1414
1419
  "metabase-transform": "metabase-transform";
1415
1420
  "source-data": "source-data";
@@ -1436,8 +1441,8 @@ declare const TableUpdateInput: z.ZodObject<{
1436
1441
  points_of_interest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1437
1442
  show_in_getting_started: z.ZodOptional<z.ZodBoolean>;
1438
1443
  field_order: z.ZodOptional<z.ZodEnum<{
1439
- database: "database";
1440
1444
  custom: "custom";
1445
+ database: "database";
1441
1446
  alphabetical: "alphabetical";
1442
1447
  smart: "smart";
1443
1448
  }>>;
@@ -1449,8 +1454,8 @@ declare const TableUpdateInput: z.ZodObject<{
1449
1454
  }>>>;
1450
1455
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1451
1456
  unknown: "unknown";
1452
- upload: "upload";
1453
1457
  transform: "transform";
1458
+ upload: "upload";
1454
1459
  ingested: "ingested";
1455
1460
  "metabase-transform": "metabase-transform";
1456
1461
  "source-data": "source-data";
@@ -1485,8 +1490,8 @@ declare const TableBulkEditFields: z.ZodObject<{
1485
1490
  }>>>;
1486
1491
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1487
1492
  unknown: "unknown";
1488
- upload: "upload";
1489
1493
  transform: "transform";
1494
+ upload: "upload";
1490
1495
  ingested: "ingested";
1491
1496
  "metabase-transform": "metabase-transform";
1492
1497
  "source-data": "source-data";
@@ -1520,8 +1525,8 @@ declare const TableBulkEditInput: z.ZodObject<{
1520
1525
  }>>>;
1521
1526
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1522
1527
  unknown: "unknown";
1523
- upload: "upload";
1524
1528
  transform: "transform";
1529
+ upload: "upload";
1525
1530
  ingested: "ingested";
1526
1531
  "metabase-transform": "metabase-transform";
1527
1532
  "source-data": "source-data";
@@ -1573,8 +1578,8 @@ declare const TableBulkEditResult: z.ZodObject<{
1573
1578
  }>>>;
1574
1579
  data_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1575
1580
  unknown: "unknown";
1576
- upload: "upload";
1577
1581
  transform: "transform";
1582
+ upload: "upload";
1578
1583
  ingested: "ingested";
1579
1584
  "metabase-transform": "metabase-transform";
1580
1585
  "source-data": "source-data";
@@ -2881,8 +2886,8 @@ declare const TableForeignKeyCompact: z.ZodObject<{
2881
2886
  origin_id: z.ZodNumber;
2882
2887
  destination_id: z.ZodNumber;
2883
2888
  origin: z.ZodObject<{
2884
- name: z.ZodString;
2885
2889
  id: z.ZodNumber;
2890
+ name: z.ZodString;
2886
2891
  description: z.ZodNullable<z.ZodString>;
2887
2892
  display_name: z.ZodString;
2888
2893
  table_id: z.ZodNumber;
@@ -3048,16 +3053,16 @@ declare const TableForeignKeyCompact: z.ZodObject<{
3048
3053
  }>>;
3049
3054
  fk_target_field_id: z.ZodNullable<z.ZodNumber>;
3050
3055
  table: z.ZodObject<{
3051
- name: z.ZodString;
3052
3056
  id: z.ZodNumber;
3057
+ name: z.ZodString;
3053
3058
  display_name: z.ZodString;
3054
3059
  db_id: z.ZodNumber;
3055
3060
  schema: z.ZodNullable<z.ZodString>;
3056
3061
  }, z.core.$strip>;
3057
3062
  }, z.core.$strip>;
3058
3063
  destination: z.ZodObject<{
3059
- name: z.ZodString;
3060
3064
  id: z.ZodNumber;
3065
+ name: z.ZodString;
3061
3066
  description: z.ZodNullable<z.ZodString>;
3062
3067
  display_name: z.ZodString;
3063
3068
  table_id: z.ZodNumber;
@@ -3226,4 +3231,4 @@ declare const TableForeignKeyCompact: z.ZodObject<{
3226
3231
  }, z.core.$strip>;
3227
3232
  type TableForeignKeyCompact = z.infer<typeof TableForeignKeyCompact>;
3228
3233
  //#endregion
3229
- export { TableVisibilityType as S, TableSchemaId as _, TableCompact as a, TableSelectors as b, TableDataLayerTier as c, TableFieldValuesResult as d, TableForeignKey as f, TableQueryMetadataCompact as g, TableQueryMetadata as h, TableBulkEditResult as i, TableDataSource as l, TableGetInclude as m, TableBulkEditFields as n, TableDataLayer as o, TableForeignKeyCompact as p, TableBulkEditInput as r, TableDataLayerMedallion as s, Table as t, TableDatabase as u, TableSchemaSyncResult as v, TableUpdateInput as x, TableSelectionResult as y };
3234
+ export { TableSelectionResult as C, TableVisibilityType as E, TableSchemaSyncResult as S, TableUpdateInput as T, TableForeignKeyCompact as _, Table as a, TableQueryMetadataCompact as b, TableBulkEditResult as c, TableDataLayerMedallion as d, TableDataLayerTier as f, TableForeignKey as g, TableFieldValuesResult as h, TABLE_FROM_DEFINITION_GATE as i, TableCompact as l, TableDatabase as m, DATA_LAYER_MEDALLION_GATE as n, TableBulkEditFields as o, TableDataSource as p, DATA_LAYER_TIER_GATE as r, TableBulkEditInput as s, DATA_AUTHORITY_WITHDRAWAL_GATE as t, TableDataLayer as u, TableGetInclude as v, TableSelectors as w, TableSchemaId as x, TableQueryMetadata as y };