@metabase/client 0.1.3 → 0.1.4

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 (178) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/{card-BBLDmhtp.d.ts → card-CAOxi3ZU.d.ts} +3 -3
  4. package/dist/{card-DkHtPMK4.d.ts → card-Ik580mDC.d.ts} +3 -3
  5. package/dist/{client-eOkt3tTd.d.ts → client-CQkS1030.d.ts} +112 -129
  6. package/dist/client.d.ts +1 -1
  7. package/dist/client.js +1 -1
  8. package/dist/{collection-DWjkDrln.d.ts → collection-B31DGW6J.d.ts} +3 -3
  9. package/dist/{collection-BtjnSckn.d.ts → collection-kN2oYenF.d.ts} +1 -1
  10. package/dist/{dashboard-DtLXVgtf.d.ts → dashboard-Bkl_vs7L.d.ts} +5 -5
  11. package/dist/{dashboard-B4qWeR10.d.ts → dashboard-ClJ5XHXJ.d.ts} +3 -3
  12. package/dist/{data-action-DqwcRA7B.d.ts → data-action-CCU3lzoY.d.ts} +2 -2
  13. package/dist/data-app-DAEPU9W5.d.ts +111 -0
  14. package/dist/{database-DULVEXki.d.ts → database-B54owh7H.d.ts} +2 -2
  15. package/dist/{database-Cw8ICtQi.d.ts → database-DNQLCRBJ.d.ts} +3 -3
  16. package/dist/{dataset-Du1GRHhd.d.ts → dataset-Bj3bNqjm.d.ts} +3 -3
  17. package/dist/{dataset-26H-dH4N.d.ts → dataset-C05pNRjH.d.ts} +3 -3
  18. package/dist/{dependency-elYkHuk5.d.ts → dependency-NbXbo_fE.d.ts} +3 -3
  19. package/dist/domain/card.d.ts +1 -1
  20. package/dist/domain/collection.d.ts +1 -1
  21. package/dist/domain/dashboard.d.ts +1 -1
  22. package/dist/domain/data-action.d.ts +1 -1
  23. package/dist/domain/data-app.d.ts +2 -2
  24. package/dist/domain/data-app.js +27 -14
  25. package/dist/domain/database.d.ts +1 -1
  26. package/dist/domain/dataset.d.ts +1 -1
  27. package/dist/domain/field.d.ts +1 -1
  28. package/dist/domain/git-sync.d.ts +1 -1
  29. package/dist/domain/library.d.ts +1 -1
  30. package/dist/domain/metric.d.ts +1 -1
  31. package/dist/domain/parameter.d.ts +1 -1
  32. package/dist/domain/pulse.d.ts +1 -1
  33. package/dist/domain/replacement.d.ts +1 -1
  34. package/dist/domain/revision.d.ts +1 -1
  35. package/dist/domain/search.d.ts +1 -1
  36. package/dist/domain/table.d.ts +1 -1
  37. package/dist/domain/timeline.d.ts +1 -1
  38. package/dist/domain/transform-dag-run.d.ts +1 -1
  39. package/dist/domain/transform-job.d.ts +1 -1
  40. package/dist/domain/transform-python.d.ts +1 -1
  41. package/dist/domain/transform-test.d.ts +2 -2
  42. package/dist/domain/transform-test.js +5 -1
  43. package/dist/domain/transform.d.ts +1 -1
  44. package/dist/{erd-D2fpjDTj.d.ts → erd-BJ3OjckY.d.ts} +1 -1
  45. package/dist/{errors-DdMlaXqq.js → errors-D5mjCJCW.js} +12 -4
  46. package/dist/errors.d.ts +1 -1
  47. package/dist/{features-SMSfJhB6.d.ts → features-BwC2QUQB.d.ts} +4 -0
  48. package/dist/{field-awM3Y7IP.d.ts → field-Be27Kzlx.d.ts} +2 -2
  49. package/dist/{field-D-kF3G7v.d.ts → field-CCp65II7.d.ts} +2 -2
  50. package/dist/{git-sync-8Tk8TirZ.d.ts → git-sync-CBplEGj0.d.ts} +1 -1
  51. package/dist/{git-sync-nvbSaNfS.d.ts → git-sync-D1gts9j5.d.ts} +1 -1
  52. package/dist/{glossary-CQMSJmIx.d.ts → glossary-yuKOTBXb.d.ts} +1 -1
  53. package/dist/http/errors.d.ts +1 -1
  54. package/dist/http/errors.js +1 -1
  55. package/dist/http/oauth.js +1 -1
  56. package/dist/http/transport.d.ts +1 -1
  57. package/dist/http/transport.js +1 -1
  58. package/dist/index.d.ts +31 -31
  59. package/dist/index.js +5 -5
  60. package/dist/{input-gates-DwKoTJVQ.d.ts → input-gates-DLCSnwRf.d.ts} +1 -1
  61. package/dist/{json-DvOVLFVY.d.ts → json-DK8ntK_m.d.ts} +1 -1
  62. package/dist/json.d.ts +1 -1
  63. package/dist/{library-B9pEq7qP.d.ts → library-DZpIRTeG.d.ts} +2 -2
  64. package/dist/{measure-D4ArCbsa.d.ts → measure-DZ7RmNPs.d.ts} +1 -1
  65. package/dist/{metric-BtEVH_Yp.d.ts → metric-CKhTot_B.d.ts} +1 -1
  66. package/dist/{notification-BsuPAfMW.d.ts → notification-BwLEwNk9.d.ts} +1 -1
  67. package/dist/{paginate-Du9kUbXZ.d.ts → paginate-CPjKDJ2m.d.ts} +1 -1
  68. package/dist/paginate.d.ts +1 -1
  69. package/dist/{parameter-ak-J-IOj.d.ts → parameter-CvyXRH6F.d.ts} +2 -2
  70. package/dist/{pulse-0LG3K6qO.d.ts → pulse-BgS7Y3MU.d.ts} +4 -4
  71. package/dist/{pulse-drQKS_pg.d.ts → pulse-DEKvyd8u.d.ts} +2 -2
  72. package/dist/{refusal-B9aeHMc9.js → refusal-CvN0pxPR.js} +1 -1
  73. package/dist/{replacement-CyvtbxGg.d.ts → replacement-Bu4qxOua.d.ts} +6 -6
  74. package/dist/{replacement-g3IKzPPj.d.ts → replacement-WU_rk924.d.ts} +3 -3
  75. package/dist/{requirement-check-Nv0trVbp.d.ts → requirement-check-B5tsY6Z_.d.ts} +2 -2
  76. package/dist/{requirements-Dx_ZVzl7.d.ts → requirements-CW0DsGzZ.d.ts} +4 -5
  77. package/dist/resources/api-key.d.ts +1 -1
  78. package/dist/resources/card.d.ts +1 -1
  79. package/dist/resources/collection.d.ts +1 -1
  80. package/dist/resources/collection.js +1 -1
  81. package/dist/resources/content-translation.d.ts +1 -1
  82. package/dist/resources/content-translation.js +1 -1
  83. package/dist/resources/dashboard.d.ts +1 -1
  84. package/dist/resources/dashboard.js +1 -1
  85. package/dist/resources/data-action.d.ts +2 -2
  86. package/dist/resources/data-action.js +1 -1
  87. package/dist/resources/data-app.d.ts +35 -52
  88. package/dist/resources/data-app.js +23 -38
  89. package/dist/resources/database.d.ts +1 -1
  90. package/dist/resources/dataset.d.ts +1 -1
  91. package/dist/resources/dependency.d.ts +1 -1
  92. package/dist/resources/dependency.js +1 -1
  93. package/dist/resources/document.d.ts +1 -1
  94. package/dist/resources/document.js +1 -1
  95. package/dist/resources/eid-translation.d.ts +1 -1
  96. package/dist/resources/erd.d.ts +1 -1
  97. package/dist/resources/erd.js +1 -1
  98. package/dist/resources/field.d.ts +1 -1
  99. package/dist/resources/field.js +1 -1
  100. package/dist/resources/git-sync.d.ts +1 -1
  101. package/dist/resources/git-sync.js +2 -2
  102. package/dist/resources/glossary.d.ts +1 -1
  103. package/dist/resources/library.d.ts +1 -1
  104. package/dist/resources/library.js +1 -1
  105. package/dist/resources/measure.d.ts +1 -1
  106. package/dist/resources/measure.js +1 -1
  107. package/dist/resources/metric.d.ts +1 -1
  108. package/dist/resources/metric.js +1 -1
  109. package/dist/resources/moderation-review.d.ts +1 -1
  110. package/dist/resources/moderation-review.js +1 -1
  111. package/dist/resources/notification.d.ts +1 -1
  112. package/dist/resources/optional-parsed.d.ts +1 -1
  113. package/dist/resources/permission.d.ts +1 -1
  114. package/dist/resources/pivot-export.d.ts +1 -1
  115. package/dist/resources/pulse.d.ts +1 -1
  116. package/dist/resources/replacement.d.ts +1 -1
  117. package/dist/resources/replacement.js +1 -1
  118. package/dist/resources/revision.d.ts +1 -1
  119. package/dist/resources/revision.js +1 -1
  120. package/dist/resources/search.d.ts +1 -1
  121. package/dist/resources/search.js +1 -1
  122. package/dist/resources/segment.d.ts +1 -1
  123. package/dist/resources/setting.d.ts +1 -1
  124. package/dist/resources/setup.d.ts +1 -1
  125. package/dist/resources/snippet.d.ts +1 -1
  126. package/dist/resources/table.d.ts +1 -1
  127. package/dist/resources/table.js +1 -1
  128. package/dist/resources/timeline-event.d.ts +2 -2
  129. package/dist/resources/timeline.d.ts +1 -1
  130. package/dist/resources/transform-dag-run.d.ts +2 -2
  131. package/dist/resources/transform-dag-run.js +1 -1
  132. package/dist/resources/transform-inspector.d.ts +1 -1
  133. package/dist/resources/transform-inspector.js +1 -1
  134. package/dist/resources/transform-job.d.ts +1 -1
  135. package/dist/resources/transform-job.js +1 -1
  136. package/dist/resources/transform-python.d.ts +1 -1
  137. package/dist/resources/transform-python.js +1 -1
  138. package/dist/resources/transform-tag.d.ts +1 -1
  139. package/dist/resources/transform-tag.js +1 -1
  140. package/dist/resources/transform-test.d.ts +1 -1
  141. package/dist/resources/transform-test.js +1 -1
  142. package/dist/resources/transform.d.ts +1 -1
  143. package/dist/resources/transform.js +1 -1
  144. package/dist/resources/upload.d.ts +1 -1
  145. package/dist/resources/user.d.ts +1 -1
  146. package/dist/{revision-Cft5Lcev.d.ts → revision-CwP4-eqv.d.ts} +2 -2
  147. package/dist/{search-BUr4r7d2.d.ts → search-C0PiFw8c.d.ts} +1 -1
  148. package/dist/{search-DX1IVRRC.d.ts → search-DjJ_lu_o.d.ts} +2 -2
  149. package/dist/{segment-c2EDEJNd.d.ts → segment-BR0OAdWN.d.ts} +1 -1
  150. package/dist/signal.d.ts +1 -1
  151. package/dist/{snippet-CSt-f812.d.ts → snippet-C5naeVEd.d.ts} +1 -1
  152. package/dist/{table-R-q8w__K.d.ts → table-B3lazUvH.d.ts} +16 -16
  153. package/dist/{table-BA-k8Zgt.d.ts → table-DT3kO7JU.d.ts} +10 -10
  154. package/dist/{timeline-B35sx1FM.d.ts → timeline-Bnn28jC7.d.ts} +1 -1
  155. package/dist/{timeline-D3Clk0_n.d.ts → timeline-vJHDIuDJ.d.ts} +2 -2
  156. package/dist/{transform-C5thnJwW.d.ts → transform-B0mugBQQ.d.ts} +15 -15
  157. package/dist/{transform-DzgPup_a.d.ts → transform-Buv3VvTt.d.ts} +12 -12
  158. package/dist/{transform-dag-run-BgZwv1yx.d.ts → transform-dag-run-BSrdrjaK.d.ts} +4 -4
  159. package/dist/{transform-job-DtLWrsyH.d.ts → transform-job-BFLbsf5-.d.ts} +6 -6
  160. package/dist/{transform-job-D8jTQtdX.d.ts → transform-job-DV28hc1A.d.ts} +4 -4
  161. package/dist/{transform-python-DtL3xxMj.d.ts → transform-python-B-jBoeVa.d.ts} +1 -1
  162. package/dist/{transform-test-B_HR-yKA.d.ts → transform-test-3uuvuwyQ.d.ts} +2 -2
  163. package/dist/{transform-test-CeMzDpUC.d.ts → transform-test-DpTJm7H7.d.ts} +3 -2
  164. package/dist/{transport-CyHAGDqx.d.ts → transport-CM-eJat3.d.ts} +5 -1
  165. package/dist/{transport-HP7cyo9N.js → transport-D52WFGBR.js} +1 -1
  166. package/dist/{upload-BSixoElJ.d.ts → upload-BxRCvpJo.d.ts} +1 -1
  167. package/dist/version/capability-error.d.ts +1 -1
  168. package/dist/version/capability-error.js +1 -1
  169. package/dist/version/features.d.ts +1 -1
  170. package/dist/version/features.js +1 -0
  171. package/dist/version/input-gates.d.ts +1 -1
  172. package/dist/version/probe.d.ts +1 -1
  173. package/dist/version/profile.d.ts +1 -1
  174. package/dist/version/requirement-check.d.ts +1 -1
  175. package/dist/version/requirements.d.ts +1 -1
  176. package/dist/version/requirements.js +3 -4
  177. package/package.json +1 -1
  178. package/dist/data-app-CqP5_fpB.d.ts +0 -76
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Notable changes to `@metabase/client`.
4
4
 
