@metabase/client 0.1.1 → 0.1.2

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 (155) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +4 -2
  3. package/dist/auth/credential.d.ts +1 -1
  4. package/dist/auth/oauth-login.d.ts +1 -1
  5. package/dist/auth/oauth-login.js +1 -1
  6. package/dist/auth/oauth-session.d.ts +1 -1
  7. package/dist/{card-DN0sLkCG.d.ts → card-CbV6hLYH.d.ts} +3 -3
  8. package/dist/{card-BxBzr5Uj.d.ts → card-CrSywvOt.d.ts} +23 -23
  9. package/dist/{client-DdXLlH1B.d.ts → client-cBi6_RQs.d.ts} +108 -108
  10. package/dist/client.d.ts +1 -1
  11. package/dist/{collection-DGnTvD6R.d.ts → collection-Bmtisr3r.d.ts} +34 -34
  12. package/dist/{collection-fFahL-ub.d.ts → collection-Q9FNMiRh.d.ts} +4 -4
  13. package/dist/{credential-6aOEGqMH.d.ts → credential-B6fKSvqp.d.ts} +1 -1
  14. package/dist/{dashboard-CM7RmNeE.d.ts → dashboard-CknUcTp8.d.ts} +3 -3
  15. package/dist/{dashboard-DtLXVgtf.d.ts → dashboard-DBdEehA9.d.ts} +18 -18
  16. package/dist/{data-action-CkXVrOUH.d.ts → data-action-CqqZ0JYg.d.ts} +1 -1
  17. package/dist/{data-app-CqP5_fpB.d.ts → data-app-MoMS9VUr.d.ts} +1 -1
  18. package/dist/{database-B0JNZjDN.d.ts → database-Bs5WQOOZ.d.ts} +3 -3
  19. package/dist/{database-BxqDmfcj.d.ts → database-CYNLJ8AZ.d.ts} +19 -19
  20. package/dist/{dataset-BBNGPVec.d.ts → dataset-cg8ZZrOP.d.ts} +78 -78
  21. package/dist/{dataset-BUirJ1rO.d.ts → dataset-dzWljE_C.d.ts} +3 -3
  22. package/dist/{dependency-CzpXmeu7.d.ts → dependency-CL-YG9KH.d.ts} +25 -25
  23. package/dist/{dependency-arB8Cr2H.d.ts → dependency-VqvLTDAU.d.ts} +134 -134
  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 +1 -1
  27. package/dist/domain/data-action.d.ts +1 -1
  28. package/dist/domain/data-app.d.ts +1 -1
  29. package/dist/domain/database.d.ts +1 -1
  30. package/dist/domain/dataset.d.ts +1 -1
  31. package/dist/domain/dependency.d.ts +1 -1
  32. package/dist/domain/eid-translation.d.ts +1 -1
  33. package/dist/domain/embedding.d.ts +1 -1
  34. package/dist/domain/field.d.ts +1 -1
  35. package/dist/domain/git-sync.d.ts +1 -1
  36. package/dist/domain/metric.d.ts +1 -1
  37. package/dist/domain/moderation-review.d.ts +1 -1
  38. package/dist/domain/notification.d.ts +1 -1
  39. package/dist/domain/parameter.d.ts +1 -1
  40. package/dist/domain/pulse.d.ts +1 -1
  41. package/dist/domain/replacement.d.ts +1 -1
  42. package/dist/domain/revision.d.ts +1 -1
  43. package/dist/domain/search.d.ts +1 -1
  44. package/dist/domain/table.d.ts +1 -1
  45. package/dist/domain/timeline.d.ts +1 -1
  46. package/dist/domain/transform-dag-run.d.ts +1 -1
  47. package/dist/domain/transform-inspector.d.ts +1 -1
  48. package/dist/domain/transform-job.d.ts +1 -1
  49. package/dist/domain/transform-test.d.ts +1 -1
  50. package/dist/domain/transform.d.ts +1 -1
  51. package/dist/{eid-translation-CH6NPWd-.d.ts → eid-translation-aQSffx0o.d.ts} +35 -35
  52. package/dist/{embedding-oU3gqfgX.d.ts → embedding-Cz3RUJYf.d.ts} +1 -1
  53. package/dist/{erd-CbV7xvAc.d.ts → erd-DCgdEC2S.d.ts} +1 -1
  54. package/dist/errors.d.ts +1 -1
  55. package/dist/{field-D1Pfk-0S.d.ts → field-ozrfbvUd.d.ts} +2 -2
  56. package/dist/{field-p9Rme2zB.d.ts → field-tqQPtVuR.d.ts} +3 -3
  57. package/dist/{git-sync-BTf1aYHr.d.ts → git-sync-5lFWX1ds.d.ts} +1 -1
  58. package/dist/{git-sync-C99SVdJ9.d.ts → git-sync-QL9Nu6gP.d.ts} +8 -8
  59. package/dist/{glossary-DFvnz-E5.d.ts → glossary-DwS7QVrl.d.ts} +1 -1
  60. package/dist/http/errors.d.ts +1 -1
  61. package/dist/http/oauth.d.ts +1 -1
  62. package/dist/http/oauth.js +47 -36
  63. package/dist/http/transport.d.ts +1 -1
  64. package/dist/index.d.ts +35 -35
  65. package/dist/index.js +1 -1
  66. package/dist/{json-BksZpXDC.d.ts → json-DwGOvRtS.d.ts} +1 -1
  67. package/dist/json.d.ts +1 -1
  68. package/dist/{measure-lPz8qnwz.d.ts → measure-CInoXeyH.d.ts} +1 -1
  69. package/dist/{metric-DcYloqOQ.d.ts → metric-CYOmbcM5.d.ts} +8 -8
  70. package/dist/{moderation-review-B4RUTZ6_.d.ts → moderation-review-CWUQ3_HL.d.ts} +4 -4
  71. package/dist/{notification-D1MThyKE.d.ts → notification-BY2JEjKp.d.ts} +2 -2
  72. package/dist/{notification-Cp5GJErS.d.ts → notification-D-Hp82Pn.d.ts} +2 -2
  73. package/dist/{oauth-C4ordeoJ.d.ts → oauth-CVoZpuq8.d.ts} +4 -2
  74. package/dist/{oauth-login-D734Jvbq.js → oauth-login--tDagiZu.js} +29 -11
  75. package/dist/{oauth-login-CJsT_3EE.d.ts → oauth-login-SZ4Csai8.d.ts} +3 -2
  76. package/dist/{oauth-session-BlIlcd8Q.d.ts → oauth-session-COLH4puN.d.ts} +1 -1
  77. package/dist/{paginate-COuL0Gzl.d.ts → paginate-CaJ5usdp.d.ts} +1 -1
  78. package/dist/paginate.d.ts +1 -1
  79. package/dist/{parameter-ak-J-IOj.d.ts → parameter-BYo7uR-J.d.ts} +2 -2
  80. package/dist/{pulse-BzKmz3Yn.d.ts → pulse-BTpSNxhT.d.ts} +2 -2
  81. package/dist/{pulse-0LG3K6qO.d.ts → pulse-BUlfrJZH.d.ts} +16 -16
  82. package/dist/{replacement-BGyggp-G.d.ts → replacement-BQian4vA.d.ts} +19 -19
  83. package/dist/{replacement-CVebCuNp.d.ts → replacement-Dbtvvrmz.d.ts} +11 -11
  84. package/dist/{requirement-check-glU7wqhQ.d.ts → requirement-check-CHHEHXcj.d.ts} +1 -1
  85. package/dist/resources/api-key.d.ts +1 -1
  86. package/dist/resources/card.d.ts +1 -1
  87. package/dist/resources/collection.d.ts +1 -1
  88. package/dist/resources/collection.js +6 -1
  89. package/dist/resources/content-translation.d.ts +1 -1
  90. package/dist/resources/dashboard.d.ts +1 -1
  91. package/dist/resources/data-action.d.ts +2 -2
  92. package/dist/resources/data-app.d.ts +1 -1
  93. package/dist/resources/database.d.ts +1 -1
  94. package/dist/resources/dataset.d.ts +1 -1
  95. package/dist/resources/dependency.d.ts +1 -1
  96. package/dist/resources/document.d.ts +2 -9
  97. package/dist/resources/eid-translation.d.ts +2 -2
  98. package/dist/resources/erd.d.ts +1 -1
  99. package/dist/resources/field.d.ts +1 -1
  100. package/dist/resources/git-sync.d.ts +1 -1
  101. package/dist/resources/glossary.d.ts +1 -1
  102. package/dist/resources/library.d.ts +1 -1
  103. package/dist/resources/measure.d.ts +1 -1
  104. package/dist/resources/metric.d.ts +1 -1
  105. package/dist/resources/moderation-review.d.ts +1 -1
  106. package/dist/resources/notification.d.ts +1 -1
  107. package/dist/resources/optional-parsed.d.ts +1 -1
  108. package/dist/resources/permission.d.ts +1 -1
  109. package/dist/resources/pivot-export.d.ts +1 -1
  110. package/dist/resources/pulse.d.ts +1 -1
  111. package/dist/resources/replacement.d.ts +1 -1
  112. package/dist/resources/revision.d.ts +1 -1
  113. package/dist/resources/search.d.ts +1 -1
  114. package/dist/resources/segment.d.ts +1 -1
  115. package/dist/resources/setting.d.ts +1 -1
  116. package/dist/resources/setup.d.ts +1 -1
  117. package/dist/resources/snippet.d.ts +1 -1
  118. package/dist/resources/table.d.ts +1 -1
  119. package/dist/resources/timeline-event.d.ts +2 -2
  120. package/dist/resources/timeline.d.ts +1 -1
  121. package/dist/resources/transform-dag-run.d.ts +2 -2
  122. package/dist/resources/transform-inspector.d.ts +4 -4
  123. package/dist/resources/transform-job.d.ts +1 -1
  124. package/dist/resources/transform-python.d.ts +1 -1
  125. package/dist/resources/transform-tag.d.ts +1 -1
  126. package/dist/resources/transform-test.d.ts +1 -1
  127. package/dist/resources/transform.d.ts +1 -1
  128. package/dist/resources/upload.d.ts +1 -1
  129. package/dist/resources/user.d.ts +1 -1
  130. package/dist/{revision-Dyl-8p7d.d.ts → revision-DNEw6S93.d.ts} +1 -1
  131. package/dist/{search-Cten2h0I.d.ts → search-BQWkdVg1.d.ts} +2 -2
  132. package/dist/{search-Cm5IxKss.d.ts → search-tK5lmRb8.d.ts} +18 -18
  133. package/dist/{segment-DQLX6r1E.d.ts → segment-jyhBtOAZ.d.ts} +1 -1
  134. package/dist/signal.d.ts +3 -2
  135. package/dist/signal.js +9 -4
  136. package/dist/{snippet-Djn0rL21.d.ts → snippet-DsgohpTV.d.ts} +1 -1
  137. package/dist/{table-CDZbLNow.d.ts → table-B1pQSpTA.d.ts} +10 -10
  138. package/dist/{table-Od6uvDVW.d.ts → table-BAl8aPZZ.d.ts} +30 -30
  139. package/dist/{timeline-BTs6fuRp.d.ts → timeline-BdLvwRnl.d.ts} +2 -2
  140. package/dist/{timeline-BK45hy-h.d.ts → timeline-BfX1lMob.d.ts} +11 -11
  141. package/dist/{transform-WASQAXeA.d.ts → transform-Ds74yPiY.d.ts} +12 -12
  142. package/dist/{transform-C5thnJwW.d.ts → transform-DwnIcpqV.d.ts} +14 -14
  143. package/dist/{transform-dag-run-BgZwv1yx.d.ts → transform-dag-run-BSrdrjaK.d.ts} +4 -4
  144. package/dist/{transform-inspector-CMCh8WKV.d.ts → transform-inspector-BMaRqcRM.d.ts} +8 -8
  145. package/dist/{transform-job-DmTwKxhc.d.ts → transform-job-C85GxBHj.d.ts} +6 -6
  146. package/dist/{transform-job-D8jTQtdX.d.ts → transform-job-Dfp9Ox0l.d.ts} +2 -2
  147. package/dist/{transform-test-CR_i54IV.d.ts → transform-test-C3hiZ4AV.d.ts} +2 -2
  148. package/dist/{transform-test-CeMzDpUC.d.ts → transform-test-DROPvrkI.d.ts} +1 -1
  149. package/dist/{transport-BsXqRujn.d.ts → transport-CS11mEqI.d.ts} +3 -3
  150. package/dist/{upload-B5YjVkSW.d.ts → upload-Bx1D7eNy.d.ts} +1 -1
  151. package/dist/version/capability-error.d.ts +1 -1
  152. package/dist/version/probe.d.ts +1 -1
  153. package/dist/version/profile.d.ts +1 -1
  154. package/dist/version/requirement-check.d.ts +1 -1
  155. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Notable changes to `@metabase/client`.
