@metabase/client 0.1.2 → 0.1.3

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 (146) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{card-CrSywvOt.d.ts → card-BBLDmhtp.d.ts} +23 -23
  4. package/dist/{card-CbV6hLYH.d.ts → card-DkHtPMK4.d.ts} +3 -3
  5. package/dist/{client-cBi6_RQs.d.ts → client-eOkt3tTd.d.ts} +106 -88
  6. package/dist/client.d.ts +1 -1
  7. package/dist/{collection-Bmtisr3r.d.ts → collection-BtjnSckn.d.ts} +42 -42
  8. package/dist/{collection-Q9FNMiRh.d.ts → collection-DWjkDrln.d.ts} +4 -4
  9. package/dist/{dashboard-CknUcTp8.d.ts → dashboard-B4qWeR10.d.ts} +3 -3
  10. package/dist/{dashboard-DBdEehA9.d.ts → dashboard-DtLXVgtf.d.ts} +18 -18
  11. package/dist/{data-action-CqqZ0JYg.d.ts → data-action-DqwcRA7B.d.ts} +62 -11
  12. package/dist/{data-app-MoMS9VUr.d.ts → data-app-CqP5_fpB.d.ts} +1 -1
  13. package/dist/{database-Bs5WQOOZ.d.ts → database-Cw8ICtQi.d.ts} +3 -3
  14. package/dist/{database-CYNLJ8AZ.d.ts → database-DULVEXki.d.ts} +18 -18
  15. package/dist/{dataset-dzWljE_C.d.ts → dataset-26H-dH4N.d.ts} +3 -3
  16. package/dist/{dataset-cg8ZZrOP.d.ts → dataset-Du1GRHhd.d.ts} +72 -72
  17. package/dist/{dependency-VqvLTDAU.d.ts → dependency-B8aPt_IM.d.ts} +163 -163
  18. package/dist/{dependency-CL-YG9KH.d.ts → dependency-elYkHuk5.d.ts} +25 -25
  19. package/dist/{document-tLd6pYWe.d.ts → document-rqUlE_OE.d.ts} +1 -1
  20. package/dist/domain/card.d.ts +1 -1
  21. package/dist/domain/collection.d.ts +1 -1
  22. package/dist/domain/dashboard.d.ts +1 -1
  23. package/dist/domain/data-action.d.ts +2 -2
  24. package/dist/domain/data-action.js +43 -10
  25. package/dist/domain/data-app.d.ts +1 -1
  26. package/dist/domain/database.d.ts +1 -1
  27. package/dist/domain/dataset.d.ts +1 -1
  28. package/dist/domain/dependency.d.ts +1 -1
  29. package/dist/domain/document.d.ts +1 -1
  30. package/dist/domain/eid-translation.d.ts +1 -1
  31. package/dist/domain/embedding.d.ts +1 -1
  32. package/dist/domain/field.d.ts +1 -1
  33. package/dist/domain/git-sync.d.ts +1 -1
  34. package/dist/domain/metric.d.ts +1 -1
  35. package/dist/domain/moderation-review.d.ts +1 -1
  36. package/dist/domain/notification.d.ts +1 -1
  37. package/dist/domain/parameter.d.ts +1 -1
  38. package/dist/domain/pulse.d.ts +1 -1
  39. package/dist/domain/replacement.d.ts +1 -1
  40. package/dist/domain/revision.d.ts +1 -1
  41. package/dist/domain/search.d.ts +1 -1
  42. package/dist/domain/table.d.ts +1 -1
  43. package/dist/domain/timeline.d.ts +1 -1
  44. package/dist/domain/transform-dag-run.d.ts +1 -1
  45. package/dist/domain/transform-inspector.d.ts +1 -1
  46. package/dist/domain/transform-job.d.ts +1 -1
  47. package/dist/domain/transform-test.d.ts +1 -1
  48. package/dist/domain/transform.d.ts +1 -1
  49. package/dist/{eid-translation-aQSffx0o.d.ts → eid-translation-CP79Tz71.d.ts} +40 -40
  50. package/dist/{embedding-Cz3RUJYf.d.ts → embedding-oU3gqfgX.d.ts} +1 -1
  51. package/dist/{erd-DCgdEC2S.d.ts → erd-D2fpjDTj.d.ts} +1 -1
  52. package/dist/errors.d.ts +1 -1
  53. package/dist/{field-tqQPtVuR.d.ts → field-D-kF3G7v.d.ts} +1 -1
  54. package/dist/{field-ozrfbvUd.d.ts → field-awM3Y7IP.d.ts} +2 -2
  55. package/dist/{git-sync-5lFWX1ds.d.ts → git-sync-8Tk8TirZ.d.ts} +1 -1
  56. package/dist/{git-sync-QL9Nu6gP.d.ts → git-sync-nvbSaNfS.d.ts} +8 -8
  57. package/dist/{glossary-DwS7QVrl.d.ts → glossary-CQMSJmIx.d.ts} +1 -1
  58. package/dist/http/errors.d.ts +1 -1
  59. package/dist/http/transport.d.ts +1 -1
  60. package/dist/index.d.ts +34 -34
  61. package/dist/index.js +2 -2
  62. package/dist/{json-DwGOvRtS.d.ts → json-DvOVLFVY.d.ts} +1 -1
  63. package/dist/json.d.ts +1 -1
  64. package/dist/{measure-CInoXeyH.d.ts → measure-D4ArCbsa.d.ts} +1 -1
  65. package/dist/{metric-CYOmbcM5.d.ts → metric-BtEVH_Yp.d.ts} +9 -9
  66. package/dist/{moderation-review-CWUQ3_HL.d.ts → moderation-review-B4RUTZ6_.d.ts} +4 -4
  67. package/dist/{notification-D-Hp82Pn.d.ts → notification-BsuPAfMW.d.ts} +2 -2
  68. package/dist/{notification-BY2JEjKp.d.ts → notification-D1MThyKE.d.ts} +2 -2
  69. package/dist/{paginate-CaJ5usdp.d.ts → paginate-Du9kUbXZ.d.ts} +1 -1
  70. package/dist/paginate.d.ts +1 -1
  71. package/dist/{parameter-BYo7uR-J.d.ts → parameter-ak-J-IOj.d.ts} +2 -2
  72. package/dist/{pulse-BUlfrJZH.d.ts → pulse-0LG3K6qO.d.ts} +16 -16
  73. package/dist/{pulse-BTpSNxhT.d.ts → pulse-drQKS_pg.d.ts} +2 -2
  74. package/dist/{replacement-BQian4vA.d.ts → replacement-CyvtbxGg.d.ts} +23 -23
  75. package/dist/{replacement-Dbtvvrmz.d.ts → replacement-g3IKzPPj.d.ts} +11 -11
  76. package/dist/{requirement-check-CHHEHXcj.d.ts → requirement-check-Nv0trVbp.d.ts} +1 -1
  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/content-translation.d.ts +1 -1
  81. package/dist/resources/dashboard.d.ts +1 -1
  82. package/dist/resources/data-action.d.ts +22 -4
  83. package/dist/resources/data-action.js +10 -5
  84. package/dist/resources/data-app.d.ts +1 -1
  85. package/dist/resources/database.d.ts +1 -1
  86. package/dist/resources/dataset.d.ts +1 -1
  87. package/dist/resources/dependency.d.ts +1 -1
  88. package/dist/resources/document.d.ts +10 -3
  89. package/dist/resources/eid-translation.d.ts +2 -2
  90. package/dist/resources/erd.d.ts +1 -1
  91. package/dist/resources/field.d.ts +1 -1
  92. package/dist/resources/git-sync.d.ts +1 -1
  93. package/dist/resources/glossary.d.ts +1 -1
  94. package/dist/resources/library.d.ts +1 -1
  95. package/dist/resources/measure.d.ts +1 -1
  96. package/dist/resources/metric.d.ts +1 -1
  97. package/dist/resources/moderation-review.d.ts +1 -1
  98. package/dist/resources/notification.d.ts +1 -1
  99. package/dist/resources/optional-parsed.d.ts +1 -1
  100. package/dist/resources/permission.d.ts +1 -1
  101. package/dist/resources/pivot-export.d.ts +1 -1
  102. package/dist/resources/pulse.d.ts +1 -1
  103. package/dist/resources/replacement.d.ts +1 -1
  104. package/dist/resources/revision.d.ts +3 -3
  105. package/dist/resources/search.d.ts +1 -1
  106. package/dist/resources/segment.d.ts +1 -1
  107. package/dist/resources/setting.d.ts +1 -1
  108. package/dist/resources/setup.d.ts +1 -1
  109. package/dist/resources/snippet.d.ts +1 -1
  110. package/dist/resources/table.d.ts +1 -1
  111. package/dist/resources/timeline-event.d.ts +2 -2
  112. package/dist/resources/timeline.d.ts +1 -1
  113. package/dist/resources/transform-dag-run.d.ts +2 -2
  114. package/dist/resources/transform-inspector.d.ts +4 -4
  115. package/dist/resources/transform-job.d.ts +1 -1
  116. package/dist/resources/transform-python.d.ts +1 -1
  117. package/dist/resources/transform-tag.d.ts +1 -1
  118. package/dist/resources/transform-test.d.ts +1 -1
  119. package/dist/resources/transform.d.ts +1 -1
  120. package/dist/resources/upload.d.ts +1 -1
  121. package/dist/resources/user.d.ts +1 -1
  122. package/dist/{revision-DNEw6S93.d.ts → revision-Cft5Lcev.d.ts} +3 -3
  123. package/dist/{search-tK5lmRb8.d.ts → search-BUr4r7d2.d.ts} +23 -23
  124. package/dist/{search-BQWkdVg1.d.ts → search-DX1IVRRC.d.ts} +2 -2
  125. package/dist/{segment-jyhBtOAZ.d.ts → segment-c2EDEJNd.d.ts} +1 -1
  126. package/dist/signal.d.ts +1 -1
  127. package/dist/{snippet-DsgohpTV.d.ts → snippet-CSt-f812.d.ts} +1 -1
  128. package/dist/{table-B1pQSpTA.d.ts → table-BA-k8Zgt.d.ts} +14 -14
  129. package/dist/{table-BAl8aPZZ.d.ts → table-R-q8w__K.d.ts} +32 -32
  130. package/dist/{timeline-BfX1lMob.d.ts → timeline-B35sx1FM.d.ts} +21 -21
  131. package/dist/{timeline-BdLvwRnl.d.ts → timeline-D3Clk0_n.d.ts} +2 -2
  132. package/dist/{transform-DwnIcpqV.d.ts → transform-C5thnJwW.d.ts} +14 -14
  133. package/dist/{transform-Ds74yPiY.d.ts → transform-DzgPup_a.d.ts} +12 -12
  134. package/dist/{transform-dag-run-BSrdrjaK.d.ts → transform-dag-run-BgZwv1yx.d.ts} +4 -4
  135. package/dist/{transform-inspector-BMaRqcRM.d.ts → transform-inspector-BUYBt6--.d.ts} +8 -8
  136. package/dist/{transform-job-Dfp9Ox0l.d.ts → transform-job-D8jTQtdX.d.ts} +2 -2
  137. package/dist/{transform-job-C85GxBHj.d.ts → transform-job-DtLWrsyH.d.ts} +6 -6
  138. package/dist/{transform-test-C3hiZ4AV.d.ts → transform-test-B_HR-yKA.d.ts} +2 -2
  139. package/dist/{transform-test-DROPvrkI.d.ts → transform-test-CeMzDpUC.d.ts} +1 -1
  140. package/dist/{transport-CS11mEqI.d.ts → transport-CyHAGDqx.d.ts} +2 -2
  141. package/dist/{upload-Bx1D7eNy.d.ts → upload-BSixoElJ.d.ts} +1 -1
  142. package/dist/version/capability-error.d.ts +1 -1
  143. package/dist/version/probe.d.ts +1 -1
  144. package/dist/version/profile.d.ts +1 -1
  145. package/dist/version/requirement-check.d.ts +1 -1
  146. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Notable changes to `@metabase/client`.
