react-semaphor 0.1.334 → 0.1.336

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 (59) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +100 -242
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +3 -3
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +435 -391
  7. package/dist/chunks/{braces-DlW7C5BH.js → braces-BLa_lORs.js} +1 -1
  8. package/dist/chunks/{braces-DYx37F5Z.js → braces-Q86XHDaD.js} +1 -1
  9. package/dist/chunks/{calendar-preferences-dialog-CB5MA9gF.js → calendar-preferences-dialog-Bm7ji3k9.js} +1 -1
  10. package/dist/chunks/{calendar-preferences-dialog-BLz4PrDX.js → calendar-preferences-dialog-Cocogo9H.js} +3 -3
  11. package/dist/chunks/catalog-field-grounding-DmT7aGUA.js +191 -0
  12. package/dist/chunks/catalog-field-grounding-VgVzDd25.js +1 -0
  13. package/dist/chunks/{chevrons-up-down-CP6oFMrt.js → chevrons-up-down-BBTZ5pAY.js} +1 -1
  14. package/dist/chunks/{chevrons-up-down-B_66pVv5.js → chevrons-up-down-CYuWasy_.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-Bwz4mKOI.js → dashboard-briefing-launcher-BtqtLx1-.js} +1 -1
  16. package/dist/chunks/{dashboard-briefing-launcher-B7AxiecS.js → dashboard-briefing-launcher-DF4CoaRn.js} +4 -4
  17. package/dist/chunks/{dashboard-controls-DlN7FGW-.js → dashboard-controls-0VMAeMoa.js} +1 -1
  18. package/dist/chunks/{dashboard-controls-CbuKeeeP.js → dashboard-controls-B5U-VUxs.js} +6 -6
  19. package/dist/chunks/{dashboard-json-CeVrYTnR.js → dashboard-json-CqbLOfnr.js} +1 -1
  20. package/dist/chunks/{dashboard-json-gcpeSd5I.js → dashboard-json-Hmc0Ri5z.js} +2 -2
  21. package/dist/chunks/{edit-dashboard-visual-Kn1wtj-Z.js → edit-dashboard-visual-C0EDM0QB.js} +3 -3
  22. package/dist/chunks/{edit-dashboard-visual-BggRcCO2.js → edit-dashboard-visual-D4VVu-QQ.js} +1302 -1302
  23. package/dist/chunks/{index-CP3_hN7P.js → index-DE0vIuYG.js} +4 -4
  24. package/dist/chunks/{index-TA0tBZ1g.js → index-DzyUhzV3.js} +262 -270
  25. package/dist/chunks/{palette-BW7lzLOY.js → palette-B9AbDw0n.js} +1 -1
  26. package/dist/chunks/{palette-BueS2ZEM.js → palette-DalASD28.js} +1 -1
  27. package/dist/chunks/{resource-management-panel-vDrPcmXs.js → resource-management-panel-C4YydU9I.js} +3 -3
  28. package/dist/chunks/{resource-management-panel-DBYcMHVL.js → resource-management-panel-P9iNqBM1.js} +1 -1
  29. package/dist/chunks/{switch-B6fK1sl9.js → switch-BAYfpAEb.js} +1967 -2008
  30. package/dist/chunks/{switch-BT7khJGF.js → switch-CyRoZr5T.js} +35 -35
  31. package/dist/chunks/{use-create-flow-overlay-state-T8Su6dzu.js → use-create-flow-overlay-state-CbhjxI3W.js} +1 -1
  32. package/dist/chunks/{use-create-flow-overlay-state-DPYHfe-S.js → use-create-flow-overlay-state-P1LMwQ89.js} +3 -3
  33. package/dist/chunks/{use-visual-utils-wqosOqyY.js → use-visual-utils-CV6_-y4p.js} +1 -1
  34. package/dist/chunks/{use-visual-utils-Daov8_1p.js → use-visual-utils-lB-3Zk0b.js} +2 -2
  35. package/dist/chunks/validators-BOqiGymD.js +660 -0
  36. package/dist/chunks/validators-BtFXY3S_.js +2 -0
  37. package/dist/dashboard/index.cjs +1 -1
  38. package/dist/dashboard/index.js +1 -1
  39. package/dist/dashboard-authoring/index.cjs +3 -3
  40. package/dist/dashboard-authoring/index.js +476 -453
  41. package/dist/data-app-builder/index.cjs +1 -1
  42. package/dist/data-app-builder/index.js +1 -1
  43. package/dist/data-app-builder-browser-runtime/index.cjs +1 -1
  44. package/dist/data-app-builder-browser-runtime/index.js +4 -9
  45. package/dist/data-app-sdk/index.cjs +1 -1
  46. package/dist/data-app-sdk/index.js +89 -80
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.js +7 -7
  49. package/dist/surfboard/index.cjs +1 -1
  50. package/dist/surfboard/index.js +2 -2
  51. package/dist/types/analytics-protocol.d.ts +183 -5
  52. package/dist/types/briefings.d.ts +12 -0
  53. package/dist/types/dashboard-authoring.d.ts +33 -4
  54. package/dist/types/data-app-builder.d.ts +30 -3
  55. package/dist/types/data-app-sdk.d.ts +32 -5
  56. package/dist/types/main.d.ts +34 -3
  57. package/package.json +1 -1
  58. package/dist/chunks/validators-DDAweCzB.js +0 -371
  59. package/dist/chunks/validators-odlRJblR.js +0 -2
@@ -1,7 +1,7 @@
1
1
  var W = Object.defineProperty;