4
4
 
5
+ ## 0.1.2
6
+
7
+ - `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`.
8
+
5
9
  ## 0.1.1
6
10
 
7
11
  - `DashboardCreateInput` holds only the fields `POST /api/dashboard` reads, so a layout passed to `dashboard.create` fails to compile; send it as a `DashboardLayoutInput` through `dashboard.update`. At run time `dashboard.create` drops any other key before the request, as the server does, and refuses a blank `name`, as the server does.
package/README.md CHANGED
@@ -255,7 +255,7 @@ A 400 refusing a remote-sync move carries the content behind it: `nonRemoteSynce
255
255
  The client registers no signal handler and reads no process state, so cancellation reaches it as an
256
256
  `AbortSignal` the host owns. Three places take one and they compose: `ClientOptions.signal` cancels
257
257
  every request a client makes, `RequestOptions.signal` cancels a single request, and
258
- `PollOptions.signal` stops a wait loop. Each is folded together with the request timeout, so whichever
258
+ `PollOptions.signal` stops a wait loop. `OAuthLoginInput.signal` cancels a login, which runs before there is a client (see Auth). Each is folded together with the request timeout, so whichever
259
259
  fires first ends the work. A method's first call may also wait on the client's one shared server probe; the method's `signal` ends that caller's wait, while the probe itself belongs to the client and is cancelled only by `ClientOptions.signal`, so a later call still finds it settled.
260
260
 
261
261
  ```ts
