@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
@@ -1,5 +1,5 @@
1
- import { a as OAuthServerMetadata } from "./oauth-C4ordeoJ.js";
2
- import { c as OAuthCredential } from "./credential-6aOEGqMH.js";
1
+ import { a as OAuthServerMetadata } from "./oauth-CVoZpuq8.js";
2
+ import { c as OAuthCredential } from "./credential-B6fKSvqp.js";
3
3
  //#region src/auth/oauth-login.d.ts
4
4
  interface OAuthLoginInput {
5
5
  baseUrl: string;
@@ -8,6 +8,7 @@ interface OAuthLoginInput {
8
8
  metadata?: OAuthServerMetadata;
9
9
  clientId?: string;
10
10
  timeoutMs?: number;
11
+ signal?: AbortSignal;
11
12
  }
12
13
  interface OAuthLoginDeps {
13
14
  openBrowser: (url: string) => Promise<boolean>;
@@ -1,4 +1,4 @@
1
- import { c as OAuthCredential } from "./credential-6aOEGqMH.js";
1
+ import { c as OAuthCredential } from "./credential-B6fKSvqp.js";
2
2
  //#region src/auth/oauth-session.d.ts
3
3
  declare function refreshOAuthCredential(baseUrl: string, credential: OAuthCredential, nowMs: number, userAgent: string): Promise<OAuthCredential>;
4
4
  declare function revokeOAuthCredential(baseUrl: string, credential: OAuthCredential, userAgent: string): Promise<boolean>;
@@ -1,4 +1,4 @@
1
- import { d as QueryValue, h as Transport } from "./transport-BsXqRujn.js";
1
+ import { d as QueryValue, h as Transport } from "./transport-CS11mEqI.js";
2
2
  import { ZodType } from "zod";
3
3
  //#region src/paginate.d.ts
4
4
  declare const DEFAULT_PAGE_SIZE = 50;
@@ -1,2 +1,2 @@
1
- import { a as paginatePages, i as PaginatedEnvelope, n as Page, r as PaginateOptions, t as DEFAULT_PAGE_SIZE } from "./paginate-COuL0Gzl.js";
1
+ import { a as paginatePages, i as PaginatedEnvelope, n as Page, r as PaginateOptions, t as DEFAULT_PAGE_SIZE } from "./paginate-CaJ5usdp.js";
2
2
  export { DEFAULT_PAGE_SIZE, Page, PaginateOptions, PaginatedEnvelope, paginatePages };
@@ -6,7 +6,6 @@ declare const ParameterType: z.ZodEnum<{
6
6
  id: "id";
7
7
  date: "date";
8
8
  text: "text";
9
- "temporal-unit": "temporal-unit";
10
9
  "date/single": "date/single";
11
10
  category: "category";
12
11
  "location/city": "location/city";
@@ -18,6 +17,7 @@ declare const ParameterType: z.ZodEnum<{
18
17
  "date/quarter-year": "date/quarter-year";
19
18
  "date/relative": "date/relative";
20
19
  "date/all-options": "date/all-options";
20
+ "temporal-unit": "temporal-unit";
21
21
  "number/!=": "number/!=";
22
22
  "number/<=": "number/<=";
23
23
  "number/=": "number/=";
@@ -91,7 +91,6 @@ declare const Parameter: z.ZodObject<{
91
91
  id: "id";
92
92
  date: "date";
93
93
  text: "text";
94
- "temporal-unit": "temporal-unit";
95
94
  "date/single": "date/single";
96
95
  category: "category";
97
96
  "location/city": "location/city";
@@ -103,6 +102,7 @@ declare const Parameter: z.ZodObject<{
103
102
  "date/quarter-year": "date/quarter-year";
104
103
  "date/relative": "date/relative";
105
104
  "date/all-options": "date/all-options";
105
+ "temporal-unit": "temporal-unit";
106
106
  "number/!=": "number/!=";
107
107
  "number/<=": "number/<=";
108
108
  "number/=": "number/=";
@@ -1,6 +1,6 @@
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 { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-0LG3K6qO.js";
3
+ import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-BUlfrJZH.js";
4
4
  //#region src/resources/pulse.d.ts
5
5
  interface PulseListParams {
6
6
  dashboard_id?: number | undefined;
@@ -2,9 +2,9 @@ import { r as InputGate } from "./input-gates-DwKoTJVQ.js";
2
2
  import { z } from "zod";
3
3
  //#region src/domain/pulse.d.ts
4
4
  declare const PulseChannelType: z.ZodEnum<{
5
+ http: "http";
5
6
  email: "email";
6
7
  slack: "slack";
7
- http: "http";
8
8
  }>;
9
9
  type PulseChannelType = z.infer<typeof PulseChannelType>;
10
10
  declare const PulseScheduleType: z.ZodEnum<{
@@ -47,9 +47,9 @@ type PulseRecipientCompact = z.infer<typeof PulseRecipientCompact>;
47
47
  declare const PulseChannel: z.ZodObject<{
48
48
  id: z.ZodOptional<z.ZodNumber>;
49
49
  channel_type: z.ZodEnum<{
50
+ http: "http";
50
51
  email: "email";
51
52
  slack: "slack";
52
- http: "http";
53
53
  }>;
54
54
  channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
55
  enabled: z.ZodBoolean;
@@ -85,14 +85,14 @@ declare const PulseChannel: z.ZodObject<{
85
85
  type PulseChannel = z.infer<typeof PulseChannel>;
86
86
  declare const PulseChannelCompact: z.ZodObject<{
87
87
  enabled: z.ZodBoolean;
88
+ details: z.ZodOptional<z.ZodObject<{
89
+ channel: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$loose>>;
88
91
  channel_type: z.ZodEnum<{
92
+ http: "http";
89
93
  email: "email";
90
94
  slack: "slack";
91
- http: "http";
92
95
  }>;
93
- details: z.ZodOptional<z.ZodObject<{
94
- channel: z.ZodOptional<z.ZodString>;
95
- }, z.core.$loose>>;
96
96
  schedule_type: z.ZodEnum<{
97
97
  hourly: "hourly";
98
98
  daily: "daily";
@@ -152,7 +152,6 @@ declare const Pulse: z.ZodObject<{
152
152
  id: "id";
153
153
  date: "date";
154
154
  text: "text";
155
- "temporal-unit": "temporal-unit";
156
155
  "date/single": "date/single";
157
156
  category: "category";
158
157
  "location/city": "location/city";
@@ -164,6 +163,7 @@ declare const Pulse: z.ZodObject<{
164
163
  "date/quarter-year": "date/quarter-year";
165
164
  "date/relative": "date/relative";
166
165
  "date/all-options": "date/all-options";
166
+ "temporal-unit": "temporal-unit";
167
167
  "number/!=": "number/!=";
168
168
  "number/<=": "number/<=";
169
169
  "number/=": "number/=";
@@ -236,9 +236,9 @@ declare const Pulse: z.ZodObject<{
236
236
  channels: z.ZodArray<z.ZodObject<{
237
237
  id: z.ZodOptional<z.ZodNumber>;
238
238
  channel_type: z.ZodEnum<{
239
+ http: "http";
239
240
  email: "email";
240
241
  slack: "slack";
241
- http: "http";
242
242
  }>;
243
243
  channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
244
  enabled: z.ZodBoolean;
@@ -289,14 +289,14 @@ declare const PulseCompact: z.ZodObject<{
289
289
  }, z.core.$strip>>;
290
290
  channels: z.ZodArray<z.ZodObject<{
291
291
  enabled: z.ZodBoolean;
292
+ details: z.ZodOptional<z.ZodObject<{
293
+ channel: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$loose>>;
292
295
  channel_type: z.ZodEnum<{
296
+ http: "http";
293
297
  email: "email";
294
298
  slack: "slack";
295
- http: "http";
296
299
  }>;
297
- details: z.ZodOptional<z.ZodObject<{
298
- channel: z.ZodOptional<z.ZodString>;
299
- }, z.core.$loose>>;
300
300
  schedule_type: z.ZodEnum<{
301
301
  hourly: "hourly";
302
302
  daily: "daily";
@@ -339,9 +339,9 @@ declare const PulseCreateInput: z.ZodObject<{
339
339
  }, z.core.$loose>>;
340
340
  channels: z.ZodArray<z.ZodObject<{
341
341
  channel_type: z.ZodEnum<{
342
+ http: "http";
342
343
  email: "email";
343
344
  slack: "slack";
344
- http: "http";
345
345
  }>;
346
346
  enabled: z.ZodDefault<z.ZodBoolean>;
347
347
  schedule_type: z.ZodEnum<{
@@ -384,7 +384,6 @@ declare const PulseCreateInput: z.ZodObject<{
384
384
  id: "id";
385
385
  date: "date";
386
386
  text: "text";
387
- "temporal-unit": "temporal-unit";
388
387
  "date/single": "date/single";
389
388
  category: "category";
390
389
  "location/city": "location/city";
@@ -396,6 +395,7 @@ declare const PulseCreateInput: z.ZodObject<{
396
395
  "date/quarter-year": "date/quarter-year";
397
396
  "date/relative": "date/relative";
398
397
  "date/all-options": "date/all-options";
398
+ "temporal-unit": "temporal-unit";
399
399
  "number/!=": "number/!=";
400
400
  "number/<=": "number/<=";
401
401
  "number/=": "number/=";
@@ -472,9 +472,9 @@ declare const PulseUpdateInput: z.ZodObject<{
472
472
  }, z.core.$loose>>>;
473
473
  channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
474
474
  channel_type: z.ZodEnum<{
475
+ http: "http";
475
476
  email: "email";
476
477
  slack: "slack";
477
- http: "http";
478
478
  }>;
479
479
  enabled: z.ZodDefault<z.ZodBoolean>;
480
480
  schedule_type: z.ZodEnum<{
@@ -518,7 +518,6 @@ declare const PulseUpdateInput: z.ZodObject<{
518
518
  id: "id";
519
519
  date: "date";
520
520
  text: "text";
521
- "temporal-unit": "temporal-unit";
522
521
  "date/single": "date/single";
523
522
  category: "category";
524
523
  "location/city": "location/city";
@@ -530,6 +529,7 @@ declare const PulseUpdateInput: z.ZodObject<{
530
529
  "date/quarter-year": "date/quarter-year";
531
530
  "date/relative": "date/relative";
532
531
  "date/all-options": "date/all-options";
532
+ "temporal-unit": "temporal-unit";
533
533
  "number/!=": "number/!=";
534
534
  "number/<=": "number/<=";
535
535
  "number/=": "number/=";
@@ -1,46 +1,46 @@
1
1
  import { z } from "zod";
2
2
  //#region src/domain/replacement.d.ts
3
3
  declare const ReplacementSourceType: z.ZodEnum<{
4
- card: "card";
5
4
  table: "table";
5
+ card: "card";
6
6
  }>;
7
7
  type ReplacementSourceType = z.infer<typeof ReplacementSourceType>;
8
8
  declare const ReplacementEntityType: z.ZodEnum<{
9
9
  transform: "transform";
10
- card: "card";
11
10
  table: "table";
11
+ card: "card";
12
12
  }>;
13
13
  type ReplacementEntityType = z.infer<typeof ReplacementEntityType>;
14
14
  declare const ReplacementRunStatus: z.ZodEnum<{
15
- timeout: "timeout";
16
- failed: "failed";
17
15
  pending: "pending";
18
16
  started: "started";
19
17
  succeeded: "succeeded";
18
+ failed: "failed";
20
19
  canceled: "canceled";
20
+ timeout: "timeout";
21
21
  }>;
22
22
  type ReplacementRunStatus = z.infer<typeof ReplacementRunStatus>;
23
23
  declare const ReplacementRun: z.ZodObject<{
24
24
  id: z.ZodNumber;
25
25
  status: z.ZodEnum<{
26
- timeout: "timeout";
27
- failed: "failed";
28
26
  pending: "pending";
29
27
  started: "started";
30
28
  succeeded: "succeeded";
29
+ failed: "failed";
31
30
  canceled: "canceled";
31
+ timeout: "timeout";
32
32
  }>;
33
33
  is_active: z.ZodNullable<z.ZodLiteral<true>>;
34
34
  source_entity_type: z.ZodEnum<{
35
35
  transform: "transform";
36
- card: "card";
37
36
  table: "table";
37
+ card: "card";
38
38
  }>;
39
39
  source_entity_id: z.ZodNumber;
40
40
  target_entity_type: z.ZodEnum<{
41
41
  transform: "transform";
42
- card: "card";
43
42
  table: "table";
43
+ card: "card";
44
44
  }>;
45
45
  target_entity_id: z.ZodNumber;
46
46
  progress: z.ZodNullable<z.ZodNumber>;
@@ -53,25 +53,25 @@ type ReplacementRun = z.infer<typeof ReplacementRun>;
53
53
  declare const ReplacementRunCompact: z.ZodObject<{
54
54
  message: z.ZodNullable<z.ZodString>;
55
55
  id: z.ZodNumber;
56
- source_entity_type: z.ZodEnum<{
57
- transform: "transform";
58
- card: "card";
59
- table: "table";
60
- }>;
61
- source_entity_id: z.ZodNumber;
62
56
  status: z.ZodEnum<{
63
- timeout: "timeout";
64
- failed: "failed";
65
57
  pending: "pending";
66
58
  started: "started";
67
59
  succeeded: "succeeded";
60
+ failed: "failed";
68
61
  canceled: "canceled";
62
+ timeout: "timeout";
69
63
  }>;
64
+ source_entity_type: z.ZodEnum<{
65
+ transform: "transform";
66
+ table: "table";
67
+ card: "card";
68
+ }>;
69
+ source_entity_id: z.ZodNumber;
70
70
  progress: z.ZodNullable<z.ZodNumber>;
71
71
  target_entity_type: z.ZodEnum<{
72
72
  transform: "transform";
73
- card: "card";
74
73
  table: "table";
74
+ card: "card";
75
75
  }>;
76
76
  target_entity_id: z.ZodNumber;
77
77
  start_time: z.ZodString;
@@ -2422,13 +2422,13 @@ type ReplacementCheck = z.infer<typeof ReplacementCheck>;
2422
2422
  declare const ReplacementSourceInput: z.ZodObject<{
2423
2423
  source_entity_id: z.ZodNumber;
2424
2424
  source_entity_type: z.ZodEnum<{
2425
- card: "card";
2426
2425
  table: "table";
2426
+ card: "card";
2427
2427
  }>;
2428
2428
  target_entity_id: z.ZodNumber;
2429
2429
  target_entity_type: z.ZodEnum<{
2430
- card: "card";
2431
2430
  table: "table";
2431
+ card: "card";
2432
2432
  }>;
2433
2433
  }, z.core.$strict>;
2434
2434
  type ReplacementSourceInput = z.infer<typeof ReplacementSourceInput>;
@@ -1,4 +1,4 @@
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
3
  //#region src/resources/replacement.d.ts
4
4
  interface ReplacementRunListParams {
@@ -7,9 +7,9 @@ interface ReplacementRunListParams {
7
7
  declare function replacementResource(transport: Transport): {
8
8
  checkReplaceSource: (params: {
9
9
  source_entity_id: number;
10
- source_entity_type: "card" | "table";
10
+ source_entity_type: "table" | "card";
11
11
  target_entity_id: number;
12
- target_entity_type: "card" | "table";
12
+ target_entity_type: "table" | "card";
13
13
  }, options?: RequestOptions | undefined) => Promise<{
14
14
  success: boolean;
15
15
  errors?: ("cycle-detected" | "database-mismatch" | "incompatible-implicit-joins" | "affects-gtap-policies")[] | undefined;
@@ -53,9 +53,9 @@ declare function replacementResource(transport: Transport): {
53
53
  }>;
54
54
  replaceSource: (params: {
55
55
  source_entity_id: number;
56
- source_entity_type: "card" | "table";
56
+ source_entity_type: "table" | "card";
57
57
  target_entity_id: number;
58
- target_entity_type: "card" | "table";
58
+ target_entity_type: "table" | "card";
59
59
  }, options?: RequestOptions | undefined) => Promise<{
60
60
  run_id: number;
61
61
  }>;
@@ -95,11 +95,11 @@ declare function replacementResource(transport: Transport): {
95
95
  listRuns: (params?: ReplacementRunListParams | undefined, options?: RequestOptions | undefined) => Promise<ListResult<{
96
96
  [x: string]: unknown;
97
97
  id: number;
98
- status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
98
+ status: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
99
99
  is_active: true | null;
100
- source_entity_type: "transform" | "card" | "table";
100
+ source_entity_type: "transform" | "table" | "card";
101
101
  source_entity_id: number;
102
- target_entity_type: "transform" | "card" | "table";
102
+ target_entity_type: "transform" | "table" | "card";
103
103
  target_entity_id: number;
104
104
  progress: number | null;
105
105
  message: string | null;
@@ -110,11 +110,11 @@ declare function replacementResource(transport: Transport): {
110
110
  getRun: (id: number, options?: RequestOptions | undefined) => Promise<{
111
111
  [x: string]: unknown;
112
112
  id: number;
113
- status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
113
+ status: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
114
114
  is_active: true | null;
115
- source_entity_type: "transform" | "card" | "table";
115
+ source_entity_type: "transform" | "table" | "card";
116
116
  source_entity_id: number;
117
- target_entity_type: "transform" | "card" | "table";
117
+ target_entity_type: "transform" | "table" | "card";
118
118
  target_entity_id: number;
119
119
  progress: number | null;
120
120
  message: string | null;
@@ -1,5 +1,5 @@
1
1
  import { i as FeatureName } from "./features-SMSfJhB6.js";
2
- import { b as RequirementFailure, yt as ServerProfile } from "./transport-BsXqRujn.js";
2
+ import { b as RequirementFailure, yt as ServerProfile } from "./transport-CS11mEqI.js";
3
3
  //#region src/version/requirement-check.d.ts
4
4
  /** The first of `features` the profile lacks, or `null` when it has every one. */
5
5
  declare function checkFeatures(features: readonly FeatureName[], profile: ServerProfile): RequirementFailure | null;
@@ -1,4 +1,4 @@
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
3
  import { i as CreatedApiKey, r as ApiKeyCreateInput, t as ApiKey } from "../api-key-DJeN1-7G.js";
4
4
  //#region src/resources/api-key.d.ts
@@ -1,2 +1,2 @@
1
- import { i as cardResource, n as CardListParams, r as CardQueryParams, t as CardExportParams } from "../card-DN0sLkCG.js";
1
+ import { i as cardResource, n as CardListParams, r as CardQueryParams, t as CardExportParams } from "../card-CbV6hLYH.js";
2
2
  export { CardExportParams, CardListParams, CardQueryParams, cardResource };
@@ -1,2 +1,2 @@
1
- import { a as collectionResource, i as CollectionTreeParams, n as CollectionItemPageOptions, o as listCollectionsAs, r as CollectionListParams, t as CollectionItemListParams } from "../collection-fFahL-ub.js";
1
+ import { a as collectionResource, i as CollectionTreeParams, n as CollectionItemPageOptions, o as listCollectionsAs, r as CollectionListParams, t as CollectionItemListParams } from "../collection-Q9FNMiRh.js";
2
2
  export { CollectionItemListParams, CollectionItemPageOptions, CollectionListParams, CollectionTreeParams, collectionResource, listCollectionsAs };
@@ -11,6 +11,7 @@ const COLLECTION_LIST_QUERY = {
11
11
  personal: { "personal-only": true }
12
12
  };
13
13
  const DEFAULT_LIST_FILTER = "all";
14
+ const INCLUDE_LIBRARY = { "include-library": true };
14
15
  const TRASH_ALIAS = "trash";
15
16
  const MODELS_FIELDS = ["models"];
16
17
  const ITEM_MODEL_FEATURES = {
@@ -39,7 +40,10 @@ function refPath(ref) {
39
40
  * that never reads the field.
40
41
  */
41
42
  async function listCollectionsAs(transport, schema, options = {}) {
42
- return transport.requestParsed(z.array(schema), "/api/collection", { ...options });
43
+ return transport.requestParsed(z.array(schema), "/api/collection", {
44
+ ...options,
45
+ query: INCLUDE_LIBRARY
46
+ });
43
47
  }
44
48
  function collectionResource(transport) {
45
49
  const { explainWalk } = explainer(transport, "collection");
@@ -54,6 +58,7 @@ function collectionResource(transport) {
54
58
  ...options,
55
59
  query: {
56
60
  ...COLLECTION_LIST_QUERY[params.filter ?? DEFAULT_LIST_FILTER],
61
+ ...INCLUDE_LIBRARY,
57
62
  namespace: params.namespace
58
63
  }
59
64
  }),
@@ -1,4 +1,4 @@
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 CsvFile } from "../csv-upload--K35QedP.js";
3
3
  //#region src/resources/content-translation.d.ts
4
4
  declare function contentTranslationResource(transport: Transport): {
@@ -1,2 +1,2 @@
1
- import { a as DashcardCardProblem, i as DashcardCardMissing, n as DashcardCardArchived, o as DashcardCardUnreadable, r as DashcardCardIssue, s as dashboardResource, t as DashboardListParams } from "../dashboard-CM7RmNeE.js";
1
+ import { a as DashcardCardProblem, i as DashcardCardMissing, n as DashcardCardArchived, o as DashcardCardUnreadable, r as DashcardCardIssue, s as dashboardResource, t as DashboardListParams } from "../dashboard-CknUcTp8.js";
2
2
  export { DashboardListParams, DashcardCardArchived, DashcardCardIssue, DashcardCardMissing, DashcardCardProblem, DashcardCardUnreadable, dashboardResource };
@@ -1,6 +1,6 @@
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 DataActionExecuteInput, c as DataActionUpdateInput, n as DataAction, o as DataActionExecuteResult } from "../data-action-CkXVrOUH.js";
3
+ import { a as DataActionExecuteInput, c as DataActionUpdateInput, n as DataAction, o as DataActionExecuteResult } from "../data-action-CqqZ0JYg.js";
4
4
  //#region src/resources/data-action.d.ts
5
5
  declare function dataActionResource(transport: Transport): {
6
6
  list: (options?: RequestOptions) => Promise<ListResult<DataAction>>;
@@ -1,4 +1,4 @@
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
3
  //#region src/resources/data-app.d.ts
4
4
  declare function dataAppResource(transport: Transport): {
@@ -1,2 +1,2 @@
1
- import { i as databaseResource, n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "../database-B0JNZjDN.js";
1
+ import { i as databaseResource, n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "../database-Bs5WQOOZ.js";
2
2
  export { DatabaseGetParams, DatabaseListParams, DatabaseSyncSchemaParams, databaseResource };
@@ -1,2 +1,2 @@
1
- import { n as DatasetNativeParams, r as datasetResource, t as DatasetExportParams } from "../dataset-BUirJ1rO.js";
1
+ import { n as DatasetNativeParams, r as datasetResource, t as DatasetExportParams } from "../dataset-dzWljE_C.js";
2
2
  export { DatasetExportParams, DatasetNativeParams, datasetResource };
@@ -1,2 +1,2 @@
1
- import { a as dependencyResource, i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "../dependency-CzpXmeu7.js";
1
+ import { a as dependencyResource, i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "../dependency-CL-YG9KH.js";
2
2
  export { DependencyBrokenParams, DependencyDependentsParams, DependencyItemListParams, DependencyItemPageOptions, dependencyResource };
@@ -1,4 +1,4 @@
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
3
  import { a as DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "../document-tLd6pYWe.js";
4
4
  //#region src/resources/document.d.ts
@@ -22,14 +22,7 @@ declare function documentResource(transport: Transport): {
22
22
  text?: string | undefined;
23
23
  attrs?: Record<string, unknown> | undefined;
24
24
  marks?: Record<string, unknown>[] | undefined;
25
- content?: {
26
- [x: string]: unknown;
27
- type: string;
28
- text?: string | undefined;
29
- attrs?: Record<string, unknown> | undefined;
30
- marks?: Record<string, unknown>[] | undefined;
31
- content?: /*elided*/ any[] | undefined;
32
- }[] | undefined;
25
+ content?: /*elided*/ any[] | undefined;
33
26
  } | null;
34
27
  entity_id: string | null;
35
28
  collection_id: number | null;
@@ -1,5 +1,5 @@
1
- import { f as RequestOptions, h as Transport } from "../transport-BsXqRujn.js";
2
- import { a as EidTranslateResult, i as EidTranslateInput } from "../eid-translation-CH6NPWd-.js";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
+ import { a as EidTranslateResult, i as EidTranslateInput } from "../eid-translation-aQSffx0o.js";
3
3
  //#region src/resources/eid-translation.d.ts
4
4
  declare function eidTranslationResource(transport: Transport): {
5
5
  translate: (params: EidTranslateInput, options?: RequestOptions) => Promise<EidTranslateResult>;
@@ -1,2 +1,2 @@
1
- import { n as erdResource, t as ErdParams } from "../erd-CbV7xvAc.js";
1
+ import { n as erdResource, t as ErdParams } from "../erd-DCgdEC2S.js";
2
2
  export { ErdParams, erdResource };
@@ -1,2 +1,2 @@
1
- import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, n as FieldSearchBounded, o as fieldResource, r as FieldSearchByValue, t as FieldRemappingParams } from "../field-D1Pfk-0S.js";
1
+ import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, n as FieldSearchBounded, o as fieldResource, r as FieldSearchByValue, t as FieldRemappingParams } from "../field-ozrfbvUd.js";
2
2
  export { FieldRemappingParams, FieldSearchBounded, FieldSearchByValue, FieldSearchParams, FieldSetDataSensitivityParams, fieldResource };
@@ -1,2 +1,2 @@
1
- import { a as SyncRemoteChangesParams, c as SyncWaitParams, i as SyncImportParams, l as gitSyncResource, n as SyncExportParams, o as SyncScopeCollection, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "../git-sync-BTf1aYHr.js";
1
+ import { a as SyncRemoteChangesParams, c as SyncWaitParams, i as SyncImportParams, l as gitSyncResource, n as SyncExportParams, o as SyncScopeCollection, r as SyncExportPreflightParams, s as SyncStashParams, t as SyncCreateBranchParams } from "../git-sync-5lFWX1ds.js";
2
2
  export { SyncCreateBranchParams, SyncExportParams, SyncExportPreflightParams, SyncImportParams, SyncRemoteChangesParams, SyncScopeCollection, SyncStashParams, SyncWaitParams, gitSyncResource };
@@ -1,2 +1,2 @@
1
- import { n as glossaryResource, t as GlossaryListParams } from "../glossary-DFvnz-E5.js";
1
+ import { n as glossaryResource, t as GlossaryListParams } from "../glossary-DwS7QVrl.js";
2
2
  export { GlossaryListParams, glossaryResource };
@@ -1,4 +1,4 @@
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
  //#region src/resources/library.d.ts
3
3
  declare function libraryResource(transport: Transport): {
4
4
  get: (options?: RequestOptions | undefined) => Promise<{
@@ -1,2 +1,2 @@
1
- import { n as measureResource, t as MeasureArchiveParams } from "../measure-lPz8qnwz.js";
1
+ import { n as measureResource, t as MeasureArchiveParams } from "../measure-CInoXeyH.js";
2
2
  export { MeasureArchiveParams, measureResource };
@@ -1,2 +1,2 @@
1
- import { i as metricResource, r as MetricDimensionListParams } from "../client-DdXLlH1B.js";
1
+ import { i as metricResource, r as MetricDimensionListParams } from "../client-cBi6_RQs.js";
2
2
  export { MetricDimensionListParams, metricResource };
@@ -1,4 +1,4 @@
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
  //#region src/resources/moderation-review.d.ts
3
3
  declare function moderationReviewResource(transport: Transport): {
4
4
  create: (params: {
@@ -1,2 +1,2 @@
1
- import { i as notificationResource, n as assertCardAlert, r as mergeAlertUpdate, t as NotificationListParams } from "../notification-Cp5GJErS.js";
1
+ import { i as notificationResource, n as assertCardAlert, r as mergeAlertUpdate, t as NotificationListParams } from "../notification-D-Hp82Pn.js";
2
2
  export { NotificationListParams, assertCardAlert, mergeAlertUpdate, notificationResource };
@@ -1,4 +1,4 @@
1
- import { f as RequestOptions, g as TransportRequestOptions, h as Transport } from "../transport-BsXqRujn.js";
1
+ import { f as RequestOptions, g as TransportRequestOptions, h as Transport } from "../transport-CS11mEqI.js";
2
2
  import { ZodType } from "zod";
3
3
  //#region src/resources/optional-parsed.d.ts
4
4
  type OptionalParsedOptions = RequestOptions & Pick<TransportRequestOptions, "query">;
@@ -1,4 +1,4 @@
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 { a as PermissionsGraph } from "../permission-BnCQw5Kp.js";
3
3
  //#region src/resources/permission.d.ts
4
4
  declare function permissionResource(transport: Transport): {
@@ -1,4 +1,4 @@
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 { n as ExportFormat } from "../query-Xsin530u.js";
3
3
  //#region src/resources/pivot-export.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { n as mergePulseUpdate, r as pulseResource, t as PulseListParams } from "../pulse-BzKmz3Yn.js";
1
+ import { n as mergePulseUpdate, r as pulseResource, t as PulseListParams } from "../pulse-BTpSNxhT.js";
2
2
  export { PulseListParams, mergePulseUpdate, pulseResource };
@@ -1,2 +1,2 @@
1
- import { n as replacementResource, t as ReplacementRunListParams } from "../replacement-CVebCuNp.js";
1
+ import { n as replacementResource, t as ReplacementRunListParams } from "../replacement-Dbtvvrmz.js";
2
2
  export { ReplacementRunListParams, replacementResource };
@@ -1,4 +1,4 @@
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
3
  //#region src/resources/revision.d.ts
4
4
  declare function revisionResource(transport: Transport): {
@@ -1,2 +1,2 @@
1
- import { n as SearchParams, r as searchResource, t as SearchPage } from "../search-Cten2h0I.js";
1
+ import { n as SearchParams, r as searchResource, t as SearchPage } from "../search-BQWkdVg1.js";
2
2
  export { SearchPage, SearchParams, searchResource };
@@ -1,2 +1,2 @@
1
- import { n as segmentResource, t as SegmentArchiveParams } from "../segment-DQLX6r1E.js";
1
+ import { n as segmentResource, t as SegmentArchiveParams } from "../segment-jyhBtOAZ.js";
2
2
  export { SegmentArchiveParams, segmentResource };
@@ -1,4 +1,4 @@
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
3
  import { t as Setting } from "../setting-DXuQGXGF.js";
4
4
  //#region src/resources/setting.d.ts
@@ -1,4 +1,4 @@
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 { n as SetupResult, t as SetupInput } from "../setup-JqcJ2unJ.js";
3
3
  //#region src/resources/setup.d.ts
4
4
  declare function setupResource(transport: Transport): {