5
+ ## 0.1.4
6
+
7
+ - A data app changes in Metabase only through a repository import, so `dataApp.create`, `dataApp.replaceBundle`, `dataApp.typedSchema` and `dataApp.remove` are gone, with `DataAppCreateInput`. `dataApp.update` takes only `enabled` (`DataAppUpdateInput`).
8
+ - `dataApp.list` takes no filter, and `DataAppListFilter` is gone.
9
+ - `dataApp.generateSchema`, `dataApp.generateQueries` and `dataApp.generateActions` return the files of an app's repository as `DataAppGeneratedFiles`: its `src/metabase.schema.ts`, and the YAML of the questions and implicit actions its `defineQuery` and `defineAction` exports define (`DataAppGenerateQueriesInput`, `DataAppGenerateActionsInput`, `DataAppQueryDefinition`, `DataAppActionDefinition`).
10
+
5
11
  ## 0.1.3
6
12
 
7
13
  - `dataAction.create` creates an implicit action on a table as well as a query action. `DataActionCreateInput` is a union on `type`: a `"query"` body takes `dataset_query`, an `"implicit"` one takes `kind` (`ImplicitActionKind`, on the barrel) and `table_id`. Neither takes `database_id`, which the server derives from the query.
package/README.md CHANGED
@@ -405,7 +405,7 @@ An `HttpError`'s `serverMessage` is what the server itself said about the failur
405
405
 