@@ -423,7 +423,9 @@ an `OAuthCredential`. `refreshOAuthCredential` exchanges the rotating refresh to
423
423
  revocation endpoint. Types: `Credential` (the `ApiKeyCredential | OAuthCredential` union),
424
424
  `OAuthLoginInput`, `OAuthLoginDeps`.
425
425
 
426
- Unless the caller passes `metadata` from `tryDiscoverMetadata`, which makes the same check, `oauthLogin` checks that the server grants the full-access scope the REST API needs: a discovery document that lists it in `scopes_supported` settles it (Metabase v62 from the patch that introduced the scope, and v63), and otherwise the server's version does (`oauthFullAccessScopeUnadvertised`), because v64 and newer grant the scope without advertising it; a server that cannot is refused with a `ConfigError`.
426
+ `OAuthLoginInput.signal` cancels a login at any point: before it starts, during discovery, client registration or the token exchange, or while it waits for the browser's redirect. The request in flight is cancelled, the loopback callback port is freed at once, and the login rejects with the signal's reason when that is a `MetabaseError`, else with an `AbortError` carrying its message.
427
+
428
+ Unless the caller passes `metadata` from `tryDiscoverMetadata`, which makes the same check, `oauthLogin` checks that the server grants the full-access scope the REST API needs: a discovery document that lists it in `scopes_supported` settles it (Metabase v62 from the patch that introduced the scope, and v63), and otherwise the server's version does (`oauthFullAccessScopeUnadvertised`), because v64 and newer grant the scope without advertising it; a server that cannot is refused with a `ConfigError`. `tryDiscoverMetadata` takes a signal as well.
427
429
 