4
4
 
5
+ ## 0.1.3
6
+
7
+ - `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.
8
+ - `DataActionUpdateInput` patches a query action's `dataset_query` or an implicit action's `kind` and `table_id`, never both, and takes no `database_id`. `dataAction.update` refuses a `table_id` before the request on a server without `dataActionsWithoutModel`, which would drop it unread; `DATA_ACTION_TABLE_GATE` records the gate.
9
+ - `DataAction` and `DataActionCompact` read an implicit action's `kind` and `table_id`.
10
+ - `DataActionExecuteResult` reads an implicit action's `rows-updated`, `rows-deleted` or `created-row`, and `rows-affected` is optional.
11
+
5
12
  ## 0.1.2
6
13
 
7
14
  - `oauthLogin` takes an optional `signal`. Aborting it, before or during the flow, rejects with the signal's reason when that is a `MetabaseError`, else with an `AbortError` carrying its message, frees the loopback callback port at once, and cancels discovery, client registration or the token exchange in flight. `tryDiscoverMetadata`, `discoverLoginMetadata`, `registerClient` and `exchangeCode` on `@metabase/client/http/oauth` take a signal too, and `@metabase/client/signal` exports `whenAborted`.
package/README.md CHANGED
@@ -437,7 +437,7 @@ Unless the caller passes `metadata` from `tryDiscoverMetadata`, which makes the
437
437
 
438
438
  `METHOD_REQUIREMENTS` names, per client method (`"transform.get"`, `"gitSync.branches"` — the `MethodKey` as the method is reached on the client), the features it needs, strictest first; `methodRequirements(key)` reads one entry, `METHOD_KEYS` lists the keys, and `isMethodKey` narrows a string to one. When a gated method's request fails the way a server rejects what it lacks (a 402 premium refusal, an unrouted 404, or a 400 on a value outside an older enum or a body an older route reads in another shape), the client probes the server and throws a `CapabilityError` when that profile lacks a feature the method needs — a version gate reads `This operation requires Metabase v59+ (this server is v0.58.0). Upgrade Metabase to use it.`, a token gate `This operation requires the 'remote_sync' premium feature (not enabled on this server).` — and the error's `developerDetail` is a `RequirementFailure` carrying `reason`, `detail`, `feature`, `since`, `tokenFeature` and `serverVersion` — a Zod schema as well as a type (with `RequirementReason` for its `reason` enum), so a consumer that reports the refusal in its own output can describe it. A server that turns out to have every feature failed for another reason, and its own error stands. A 400 is also an ordinary validation failure, so it stands as the server's own `HttpError` when its field errors (`fieldErrors`, `specificFieldErrors`) name a field the missing parameter feature does not gate: a `mb.table.update` carrying a tier-named `data_layer` to a server that speaks medallions, alongside another field that server rejects, throws that field's rejection rather than the tier floor. A 400 that names no field, or one from a server lacking a feature the method itself needs, is the refusal. A method that needs nothing never consults the server; a newer release or a development build is placed past the newest known major, so only a token can explain a refusal there. `checkFeatures(features, profile)` is the check itself, over any feature list (`methodRequirements(key)` gives a method's), answering the first feature the profile lacks, and `featureFailures(features, profile)` answers every one, `featureGap(profile, feature)` says which half of a rule the profile fails (`FeatureGap`: `{ kind: "version" }` or `{ kind: "token", tokenFeature }`), and `ruleGap` is the same question asked of a bare rule. `featureAvailability(feature)` says which servers hold a feature, from its rule: `v64+`, or `token dashboard_subscription_filters` when every supported server meets the version floor. A consumer that describes what a server can do — gating a test lane, or filtering prose by the server it targets — reads the same check.
439
439
 
440
- Some input fields take a value only some servers accept. `@metabase/client/version/input-gates` records each such field on the input schema that holds it, in a registry of the client's own rather than Zod's global one. `inputGatesOf(schema)` answers the `InputGate` entries recorded on a property node, or `null` when every server takes all its values. A gate names a `feature`, an `effect` (`"needs"`: the server must hold the feature; `"supersededBy"`: a server holding it reads the value as something else; `"droppedBy"`: a server holding it drops the value unread), and the `when` that triggers it (`GateTrigger`: the field `present`, one of `values`, or a `nonEmpty` array). `gateTriggered(gate, value)` says whether a value passed for the field triggers the gate. A `droppedBy` gate is a note and nothing enforces it: `TABLE_FROM_DEFINITION_GATE` on `table_id` of `MeasureCreateInput` and `SegmentCreateInput`, which a server holding `tableFromDefinition` drops, and every server is sent because one without the feature requires it. The domain modules export every other gate as a const the resource enforces it by: `DATA_SENSITIVITY_GATE` on `FieldUpdateInput.data_sensitivity`, `DATA_LAYER_TIER_GATE` and `DATA_LAYER_MEDALLION_GATE` on `TableUpdateInput.data_layer`, `DATA_AUTHORITY_WITHDRAWAL_GATE` on `data_authority` of `TableUpdateInput` and `TableBulkEditInput`, `DATA_ACTION_COLLECTION_GATE` on `DataActionUpdateInput.collection_id`, `SUBSCRIPTION_FILTERS_GATE` on `parameters` of `PulseCreateInput` and `PulseUpdateInput`, and `REVISION_ENTITY_GATES` (`measure`, `transform`, `transform-test`) on `RevisionRevertInput.entity`. A server lacking the feature is refused or explained the way its method's own requirement is.
440
+ Some input fields take a value only some servers accept. `@metabase/client/version/input-gates` records each such field on the input schema that holds it, in a registry of the client's own rather than Zod's global one. `inputGatesOf(schema)` answers the `InputGate` entries recorded on a property node, or `null` when every server takes all its values. A gate names a `feature`, an `effect` (`"needs"`: the server must hold the feature; `"supersededBy"`: a server holding it reads the value as something else; `"droppedBy"`: a server holding it drops the value unread), and the `when` that triggers it (`GateTrigger`: the field `present`, one of `values`, or a `nonEmpty` array). `gateTriggered(gate, value)` says whether a value passed for the field triggers the gate. A `droppedBy` gate is a note and nothing enforces it: `TABLE_FROM_DEFINITION_GATE` on `table_id` of `MeasureCreateInput` and `SegmentCreateInput`, which a server holding `tableFromDefinition` drops, and every server is sent because one without the feature requires it. The domain modules export every other gate as a const the resource enforces it by: `DATA_SENSITIVITY_GATE` on `FieldUpdateInput.data_sensitivity`, `DATA_LAYER_TIER_GATE` and `DATA_LAYER_MEDALLION_GATE` on `TableUpdateInput.data_layer`, `DATA_AUTHORITY_WITHDRAWAL_GATE` on `data_authority` of `TableUpdateInput` and `TableBulkEditInput`, `DATA_ACTION_COLLECTION_GATE` on `DataActionUpdateInput.collection_id`, `DATA_ACTION_TABLE_GATE` on `DataActionUpdateInput.table_id`, `SUBSCRIPTION_FILTERS_GATE` on `parameters` of `PulseCreateInput` and `PulseUpdateInput`, and `REVISION_ENTITY_GATES` (`measure`, `transform`, `transform-test`) on `RevisionRevertInput.entity`. A server lacking the feature is refused or explained the way its method's own requirement is.
441
441
 
442
442
  A resource whose wire shape differs between generations exports from its `@metabase/client/domain/<r>` module, beside the canonical schema, a reader that picks the exact schema for a `Features` and converts forward: `transformDetailSchema(features)` and `transformRowSchema(features)` read a `Transform` (the older generations' hydrated `table` on the detail endpoint, and no link on the rest, become `target_table_id`, and a Python source's `source-tables` keyed by alias becomes the list of `TransformSourceTableEntry`, whose `database_id`, `schema` and `table` are `null` for a table named by id alone; `transform.create`, `transform.update` and `transformPython.testRun` send the list back keyed by alias to such a server, `transformSourceBody(source, features)` and `pythonTestRunBody(params, features)` being the writers), `fieldDetailSchema(features)` reads a `FieldDetail`, which is a `FieldWithDataSensitivity` (its `data_sensitivity` `null` for an unlabelled field) on a generation with the label and a plain `Field` without the key elsewhere, told apart by `hasDataSensitivity`, `fieldRemappedValueSchema(features, sameField)` reads a `FieldRemappedValue` from the first cells of a row a generation pads with display columns, `transformJobSchema(features)` reads a `TransformJob` whose `active` is `null` on a generation that cannot switch jobs off, `transformJobRunResultSchema(features)` reads a `TransformJobRunResult` (`{ message, started, run_id }` — a stub id is `started: null, run_id: null`, the request accepted and the outcome unsaid; a numeric or null id is `started: id !== null, run_id: id`), and `libraryWireSchema(features)` with `toLibrary(wire, listing)` reads a `Library` whose `LibraryChild` entries carry `type` from the wire where the generation sends it and `is_remote_synced` from the collection listing on every generation (`LibraryCollectionInfo`, `LibraryListing`). Each `null` in a canonical field means "this server cannot say". `ResponseShapeError.developerDetail.serverSkew` carries the profile's `skew`, and a `newer-than-known` server is named as such in the message's lead line.
443
443
 
@@ -1,18 +1,18 @@
1
1
  import { z } from "zod";
2
2
  //#region src/domain/card.d.ts
3
3
  declare const CardType: z.ZodEnum<{
4
- question: "question";
5
- model: "model";
6
4
  metric: "metric";
5
+ model: "model";
6
+ question: "question";
7
7
  }>;
8
8
  type CardType = z.infer<typeof CardType>;
9
9
  declare const CardListFilter: z.ZodEnum<{
10
+ database: "database";
11
+ table: "table";
10
12
  archived: "archived";
11
13
  all: "all";
12
14
  mine: "mine";
13
15
  bookmarked: "bookmarked";
14
- database: "database";
15
- table: "table";
16
16
  using_model: "using_model";
17
17
  using_segment: "using_segment";
18
18
  }>;
@@ -278,16 +278,16 @@ declare const Card: z.ZodObject<{
278
278
  id: z.ZodNumber;
279
279
  name: z.ZodString;
280
280
  type: z.ZodEnum<{
281
- question: "question";
282
- model: "model";
283
281
  metric: "metric";
282
+ model: "model";
283
+ question: "question";
284
284
  }>;
285
285
  display: z.ZodString;
286
286
  description: z.ZodNullable<z.ZodString>;
287
287
  archived: z.ZodBoolean;
288
288
  query_type: z.ZodNullable<z.ZodEnum<{
289
- native: "native";
290
289
  query: "query";
290
+ native: "native";
291
291
  }>>;
292
292
  database_id: z.ZodNullable<z.ZodNumber>;
293
293
  table_id: z.ZodNullable<z.ZodNumber>;
@@ -320,16 +320,16 @@ declare const CardDetail: z.ZodObject<{
320
320
  id: z.ZodNumber;
321
321
  name: z.ZodString;
322
322
  type: z.ZodEnum<{
323
- question: "question";
324
- model: "model";
325
323
  metric: "metric";
324
+ model: "model";
325
+ question: "question";
326
326
  }>;
327
327
  display: z.ZodString;
328
328
  description: z.ZodNullable<z.ZodString>;
329
329
  archived: z.ZodBoolean;
330
330
  query_type: z.ZodNullable<z.ZodEnum<{
331
- native: "native";
332
331
  query: "query";
332
+ native: "native";
333
333
  }>>;
334
334
  database_id: z.ZodNullable<z.ZodNumber>;
335
335
  table_id: z.ZodNullable<z.ZodNumber>;
@@ -364,6 +364,7 @@ declare const CardDetail: z.ZodObject<{
364
364
  id: "id";
365
365
  date: "date";
366
366
  text: "text";
367
+ "temporal-unit": "temporal-unit";
367
368
  "date/single": "date/single";
368
369
  category: "category";
369
370
  "location/city": "location/city";
@@ -375,7 +376,6 @@ declare const CardDetail: z.ZodObject<{
375
376
  "date/quarter-year": "date/quarter-year";
376
377
  "date/relative": "date/relative";
377
378
  "date/all-options": "date/all-options";
378
- "temporal-unit": "temporal-unit";
379
379
  "number/!=": "number/!=";
380
380
  "number/<=": "number/<=";
381
381
  "number/=": "number/=";
@@ -698,26 +698,26 @@ declare const CardDetail: z.ZodObject<{
698
698
  type CardDetail = z.infer<typeof CardDetail>;
699
699
  declare const CardCompact: z.ZodObject<{
700
700
  type: z.ZodEnum<{
701
- question: "question";
702
- model: "model";
703
701
  metric: "metric";
702
+ model: "model";
703
+ question: "question";
704
704
  }>;
705
705
  id: z.ZodNumber;
706
706
  name: z.ZodString;
707
707
  description: z.ZodNullable<z.ZodString>;
708
708
  archived: z.ZodBoolean;
709
+ collection_id: z.ZodNullable<z.ZodNumber>;
709
710
  display: z.ZodString;
710
711
  database_id: z.ZodNullable<z.ZodNumber>;
711
- collection_id: z.ZodNullable<z.ZodNumber>;
712
712
  dashboard_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
713
713
  }, z.core.$strip>;
714
714
  type CardCompact = z.infer<typeof CardCompact>;
715
715
  declare const CardCreateInput: z.ZodObject<{
716
716
  name: z.ZodString;
717
717
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
718
- question: "question";
719
- model: "model";
720
718
  metric: "metric";
719
+ model: "model";
720
+ question: "question";
721
721
  }>>>;
722
722
  dataset_query: z.ZodObject<{}, z.core.$loose>;
723
723
  display: z.ZodString;
@@ -737,6 +737,7 @@ declare const CardCreateInput: z.ZodObject<{
737
737
  id: "id";
738
738
  date: "date";
739
739
  text: "text";
740
+ "temporal-unit": "temporal-unit";
740
741
  "date/single": "date/single";
741
742
  category: "category";
742
743
  "location/city": "location/city";
@@ -748,7 +749,6 @@ declare const CardCreateInput: z.ZodObject<{
748
749
  "date/quarter-year": "date/quarter-year";
749
750
  "date/relative": "date/relative";
750
751
  "date/all-options": "date/all-options";
751
- "temporal-unit": "temporal-unit";
752
752
  "number/!=": "number/!=";
753
753
  "number/<=": "number/<=";
754
754
  "number/=": "number/=";
@@ -826,9 +826,9 @@ type CardCreateInput = z.infer<typeof CardCreateInput>;
826
826
  declare const CardUpdateInput: z.ZodObject<{
827
827
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
828
  type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
829
- question: "question";
830
- model: "model";
831
829
  metric: "metric";
830
+ model: "model";
831
+ question: "question";
832
832
  }>>>;
833
833
  dataset_query: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
834
834
  display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -838,8 +838,8 @@ declare const CardUpdateInput: z.ZodObject<{
838
838
  enable_embedding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
839
839
  embedding_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
840
  embedding_params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodEnum<{
841
- disabled: "disabled";
842
841
  enabled: "enabled";
842
+ disabled: "disabled";
843
843
  locked: "locked";
844
844
  }>>>>;
845
845
  collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -856,6 +856,7 @@ declare const CardUpdateInput: z.ZodObject<{
856
856
  id: "id";
857
857
  date: "date";
858
858
  text: "text";
859
+ "temporal-unit": "temporal-unit";
859
860
  "date/single": "date/single";
860
861
  category: "category";
861
862
  "location/city": "location/city";
@@ -867,7 +868,6 @@ declare const CardUpdateInput: z.ZodObject<{
867
868
  "date/quarter-year": "date/quarter-year";
868
869
  "date/relative": "date/relative";
869
870
  "date/all-options": "date/all-options";
870
- "temporal-unit": "temporal-unit";
871
871
  "number/!=": "number/!=";
872
872
  "number/<=": "number/<=";
873
873
  "number/=": "number/=";
@@ -1213,10 +1213,10 @@ declare const CardQueryResult: z.ZodObject<{
1213
1213
  type CardQueryResult = z.infer<typeof CardQueryResult>;
1214
1214
  declare const CardQueryResultCompact: z.ZodObject<{
1215
1215
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
+ error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
1217
  status: z.ZodString;
1217
- row_count: z.ZodOptional<z.ZodNumber>;
1218
1218
  cached: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
- error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
+ row_count: z.ZodOptional<z.ZodNumber>;
1220
1220
  data: z.ZodOptional<z.ZodObject<{
1221
1221
  rows: z.ZodArray<z.ZodArray<z.ZodUnknown>>;
1222
1222
  cols: z.ZodArray<z.ZodObject<{
@@ -1,7 +1,7 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CyHAGDqx.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-CrSywvOt.js";
4
- import { r as QueryMetadata } from "./dataset-cg8ZZrOP.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";
5
5
  import { n as ExportFormat } from "./query-Xsin530u.js";
6
6
  //#region src/resources/card.d.ts
7
7
  interface CardListParams {