2
- var Y = (n, t, e) => t in n ? W(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var F = (n, t, e) => Y(n, typeof t != "symbol" ? t + "" : t, e);
4
- const w = "BRIEFING", Z = ["markdown", "html"], V = ["markdown"], De = 20, l = {
2
+ var Y = (r, t, e) => t in r ? W(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var F = (r, t, e) => Y(r, typeof t != "symbol" ? t + "" : t, e);
4
+ const w = "BRIEFING", Z = ["markdown", "html"], V = ["markdown"], ze = 20, l = {
5
5
  name: 500,
6
6
  description: 2e3,
7
7
  instruction: 5e4,
@@ -9,6 +9,7 @@ const w = "BRIEFING", Z = ["markdown", "html"], V = ["markdown"], De = 20, l = {
9
9
  contentTitle: 500,
10
10
  contentSummary: 2e4,
11
11
  contentText: 5e3,
12
+ contentSql: 5e4,
12
13
  contentItem: 2e3,
13
14
  contentCell: 500,
14
15
  attachmentTitle: 500,
@@ -97,63 +98,63 @@ const w = "BRIEFING", Z = ["markdown", "html"], V = ["markdown"], De = 20, l = {
97
98
  ];
98
99
  class S extends Error {
99
100
  constructor(e) {
100
- super(e.map((r) => `${r.field}: ${r.message}`).join("; "));
101
+ super(e.map((n) => `${n.field}: ${n.message}`).join("; "));
101
102
  F(this, "issues");
102
103
  this.name = "BriefingContractError", this.issues = e;
103
104
  }
104
105
  }
105
- function P(n) {
106
- return typeof n == "object" && n !== null && !Array.isArray(n);
106
+ function P(r) {
107
+ return typeof r == "object" && r !== null && !Array.isArray(r);
107
108
  }
108
- function c(n, t, e) {
109
- n.push({ field: t, message: e });
109
+ function c(r, t, e) {
110
+ r.push({ field: t, message: e });
110
111
  }
111
- function v(n, t, e) {
112
- return P(n) ? n : (c(e, t, "Expected an object."), {});
112
+ function h(r, t, e) {
113
+ return P(r) ? r : (c(e, t, "Expected an object."), {});
113
114
  }
114
- function f(n, t, e, r) {
115
+ function m(r, t, e, n) {
115
116
  const o = new Set(e);
116
- Object.keys(n).forEach((i) => {
117
+ Object.keys(r).forEach((i) => {
117
118
  o.has(i) || c(
118
- r,
119
+ n,
119
120
  t ? `${t}.${i}` : i,
120
121
  `Unexpected field "${i}".`
121
122
  );
122
123
  });
123
124
  }
124
- function u(n, t, e, r) {
125
- if (typeof n != "string")
126
- return c(r, t, "Expected a string."), "";
127
- const o = n.trim();
128
- return o ? (o.length > e && c(r, t, `Must be ${e} characters or fewer.`), o) : (c(r, t, "Required value cannot be empty."), "");
125
+ function u(r, t, e, n) {
126
+ if (typeof r != "string")
127
+ return c(n, t, "Expected a string."), "";
128
+ const o = r.trim();
129
+ return o ? (o.length > e && c(n, t, `Must be ${e} characters or fewer.`), o) : (c(n, t, "Required value cannot be empty."), "");
129
130
  }
130
- function y(n, t, e, r) {
131
- if (n == null)
131
+ function y(r, t, e, n) {
132
+ if (r == null)
132
133
  return;
133
- if (typeof n != "string") {
134
- c(r, t, "Expected a string.");
134
+ if (typeof r != "string") {
135
+ c(n, t, "Expected a string.");
135
136
  return;
136
137
  }
137
- const o = n.trim();
138
+ const o = r.trim();
138
139
  if (o)
139
- return o.length > e && c(r, t, `Must be ${e} characters or fewer.`), o;
140
+ return o.length > e && c(n, t, `Must be ${e} characters or fewer.`), o;
140
141
  }
141
- function le(n, t, e) {
142
- if (n != null) {
143
- if (!Number.isInteger(n) || Number(n) < 0) {
142
+ function le(r, t, e) {
143
+ if (r != null) {
144
+ if (!Number.isInteger(r) || Number(r) < 0) {
144
145
  c(e, t, "Expected a non-negative integer.");
145
146
  return;
146
147
  }
147
- return Number(n);
148
+ return Number(r);
148
149
  }
149
150
  }
150
- function $(n, t, e, r = {}) {
151
- if (n == null)
152
- return r.required ? (c(e, t, "Expected at least one evidence id."), []) : void 0;
153
- if (!Array.isArray(n))
154
- return c(e, t, "Expected an array."), r.required ? [] : void 0;
151
+ function $(r, t, e, n = {}) {
152
+ if (r == null)
153
+ return n.required ? (c(e, t, "Expected at least one evidence id."), []) : void 0;
154
+ if (!Array.isArray(r))
155
+ return c(e, t, "Expected an array."), n.required ? [] : void 0;
155
156
  const o = [];
156
- return n.forEach((i, a) => {
157
+ return r.forEach((i, a) => {
157
158
  const d = u(
158
159
  i,
159
160
  `${t}.${a}`,
@@ -161,22 +162,22 @@ function $(n, t, e, r = {}) {
161
162
  e
162
163
  );
163
164
  d && !o.includes(d) && o.push(d);
164
- }), r.required && o.length === 0 && c(e, t, "Expected at least one evidence id."), o.length > 0 || r.required ? o : void 0;
165
+ }), n.required && o.length === 0 && c(e, t, "Expected at least one evidence id."), o.length > 0 || n.required ? o : void 0;
165
166
  }
166
- function C(n, t, e, r) {
167
- return n == null ? t : typeof n != "boolean" ? (c(r, e, "Expected a boolean."), t) : n;
167
+ function C(r, t, e, n) {
168
+ return r == null ? t : typeof r != "boolean" ? (c(n, e, "Expected a boolean."), t) : r;
168
169
  }
169
- function se(n, t) {
170
- return n == null ? "ACTIVE" : n === "ACTIVE" || n === "PAUSED" || n === "DISABLED" ? n : (c(t, "status", "Expected ACTIVE, PAUSED, or DISABLED."), "ACTIVE");
170
+ function fe(r, t) {
171
+ return r == null ? "ACTIVE" : r === "ACTIVE" || r === "PAUSED" || r === "DISABLED" ? r : (c(t, "status", "Expected ACTIVE, PAUSED, or DISABLED."), "ACTIVE");
171
172
  }
172
- function fe(n) {
173
- return n.includes("@") && n.includes(".") && !n.includes(" ");
173
+ function se(r) {
174
+ return r.includes("@") && r.includes(".") && !r.includes(" ");
174
175
  }
175
- function j(n, t) {
176
- if (n == null)
176
+ function q(r, t) {
177
+ if (r == null)
177
178
  return { type: "project" };
178
- const e = v(n, "source", t), r = e.type;
179
- return r === "project" ? (f(e, "source", ["type"], t), { type: "project" }) : r === "dashboard" ? (f(e, "source", ["type", "dashboardId"], t), {
179
+ const e = h(r, "source", t), n = e.type;
180
+ return n === "project" ? (m(e, "source", ["type"], t), { type: "project" }) : n === "dashboard" ? (m(e, "source", ["type", "dashboardId"], t), {
180
181
  type: "dashboard",
181
182
  dashboardId: u(
182
183
  e.dashboardId,
@@ -186,9 +187,9 @@ function j(n, t) {
186
187
  )
187
188
  }) : (c(t, "source.type", "Expected project or dashboard."), { type: "project" });
188
189
  }
189
- function K(n, t) {
190
- const e = v(n, "body", t), r = e.type;
191
- return r === "generated_analysis" ? (f(e, "body", ["type", "instruction"], t), {
190
+ function j(r, t) {
191
+ const e = h(r, "body", t), n = e.type;
192
+ return n === "generated_analysis" ? (m(e, "body", ["type", "instruction"], t), {
192
193
  type: "generated_analysis",
193
194
  instruction: u(
194
195
  e.instruction,
@@ -196,7 +197,7 @@ function K(n, t) {
196
197
  l.instruction,
197
198
  t
198
199
  )
199
- }) : r === "custom_message" ? (f(e, "body", ["type", "message"], t), {
200
+ }) : n === "custom_message" ? (m(e, "body", ["type", "message"], t), {
200
201
  type: "custom_message",
201
202
  message: u(
202
203
  e.message,
@@ -204,26 +205,26 @@ function K(n, t) {
204
205
  l.customMessage,
205
206
  t
206
207
  )
207
- }) : r === "none" ? (f(e, "body", ["type"], t), { type: "none" }) : (c(
208
+ }) : n === "none" ? (m(e, "body", ["type"], t), { type: "none" }) : (c(
208
209
  t,
209
210
  "body.type",
210
211
  "Expected generated_analysis, custom_message, or none."
211
212
  ), { type: "none" });
212
213
  }
213
- function me(n, t) {
214
- if (n == null)
214
+ function me(r, t) {
215
+ if (r == null)
215
216
  return [...V];
216
- if (!Array.isArray(n))
217
+ if (!Array.isArray(r))
217
218
  return c(t, "presentation.artifactFormats", "Expected an array."), [...V];
218
- if (n.length === 0)
219
+ if (r.length === 0)
219
220
  return c(
220
221
  t,
221
222
  "presentation.artifactFormats",
222
223
  "Choose at least one artifact format."
223
224
  ), [];
224
225
  const e = [];
225
- return n.forEach((r, o) => {
226
- if (typeof r != "string" || !M.has(r)) {
226
+ return r.forEach((n, o) => {
227
+ if (typeof n != "string" || !M.has(n)) {
227
228
  c(
228
229
  t,
229
230
  `presentation.artifactFormats.${o}`,
@@ -231,24 +232,24 @@ function me(n, t) {
231
232
  );
232
233
  return;
233
234
  }
234
- e.includes(r) || e.push(r);
235
+ e.includes(n) || e.push(n);
235
236
  }), e;
236
237
  }
237
- function q(n, t) {
238
- if (n == null)
238
+ function K(r, t) {
239
+ if (r == null)
239
240
  return {
240
241
  artifactFormats: [...V],
241
242
  includeEvidence: !0,
242
243
  includeSql: !0
243
244
  };
244
- const e = v(n, "presentation", t);
245
- f(
245
+ const e = h(r, "presentation", t);
246
+ m(
246
247
  e,
247
248
  "presentation",
248
249
  ["artifactFormats", "includeEvidence", "includeSql", "audience", "tone", "format"],
249
250
  t
250
251
  );
251
- const r = {
252
+ const n = {
252
253
  artifactFormats: me(e.artifactFormats, t),
253
254
  includeEvidence: C(
254
255
  e.includeEvidence,
@@ -278,49 +279,49 @@ function q(n, t) {
278
279
  l.presentationFormat,
279
280
  t
280
281
  );
281
- return o && (r.audience = o), i && (r.tone = i), a && (r.format = a), r;
282
+ return o && (n.audience = o), i && (n.tone = i), a && (n.format = a), n;
282
283
  }
283
- function pe(n, t, e) {
284
- return Array.isArray(n) ? (n.length === 0 && c(e, t, "Expected at least one item."), n.length > g.maxListItems && c(
284
+ function pe(r, t, e) {
285
+ return Array.isArray(r) ? (r.length === 0 && c(e, t, "Expected at least one item."), r.length > g.maxListItems && c(
285
286
  e,
286
287
  t,
287
288
  `Must have ${g.maxListItems} items or fewer.`
288
- ), n.slice(0, g.maxListItems).map(
289
- (r, o) => u(
290
- r,
289
+ ), r.slice(0, g.maxListItems).map(
290
+ (n, o) => u(
291
+ n,
291
292
  `${t}.${o}`,
292
293
  l.contentItem,
293
294
  e
294
295
  )
295
296
  ).filter(Boolean)) : (c(e, t, "Expected an array."), []);
296
297
  }
297
- function ue(n, t, e) {
298
- return n === null || typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? typeof n == "string" && n.length > l.contentCell ? (c(
298
+ function ue(r, t, e) {
299
+ return r === null || typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? typeof r == "string" && r.length > l.contentCell ? (c(
299
300
  e,
300
301
  t,
301
302
  `Must be ${l.contentCell} characters or fewer.`
302
- ), n.slice(0, l.contentCell)) : typeof n == "number" && !Number.isFinite(n) ? (c(e, t, "Expected a finite number."), null) : n : (c(e, t, "Expected a string, number, boolean, or null."), null);
303
+ ), r.slice(0, l.contentCell)) : typeof r == "number" && !Number.isFinite(r) ? (c(e, t, "Expected a finite number."), null) : r : (c(e, t, "Expected a string, number, boolean, or null."), null);
303
304
  }
304
- function ye(n, t, e) {
305
- if (!Array.isArray(n))
305
+ function ye(r, t, e) {
306
+ if (!Array.isArray(r))
306
307
  return c(e, t, "Expected an array."), [];
307
- n.length === 0 && c(e, t, "Expected at least one column."), n.length > g.maxTableColumns && c(
308
+ r.length === 0 && c(e, t, "Expected at least one column."), r.length > g.maxTableColumns && c(
308
309
  e,
309
310
  t,
310
311
  `Must have ${g.maxTableColumns} columns or fewer.`
311
312
  );
312
- const r = /* @__PURE__ */ new Set();
313
- return n.slice(0, g.maxTableColumns).map((o, i) => {
314
- const a = `${t}.${i}`, d = v(o, a, e);
315
- f(d, a, ["key", "label", "kind", "align"], e);
316
- const m = u(
313
+ const n = /* @__PURE__ */ new Set();
314
+ return r.slice(0, g.maxTableColumns).map((o, i) => {
315
+ const a = `${t}.${i}`, d = h(o, a, e);
316
+ m(d, a, ["key", "label", "kind", "align"], e);
317
+ const s = u(
317
318
  d.key,
318
319
  `${a}.key`,
319
320
  l.id,
320
321
  e
321
322
  );
322
- m && (r.has(m) && c(e, `${a}.key`, "Column key must be unique."), r.add(m));
323
- const s = u(
323
+ s && (n.has(s) && c(e, `${a}.key`, "Column key must be unique."), n.add(s));
324
+ const f = u(
324
325
  d.label,
325
326
  `${a}.label`,
326
327
  l.contentTitle,
@@ -339,46 +340,46 @@ function ye(n, t, e) {
339
340
  e
340
341
  );
341
342
  return {
342
- key: m,
343
- label: s,
343
+ key: s,
344
+ label: f,
344
345
  ...p ? { kind: p } : {},
345
346
  ...I ? { align: I } : {}
346
347
  };
347
348
  });
348
349
  }
349
- function he(n, t, e, r) {
350
- if (!Array.isArray(n))
351
- return c(r, t, "Expected an array."), [];
352
- n.length > g.maxTableRows && c(
353
- r,
350
+ function ve(r, t, e, n) {
351
+ if (!Array.isArray(r))
352
+ return c(n, t, "Expected an array."), [];
353
+ r.length > g.maxTableRows && c(
354
+ n,
354
355
  t,
355
356
  `Must have ${g.maxTableRows} rows or fewer.`
356
357
  );
357
358
  const o = new Set(e.map((i) => i.key).filter(Boolean));
358
- return n.slice(0, g.maxTableRows).map((i, a) => {
359
- const d = `${t}.${a}`, m = v(i, d, r);
360
- return Object.keys(m).forEach((s) => {
361
- o.has(s) || c(r, `${d}.${s}`, `Unexpected table cell "${s}".`);
359
+ return r.slice(0, g.maxTableRows).map((i, a) => {
360
+ const d = `${t}.${a}`, s = h(i, d, n);
361
+ return Object.keys(s).forEach((f) => {
362
+ o.has(f) || c(n, `${d}.${f}`, `Unexpected table cell "${f}".`);
362
363
  }), Object.fromEntries(
363
- e.map((s) => [
364
- s.key,
365
- ue(m[s.key] ?? null, `${d}.${s.key}`, r)
364
+ e.map((f) => [
365
+ f.key,
366
+ ue(s[f.key] ?? null, `${d}.${f.key}`, n)
366
367
  ])
367
368
  );
368
369
  });
369
370
  }
370
- function ve(n, t, e) {
371
- const r = `content.blocks.${t}`, o = v(n, r, e), i = o.type;
371
+ function he(r, t, e) {
372
+ const n = `content.blocks.${t}`, o = h(r, n, e), i = o.type;
372
373
  if (i === "heading") {
373
- f(o, r, ["type", "text", "level", "evidenceIds"], e);
374
+ m(o, n, ["type", "text", "level", "evidenceIds"], e);
374
375
  const a = o.level === void 0 || o.level === null ? void 0 : o.level === 2 || o.level === 3 ? o.level : void 0;
375
- o.level !== void 0 && o.level !== null && a === void 0 && c(e, `${r}.level`, "Expected 2 or 3.");
376
- const d = $(o.evidenceIds, `${r}.evidenceIds`, e);
376
+ o.level !== void 0 && o.level !== null && a === void 0 && c(e, `${n}.level`, "Expected 2 or 3.");
377
+ const d = $(o.evidenceIds, `${n}.evidenceIds`, e);
377
378
  return {
378
379
  type: "heading",
379
380
  text: u(
380
381
  o.text,
381
- `${r}.text`,
382
+ `${n}.text`,
382
383
  l.contentTitle,
383
384
  e
384
385
  ),
@@ -387,13 +388,13 @@ function ve(n, t, e) {
387
388
  };
388
389
  }
389
390
  if (i === "paragraph") {
390
- f(o, r, ["type", "text", "evidenceIds"], e);
391
- const a = $(o.evidenceIds, `${r}.evidenceIds`, e);
391
+ m(o, n, ["type", "text", "evidenceIds"], e);
392
+ const a = $(o.evidenceIds, `${n}.evidenceIds`, e);
392
393
  return {
393
394
  type: "paragraph",
394
395
  text: u(
395
396
  o.text,
396
- `${r}.text`,
397
+ `${n}.text`,
397
398
  l.contentText,
398
399
  e
399
400
  ),
@@ -401,15 +402,15 @@ function ve(n, t, e) {
401
402
  };
402
403
  }
403
404
  if (i === "finding") {
404
- f(o, r, ["type", "title", "text", "severity", "evidenceIds"], e);
405
+ m(o, n, ["type", "title", "text", "severity", "evidenceIds"], e);
405
406
  const a = y(
406
407
  o.title,
407
- `${r}.title`,
408
+ `${n}.title`,
408
409
  l.contentTitle,
409
410
  e
410
411
  ), d = E(
411
412
  o.severity,
412
- `${r}.severity`,
413
+ `${n}.severity`,
413
414
  ie,
414
415
  "info, positive, warning, or critical",
415
416
  e
@@ -419,198 +420,241 @@ function ve(n, t, e) {
419
420
  ...a ? { title: a } : {},
420
421
  text: u(
421
422
  o.text,
422
- `${r}.text`,
423
+ `${n}.text`,
423
424
  l.contentText,
424
425
  e
425
426
  ),
426
427
  ...d ? { severity: d } : {},
427
- evidenceIds: $(o.evidenceIds, `${r}.evidenceIds`, e, {
428
+ evidenceIds: $(o.evidenceIds, `${n}.evidenceIds`, e, {
428
429
  required: !0
429
430
  }) ?? []
430
431
  };
431
432
  }
432
433
  if (i === "bullets" || i === "actions" || i === "limitations") {
433
- f(o, r, ["type", "title", "items", "evidenceIds"], e);
434
+ m(o, n, ["type", "title", "items", "evidenceIds"], e);
434
435
  const a = y(
435
436
  o.title,
436
- `${r}.title`,
437
+ `${n}.title`,
437
438
  l.contentTitle,
438
439
  e
439
- ), d = $(o.evidenceIds, `${r}.evidenceIds`, e);
440
+ ), d = $(o.evidenceIds, `${n}.evidenceIds`, e);
440
441
  return {
441
442
  type: i,
442
443
  ...a ? { title: a } : {},
443
- items: pe(o.items, `${r}.items`, e),
444
+ items: pe(o.items, `${n}.items`, e),
444
445
  ...d ? { evidenceIds: d } : {}
445
446
  };
446
447
  }
447
448
  if (i === "metric") {
448
- f(
449
+ m(
449
450
  o,
450
- r,
451
+ n,
451
452
  ["type", "label", "value", "previousValue", "delta", "unit", "evidenceIds"],
452
453
  e
453
454
  );
454
455
  const a = typeof o.value == "string" || typeof o.value == "number" ? o.value : "";
455
- a === "" && c(e, `${r}.value`, "Expected a string or number.");
456
+ a === "" && c(e, `${n}.value`, "Expected a string or number.");
456
457
  const d = o.previousValue === void 0 || o.previousValue === null || typeof o.previousValue == "string" || typeof o.previousValue == "number" ? o.previousValue : void 0;
457
- o.previousValue !== void 0 && o.previousValue !== null && d === void 0 && c(e, `${r}.previousValue`, "Expected a string, number, or null.");
458
- const m = o.delta === void 0 || o.delta === null || typeof o.delta == "string" || typeof o.delta == "number" ? o.delta : void 0;
459
- o.delta !== void 0 && o.delta !== null && m === void 0 && c(e, `${r}.delta`, "Expected a string, number, or null.");
460
- const s = y(
458
+ o.previousValue !== void 0 && o.previousValue !== null && d === void 0 && c(e, `${n}.previousValue`, "Expected a string, number, or null.");
459
+ const s = o.delta === void 0 || o.delta === null || typeof o.delta == "string" || typeof o.delta == "number" ? o.delta : void 0;
460
+ o.delta !== void 0 && o.delta !== null && s === void 0 && c(e, `${n}.delta`, "Expected a string, number, or null.");
461
+ const f = y(
461
462
  o.unit,
462
- `${r}.unit`,
463
+ `${n}.unit`,
463
464
  l.contentTitle,
464
465
  e
465
- ), p = $(o.evidenceIds, `${r}.evidenceIds`, e);
466
+ ), p = $(o.evidenceIds, `${n}.evidenceIds`, e);
466
467
  return {
467
468
  type: "metric",
468
469
  label: u(
469
470
  o.label,
470
- `${r}.label`,
471
+ `${n}.label`,
471
472
  l.contentTitle,
472
473
  e
473
474
  ),
474
475
  value: a,
475
476
  ...d !== void 0 ? { previousValue: d } : {},
476
- ...m !== void 0 ? { delta: m } : {},
477
- ...s ? { unit: s } : {},
477
+ ...s !== void 0 ? { delta: s } : {},
478
+ ...f ? { unit: f } : {},
478
479
  ...p ? { evidenceIds: p } : {}
479
480
  };
480
481
  }
481
482
  if (i === "kpi_grid") {
482
- f(o, r, ["type", "title", "tiles", "evidenceIds"], e);
483
+ m(o, n, ["type", "title", "tiles", "evidenceIds"], e);
483
484
  const a = y(
484
485
  o.title,
485
- `${r}.title`,
486
+ `${n}.title`,
486
487
  l.contentTitle,
487
488
  e
488
489
  ), d = Array.isArray(o.tiles) ? o.tiles : [];
489
- Array.isArray(o.tiles) || c(e, `${r}.tiles`, "Expected an array."), d.length === 0 && c(e, `${r}.tiles`, "Expected at least one tile."), d.length > g.maxKpiTiles && c(
490
+ Array.isArray(o.tiles) || c(e, `${n}.tiles`, "Expected an array."), d.length === 0 && c(e, `${n}.tiles`, "Expected at least one tile."), d.length > g.maxKpiTiles && c(
490
491
  e,
491
- `${r}.tiles`,
492
+ `${n}.tiles`,
492
493
  `Must have ${g.maxKpiTiles} tiles or fewer.`
493
494
  );
494
- const m = d.slice(0, g.maxKpiTiles).map((p, I) => {
495
- const b = `${r}.tiles.${I}`, h = v(p, b, e);
496
- f(
497
- h,
495
+ const s = d.slice(0, g.maxKpiTiles).map((p, I) => {
496
+ const b = `${n}.tiles.${I}`, v = h(p, b, e);
497
+ m(
498
+ v,
498
499
  b,
499
500
  ["label", "value", "previousValue", "delta", "unit", "evidenceIds"],
500
501
  e
501
502
  );
502
- const N = typeof h.value == "string" || typeof h.value == "number" ? h.value : "";
503
- N === "" && c(e, `${b}.value`, "Expected a string or number.");
504
- const k = h.previousValue === void 0 || h.previousValue === null || typeof h.previousValue == "string" || typeof h.previousValue == "number" ? h.previousValue : void 0;
505
- h.previousValue !== void 0 && h.previousValue !== null && k === void 0 && c(
503
+ const D = typeof v.value == "string" || typeof v.value == "number" ? v.value : "";
504
+ D === "" && c(e, `${b}.value`, "Expected a string or number.");
505
+ const k = v.previousValue === void 0 || v.previousValue === null || typeof v.previousValue == "string" || typeof v.previousValue == "number" ? v.previousValue : void 0;
506
+ v.previousValue !== void 0 && v.previousValue !== null && k === void 0 && c(
506
507
  e,
507
508
  `${b}.previousValue`,
508
509
  "Expected a string, number, or null."
509
510
  );
510
- const _ = h.delta === void 0 || h.delta === null || typeof h.delta == "string" || typeof h.delta == "number" ? h.delta : void 0;
511
- h.delta !== void 0 && h.delta !== null && _ === void 0 && c(e, `${b}.delta`, "Expected a string, number, or null.");
511
+ const _ = v.delta === void 0 || v.delta === null || typeof v.delta == "string" || typeof v.delta == "number" ? v.delta : void 0;
512
+ v.delta !== void 0 && v.delta !== null && _ === void 0 && c(e, `${b}.delta`, "Expected a string, number, or null.");
512
513
  const O = y(
513
- h.unit,
514
+ v.unit,
514
515
  `${b}.unit`,
515
516
  l.contentTitle,
516
517
  e
517
518
  ), R = $(
518
- h.evidenceIds,
519
+ v.evidenceIds,
519
520
  `${b}.evidenceIds`,
520
521
  e
521
522
  );
522
523
  return {
523
524
  label: u(
524
- h.label,
525
+ v.label,
525
526
  `${b}.label`,
526
527
  l.contentTitle,
527
528
  e
528
529
  ),
529
- value: N,
530
+ value: D,
530
531
  ...k !== void 0 ? { previousValue: k } : {},
531
532
  ..._ !== void 0 ? { delta: _ } : {},
532
533
  ...O ? { unit: O } : {},
533
534
  ...R ? { evidenceIds: R } : {}
534
535
  };
535
- }), s = $(
536
+ }), f = $(
536
537
  o.evidenceIds,
537
- `${r}.evidenceIds`,
538
+ `${n}.evidenceIds`,
538
539
  e
539
540
  );
540
541
  return {
541
542
  type: "kpi_grid",
542
543
  ...a ? { title: a } : {},
543
- tiles: m,
544
+ tiles: s,
545
+ ...f ? { evidenceIds: f } : {}
546
+ };
547
+ }
548
+ if (i === "progress") {
549
+ m(o, n, ["type", "label", "value", "detail", "evidenceIds"], e);
550
+ const a = typeof o.value == "number" && Number.isFinite(o.value) ? o.value : 0;
551
+ (typeof o.value != "number" || !Number.isFinite(o.value)) && c(e, `${n}.value`, "Expected a finite number.");
552
+ const d = y(
553
+ o.detail,
554
+ `${n}.detail`,
555
+ l.contentText,
556
+ e
557
+ ), s = $(o.evidenceIds, `${n}.evidenceIds`, e);
558
+ return {
559
+ type: "progress",
560
+ label: u(
561
+ o.label,
562
+ `${n}.label`,
563
+ l.contentTitle,
564
+ e
565
+ ),
566
+ value: a,
567
+ ...d ? { detail: d } : {},
544
568
  ...s ? { evidenceIds: s } : {}
545
569
  };
546
570
  }
547
571
  if (i === "table") {
548
- f(
572
+ m(
549
573
  o,
550
- r,
574
+ n,
551
575
  ["type", "id", "title", "columns", "rows", "caption", "totalRows", "evidenceIds"],
552
576
  e
553
577
  );
554
- const a = ye(o.columns, `${r}.columns`, e), d = y(
578
+ const a = ye(o.columns, `${n}.columns`, e), d = y(
555
579
  o.title,
556
- `${r}.title`,
580
+ `${n}.title`,
557
581
  l.contentTitle,
558
582
  e
559
- ), m = y(
583
+ ), s = y(
560
584
  o.id,
561
- `${r}.id`,
585
+ `${n}.id`,
562
586
  l.id,
563
587
  e
564
- ), s = y(
588
+ ), f = y(
565
589
  o.caption,
566
- `${r}.caption`,
590
+ `${n}.caption`,
567
591
  l.contentItem,
568
592
  e
569
593
  ), p = le(
570
594
  o.totalRows,
571
- `${r}.totalRows`,
595
+ `${n}.totalRows`,
572
596
  e
573
- ), I = $(o.evidenceIds, `${r}.evidenceIds`, e);
597
+ ), I = $(o.evidenceIds, `${n}.evidenceIds`, e);
574
598
  return {
575
599
  type: "table",
576
- ...m ? { id: m } : {},
600
+ ...s ? { id: s } : {},
577
601
  ...d ? { title: d } : {},
578
602
  columns: a,
579
- rows: he(o.rows, `${r}.rows`, a, e),
580
- ...s ? { caption: s } : {},
603
+ rows: ve(o.rows, `${n}.rows`, a, e),
604
+ ...f ? { caption: f } : {},
581
605
  ...p !== void 0 ? { totalRows: p } : {},
582
606
  ...I ? { evidenceIds: I } : {}
583
607
  };
584
608
  }
585
609
  if (i === "evidence_appendix") {
586
- f(o, r, ["type", "title", "evidenceIds"], e);
610
+ m(o, n, ["type", "title", "evidenceIds"], e);
587
611
  const a = y(
588
612
  o.title,
589
- `${r}.title`,
613
+ `${n}.title`,
590
614
  l.contentTitle,
591
615
  e
592
616
  );
593
617
  return {
594
618
  type: "evidence_appendix",
595
619
  ...a ? { title: a } : {},
596
- evidenceIds: $(o.evidenceIds, `${r}.evidenceIds`, e, {
620
+ evidenceIds: $(o.evidenceIds, `${n}.evidenceIds`, e, {
597
621
  required: !0
598
622
  }) ?? []
599
623
  };
600
624
  }
625
+ if (i === "sql") {
626
+ m(o, n, ["type", "title", "sql", "evidenceIds"], e);
627
+ const a = y(
628
+ o.title,
629
+ `${n}.title`,
630
+ l.contentTitle,
631
+ e
632
+ ), d = u(
633
+ o.sql,
634
+ `${n}.sql`,
635
+ l.contentSql,
636
+ e
637
+ ), s = $(o.evidenceIds, `${n}.evidenceIds`, e);
638
+ return {
639
+ type: "sql",
640
+ ...a ? { title: a } : {},
641
+ sql: d,
642
+ ...s ? { evidenceIds: s } : {}
643
+ };
644
+ }
601
645
  return c(
602
646
  e,
603
- `${r}.type`,
604
- "Expected heading, paragraph, finding, bullets, metric, kpi_grid, table, actions, limitations, or evidence_appendix."
647
+ `${n}.type`,
648
+ "Expected heading, paragraph, finding, bullets, metric, kpi_grid, progress, table, actions, limitations, sql, or evidence_appendix."
605
649
  ), {
606
650
  type: "paragraph",
607
651
  text: ""
608
652
  };
609
653
  }
610
- function ge(n) {
611
- const t = [], e = v(n, "content", t);
612
- f(e, "content", ["version", "title", "summary", "blocks"], t), e.version !== 1 && c(t, "content.version", "Expected version 1.");
613
- const r = y(
654
+ function ge(r) {
655
+ const t = [], e = h(r, "content", t);
656
+ m(e, "content", ["version", "title", "summary", "blocks"], t), e.version !== 1 && c(t, "content.version", "Expected version 1.");
657
+ const n = y(
614
658
  e.title,
615
659
  "content.title",
616
660
  l.contentTitle,
@@ -628,19 +672,19 @@ function ge(n) {
628
672
  "content.blocks",
629
673
  `Must have ${g.maxBlocks} blocks or fewer.`
630
674
  );
631
- const a = i.slice(0, g.maxBlocks).map((d, m) => ve(d, m, t));
675
+ const a = i.slice(0, g.maxBlocks).map((d, s) => he(d, s, t));
632
676
  return B(t), {
633
677
  version: 1,
634
- ...r ? { title: r } : {},
678
+ ...n ? { title: n } : {},
635
679
  ...o ? { summary: o } : {},
636
680
  blocks: a
637
681
  };
638
682
  }
639
- function Ne(n) {
683
+ function De(r) {
640
684
  try {
641
685
  return {
642
686
  valid: !0,
643
- value: ge(n),
687
+ value: ge(r),
644
688
  issues: []
645
689
  };
646
690
  } catch (t) {
@@ -649,79 +693,79 @@ function Ne(n) {
649
693
  throw t;
650
694
  }
651
695
  }
652
- function x(n, t, e, r) {
653
- return typeof n == "string" && e.includes(n) ? n : (c(r, t, `Expected ${e.join(" or ")}.`), e[0]);
696
+ function x(r, t, e, n) {
697
+ return typeof r == "string" && e.includes(r) ? r : (c(n, t, `Expected ${e.join(" or ")}.`), e[0]);
654
698
  }
655
- function E(n, t, e, r, o) {
656
- if (n != null) {
657
- if (typeof n == "string" && e.has(n))
658
- return n;
659
- c(o, t, `Expected ${r}.`);
699
+ function E(r, t, e, n, o) {
700
+ if (r != null) {
701
+ if (typeof r == "string" && e.has(r))
702
+ return r;
703
+ c(o, t, `Expected ${n}.`);
660
704
  }
661
705
  }
662
- function Ie(n, t, e) {
663
- if (n != null) {
664
- if (!Array.isArray(n)) {
706
+ function Ie(r, t, e) {
707
+ if (r != null) {
708
+ if (!Array.isArray(r)) {
665
709
  c(e, t, "Expected an array.");
666
710
  return;
667
711
  }
668
- return n;
712
+ return r;
669
713
  }
670
714
  }
671
- function be(n, t, e) {
672
- if (n != null) {
673
- if (!P(n)) {
715
+ function be(r, t, e) {
716
+ if (r != null) {
717
+ if (!P(r)) {
674
718
  c(e, t, "Expected an object.");
675
719
  return;
676
720
  }
677
- return n;
721
+ return r;
678
722
  }
679
723
  }
680
- function $e(n, t, e) {
681
- if (n == null)
724
+ function $e(r, t, e) {
725
+ if (r == null)
682
726
  return;
683
- const r = v(n, t, e);
684
- f(r, t, de, e);
727
+ const n = h(r, t, e);
728
+ m(n, t, de, e);
685
729
  const o = {}, i = E(
686
- r.pageSize,
730
+ n.pageSize,
687
731
  `${t}.pageSize`,
688
732
  ee,
689
733
  "letter, legal, a4, a3, or tabloid",
690
734
  e
691
735
  ), a = E(
692
- r.orientation,
736
+ n.orientation,
693
737
  `${t}.orientation`,
694
738
  te,
695
739
  "portrait or landscape",
696
740
  e
697
741
  ), d = E(
698
- r.delimiter,
742
+ n.delimiter,
699
743
  `${t}.delimiter`,
700
744
  ne,
701
745
  "comma, semicolon, or tab",
702
746
  e
703
- ), m = E(
704
- r.sheetSelection,
747
+ ), s = E(
748
+ n.sheetSelection,
705
749
  `${t}.sheetSelection`,
706
750
  re,
707
751
  "current or all",
708
752
  e
709
753
  );
710
- i && (o.pageSize = i), a && (o.orientation = a), d && (o.delimiter = d), m && (o.sheetSelection = m);
711
- for (const s of [
754
+ i && (o.pageSize = i), a && (o.orientation = a), d && (o.delimiter = d), s && (o.sheetSelection = s);
755
+ for (const f of [
712
756
  "includeFilters",
713
757
  "includeTimestamp",
714
758
  "includeHeaders",
715
759
  "useFormattedValues"
716
760
  ])
717
- if (!(r[s] === void 0 || r[s] === null)) {
718
- if (typeof r[s] != "boolean") {
719
- c(e, `${t}.${s}`, "Expected a boolean.");
761
+ if (!(n[f] === void 0 || n[f] === null)) {
762
+ if (typeof n[f] != "boolean") {
763
+ c(e, `${t}.${f}`, "Expected a boolean.");
720
764
  continue;
721
765
  }
722
- o[s] = r[s];
766
+ o[f] = n[f];
723
767
  }
724
- for (const s of [
768
+ for (const f of [
725
769
  "currentSheetId",
726
770
  "currentSheetName",
727
771
  "filterLine",
@@ -730,14 +774,14 @@ function $e(n, t, e) {
730
774
  "theme"
731
775
  ]) {
732
776
  const p = y(
733
- r[s],
734
- `${t}.${s}`,
777
+ n[f],
778
+ `${t}.${f}`,
735
779
  l.id,
736
780
  e
737
781
  );
738
- p && (o[s] = p);
782
+ p && (o[f] = p);
739
783
  }
740
- for (const s of [
784
+ for (const f of [
741
785
  "filterValues",
742
786
  "inlineFilterValues",
743
787
  "sheetFilterValues",
@@ -745,38 +789,38 @@ function $e(n, t, e) {
745
789
  "cardControlDefinitions",
746
790
  "controlBindings"
747
791
  ]) {
748
- const p = Ie(r[s], `${t}.${s}`, e);
749
- p && (o[s] = p);
792
+ const p = Ie(n[f], `${t}.${f}`, e);
793
+ p && (o[f] = p);
750
794
  }
751
- for (const s of [
795
+ for (const f of [
752
796
  "controlValues",
753
797
  "tablePreferences",
754
798
  "dashboardInputExecutionSnapshot"
755
799
  ]) {
756
- const p = be(r[s], `${t}.${s}`, e);
757
- p && (o[s] = p);
800
+ const p = be(n[f], `${t}.${f}`, e);
801
+ p && (o[f] = p);
758
802
  }
759
803
  return Object.keys(o).length > 0 ? o : void 0;
760
804
  }
761
- function T(n, t, e, r) {
805
+ function T(r, t, e, n) {
762
806
  const o = y(
763
807
  t,
764
808
  e,
765
809
  l.attachmentTitle,
766
- r
810
+ n
767
811
  );
768
- return o && (n.title = o), n;
812
+ return o && (r.title = o), r;
769
813
  }
770
- function A(n, t, e, r) {
771
- const o = $e(t, e, r);
772
- return o && (n.settings = o), n;
814
+ function A(r, t, e, n) {
815
+ const o = $e(t, e, n);
816
+ return o && (r.settings = o), r;
773
817
  }
774
- function Ee(n, t, e) {
775
- const r = `attachments.${t}`, o = v(n, r, e), i = o.type;
818
+ function Ee(r, t, e) {
819
+ const n = `attachments.${t}`, o = h(r, n, e), i = o.type;
776
820
  if (i === "dashboard") {
777
- f(
821
+ m(
778
822
  o,
779
- r,
823
+ n,
780
824
  ["type", "dashboardId", "format", "title", "settings"],
781
825
  e
782
826
  );
@@ -785,22 +829,22 @@ function Ee(n, t, e) {
785
829
  type: "dashboard",
786
830
  dashboardId: u(
787
831
  o.dashboardId,
788
- `${r}.dashboardId`,
832
+ `${n}.dashboardId`,
789
833
  l.id,
790
834
  e
791
835
  ),
792
- format: x(o.format, `${r}.format`, ["pdf"], e)
836
+ format: x(o.format, `${n}.format`, ["pdf"], e)
793
837
  },
794
838
  o.title,
795
- `${r}.title`,
839
+ `${n}.title`,
796
840
  e
797
841
  );
798
- return A(a, o.settings, `${r}.settings`, e);
842
+ return A(a, o.settings, `${n}.settings`, e);
799
843
  }
800
844
  if (i === "dashboard_sheet" || i === "document_sheet") {
801
- f(
845
+ m(
802
846
  o,
803
- r,
847
+ n,
804
848
  ["type", "dashboardId", "sheetId", "format", "title", "settings"],
805
849
  e
806
850
  );
@@ -809,28 +853,28 @@ function Ee(n, t, e) {
809
853
  type: i,
810
854
  dashboardId: u(
811
855
  o.dashboardId,
812
- `${r}.dashboardId`,
856
+ `${n}.dashboardId`,
813
857
  l.id,
814
858
  e
815
859
  ),
816
860
  sheetId: u(
817
861
  o.sheetId,
818
- `${r}.sheetId`,
862
+ `${n}.sheetId`,
819
863
  l.id,
820
864
  e
821
865
  ),
822
- format: x(o.format, `${r}.format`, ["pdf"], e)
866
+ format: x(o.format, `${n}.format`, ["pdf"], e)
823
867
  },
824
868
  o.title,
825
- `${r}.title`,
869
+ `${n}.title`,
826
870
  e
827
871
  );
828
- return A(a, o.settings, `${r}.settings`, e);
872
+ return A(a, o.settings, `${n}.settings`, e);
829
873
  }
830
874
  if (i === "visual") {
831
- f(
875
+ m(
832
876
  o,
833
- r,
877
+ n,
834
878
  ["type", "dashboardId", "visualId", "format", "title", "settings"],
835
879
  e
836
880
  );
@@ -839,33 +883,33 @@ function Ee(n, t, e) {
839
883
  type: "visual",
840
884
  dashboardId: u(
841
885
  o.dashboardId,
842
- `${r}.dashboardId`,
886
+ `${n}.dashboardId`,
843
887
  l.id,
844
888
  e
845
889
  ),
846
890
  visualId: u(
847
891
  o.visualId,
848
- `${r}.visualId`,
892
+ `${n}.visualId`,
849
893
  l.id,
850
894
  e
851
895
  ),
852
896
  format: x(
853
897
  o.format,
854
- `${r}.format`,
898
+ `${n}.format`,
855
899
  ["pdf", "png"],
856
900
  e
857
901
  )
858
902
  },
859
903
  o.title,
860
- `${r}.title`,
904
+ `${n}.title`,
861
905
  e
862
906
  );
863
- return A(a, o.settings, `${r}.settings`, e);
907
+ return A(a, o.settings, `${n}.settings`, e);
864
908
  }
865
909
  if (i === "card") {
866
- f(
910
+ m(
867
911
  o,
868
- r,
912
+ n,
869
913
  ["type", "dashboardId", "cardId", "format", "title", "settings"],
870
914
  e
871
915
  );
@@ -874,70 +918,70 @@ function Ee(n, t, e) {
874
918
  type: "card",
875
919
  dashboardId: u(
876
920
  o.dashboardId,
877
- `${r}.dashboardId`,
921
+ `${n}.dashboardId`,
878
922
  l.id,
879
923
  e
880
924
  ),
881
925
  cardId: u(
882
926
  o.cardId,
883
- `${r}.cardId`,
927
+ `${n}.cardId`,
884
928
  l.id,
885
929
  e
886
930
  ),
887
931
  format: x(
888
932
  o.format,
889
- `${r}.format`,
933
+ `${n}.format`,
890
934
  ["csv", "pdf", "png"],
891
935
  e
892
936
  )
893
937
  },
894
938
  o.title,
895
- `${r}.title`,
939
+ `${n}.title`,
896
940
  e
897
941
  );
898
- return A(a, o.settings, `${r}.settings`, e);
942
+ return A(a, o.settings, `${n}.settings`, e);
899
943
  }
900
944
  return c(
901
945
  e,
902
- `${r}.type`,
946
+ `${n}.type`,
903
947
  "Expected dashboard, dashboard_sheet, document_sheet, visual, or card."
904
948
  ), { type: "dashboard", dashboardId: "", format: "pdf" };
905
949
  }
906
- function Ce(n) {
907
- switch (n.type) {
950
+ function Ce(r) {
951
+ switch (r.type) {
908
952
  case "dashboard":
909
- return `${n.type}:${n.dashboardId}:${n.format}`;
953
+ return `${r.type}:${r.dashboardId}:${r.format}`;
910
954
  case "dashboard_sheet":
911
955
  case "document_sheet":
912
- return `${n.type}:${n.dashboardId}:${n.sheetId}:${n.format}`;
956
+ return `${r.type}:${r.dashboardId}:${r.sheetId}:${r.format}`;
913
957
  case "visual":
914
- return `${n.type}:${n.dashboardId}:${n.visualId}:${n.format}`;
958
+ return `${r.type}:${r.dashboardId}:${r.visualId}:${r.format}`;
915
959
  case "card":
916
- return `${n.type}:${n.dashboardId}:${n.cardId}:${n.format}`;
960
+ return `${r.type}:${r.dashboardId}:${r.cardId}:${r.format}`;
917
961
  }
918
962
  }
919
- function G(n, t) {
920
- if (n == null)
963
+ function G(r, t) {
964
+ if (r == null)
921
965
  return [];
922
- if (!Array.isArray(n))
966
+ if (!Array.isArray(r))
923
967
  return c(t, "attachments", "Expected an array."), [];
924
- n.length > 20 && c(
968
+ r.length > 20 && c(
925
969
  t,
926
970
  "attachments",
927
971
  "Choose 20 attachments or fewer."
928
972
  );
929
- const e = n.slice(0, 20).map((o, i) => Ee(o, i, t)), r = /* @__PURE__ */ new Set();
973
+ const e = r.slice(0, 20).map((o, i) => Ee(o, i, t)), n = /* @__PURE__ */ new Set();
930
974
  return e.forEach((o, i) => {
931
975
  const a = Ce(o);
932
- r.has(a) && c(t, `attachments.${i}`, "Duplicate attachment."), r.add(a);
976
+ n.has(a) && c(t, `attachments.${i}`, "Duplicate attachment."), n.add(a);
933
977
  }), e;
934
978
  }
935
- function U(n, t) {
936
- if (n == null)
979
+ function U(r, t) {
980
+ if (r == null)
937
981
  return;
938
- const e = v(n, "limits", t);
939
- f(e, "limits", Object.keys(L), t);
940
- const r = {};
982
+ const e = h(r, "limits", t);
983
+ m(e, "limits", Object.keys(L), t);
984
+ const n = {};
941
985
  return Object.keys(L).forEach((o) => {
942
986
  const i = e[o];
943
987
  if (i == null)
@@ -951,66 +995,66 @@ function U(n, t) {
951
995
  );
952
996
  return;
953
997
  }
954
- r[o] = i;
955
- }), Object.keys(r).length > 0 ? r : void 0;
998
+ n[o] = i;
999
+ }), Object.keys(n).length > 0 ? n : void 0;
956
1000
  }
957
- function B(n) {
958
- if (n.length > 0)
959
- throw new S(n);
1001
+ function B(r) {
1002
+ if (r.length > 0)
1003
+ throw new S(r);
960
1004
  }
961
- function H(n, t, e) {
962
- n.type === "none" && t.length === 0 && c(
1005
+ function H(r, t, e) {
1006
+ r.type === "none" && t.length === 0 && c(
963
1007
  e,
964
1008
  "body",
965
1009
  "Add briefing instructions, a custom message, or at least one attachment."
966
1010
  );
967
1011
  }
968
- function X(n) {
969
- const t = [], e = v(n, "jobConfig", t);
970
- f(
1012
+ function X(r) {
1013
+ const t = [], e = h(r, "jobConfig", t);
1014
+ m(
971
1015
  e,
972
1016
  "jobConfig",
973
1017
  ["kind", "source", "body", "attachments", "presentation", "limits"],
974
1018
  t
975
1019
  ), e.kind !== w && c(t, "kind", "Expected BRIEFING.");
976
- const r = j(e.source, t), o = K(e.body, t), i = G(e.attachments, t), a = q(e.presentation, t), d = U(e.limits, t);
1020
+ const n = q(e.source, t), o = j(e.body, t), i = G(e.attachments, t), a = K(e.presentation, t), d = U(e.limits, t);
977
1021
  return H(o, i, t), B(t), {
978
1022
  kind: w,
979
- source: r,
1023
+ source: n,
980
1024
  body: o,
981
1025
  attachments: i,
982
1026
  presentation: a,
983
1027
  ...d ? { limits: d } : {}
984
1028
  };
985
1029
  }
986
- function Oe(n) {
1030
+ function Oe(r) {
987
1031
  return X({
988
- ...n,
1032
+ ...r,
989
1033
  kind: w
990
1034
  });
991
1035
  }
992
- function z(n, t, e, r = "deliveryConfig.recipients") {
993
- const o = `${r}.${t}`, i = v(n, o, e), a = i.type;
1036
+ function N(r, t, e, n = "deliveryConfig.recipients") {
1037
+ const o = `${n}.${t}`, i = h(r, o, e), a = i.type;
994
1038
  if (a === "email") {
995
- f(i, o, ["type", "address", "name"], e);
1039
+ m(i, o, ["type", "address", "name"], e);
996
1040
  const d = u(
997
1041
  i.address,
998
1042
  `${o}.address`,
999
1043
  l.id,
1000
1044
  e
1001
- ), m = y(
1045
+ ), s = y(
1002
1046
  i.name,
1003
1047
  `${o}.name`,
1004
1048
  l.attachmentTitle,
1005
1049
  e
1006
1050
  );
1007
- return d && !fe(d) && c(e, `${o}.address`, "Email address is invalid."), {
1051
+ return d && !se(d) && c(e, `${o}.address`, "Email address is invalid."), {
1008
1052
  type: "email",
1009
1053
  address: d,
1010
- ...m ? { name: m } : {}
1054
+ ...s ? { name: s } : {}
1011
1055
  };
1012
1056
  }
1013
- return a === "user" ? (f(i, o, ["type", "userId"], e), {
1057
+ return a === "user" ? (m(i, o, ["type", "userId"], e), {
1014
1058
  type: "user",
1015
1059
  userId: u(
1016
1060
  i.userId,
@@ -1018,7 +1062,7 @@ function z(n, t, e, r = "deliveryConfig.recipients") {
1018
1062
  l.id,
1019
1063
  e
1020
1064
  )
1021
- }) : a === "tenant_user" ? (f(i, o, ["type", "tenantUserId"], e), {
1065
+ }) : a === "tenant_user" ? (m(i, o, ["type", "tenantUserId"], e), {
1022
1066
  type: "tenant_user",
1023
1067
  tenantUserId: u(
1024
1068
  i.tenantUserId,
@@ -1026,7 +1070,7 @@ function z(n, t, e, r = "deliveryConfig.recipients") {
1026
1070
  l.id,
1027
1071
  e
1028
1072
  )
1029
- }) : a === "group" ? (f(i, o, ["type", "groupId"], e), {
1073
+ }) : a === "group" ? (m(i, o, ["type", "groupId"], e), {
1030
1074
  type: "group",
1031
1075
  groupId: u(
1032
1076
  i.groupId,
@@ -1040,17 +1084,17 @@ function z(n, t, e, r = "deliveryConfig.recipients") {
1040
1084
  "Expected email, user, tenant_user, or group."
1041
1085
  ), { type: "email", address: "" });
1042
1086
  }
1043
- function xe(n, t) {
1044
- return n == null ? [] : Array.isArray(n) ? n.map(
1045
- (e, r) => z(e, r, t)
1087
+ function xe(r, t) {
1088
+ return r == null ? [] : Array.isArray(r) ? r.map(
1089
+ (e, n) => N(e, n, t)
1046
1090
  ) : (c(t, "deliveryConfig.recipients", "Expected an array."), []);
1047
1091
  }
1048
- function Te(n, t) {
1049
- if (!Array.isArray(n))
1092
+ function Te(r, t) {
1093
+ if (!Array.isArray(r))
1050
1094
  return c(t, "deliveryConfig.channels", "Expected an array."), [];
1051
1095
  const e = [];
1052
- return n.forEach((r, o) => {
1053
- if (!J(r)) {
1096
+ return r.forEach((n, o) => {
1097
+ if (!J(n)) {
1054
1098
  c(
1055
1099
  t,
1056
1100
  `deliveryConfig.channels.${o}`,
@@ -1058,14 +1102,14 @@ function Te(n, t) {
1058
1102
  );
1059
1103
  return;
1060
1104
  }
1061
- e.includes(r) || e.push(r);
1105
+ e.includes(n) || e.push(n);
1062
1106
  }), e;
1063
1107
  }
1064
- function Ae(n, t, e) {
1065
- if (n == null)
1108
+ function Ae(r, t, e) {
1109
+ if (r == null)
1066
1110
  return;
1067
- const r = v(n, t, e), o = {};
1068
- return Object.entries(r).forEach(([i, a]) => {
1111
+ const n = h(r, t, e), o = {};
1112
+ return Object.entries(n).forEach(([i, a]) => {
1069
1113
  if (typeof a != "string") {
1070
1114
  c(e, `${t}.${i}`, "Expected a string.");
1071
1115
  return;
@@ -1073,45 +1117,45 @@ function Ae(n, t, e) {
1073
1117
  o[i] = a.trim();
1074
1118
  }), Object.keys(o).length > 0 ? o : void 0;
1075
1119
  }
1076
- function Se(n, t, e) {
1077
- if (n == null)
1120
+ function Se(r, t, e) {
1121
+ if (r == null)
1078
1122
  return;
1079
- const r = v(n, t, e);
1080
- f(
1081
- r,
1123
+ const n = h(r, t, e);
1124
+ m(
1125
+ n,
1082
1126
  t,
1083
1127
  ["url", "method", "headers", "secretEncrypted"],
1084
1128
  e
1085
1129
  );
1086
- const o = r.method === void 0 || r.method === null ? void 0 : x(r.method, `${t}.method`, ["POST", "PUT"], e), i = Ae(r.headers, `${t}.headers`, e), a = y(
1087
- r.secretEncrypted,
1130
+ const o = n.method === void 0 || n.method === null ? void 0 : x(n.method, `${t}.method`, ["POST", "PUT"], e), i = Ae(n.headers, `${t}.headers`, e), a = y(
1131
+ n.secretEncrypted,
1088
1132
  `${t}.secretEncrypted`,
1089
1133
  2e3,
1090
1134
  e
1091
1135
  );
1092
1136
  return {
1093
- url: u(r.url, `${t}.url`, 2e3, e),
1137
+ url: u(n.url, `${t}.url`, 2e3, e),
1094
1138
  ...o ? { method: o } : {},
1095
1139
  ...i ? { headers: i } : {},
1096
1140
  ...a ? { secretEncrypted: a } : {}
1097
1141
  };
1098
1142
  }
1099
- function ke(n, t, e) {
1100
- const r = v(n, t, e), o = r.type;
1143
+ function ke(r, t, e) {
1144
+ const n = h(r, t, e), o = n.type;
1101
1145
  if (o === "channel") {
1102
- f(
1103
- r,
1146
+ m(
1147
+ n,
1104
1148
  t,
1105
1149
  ["type", "channelId", "channelName", "isPrivate"],
1106
1150
  e
1107
1151
  );
1108
1152
  const i = y(
1109
- r.channelName,
1153
+ n.channelName,
1110
1154
  `${t}.channelName`,
1111
1155
  l.attachmentTitle,
1112
1156
  e
1113
- ), a = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : C(
1114
- r.isPrivate,
1157
+ ), a = n.isPrivate === void 0 || n.isPrivate === null ? void 0 : C(
1158
+ n.isPrivate,
1115
1159
  !1,
1116
1160
  `${t}.isPrivate`,
1117
1161
  e
@@ -1119,7 +1163,7 @@ function ke(n, t, e) {
1119
1163
  return {
1120
1164
  type: "channel",
1121
1165
  channelId: u(
1122
- r.channelId,
1166
+ n.channelId,
1123
1167
  `${t}.channelId`,
1124
1168
  l.id,
1125
1169
  e
@@ -1128,33 +1172,33 @@ function ke(n, t, e) {
1128
1172
  ...a !== void 0 ? { isPrivate: a } : {}
1129
1173
  };
1130
1174
  }
1131
- return o === "dm" ? (f(r, t, ["type", "recipient"], e), c(
1175
+ return o === "dm" ? (m(n, t, ["type", "recipient"], e), c(
1132
1176
  e,
1133
1177
  `${t}.type`,
1134
1178
  "Slack DM delivery is not supported in V1."
1135
1179
  ), {
1136
1180
  type: "dm",
1137
- recipient: z(r.recipient, 0, e, `${t}.recipient`)
1181
+ recipient: N(n.recipient, 0, e, `${t}.recipient`)
1138
1182
  }) : (c(e, `${t}.type`, "Expected channel."), { type: "channel", channelId: "" });
1139
1183
  }
1140
- function _e(n, t, e) {
1141
- if (n == null)
1184
+ function _e(r, t, e) {
1185
+ if (r == null)
1142
1186
  return;
1143
- if (!Array.isArray(n)) {
1187
+ if (!Array.isArray(r)) {
1144
1188
  c(e, t, "Expected an array.");
1145
1189
  return;
1146
1190
  }
1147
- const r = n.map(
1148
- (o, i) => z(o, i, e, t)
1191
+ const n = r.map(
1192
+ (o, i) => N(o, i, e, t)
1149
1193
  );
1150
- return r.length > 0 ? r : void 0;
1194
+ return n.length > 0 ? n : void 0;
1151
1195
  }
1152
- function Le(n, t, e) {
1153
- if (n == null)
1196
+ function Le(r, t, e) {
1197
+ if (r == null)
1154
1198
  return;
1155
- const r = v(n, t, e);
1156
- f(
1157
- r,
1199
+ const n = h(r, t, e);
1200
+ m(
1201
+ n,
1158
1202
  t,
1159
1203
  [
1160
1204
  "destination",
@@ -1166,41 +1210,41 @@ function Le(n, t, e) {
1166
1210
  e
1167
1211
  );
1168
1212
  const o = _e(
1169
- r.threadMentions,
1213
+ n.threadMentions,
1170
1214
  `${t}.threadMentions`,
1171
1215
  e
1172
1216
  ), i = C(
1173
- r.postThreadDetail,
1217
+ n.postThreadDetail,
1174
1218
  !0,
1175
1219
  `${t}.postThreadDetail`,
1176
1220
  e
1177
1221
  ), a = C(
1178
- r.includeDashboardLink,
1222
+ n.includeDashboardLink,
1179
1223
  !0,
1180
1224
  `${t}.includeDashboardLink`,
1181
1225
  e
1182
1226
  ), d = C(
1183
- r.includeBriefingLink,
1227
+ n.includeBriefingLink,
1184
1228
  !0,
1185
1229
  `${t}.includeBriefingLink`,
1186
1230
  e
1187
1231
  );
1188
1232
  return {
1189
1233
  destination: ke(
1190
- r.destination,
1234
+ n.destination,
1191
1235
  `${t}.destination`,
1192
1236
  e
1193
1237
  ),
1194
1238
  ...o ? { threadMentions: o } : {},
1195
- ...r.postThreadDetail !== void 0 ? { postThreadDetail: i } : {},
1196
- ...r.includeDashboardLink !== void 0 ? { includeDashboardLink: a } : {},
1197
- ...r.includeBriefingLink !== void 0 ? { includeBriefingLink: d } : {}
1239
+ ...n.postThreadDetail !== void 0 ? { postThreadDetail: i } : {},
1240
+ ...n.includeDashboardLink !== void 0 ? { includeDashboardLink: a } : {},
1241
+ ...n.includeBriefingLink !== void 0 ? { includeBriefingLink: d } : {}
1198
1242
  };
1199
1243
  }
1200
- function we(n, t, e) {
1201
- const r = v(n, t, e);
1202
- f(
1203
- r,
1244
+ function we(r, t, e) {
1245
+ const n = h(r, t, e);
1246
+ m(
1247
+ n,
1204
1248
  t,
1205
1249
  [
1206
1250
  "subjectOverride",
@@ -1214,37 +1258,37 @@ function we(n, t, e) {
1214
1258
  e
1215
1259
  );
1216
1260
  const o = E(
1217
- r.formatProfile,
1261
+ n.formatProfile,
1218
1262
  `${t}.formatProfile`,
1219
1263
  oe,
1220
1264
  "concise, balanced, or detailed",
1221
1265
  e
1222
1266
  ), i = y(
1223
- r.subjectOverride,
1267
+ n.subjectOverride,
1224
1268
  `${t}.subjectOverride`,
1225
1269
  500,
1226
1270
  e
1227
1271
  ), a = y(
1228
- r.titleOverride,
1272
+ n.titleOverride,
1229
1273
  `${t}.titleOverride`,
1230
1274
  500,
1231
1275
  e
1232
1276
  ), d = y(
1233
- r.summaryOverride,
1277
+ n.summaryOverride,
1234
1278
  `${t}.summaryOverride`,
1235
1279
  2e3,
1236
1280
  e
1237
- ), m = C(
1238
- r.actionBlockVisible,
1281
+ ), s = C(
1282
+ n.actionBlockVisible,
1239
1283
  !0,
1240
1284
  `${t}.actionBlockVisible`,
1241
1285
  e
1242
- ), s = Se(
1243
- r.webhookConfig,
1286
+ ), f = Se(
1287
+ n.webhookConfig,
1244
1288
  `${t}.webhookConfig`,
1245
1289
  e
1246
1290
  ), p = Le(
1247
- r.slackConfig,
1291
+ n.slackConfig,
1248
1292
  `${t}.slackConfig`,
1249
1293
  e
1250
1294
  );
@@ -1253,15 +1297,15 @@ function we(n, t, e) {
1253
1297
  ...i ? { subjectOverride: i } : {},
1254
1298
  ...a ? { titleOverride: a } : {},
1255
1299
  ...d ? { summaryOverride: d } : {},
1256
- ...r.actionBlockVisible !== void 0 ? { actionBlockVisible: m } : {},
1300
+ ...n.actionBlockVisible !== void 0 ? { actionBlockVisible: s } : {},
1257
1301
  ...p ? { slackConfig: p } : {},
1258
- ...s ? { webhookConfig: s } : {}
1302
+ ...f ? { webhookConfig: f } : {}
1259
1303
  };
1260
1304
  }
1261
- function Ve(n, t) {
1262
- if (n == null)
1305
+ function Ve(r, t) {
1306
+ if (r == null)
1263
1307
  return;
1264
- const e = v(n, "deliveryConfig.channelConfigs", t), r = {};
1308
+ const e = h(r, "deliveryConfig.channelConfigs", t), n = {};
1265
1309
  return Object.entries(e).forEach(([o, i]) => {
1266
1310
  if (!J(o)) {
1267
1311
  c(
@@ -1271,25 +1315,25 @@ function Ve(n, t) {
1271
1315
  );
1272
1316
  return;
1273
1317
  }
1274
- r[o] = we(
1318
+ n[o] = we(
1275
1319
  i,
1276
1320
  `deliveryConfig.channelConfigs.${o}`,
1277
1321
  t
1278
1322
  );
1279
- }), Object.keys(r).length > 0 ? r : void 0;
1323
+ }), Object.keys(n).length > 0 ? n : void 0;
1280
1324
  }
1281
- function Be(n, t) {
1282
- var m, s, p;
1283
- if (n == null)
1325
+ function Be(r, t) {
1326
+ var s, f, p;
1327
+ if (r == null)
1284
1328
  return null;
1285
- const e = v(n, "deliveryConfig", t);
1286
- f(
1329
+ const e = h(r, "deliveryConfig", t);
1330
+ m(
1287
1331
  e,
1288
1332
  "deliveryConfig",
1289
1333
  ["recipients", "channels", "channelConfigs"],
1290
1334
  t
1291
1335
  );
1292
- const r = Ve(e.channelConfigs, t), o = xe(e.recipients, t), i = Te(e.channels, t), a = ((s = (m = r == null ? void 0 : r.SLACK) == null ? void 0 : m.slackConfig) == null ? void 0 : s.destination.type) === "channel" && !!r.SLACK.slackConfig.destination.channelId.trim();
1336
+ const n = Ve(e.channelConfigs, t), o = xe(e.recipients, t), i = Te(e.channels, t), a = ((f = (s = n == null ? void 0 : n.SLACK) == null ? void 0 : s.slackConfig) == null ? void 0 : f.destination.type) === "channel" && !!n.SLACK.slackConfig.destination.channelId.trim();
1293
1337
  return i.some(
1294
1338
  (I) => I !== "SLACK"
1295
1339
  ) && o.length === 0 && c(
@@ -1304,19 +1348,19 @@ function Be(n, t) {
1304
1348
  t,
1305
1349
  "deliveryConfig.channelConfigs.SLACK.slackConfig.destination.channelId",
1306
1350
  "Choose a Slack channel destination."
1307
- ), !i.includes("SLACK") && ((p = r == null ? void 0 : r.SLACK) != null && p.slackConfig) && c(
1351
+ ), !i.includes("SLACK") && ((p = n == null ? void 0 : n.SLACK) != null && p.slackConfig) && c(
1308
1352
  t,
1309
1353
  "deliveryConfig.channelConfigs.SLACK",
1310
1354
  "Slack config requires SLACK in deliveryConfig.channels."
1311
1355
  ), {
1312
1356
  recipients: o,
1313
1357
  channels: i,
1314
- ...r ? { channelConfigs: r } : {}
1358
+ ...n ? { channelConfigs: n } : {}
1315
1359
  };
1316
1360
  }
1317
- function D(n) {
1318
- const t = [], e = v(n, "draft", t);
1319
- f(
1361
+ function z(r) {
1362
+ const t = [], e = h(r, "draft", t);
1363
+ m(
1320
1364
  e,
1321
1365
  "draft",
1322
1366
  [
@@ -1334,7 +1378,7 @@ function D(n) {
1334
1378
  ],
1335
1379
  t
1336
1380
  );
1337
- const r = u(
1381
+ const n = u(
1338
1382
  e.name,
1339
1383
  "name",
1340
1384
  l.name,
@@ -1344,50 +1388,50 @@ function D(n) {
1344
1388
  "description",
1345
1389
  l.description,
1346
1390
  t
1347
- ) ?? null, i = y(e.scheduleExpr, "scheduleExpr", 500, t) ?? null, a = y(e.timezone, "timezone", 200, t) ?? "UTC", d = se(e.status, t), m = j(e.source, t), s = K(e.body, t), p = G(e.attachments, t), I = q(e.presentation, t), b = U(e.limits, t), h = Be(e.deliveryConfig, t);
1348
- return H(s, p, t), B(t), {
1349
- name: r,
1391
+ ) ?? null, i = y(e.scheduleExpr, "scheduleExpr", 500, t) ?? null, a = y(e.timezone, "timezone", 200, t) ?? "UTC", d = fe(e.status, t), s = q(e.source, t), f = j(e.body, t), p = G(e.attachments, t), I = K(e.presentation, t), b = U(e.limits, t), v = Be(e.deliveryConfig, t);
1392
+ return H(f, p, t), B(t), {
1393
+ name: n,
1350
1394
  description: o,
1351
1395
  status: d,
1352
1396
  scheduleExpr: i,
1353
1397
  timezone: a,
1354
- source: m,
1355
- body: s,
1398
+ source: s,
1399
+ body: f,
1356
1400
  attachments: p,
1357
1401
  presentation: I,
1358
1402
  ...b ? { limits: b } : {},
1359
- deliveryConfig: h
1403
+ deliveryConfig: v
1360
1404
  };
1361
1405
  }
1362
- function Re(n) {
1363
- return D(n);
1406
+ function Re(r) {
1407
+ return z(r);
1364
1408
  }
1365
- function Fe(n) {
1366
- return D(n);
1409
+ function Fe(r) {
1410
+ return z(r);
1367
1411
  }
1368
- function Me(n) {
1412
+ function Me(r) {
1369
1413
  try {
1370
- return { valid: !0, value: D(n), issues: [] };
1414
+ return { valid: !0, value: z(r), issues: [] };
1371
1415
  } catch (t) {
1372
1416
  if (t instanceof S)
1373
1417
  return { valid: !1, issues: t.issues };
1374
1418
  throw t;
1375
1419
  }
1376
1420
  }
1377
- function Pe(n) {
1421
+ function Pe(r) {
1378
1422
  try {
1379
- return { valid: !0, value: X(n), issues: [] };
1423
+ return { valid: !0, value: X(r), issues: [] };
1380
1424
  } catch (t) {
1381
1425
  if (t instanceof S)
1382
1426
  return { valid: !1, issues: t.issues };
1383
1427
  throw t;
1384
1428
  }
1385
1429
  }
1386
- function je(n) {
1387
- return typeof n == "string" && M.has(n);
1430
+ function qe(r) {
1431
+ return typeof r == "string" && M.has(r);
1388
1432
  }
1389
- function J(n) {
1390
- return typeof n == "string" && Q.has(n);
1433
+ function J(r) {
1434
+ return typeof r == "string" && Q.has(r);
1391
1435
  }
1392
1436
  export {
1393
1437
  Z as BRIEFING_ARTIFACT_FORMATS,
@@ -1396,16 +1440,16 @@ export {
1396
1440
  l as BRIEFING_TEXT_LIMITS,
1397
1441
  S as BriefingContractError,
1398
1442
  V as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
1399
- De as MAX_BRIEFING_ATTACHMENTS,
1443
+ ze as MAX_BRIEFING_ATTACHMENTS,
1400
1444
  Oe as buildBriefingJobConfig,
1401
1445
  Re as buildCreateBriefingRequest,
1402
1446
  Fe as buildUpdateBriefingRequest,
1403
- je as isBriefingArtifactFormat,
1447
+ qe as isBriefingArtifactFormat,
1404
1448
  J as isBriefingDeliveryChannel,
1405
1449
  ge as normalizeBriefingContentDocument,
1406
- D as normalizeBriefingDraft,
1450
+ z as normalizeBriefingDraft,
1407
1451
  X as normalizeBriefingJobConfig,
1408
- Ne as validateBriefingContentDocument,
1452
+ De as validateBriefingContentDocument,
1409
1453
  Me as validateBriefingDraft,
1410
1454
  Pe as validateBriefingJobConfig
1411
1455
  };