428
430
  ### Versions and requirements
429
431
 
@@ -1,2 +1,2 @@
1
- import { a as Credential, c as OAuthCredential, d as credentialSecrets, f as expiresAtFromNow, i as AuthHeader, l as assertCredentialHeaderSafe, m as oauthCredentialFromTokens, n as AUTHORIZATION_HEADER, o as CredentialRefresher, p as isOAuthExpired, r as ApiKeyCredential, s as DEFAULT_EXPIRES_IN_SECONDS, t as API_KEY_HEADER, u as credentialAuthHeader } from "../credential-6aOEGqMH.js";
1
+ import { a as Credential, c as OAuthCredential, d as credentialSecrets, f as expiresAtFromNow, i as AuthHeader, l as assertCredentialHeaderSafe, m as oauthCredentialFromTokens, n as AUTHORIZATION_HEADER, o as CredentialRefresher, p as isOAuthExpired, r as ApiKeyCredential, s as DEFAULT_EXPIRES_IN_SECONDS, t as API_KEY_HEADER, u as credentialAuthHeader } from "../credential-B6fKSvqp.js";
2
2
  export { API_KEY_HEADER, AUTHORIZATION_HEADER, ApiKeyCredential, AuthHeader, Credential, CredentialRefresher, DEFAULT_EXPIRES_IN_SECONDS, OAuthCredential, assertCredentialHeaderSafe, credentialAuthHeader, credentialSecrets, expiresAtFromNow, isOAuthExpired, oauthCredentialFromTokens };