406
406
  `PartialWriteError` (category `partial-write`, not retryable) is a write the server answered as a success having applied all but one field: neither a failure nor a success, and repeating it rewrites what landed while leaving that field as it was. Its `PartialWriteDetail` names the `method`, `path` and `field`, the value `requested`, and in `answered` a `PartialWriteAnswer`: `PartialWriteReported` (`{ kind: "reported", value: number | null }`, the value the server's answer reported, `null` when it reported the field empty) or `PartialWriteUnreported` (`{ kind: "unreported" }`, an answer that left the field out).
407
407
 
408
- An `HttpError` also carries `errorCode`, the envelope's `error-code` when the throw site published a machine-readable name for the answer, else `null`. A transform test's `create`, `update` and `run` refuse that way when the server declines to run the test at all, and `isTransformTestRefusalCode(code)` narrows the code to the closed `TransformTestRefusalCode` vocabulary. `create` and `update` answer the authoring refusals at 400 (`transform-test.missing-inputs`, `unused-inputs`, `duplicate-input-table`, `unparseable-source`, `unremapped-reference`) and the environment ones at 422 (`unsupported-transform`, `unsupported-driver`); `run` adds `setup-failed` and `transform-failed`, also 422. The remaining names in the vocabulary (`unknown-column`, `ambiguous-column`, `unsupported-format`, `expectation-failed`) never refuse a run: they arrive as one expectation's own `error`, whose `type` is the server's internal name for the same code. A failing expectation is a result, not a refusal: `run` answers a `TransformTestRunResult` whose `status` is `failed` and whose expectations report what they found.
408
+ An `HttpError` also carries `errorCode`, the envelope's `error-code` when the throw site published a machine-readable name for the answer, else `null`. A transform test's `create`, `update` and `run` refuse that way when the server declines to run the test at all, and `isTransformTestRefusalCode(code)` narrows the code to the closed `TransformTestRefusalCode` vocabulary, while `isTransformTestCode(code)` accepts any `transform-test.*` code, including one newer than this client. A refusal that names tables (`missing-inputs`, `unused-inputs`, `duplicate-input-table`) carries them on `HttpError.tables`. `create` and `update` answer the authoring refusals at 400 (`transform-test.missing-inputs`, `unused-inputs`, `duplicate-input-table`, `unparseable-source`, `unremapped-reference`) and the environment ones at 422 (`unsupported-transform`, `unsupported-driver`); `run` adds `setup-failed` and `transform-failed`, also 422. The remaining names in the vocabulary (`unknown-column`, `ambiguous-column`, `unsupported-format`, `expectation-failed`) never refuse a run: they arrive as one expectation's own `error`, whose `type` is the server's internal name for the same code. A failing expectation is a result, not a refusal: `run` answers a `TransformTestRunResult` whose `status` is `failed` and whose expectations report what they found.
409
409
 
410
410
  Two helpers read raw thrown values away from the HTTP boundary. `isFileNotFoundError(value)` reports a
411
411
  Node `ENOENT` filesystem error — a missing file on disk, never an HTTP 404, which arrives as an
@@ -361,8 +361,8 @@ declare const CardDetail: z.ZodObject<{
361
361
  type: z.ZodEnum<{
362
362
  number: "number";
363
363
  boolean: "boolean";
364
- id: "id";
365
364
  date: "date";
365
+ id: "id";
366
366
  text: "text";
367
367
  "temporal-unit": "temporal-unit";
368
368
  "date/single": "date/single";
@@ -734,8 +734,8 @@ declare const CardCreateInput: z.ZodObject<{
734
734
  type: z.ZodEnum<{
735
735
  number: "number";
736
736
  boolean: "boolean";
737
- id: "id";
738
737
  date: "date";
738
+ id: "id";
739
739
  text: "text";
740
740
  "temporal-unit": "temporal-unit";
741
741
  "date/single": "date/single";
@@ -853,8 +853,8 @@ declare const CardUpdateInput: z.ZodObject<{
853
853
  type: z.ZodEnum<{
854
854
  number: "number";
855
855
  boolean: "boolean";
856
- id: "id";
857
856
  date: "date";
857
+ id: "id";
858
858
  text: "text";
859
859
  "temporal-unit": "temporal-unit";
860
860
  "date/single": "date/single";
@@ -1,7 +1,7 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-CyHAGDqx.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CM-eJat3.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { a as CardListFilter, i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-BBLDmhtp.js";
4
- import { r as QueryMetadata } from "./dataset-Du1GRHhd.js";
3
+ import { a as CardListFilter, i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-CAOxi3ZU.js";
4
+ import { r as QueryMetadata } from "./dataset-Bj3bNqjm.js";
5
5
  import { n as ExportFormat } from "./query-Xsin530u.js";
6
6
  //#region src/resources/card.d.ts
7
7
  interface CardListParams {
@@ -2,84 +2,84 @@ import "./credential-B6fKSvqp.js";
2
2
  import "./oauth-login-SZ4Csai8.js";
3
3
  import "./oauth-session-COLH4puN.js";
4
4
  import "./session-properties-COtlxAcK.js";
5
- import "./features-SMSfJhB6.js";
5
+ import "./features-BwC2QUQB.js";
6
6
  import "./tag-qzjGGci8.js";
7
- import { _ as WaitOptions, f as RequestOptions, g as TransportRequestOptions, h as Transport, n as ClientOptions, t as ClientCredentials, yt as ServerProfile } from "./transport-CyHAGDqx.js";
7
+ import { _ as WaitOptions, f as RequestOptions, g as TransportRequestOptions, h as Transport, n as ClientOptions, t as ClientCredentials, yt as ServerProfile } from "./transport-CM-eJat3.js";
8
8
  import { t as ListResult } from "./list-BT_bBm9Z.js";
9
- import "./requirements-Dx_ZVzl7.js";
10
- import "./requirement-check-Nv0trVbp.js";
11
- import { n as Page } from "./paginate-Du9kUbXZ.js";
9
+ import "./requirements-CW0DsGzZ.js";
10
+ import "./requirement-check-B5tsY6Z_.js";
11
+ import { n as Page } from "./paginate-CPjKDJ2m.js";
12
12
  import { a as PollOptions } from "./poll-CIwnee7h.js";
13
- import "./json-DvOVLFVY.js";
13
+ import "./json-DK8ntK_m.js";
14
14
  import { i as CreatedApiKey, r as ApiKeyCreateInput, t as ApiKey } from "./api-key-DJeN1-7G.js";
15
- import { i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-BBLDmhtp.js";
16
- import { c as CollectionId, g as CollectionTreeNode, i as Collection, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-BtjnSckn.js";
15
+ import { i as CardDetail, l as CardUpdateInput, o as CardQueryResult, r as CardCreateInput, t as Card } from "./card-CAOxi3ZU.js";
16
+ import { c as CollectionId, g as CollectionTreeNode, i as Collection, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-kN2oYenF.js";
17
17
  import "./content-translation-zfUkE_OG.js";
18
18
  import "./cron-DThzerR6.js";
19
- import { _ as DashcardDetail, a as DashboardCopyInput, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-DtLXVgtf.js";
20
- import { l as DataActionUpdateInput, o as DataActionExecuteInput, r as DataAction, s as DataActionExecuteResult } from "./data-action-DqwcRA7B.js";
21
- import "./data-app-CqP5_fpB.js";
22
- import { o as DatabaseSyncResult, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-DULVEXki.js";
23
- import { r as QueryMetadata, t as CompiledQuery } from "./dataset-Du1GRHhd.js";
19
+ import { _ as DashcardDetail, a as DashboardCopyInput, m as DashboardUpdateInput, o as DashboardCreateInput, r as DashboardCopy, s as DashboardDetail, t as Dashboard, u as DashboardParameterConstraints, v as DashcardPatchInput } from "./dashboard-Bkl_vs7L.js";
20
+ import { l as DataActionUpdateInput, o as DataActionExecuteInput, r as DataAction, s as DataActionExecuteResult } from "./data-action-CCU3lzoY.js";
21
+ import "./data-app-DAEPU9W5.js";
22
+ import { o as DatabaseSyncResult, s as DatabaseUpdateInput, t as Database, u as DatabaseWithSettings } from "./database-B54owh7H.js";
23
+ import { r as QueryMetadata, t as CompiledQuery } from "./dataset-Bj3bNqjm.js";
24
24
  import "./dependency-B8aPt_IM.js";
25
25
  import { a as DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "./document-rqUlE_OE.js";
26
26
  import { a as EidTranslateResult, i as EidTranslateInput } from "./eid-translation-CP79Tz71.js";
27
27
  import "./embedding-oU3gqfgX.js";
28
28
  import "./erd-BdeFEeSy.js";
29
- import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, p as FieldValues, s as FieldDetail } from "./field-D-kF3G7v.js";
30
- import "./git-sync-nvbSaNfS.js";
29
+ import { c as FieldRemappedValue, d as FieldSummary, f as FieldUpdateInput, l as FieldSearchMatches, p as FieldValues, s as FieldDetail } from "./field-CCp65II7.js";
30
+ import "./git-sync-D1gts9j5.js";
31
31
  import { i as GlossaryUpdateInput, r as GlossaryCreateInput, t as Glossary } from "./glossary-CHK3elPj.js";
32
- import "./library-B9pEq7qP.js";
32
+ import "./library-DZpIRTeG.js";
33
33
  import "./measure-CgH14YQZ.js";
34
- import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-BtEVH_Yp.js";
34
+ import { g as MetricFilterClause, x as MetricMathExpression } from "./metric-CKhTot_B.js";
35
35
  import "./moderation-review-B4RUTZ6_.js";
36
36
  import { l as NotificationCreateInput, r as Notification, x as NotificationUpdateInput } from "./notification-D1MThyKE.js";
37
- import { s as ParameterValues } from "./parameter-ak-J-IOj.js";
37
+ import { s as ParameterValues } from "./parameter-CvyXRH6F.js";
38
38
  import { a as PermissionsGraph } from "./permission-BnCQw5Kp.js";
39
- import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-0LG3K6qO.js";
39
+ import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-BgS7Y3MU.js";
40
40
  import { n as ExportFormat, t as DatasetQuery } from "./query-Xsin530u.js";
41
- import "./replacement-CyvtbxGg.js";
42
- import "./search-BUr4r7d2.js";
41
+ import "./replacement-Bu4qxOua.js";
42
+ import "./search-C0PiFw8c.js";
43
43
  import { i as SegmentUpdateInput, r as SegmentCreateInput, t as Segment } from "./segment-CbAgVO-5.js";
44
- import "./revision-Cft5Lcev.js";
44
+ import "./revision-CwP4-eqv.js";
45
45
  import { t as Setting } from "./setting-DXuQGXGF.js";
46
46
  import { n as SetupResult, t as SetupInput } from "./setup-JqcJ2unJ.js";
47
47
  import { i as SnippetUpdateInput, r as SnippetCreateInput, t as Snippet } from "./snippet-C_Ilx7tR.js";
48
- import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, y as TableQueryMetadata } from "./table-R-q8w__K.js";
49
- import { i as TimelineEvent, l as TimelineUpdateInput, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "./timeline-B35sx1FM.js";
50
- import "./transform-C5thnJwW.js";
51
- import "./transform-dag-run-BgZwv1yx.js";
48
+ import { S as TableSchemaSyncResult, a as Table, g as TableForeignKey, h as TableFieldValuesResult, y as TableQueryMetadata } from "./table-B3lazUvH.js";
49
+ import { i as TimelineEvent, l as TimelineUpdateInput, o as TimelineEventCreateInput, r as TimelineCreateInput, s as TimelineEventUpdateInput, t as Timeline } from "./timeline-Bnn28jC7.js";
50
+ import "./transform-B0mugBQQ.js";
51
+ import "./transform-dag-run-BSrdrjaK.js";
52
52
  import "./transform-inspector-BUYBt6--.js";
53
- import "./transform-job-D8jTQtdX.js";
54
- import "./transform-python-DtL3xxMj.js";
53
+ import "./transform-job-DV28hc1A.js";
54
+ import "./transform-python-B-jBoeVa.js";
55
55
  import "./transform-tag-C6j5EUkX.js";
56
- import "./transform-test-CeMzDpUC.js";
56
+ import "./transform-test-DpTJm7H7.js";
57
57
  import { r as UploadUpdateResult, t as UploadResult } from "./upload-UPfZFdbH.js";
58
58
  import { t as CurrentUser } from "./user-Sqqv7rqh.js";
59
- import { n as CardListParams, r as CardQueryParams, t as CardExportParams } from "./card-DkHtPMK4.js";
60
- import { i as CollectionTreeParams, n as CollectionItemPageOptions, r as CollectionListParams, t as CollectionItemListParams } from "./collection-DWjkDrln.js";
59
+ import { n as CardListParams, r as CardQueryParams, t as CardExportParams } from "./card-Ik580mDC.js";
60
+ import { i as CollectionTreeParams, n as CollectionItemPageOptions, r as CollectionListParams, t as CollectionItemListParams } from "./collection-B31DGW6J.js";
61
61
  import { t as CsvFile } from "./csv-upload--K35QedP.js";
62
- import { r as DashcardCardIssue, t as DashboardListParams } from "./dashboard-B4qWeR10.js";
63
- import { n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "./database-Cw8ICtQi.js";
64
- import { n as DatasetNativeParams, t as DatasetExportParams } from "./dataset-26H-dH4N.js";
65
- import { i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "./dependency-elYkHuk5.js";
66
- import { t as ErdParams } from "./erd-D2fpjDTj.js";
67
- import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, t as FieldRemappingParams } from "./field-awM3Y7IP.js";
68
- import { a as SyncRemoteChangesParams, i as SyncImportParams, n as SyncExportParams, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "./git-sync-8Tk8TirZ.js";
69
- import { t as GlossaryListParams } from "./glossary-CQMSJmIx.js";
70
- import { t as MeasureArchiveParams } from "./measure-D4ArCbsa.js";
71
- import { t as NotificationListParams } from "./notification-BsuPAfMW.js";
72
- import { t as PulseListParams } from "./pulse-drQKS_pg.js";
73
- import { t as ReplacementRunListParams } from "./replacement-g3IKzPPj.js";
74
- import { n as SearchParams, t as SearchPage } from "./search-DX1IVRRC.js";
75
- import { t as SegmentArchiveParams } from "./segment-c2EDEJNd.js";
76
- import { t as SnippetListParams } from "./snippet-CSt-f812.js";
77
- import { t as TableListParams } from "./table-BA-k8Zgt.js";
78
- import { n as TimelineListParams, t as TimelineEventsParams } from "./timeline-D3Clk0_n.js";
79
- import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, r as TransformRunPageParams, t as TransformDagParams } from "./transform-DzgPup_a.js";
80
- import { t as TransformJobRunParams } from "./transform-job-DtLWrsyH.js";
81
- import { t as TransformTestListParams } from "./transform-test-B_HR-yKA.js";
82
- import { t as UploadCsvParams } from "./upload-BSixoElJ.js";
62
+ import { r as DashcardCardIssue, t as DashboardListParams } from "./dashboard-ClJ5XHXJ.js";
63
+ import { n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "./database-DNQLCRBJ.js";
64
+ import { n as DatasetNativeParams, t as DatasetExportParams } from "./dataset-C05pNRjH.js";
65
+ import { i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "./dependency-NbXbo_fE.js";
66
+ import { t as ErdParams } from "./erd-BJ3OjckY.js";
67
+ import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, t as FieldRemappingParams } from "./field-Be27Kzlx.js";
68
+ import { a as SyncRemoteChangesParams, i as SyncImportParams, n as SyncExportParams, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "./git-sync-CBplEGj0.js";
69
+ import { t as GlossaryListParams } from "./glossary-yuKOTBXb.js";
70
+ import { t as MeasureArchiveParams } from "./measure-DZ7RmNPs.js";
71
+ import { t as NotificationListParams } from "./notification-BwLEwNk9.js";
72
+ import { t as PulseListParams } from "./pulse-DEKvyd8u.js";
73
+ import { t as ReplacementRunListParams } from "./replacement-WU_rk924.js";
74
+ import { n as SearchParams, t as SearchPage } from "./search-DjJ_lu_o.js";
75
+ import { t as SegmentArchiveParams } from "./segment-BR0OAdWN.js";
76
+ import { t as SnippetListParams } from "./snippet-C5naeVEd.js";
77
+ import { t as TableListParams } from "./table-DT3kO7JU.js";
78
+ import { n as TimelineListParams, t as TimelineEventsParams } from "./timeline-vJHDIuDJ.js";
79
+ import { a as TransformRunSummaryPageParams, i as TransformRunParams, n as TransformRunPageOptions, r as TransformRunPageParams, t as TransformDagParams } from "./transform-Buv3VvTt.js";
80
+ import { t as TransformJobRunParams } from "./transform-job-BFLbsf5-.js";
81
+ import { t as TransformTestListParams } from "./transform-test-3uuvuwyQ.js";
82
+ import { t as UploadCsvParams } from "./upload-BxRCvpJo.js";
83
83
  //#region src/resources/metric.d.ts
84
84
  interface MetricDimensionListParams {
85
85
  query?: string | undefined;
@@ -377,9 +377,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
377
377
  execute: (id: number, params: DataActionExecuteInput, options?: RequestOptions) => Promise<DataActionExecuteResult>;
378
378
  };
379
379
  dataApp: {
380
- list: (filter?: {
381
- available?: boolean | undefined;
382
- } | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
380
+ list: (options?: RequestOptions | undefined) => Promise<ListResult<{
383
381
  [x: string]: unknown;
384
382
  id: number;
385
383
  name: string;
@@ -417,54 +415,9 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
417
415
  name: string;
418
416
  display_name: string;
419
417
  }>;
420
- create: (params: {
421
- name: string;
422
- display_name?: string | undefined;
423
- description?: string | null | undefined;
424
- version?: number | undefined;
425
- bundle_path?: string | undefined;
426
- allowed_hosts?: string[] | undefined;
427
- enabled?: boolean | undefined;
428
- }, options?: RequestOptions | undefined) => Promise<{
429
- [x: string]: unknown;
430
- id: number;
431
- name: string;
432
- display_name: string;
433
- description: string | null;
434
- version: number;
435
- outdated: boolean;
436
- bundle_path: string;
437
- enabled: boolean;
438
- allowed_hosts: string[];
439
- resource_collection_id: number;
440
- bundle_hash: string | null;
441
- created_at: string;
442
- updated_at: string;
443
- }>;
444
418
  update: (slug: string, params: {
445
- display_name?: string | undefined;
446
- description?: string | null | undefined;
447
- version?: number | undefined;
448
- bundle_path?: string | undefined;
449
- allowed_hosts?: string[] | undefined;
450
- enabled?: boolean | undefined;
451
- }, options?: RequestOptions | undefined) => Promise<{
452
- [x: string]: unknown;
453
- id: number;
454
- name: string;
455
- display_name: string;
456
- description: string | null;
457
- version: number;
458
- outdated: boolean;
459
- bundle_path: string;
460
419
  enabled: boolean;
461
- allowed_hosts: string[];
462
- resource_collection_id: number;
463
- bundle_hash: string | null;
464
- created_at: string;
465
- updated_at: string;
466
- }>;
467
- replaceBundle: (slug: string, bundle: string, options?: RequestOptions | undefined) => Promise<{
420
+ }, options?: RequestOptions | undefined) => Promise<{
468
421
  [x: string]: unknown;
469
422
  id: number;
470
423
  name: string;
@@ -480,8 +433,38 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
480
433
  created_at: string;
481
434
  updated_at: string;
482
435
  }>;
483
- typedSchema: (slug: string, options?: RequestOptions | undefined) => Promise<string>;
484
- delete: (slug: string, options?: RequestOptions | undefined) => Promise<void>;
436
+ generateSchema: (options?: RequestOptions | undefined) => Promise<{
437
+ path: string;
438
+ contents: string;
439
+ }[]>;
440
+ generateQueries: (params: {
441
+ collection: string;
442
+ queries: Record<string, {
443
+ entityId: string;
444
+ query: {
445
+ stages: [{
446
+ [x: string]: unknown;
447
+ }];
448
+ };
449
+ }>;
450
+ }, options?: RequestOptions | undefined) => Promise<{
451
+ path: string;
452
+ contents: string;
453
+ }[]>;
454
+ generateActions: (params: {
455
+ collection: string;
456
+ actions: Record<string, {
457
+ entityId: string;
458
+ kind: "row/create" | "row/update" | "row/delete";
459
+ table: {
460
+ [x: string]: unknown;
461
+ id: number;
462
+ };
463
+ }>;
464
+ }, options?: RequestOptions | undefined) => Promise<{
465
+ path: string;
466
+ contents: string;
467
+ }[]>;
485
468
  };
486
469
  database: {
487
470
  list: (params?: DatabaseListParams, options?: RequestOptions) => Promise<ListResult<Database>>;
@@ -1533,7 +1516,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1533
1516
  listRuns: (params?: ReplacementRunListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
1534
1517
  [x: string]: unknown;
1535
1518
  id: number;
1536
- status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
1519
+ status: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
1537
1520
  is_active: true | null;
1538
1521
  source_entity_type: "card" | "table" | "transform";
1539
1522
  source_entity_id: number;
@@ -1548,7 +1531,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1548
1531
  getRun: (id: number, options?: RequestOptions | undefined) => Promise<{
1549
1532
  [x: string]: unknown;
1550
1533
  id: number;
1551
- status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
1534
+ status: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
1552
1535
  is_active: true | null;
1553
1536
  source_entity_type: "card" | "table" | "transform";
1554
1537
  source_entity_id: number;
@@ -1663,7 +1646,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1663
1646
  db_id: number;
1664
1647
  schema: string | null;
1665
1648
  entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
1666
- data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
1649
+ data_layer: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null;
1667
1650
  estimated_row_count: number | null;
1668
1651
  active: boolean;
1669
1652
  visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
@@ -1703,8 +1686,8 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1703
1686
  show_in_getting_started?: boolean | undefined;
1704
1687
  field_order?: "database" | "custom" | "alphabetical" | "smart" | undefined;
1705
1688
  data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
1706
- data_source?: "unknown" | "upload" | "transform" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1707
- data_layer?: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
1689
+ data_source?: "upload" | "transform" | "unknown" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1690
+ data_layer?: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null | undefined;
1708
1691
  owner_email?: string | null | undefined;
1709
1692
  owner_user_id?: number | null | undefined;
1710
1693
  collection_id?: number | undefined;
@@ -1718,7 +1701,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1718
1701
  db_id: number;
1719
1702
  schema: string | null;
1720
1703
  entity_type: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null;
1721
- data_layer: "internal" | "hidden" | "final" | "gold" | "silver" | "bronze" | "copper" | null;
1704
+ data_layer: "hidden" | "final" | "internal" | "gold" | "silver" | "bronze" | "copper" | null;
1722
1705
  estimated_row_count: number | null;
1723
1706
  active: boolean;
1724
1707
  visibility_type?: "hidden" | "technical" | "cruft" | null | undefined;
@@ -1756,8 +1739,8 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1756
1739
  schema_ids?: string[] | undefined;
1757
1740
  table_ids?: number[] | undefined;
1758
1741
  data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
1759
- data_source?: "unknown" | "upload" | "transform" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1760
- data_layer?: "internal" | "hidden" | "final" | null | undefined;
1742
+ data_source?: "upload" | "transform" | "unknown" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1743
+ data_layer?: "hidden" | "final" | "internal" | null | undefined;
1761
1744
  entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
1762
1745
  owner_email?: string | null | undefined;
1763
1746
  owner_user_id?: number | null | undefined;
@@ -1767,8 +1750,8 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1767
1750
  schema_ids?: string[] | undefined;
1768
1751
  table_ids?: number[] | undefined;
1769
1752
  data_authority?: "unconfigured" | "authoritative" | "computed" | "ingested" | null | undefined;
1770
- data_source?: "unknown" | "upload" | "transform" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1771
- data_layer?: "internal" | "hidden" | "final" | null | undefined;
1753
+ data_source?: "upload" | "transform" | "unknown" | "ingested" | "metabase-transform" | "source-data" | null | undefined;
1754
+ data_layer?: "hidden" | "final" | "internal" | null | undefined;
1772
1755
  entity_type?: "entity/GenericTable" | "entity/UserTable" | "entity/CompanyTable" | "entity/TransactionTable" | "entity/ProductTable" | "entity/SubscriptionTable" | "entity/EventTable" | null | undefined;
1773
1756
  owner_email?: string | null | undefined;
1774
1757
  owner_user_id?: number | null | undefined;
@@ -1896,7 +1879,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1896
1879
  id: number;
1897
1880
  transform_id: number;
1898
1881
  run_method: "manual" | "cron";
1899
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
1882
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
1900
1883
  start_time: string;
1901
1884
  message: string | null;
1902
1885
  user_id: number | null;
@@ -1977,7 +1960,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
1977
1960
  id: number;
1978
1961
  transform_id: number;
1979
1962
  run_method: "manual" | "cron";
1980
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
1963
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
1981
1964
  start_time: string;
1982
1965
  message: string | null;
1983
1966
  user_id: number | null;
@@ -2127,7 +2110,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2127
2110
  id: number;
2128
2111
  transform_id: number;
2129
2112
  run_method: "manual" | "cron";
2130
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2113
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2131
2114
  start_time: string;
2132
2115
  message: string | null;
2133
2116
  user_id: number | null;
@@ -2277,7 +2260,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2277
2260
  id: number;
2278
2261
  transform_id: number;
2279
2262
  run_method: "manual" | "cron";
2280
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2263
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2281
2264
  start_time: string;
2282
2265
  message: string | null;
2283
2266
  user_id: number | null;
@@ -2360,7 +2343,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2360
2343
  id: number;
2361
2344
  transform_id: number;
2362
2345
  run_method: "manual" | "cron";
2363
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2346
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2364
2347
  start_time: string;
2365
2348
  message: string | null;
2366
2349
  user_id: number | null;
@@ -2374,7 +2357,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2374
2357
  id: number;
2375
2358
  transform_id: number | null;
2376
2359
  run_method: "manual" | "cron";
2377
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2360
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2378
2361
  is_active: boolean | null;
2379
2362
  start_time: string;
2380
2363
  message: string | null;
@@ -2386,7 +2369,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2386
2369
  id: number;
2387
2370
  transform_id: number | null;
2388
2371
  run_method: "manual" | "cron";
2389
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2372
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2390
2373
  is_active: boolean | null;
2391
2374
  start_time: string;
2392
2375
  message: string | null;
@@ -2402,7 +2385,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2402
2385
  direction: "upstream" | "downstream" | null;
2403
2386
  transform_count: number | null;
2404
2387
  run_method: "manual" | "cron" | null;
2405
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2388
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2406
2389
  is_active: boolean | null;
2407
2390
  start_time: string;
2408
2391
  message: string | null;
@@ -2426,7 +2409,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2426
2409
  id: number;
2427
2410
  transform_id: number | null;
2428
2411
  run_method: "manual" | "cron";
2429
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2412
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2430
2413
  is_active: boolean | null;
2431
2414
  start_time: string;
2432
2415
  message: string | null;
@@ -2442,7 +2425,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2442
2425
  id: number;
2443
2426
  transform_id: number | null;
2444
2427
  run_method: "manual" | "cron";
2445
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2428
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2446
2429
  is_active: boolean | null;
2447
2430
  start_time: string;
2448
2431
  message: string | null;
@@ -2682,7 +2665,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2682
2665
  id: number;
2683
2666
  job_id: number;
2684
2667
  run_method: "manual" | "cron";
2685
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2668
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
2686
2669
  start_time: string;
2687
2670
  message: string | null;
2688
2671
  created_at: string;
@@ -2712,7 +2695,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2712
2695
  id: number;
2713
2696
  job_id: number;
2714
2697
  run_method: "manual" | "cron";
2715
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2698
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
2716
2699
  start_time: string;
2717
2700
  message: string | null;
2718
2701
  created_at: string;
@@ -2749,7 +2732,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2749
2732
  id: number;
2750
2733
  job_id: number;
2751
2734
  run_method: "manual" | "cron";
2752
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2735
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
2753
2736
  start_time: string;
2754
2737
  message: string | null;
2755
2738
  created_at: string;
@@ -2787,7 +2770,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2787
2770
  id: number;
2788
2771
  job_id: number;
2789
2772
  run_method: "manual" | "cron";
2790
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled";
2773
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout";
2791
2774
  start_time: string;
2792
2775
  message: string | null;
2793
2776
  created_at: string;
@@ -2878,7 +2861,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
2878
2861
  id: number;
2879
2862
  transform_id: number;
2880
2863
  run_method: "manual" | "cron";
2881
- status: "timeout" | "failed" | "started" | "succeeded" | "canceled" | "canceling";
2864
+ status: "started" | "succeeded" | "failed" | "canceled" | "timeout" | "canceling";
2882
2865
  start_time: string;
2883
2866
  message: string | null;
2884
2867
  user_id: number | null;
@@ -3314,7 +3297,7 @@ declare function createClient(config: ClientCredentials, options: ClientOptions)
3314
3297
  delete: (id: number, options?: RequestOptions | undefined) => Promise<void>;
3315
3298
  run: (id: number, options?: RequestOptions | undefined) => Promise<{
3316
3299
  [x: string]: unknown;
3317
- status: "failed" | "error" | "passed";
3300
+ status: "error" | "failed" | "passed";
3318
3301
  expectations: ({
3319
3302
  [x: string]: unknown;
3320
3303
  name: string;
package/dist/client.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as createClient, t as MetabaseClient } from "./client-eOkt3tTd.js";
1
+ import { n as createClient, t as MetabaseClient } from "./client-CQkS1030.js";
2
2
  export { MetabaseClient, createClient };
package/dist/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as createTransport } from "./transport-HP7cyo9N.js";
1
+ import { r as createTransport } from "./transport-D52WFGBR.js";
2
2
  import { apiKeyResource } from "./resources/api-key.js";
3
3
  import { cardResource } from "./resources/card.js";
4
4
  import { collectionResource } from "./resources/collection.js";
@@ -1,7 +1,7 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-CyHAGDqx.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CM-eJat3.js";
2
2
  import { t as ListResult } from "./list-BT_bBm9Z.js";
3
- import { n as Page, r as PaginateOptions } from "./paginate-Du9kUbXZ.js";
4
- import { c as CollectionId, d as CollectionItemFilterModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, m as CollectionNamespace, p as CollectionListFilter, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-BtjnSckn.js";
3
+ import { n as Page, r as PaginateOptions } from "./paginate-CPjKDJ2m.js";
4
+ import { c as CollectionId, d as CollectionItemFilterModel, g as CollectionTreeNode, h as CollectionPinnedState, i as Collection, m as CollectionNamespace, p as CollectionListFilter, s as CollectionCreateInput, v as CollectionUpdateInput } from "./collection-kN2oYenF.js";
5
5
  import { z } from "zod";
6
6
  //#region src/resources/collection.d.ts
7
7
  interface CollectionListParams {
@@ -178,7 +178,6 @@ declare const CollectionItem: z.ZodObject<{
178
178
  }, z.core.$loose>;
179
179
  type CollectionItem = z.infer<typeof CollectionItem>;
180
180
  declare const CollectionItemCompact: z.ZodObject<{
181
- id: z.ZodNumber;
182
181
  model: z.ZodEnum<{
183
182
  collection: "collection";
184
183
  card: "card";
@@ -197,6 +196,7 @@ declare const CollectionItemCompact: z.ZodObject<{
197
196
  "indexed-entity": "indexed-entity";
198
197
  action: "action";
199
198
  }>;
199
+ id: z.ZodNumber;
200
200
  name: z.ZodString;
201
201
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
202
  archived: z.ZodNullable<z.ZodBoolean>;
@@ -196,8 +196,8 @@ declare const Dashboard: z.ZodObject<{
196
196
  type: z.ZodEnum<{
197
197
  number: "number";
198
198
  boolean: "boolean";
199
- id: "id";
200
199
  date: "date";
200
+ id: "id";
201
201
  text: "text";
202
202
  "temporal-unit": "temporal-unit";
203
203
  "date/single": "date/single";
@@ -326,8 +326,8 @@ declare const DashboardDetail: z.ZodObject<{
326
326
  type: z.ZodEnum<{
327
327
  number: "number";
328
328
  boolean: "boolean";
329
- id: "id";
330
329
  date: "date";
330
+ id: "id";
331
331
  text: "text";
332
332
  "temporal-unit": "temporal-unit";
333
333
  "date/single": "date/single";
@@ -530,8 +530,8 @@ declare const DashboardCreateInput: z.ZodObject<{
530
530
  type: z.ZodEnum<{
531
531
  number: "number";
532
532
  boolean: "boolean";
533
- id: "id";
534
533
  date: "date";
534
+ id: "id";
535
535
  text: "text";
536
536
  "temporal-unit": "temporal-unit";
537
537
  "date/single": "date/single";
@@ -662,8 +662,8 @@ declare const DashboardUpdateInput: z.ZodObject<{
662
662
  type: z.ZodEnum<{
663
663
  number: "number";
664
664
  boolean: "boolean";
665
- id: "id";
666
665
  date: "date";
666
+ id: "id";
667
667
  text: "text";
668
668
  "temporal-unit": "temporal-unit";
669
669
  "date/single": "date/single";
@@ -821,8 +821,8 @@ declare const DashboardCopy: z.ZodObject<{
821
821
  type: z.ZodEnum<{
822
822
  number: "number";
823
823
  boolean: "boolean";
824
- id: "id";
825
824
  date: "date";
825
+ id: "id";
826
826
  text: "text";
827
827
  "temporal-unit": "temporal-unit";
828
828
  "date/single": "date/single";