@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
@@ -1,6 +1,6 @@
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 { l as NotificationCreateInput, r as Notification, t as AnyNotification, x as NotificationUpdateInput } from "./notification-BY2JEjKp.js";
3
+ import { l as NotificationCreateInput, r as Notification, t as AnyNotification, x as NotificationUpdateInput } from "./notification-D1MThyKE.js";
4
4
  //#region src/resources/notification.d.ts
5
5
  interface NotificationListParams {
6
6
  card_id?: number | undefined;
@@ -96,12 +96,12 @@ declare const NotificationHandler: z.ZodObject<{
96
96
  }, z.core.$loose>;
97
97
  type NotificationHandler = z.infer<typeof NotificationHandler>;
98
98
  declare const NotificationHandlerCompact: z.ZodObject<{
99
- channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
100
99
  channel_type: z.ZodEnum<{
101
100
  "channel/email": "channel/email";
102
101
  "channel/slack": "channel/slack";
103
102
  "channel/http": "channel/http";
104
103
  }>;
104
+ channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
105
  recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
106
106
  type: z.ZodEnum<{
107
107
  "notification-recipient/user": "notification-recipient/user";
@@ -314,12 +314,12 @@ declare const NotificationCompact: z.ZodObject<{
314
314
  cron_schedule: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
315
  }, z.core.$strip>>;
316
316
  handlers: z.ZodArray<z.ZodObject<{
317
- channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
318
317
  channel_type: z.ZodEnum<{
319
318
  "channel/email": "channel/email";
320
319
  "channel/slack": "channel/slack";
321
320
  "channel/http": "channel/http";
322
321
  }>;
322
+ channel_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
323
323
  recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
324
324
  type: z.ZodEnum<{
325
325
  "notification-recipient/user": "notification-recipient/user";
@@ -1,4 +1,4 @@
1
- import { d as QueryValue, h as Transport } from "./transport-CS11mEqI.js";
1
+ import { d as QueryValue, h as Transport } from "./transport-CyHAGDqx.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-CaJ5usdp.js";
1
+ import { a as paginatePages, i as PaginatedEnvelope, n as Page, r as PaginateOptions, t as DEFAULT_PAGE_SIZE } from "./paginate-Du9kUbXZ.js";
2
2
  export { DEFAULT_PAGE_SIZE, Page, PaginateOptions, PaginatedEnvelope, paginatePages };
@@ -6,6 +6,7 @@ declare const ParameterType: z.ZodEnum<{
6
6
  id: "id";
7
7
  date: "date";
8
8
  text: "text";
9
+ "temporal-unit": "temporal-unit";
9
10
  "date/single": "date/single";
10
11
  category: "category";
11
12
  "location/city": "location/city";
@@ -17,7 +18,6 @@ declare const ParameterType: z.ZodEnum<{
17
18
  "date/quarter-year": "date/quarter-year";
18
19
  "date/relative": "date/relative";
19
20
  "date/all-options": "date/all-options";
20
- "temporal-unit": "temporal-unit";
21
21
  "number/!=": "number/!=";
22
22
  "number/<=": "number/<=";
23
23
  "number/=": "number/=";
@@ -91,6 +91,7 @@ declare const Parameter: z.ZodObject<{
91
91
  id: "id";
92
92
  date: "date";
93
93
  text: "text";
94
+ "temporal-unit": "temporal-unit";
94
95
  "date/single": "date/single";
95
96
  category: "category";
96
97
  "location/city": "location/city";
@@ -102,7 +103,6 @@ declare const Parameter: z.ZodObject<{
102
103
  "date/quarter-year": "date/quarter-year";
103
104
  "date/relative": "date/relative";
104
105
  "date/all-options": "date/all-options";
105
- "temporal-unit": "temporal-unit";
106
106
  "number/!=": "number/!=";
107
107
  "number/<=": "number/<=";
108
108
  "number/=": "number/=";
@@ -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";
6
5
  email: "email";
7
6
  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";
51
50
  email: "email";
52
51
  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>>;
91
88
  channel_type: z.ZodEnum<{
92
- http: "http";
93
89
  email: "email";
94
90
  slack: "slack";
91
+ http: "http";
95
92
  }>;
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,6 +152,7 @@ declare const Pulse: z.ZodObject<{
152
152
  id: "id";
153
153
  date: "date";
154
154
  text: "text";
155
+ "temporal-unit": "temporal-unit";
155
156
  "date/single": "date/single";
156
157
  category: "category";
157
158
  "location/city": "location/city";
@@ -163,7 +164,6 @@ declare const Pulse: z.ZodObject<{
163
164
  "date/quarter-year": "date/quarter-year";
164
165
  "date/relative": "date/relative";
165
166
  "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";
240
239
  email: "email";
241
240
  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>>;
295
292
  channel_type: z.ZodEnum<{
296
- http: "http";
297
293
  email: "email";
298
294
  slack: "slack";
295
+ http: "http";
299
296
  }>;
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";
343
342
  email: "email";
344
343
  slack: "slack";
344
+ http: "http";
345
345
  }>;
346
346
  enabled: z.ZodDefault<z.ZodBoolean>;
347
347
  schedule_type: z.ZodEnum<{
@@ -384,6 +384,7 @@ declare const PulseCreateInput: z.ZodObject<{
384
384
  id: "id";
385
385
  date: "date";
386
386
  text: "text";
387
+ "temporal-unit": "temporal-unit";
387
388
  "date/single": "date/single";
388
389
  category: "category";
389
390
  "location/city": "location/city";
@@ -395,7 +396,6 @@ declare const PulseCreateInput: z.ZodObject<{
395
396
  "date/quarter-year": "date/quarter-year";
396
397
  "date/relative": "date/relative";
397
398
  "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";
476
475
  email: "email";
477
476
  slack: "slack";
477
+ http: "http";
478
478
  }>;
479
479
  enabled: z.ZodDefault<z.ZodBoolean>;
480
480
  schedule_type: z.ZodEnum<{
@@ -518,6 +518,7 @@ declare const PulseUpdateInput: z.ZodObject<{
518
518
  id: "id";
519
519
  date: "date";
520
520
  text: "text";
521
+ "temporal-unit": "temporal-unit";
521
522
  "date/single": "date/single";
522
523
  category: "category";
523
524
  "location/city": "location/city";
@@ -529,7 +530,6 @@ declare const PulseUpdateInput: z.ZodObject<{
529
530
  "date/quarter-year": "date/quarter-year";
530
531
  "date/relative": "date/relative";
531
532
  "date/all-options": "date/all-options";
532
- "temporal-unit": "temporal-unit";
533
533
  "number/!=": "number/!=";
534
534
  "number/<=": "number/<=";
535
535
  "number/=": "number/=";
@@ -1,6 +1,6 @@
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 { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-BUlfrJZH.js";
3
+ import { h as PulseUpdateInput, l as PulseCreateInput, t as Pulse } from "./pulse-0LG3K6qO.js";
4
4
  //#region src/resources/pulse.d.ts
5
5
  interface PulseListParams {
6
6
  dashboard_id?: number | undefined;
@@ -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
- table: "table";
5
4
  card: "card";
5
+ table: "table";
6
6
  }>;
7
7
  type ReplacementSourceType = z.infer<typeof ReplacementSourceType>;
8
8
  declare const ReplacementEntityType: z.ZodEnum<{
9
- transform: "transform";
10
- table: "table";
11
9
  card: "card";
10
+ table: "table";
11
+ transform: "transform";
12
12
  }>;
13
13
  type ReplacementEntityType = z.infer<typeof ReplacementEntityType>;
14
14
  declare const ReplacementRunStatus: z.ZodEnum<{
15
+ timeout: "timeout";
16
+ failed: "failed";
15
17
  pending: "pending";
16
18
  started: "started";
17
19
  succeeded: "succeeded";
18
- failed: "failed";
19
20
  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";
26
28
  pending: "pending";
27
29
  started: "started";
28
30
  succeeded: "succeeded";
29
- failed: "failed";
30
31
  canceled: "canceled";
31
- timeout: "timeout";
32
32
  }>;
33
33
  is_active: z.ZodNullable<z.ZodLiteral<true>>;
34
34
  source_entity_type: z.ZodEnum<{
35
- transform: "transform";
36
- table: "table";
37
35
  card: "card";
36
+ table: "table";
37
+ transform: "transform";
38
38
  }>;
39
39
  source_entity_id: z.ZodNumber;
40
40
  target_entity_type: z.ZodEnum<{
41
- transform: "transform";
42
- table: "table";
43
41
  card: "card";
42
+ table: "table";
43
+ transform: "transform";
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
+ card: "card";
58
+ table: "table";
59
+ transform: "transform";
60
+ }>;
61
+ source_entity_id: z.ZodNumber;
56
62
  status: z.ZodEnum<{
63
+ timeout: "timeout";
64
+ failed: "failed";
57
65
  pending: "pending";
58
66
  started: "started";
59
67
  succeeded: "succeeded";
60
- failed: "failed";
61
68
  canceled: "canceled";
62
- timeout: "timeout";
63
69
  }>;
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
- transform: "transform";
73
- table: "table";
74
72
  card: "card";
73
+ table: "table";
74
+ transform: "transform";
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
- table: "table";
2426
2425
  card: "card";
2426
+ table: "table";
2427
2427
  }>;
2428
2428
  target_entity_id: z.ZodNumber;
2429
2429
  target_entity_type: z.ZodEnum<{
2430
- table: "table";
2431
2430
  card: "card";
2431
+ table: "table";
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-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
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: "table" | "card";
10
+ source_entity_type: "card" | "table";
11
11
  target_entity_id: number;
12
- target_entity_type: "table" | "card";
12
+ target_entity_type: "card" | "table";
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: "table" | "card";
56
+ source_entity_type: "card" | "table";
57
57
  target_entity_id: number;
58
- target_entity_type: "table" | "card";
58
+ target_entity_type: "card" | "table";
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: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
98
+ status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
99
99
  is_active: true | null;
100
- source_entity_type: "transform" | "table" | "card";
100
+ source_entity_type: "card" | "table" | "transform";
101
101
  source_entity_id: number;
102
- target_entity_type: "transform" | "table" | "card";
102
+ target_entity_type: "card" | "table" | "transform";
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: "pending" | "started" | "succeeded" | "failed" | "canceled" | "timeout";
113
+ status: "timeout" | "failed" | "pending" | "started" | "succeeded" | "canceled";
114
114
  is_active: true | null;
115
- source_entity_type: "transform" | "table" | "card";
115
+ source_entity_type: "card" | "table" | "transform";
116
116
  source_entity_id: number;
117
- target_entity_type: "transform" | "table" | "card";
117
+ target_entity_type: "card" | "table" | "transform";
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-CS11mEqI.js";
2
+ import { b as RequirementFailure, yt as ServerProfile } from "./transport-CyHAGDqx.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-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
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-CbV6hLYH.js";
1
+ import { i as cardResource, n as CardListParams, r as CardQueryParams, t as CardExportParams } from "../card-DkHtPMK4.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-Q9FNMiRh.js";
1
+ import { a as collectionResource, i as CollectionTreeParams, n as CollectionItemPageOptions, o as listCollectionsAs, r as CollectionListParams, t as CollectionItemListParams } from "../collection-DWjkDrln.js";
2
2
  export { CollectionItemListParams, CollectionItemPageOptions, CollectionListParams, CollectionTreeParams, collectionResource, listCollectionsAs };
@@ -1,4 +1,4 @@
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 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-CknUcTp8.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-B4qWeR10.js";
2
2
  export { DashboardListParams, DashcardCardArchived, DashcardCardIssue, DashcardCardMissing, DashcardCardProblem, DashcardCardUnreadable, dashboardResource };
@@ -1,17 +1,33 @@
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 DataActionExecuteInput, c as DataActionUpdateInput, n as DataAction, o as DataActionExecuteResult } from "../data-action-CqqZ0JYg.js";
3
+ import { l as DataActionUpdateInput, o as DataActionExecuteInput, r as DataAction, s as DataActionExecuteResult } from "../data-action-DqwcRA7B.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>>;
7
7
  get: (id: number, options?: RequestOptions) => Promise<DataAction>;
8
8
  create: (params: {
9
- name: string;
10
9
  type: "query";
11
- database_id: number;
12
10
  dataset_query: {
13
11
  [x: string]: unknown;
14
12
  };
13
+ name: string;
14
+ parameters?: {
15
+ [x: string]: unknown;
16
+ id: string;
17
+ type: string;
18
+ target: unknown;
19
+ name?: string | undefined;
20
+ slug?: string | undefined;
21
+ required?: boolean | undefined;
22
+ }[] | undefined;
23
+ collection_id?: number | null | undefined;
24
+ description?: string | null | undefined;
25
+ visualization_settings?: unknown;
26
+ } | {
27
+ type: "implicit";
28
+ kind: "row/create" | "row/update" | "row/delete";
29
+ table_id: number;
30
+ name: string;
15
31
  parameters?: {
16
32
  [x: string]: unknown;
17
33
  id: string;
@@ -50,6 +66,8 @@ declare function dataActionResource(transport: Transport): {
50
66
  collection_id: number | null;
51
67
  database_id?: number | null | undefined;
52
68
  dataset_query?: unknown;
69
+ kind?: string | undefined;
70
+ table_id?: number | null | undefined;
53
71
  }>;
54
72
  update: (id: number, params: DataActionUpdateInput, options?: RequestOptions) => Promise<DataAction>;
55
73
  archive: (id: number, options?: RequestOptions) => Promise<DataAction>;
@@ -1,5 +1,5 @@
1
1
  import { t as explainer } from "../refusal-B9aeHMc9.js";
2
- import { DATA_ACTION_COLLECTION_GATE, DataActionExecuteResult, dataActionSchema } from "../domain/data-action.js";
2
+ import { DATA_ACTION_COLLECTION_GATE, DATA_ACTION_TABLE_GATE, DataActionExecuteResult, dataActionSchema } from "../domain/data-action.js";
3
3
  import { gateTriggered } from "../version/input-gates.js";
4
4
  import { z } from "zod";
5
5
  //#region src/resources/data-action.ts
@@ -22,7 +22,10 @@ function dataActionResource(transport) {
22
22
  const schema = await readSchema(options);
23
23
  return transport.requestParsed(schema, `/api/action/${id}`, { ...options });
24
24
  }
25
- /** Create a data action — a parameterized native query that writes to a database — in a collection. */
25
+ /**
26
+ * Create a data action in a collection: a parameterized native query that writes to a database, or
27
+ * an implicit action that inserts, updates, or deletes one row of a table.
28
+ */
26
29
  async function create(params, options = {}) {
27
30
  const schema = await readSchema(options);
28
31
  return transport.requestParsed(schema, "/api/action", {
@@ -33,11 +36,13 @@ function dataActionResource(transport) {
33
36
  }
34
37
  /**
35
38
  * Update a data action by id, patching only the fields the body carries. A server whose data
36
- * actions have no collection never moves the action, and from 58.31 it strips the undeclared key and
37
- * answers as if it had. So the field is refused there before the wire.
39
+ * actions have no collection never moves the action, and one whose data actions need a model never
40
+ * moves an implicit action to another table; from 58.31 it strips the undeclared key and answers as
41
+ * if it had. So each field is refused there before the wire.
38
42
  */
39
43
  async function update(id, params, options = {}) {
40
- await transport.requireFeatures(gateTriggered(DATA_ACTION_COLLECTION_GATE, params.collection_id) ? [DATA_ACTION_COLLECTION_GATE.feature] : [], options);
44
+ const tableId = "table_id" in params ? params.table_id : void 0;
45
+ await transport.requireFeatures([...gateTriggered(DATA_ACTION_COLLECTION_GATE, params.collection_id) ? [DATA_ACTION_COLLECTION_GATE.feature] : [], ...gateTriggered(DATA_ACTION_TABLE_GATE, tableId) ? [DATA_ACTION_TABLE_GATE.feature] : []], options);
41
46
  const schema = await readSchema(options);
42
47
  return transport.requestParsed(schema, `/api/action/${id}`, {
43
48
  ...options,
@@ -1,4 +1,4 @@
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
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-Bs5WQOOZ.js";
1
+ import { i as databaseResource, n as DatabaseListParams, r as DatabaseSyncSchemaParams, t as DatabaseGetParams } from "../database-Cw8ICtQi.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-dzWljE_C.js";
1
+ import { n as DatasetNativeParams, r as datasetResource, t as DatasetExportParams } from "../dataset-26H-dH4N.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-CL-YG9KH.js";
1
+ import { a as dependencyResource, i as DependencyItemPageOptions, n as DependencyDependentsParams, r as DependencyItemListParams, t as DependencyBrokenParams } from "../dependency-elYkHuk5.js";
2
2
  export { DependencyBrokenParams, DependencyDependentsParams, DependencyItemListParams, DependencyItemPageOptions, dependencyResource };
@@ -1,6 +1,6 @@
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 DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "../document-tLd6pYWe.js";
3
+ import { a as DocumentUpdateInput, i as DocumentCreateInput, t as Document } from "../document-rqUlE_OE.js";
4
4
  //#region src/resources/document.d.ts
5
5
  declare function documentResource(transport: Transport): {
6
6
  list: (options?: RequestOptions) => Promise<ListResult<Document>>;
@@ -22,7 +22,14 @@ 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?: /*elided*/ any[] | 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;
26
33
  } | null;
27
34
  entity_id: string | null;
28
35
  collection_id: number | null;
@@ -1,5 +1,5 @@
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";
1
+ import { f as RequestOptions, h as Transport } from "../transport-CyHAGDqx.js";
2
+ import { a as EidTranslateResult, i as EidTranslateInput } from "../eid-translation-CP79Tz71.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-DCgdEC2S.js";
1
+ import { n as erdResource, t as ErdParams } from "../erd-D2fpjDTj.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-ozrfbvUd.js";
1
+ import { a as FieldSetDataSensitivityParams, i as FieldSearchParams, n as FieldSearchBounded, o as fieldResource, r as FieldSearchByValue, t as FieldRemappingParams } from "../field-awM3Y7IP.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-5lFWX1ds.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-8Tk8TirZ.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-DwS7QVrl.js";
1
+ import { n as glossaryResource, t as GlossaryListParams } from "../glossary-CQMSJmIx.js";
2
2
  export { GlossaryListParams, glossaryResource };
@@ -1,4 +1,4 @@
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
  //#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-CInoXeyH.js";
1
+ import { n as measureResource, t as MeasureArchiveParams } from "../measure-D4ArCbsa.js";
2
2
  export { MeasureArchiveParams, measureResource };
@@ -1,2 +1,2 @@
1
- import { i as metricResource, r as MetricDimensionListParams } from "../client-cBi6_RQs.js";
1
+ import { i as metricResource, r as MetricDimensionListParams } from "../client-eOkt3tTd.js";
2
2
  export { MetricDimensionListParams, metricResource };
@@ -1,4 +1,4 @@
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
  //#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-D-Hp82Pn.js";
1
+ import { i as notificationResource, n as assertCardAlert, r as mergeAlertUpdate, t as NotificationListParams } from "../notification-BsuPAfMW.js";
2
2
  export { NotificationListParams, assertCardAlert, mergeAlertUpdate, notificationResource };