@@ -1,2 +1,2 @@
1
- import { n as OAuthLoginInput, r as oauthLogin, t as OAuthLoginDeps } from "../oauth-login-CJsT_3EE.js";
1
+ import { n as OAuthLoginInput, r as oauthLogin, t as OAuthLoginDeps } from "../oauth-login-SZ4Csai8.js";
2
2
  export { OAuthLoginDeps, OAuthLoginInput, oauthLogin };
@@ -1,2 +1,2 @@
1
- import { t as oauthLogin } from "../oauth-login-D734Jvbq.js";
1
+ import { t as oauthLogin } from "../oauth-login--tDagiZu.js";
2
2
  export { oauthLogin };
@@ -1,2 +1,2 @@
1
- import { n as revokeOAuthCredential, t as refreshOAuthCredential } from "../oauth-session-BlIlcd8Q.js";
1
+ import { n as revokeOAuthCredential, t as refreshOAuthCredential } from "../oauth-session-COLH4puN.js";
2
2
  export { refreshOAuthCredential, revokeOAuthCredential };
@@ -1,7 +1,7 @@
1
- import { f as RequestOptions, h as Transport } from "./transport-BsXqRujn.js";
1
+ import { f as RequestOptions, h as Transport } from "./transport-CS11mEqI.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-BxBzr5Uj.js";
4
- import { r as QueryMetadata } from "./dataset-BBNGPVec.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";
5
5
  import { n as ExportFormat } from "./query-Xsin530u.js";
6
6
  //#region src/resources/card.d.ts
7
7
  interface CardListParams {
@@ -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
- metric: "metric";
5
- model: "model";
6
4
  question: "question";
5
+ model: "model";
6
+ metric: "metric";
7
7
  }>;
8
8
  type CardType = z.infer<typeof CardType>;
9
9
  declare const CardListFilter: z.ZodEnum<{
10
10
  archived: "archived";
11
- database: "database";
12
- table: "table";
13
11
  all: "all";
14
12
  mine: "mine";
15
13
  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
- metric: "metric";
282
- model: "model";
283
281
  question: "question";
282
+ model: "model";
283
+ metric: "metric";
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
- query: "query";
290
289
  native: "native";
290
+ query: "query";
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
- metric: "metric";
324
- model: "model";
325
323
  question: "question";
324
+ model: "model";
325
+ metric: "metric";
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
- query: "query";
332
331
  native: "native";
332
+ query: "query";
333
333
  }>>;
334
334
  database_id: z.ZodNullable<z.ZodNumber>;
335
335
  table_id: z.ZodNullable<z.ZodNumber>;
@@ -364,7 +364,6 @@ declare const CardDetail: z.ZodObject<{
364
364
  id: "id";
365
365
  date: "date";
366
366
  text: "text";
367
- "temporal-unit": "temporal-unit";
368
367
  "date/single": "date/single";
369
368
  category: "category";
370
369
  "location/city": "location/city";
@@ -376,6 +375,7 @@ declare const CardDetail: z.ZodObject<{
376
375
  "date/quarter-year": "date/quarter-year";
377
376
  "date/relative": "date/relative";
378
377
  "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
- metric: "metric";
702
- model: "model";
703
701
  question: "question";
702
+ model: "model";
703
+ metric: "metric";
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>;
710
709
  display: z.ZodString;
711
710
  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
- metric: "metric";
719
- model: "model";
720
718
  question: "question";
719
+ model: "model";
720
+ metric: "metric";
721
721
  }>>>;
722
722
  dataset_query: z.ZodObject<{}, z.core.$loose>;
723
723
  display: z.ZodString;
@@ -737,7 +737,6 @@ declare const CardCreateInput: z.ZodObject<{
737
737
  id: "id";
738
738
  date: "date";
739
739
  text: "text";
740
- "temporal-unit": "temporal-unit";
741
740
  "date/single": "date/single";
742
741
  category: "category";
743
742
  "location/city": "location/city";
@@ -749,6 +748,7 @@ declare const CardCreateInput: z.ZodObject<{
749
748
  "date/quarter-year": "date/quarter-year";
750
749
  "date/relative": "date/relative";
751
750
  "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
- metric: "metric";
830
- model: "model";
831
829
  question: "question";
830
+ model: "model";
831
+ metric: "metric";
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
- enabled: "enabled";
842
841
  disabled: "disabled";
842
+ enabled: "enabled";
843
843
  locked: "locked";
844
844
  }>>>>;
845
845
  collection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -856,7 +856,6 @@ declare const CardUpdateInput: z.ZodObject<{
856
856
  id: "id";
857
857
  date: "date";
858
858
  text: "text";
859
- "temporal-unit": "temporal-unit";
860
859
  "date/single": "date/single";
861
860
  category: "category";
862
861
  "location/city": "location/city";
@@ -868,6 +867,7 @@ declare const CardUpdateInput: z.ZodObject<{
868
867
  "date/quarter-year": "date/quarter-year";
869
868
  "date/relative": "date/relative";
870
869
  "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>>;
1217
1216
  status: z.ZodString;
1218
- cached: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
1217
  row_count: z.ZodOptional<z.ZodNumber>;
1218
+ cached: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
+ error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
1220
  data: z.ZodOptional<z.ZodObject<{
1221
1221
  rows: z.ZodArray<z.ZodArray<z.ZodUnknown>>;
1222
1222
  cols: z.ZodArray<z.ZodObject<{