react-semaphor 0.1.315 → 0.1.317
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.
- package/dist/brand-studio/index.js +65 -65
- package/dist/briefings/index.cjs +1 -0
- package/dist/briefings/index.js +848 -0
- package/dist/chunks/{braces-CWi8x9ww.js → braces-CDPz6CF2.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-aODuCeYE.js → calendar-preferences-dialog-CUWcN-aO.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-B3JYKgek.js → calendar-preferences-dialog-DsfRJICT.js} +3 -3
- package/dist/chunks/{chevrons-up-down-B2viXO2I.js → chevrons-up-down-BsdQRmJL.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-CvFxCsvU.js +7380 -0
- package/dist/chunks/dashboard-briefing-launcher-DsomUnHQ.js +96 -0
- package/dist/chunks/dashboard-controls-Bvr4skpo.js +2009 -0
- package/dist/chunks/dashboard-controls-kSIXjX4k.js +57 -0
- package/dist/chunks/{dashboard-json-Duea3KSa.js → dashboard-json-4qbAgL-4.js} +1 -1
- package/dist/chunks/{dashboard-json-zKDTezgS.js → dashboard-json-CgAgzcWN.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-MZCJaPiq.js → edit-dashboard-visual-BgOLgfoq.js} +807 -822
- package/dist/chunks/edit-dashboard-visual-DOTGLbMS.js +178 -0
- package/dist/chunks/{index-CjRLHvSp.js → index-BSexp9WY.js} +41203 -46487
- package/dist/chunks/index-BToywf5X.js +1298 -0
- package/dist/chunks/{palette-CIuwlEiG.js → palette-BlxLchHy.js} +1 -1
- package/dist/chunks/{resource-management-panel-S0LXyguo.js → resource-management-panel-CcSUHqz0.js} +81 -81
- package/dist/chunks/{resource-management-panel-CM3Zsk9H.js → resource-management-panel-hQayeERR.js} +1 -1
- package/dist/chunks/{save-_ALpoMy6.js → save-DVRQBMeb.js} +1 -1
- package/dist/chunks/{switch-B6fh8nb-.js → switch-sauemjyY.js} +199 -199
- package/dist/chunks/{use-create-flow-overlay-state-Cp7PYD-t.js → use-create-flow-overlay-state-CO6FEpZr.js} +254 -225
- package/dist/chunks/use-create-flow-overlay-state-Cqp5Qe-9.js +26 -0
- package/dist/chunks/{use-visual-utils-D9DsvP1v.js → use-visual-utils-DnJdlEV8.js} +48 -48
- package/dist/chunks/{use-visual-utils-DDd0pAJ_.js → use-visual-utils-KIYmxQoV.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +232 -485
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings.d.ts +240 -0
- package/dist/types/dashboard.d.ts +1 -0
- package/dist/types/main.d.ts +619 -1017
- package/dist/types/surfboard.d.ts +1 -0
- package/dist/types/types.d.ts +411 -261
- package/package.json +7 -2
- package/dist/chunks/dashboard-controls-CSunAZVx.js +0 -57
- package/dist/chunks/dashboard-controls-jvJF-AJC.js +0 -2021
- package/dist/chunks/dashboard-filter-controls-launcher-B0i9xSZZ.js +0 -11
- package/dist/chunks/dashboard-filter-controls-launcher-DG6yRPmx.js +0 -1540
- package/dist/chunks/edit-dashboard-visual-QjRIAadP.js +0 -183
- package/dist/chunks/index-B7C8qBWC.js +0 -1330
- package/dist/chunks/use-create-flow-overlay-state-CqTBDwBF.js +0 -16
package/dist/types/types.d.ts
CHANGED
|
@@ -31,198 +31,6 @@ export declare type AIScopeTable = {
|
|
|
31
31
|
datamodelName: string;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export declare interface Alert {
|
|
35
|
-
id: string;
|
|
36
|
-
kind?: 'ALERT';
|
|
37
|
-
name: string;
|
|
38
|
-
description?: string | null;
|
|
39
|
-
status: AlertStatus;
|
|
40
|
-
scheduleExpr: string;
|
|
41
|
-
timezone: string;
|
|
42
|
-
nextRunAt?: string | null;
|
|
43
|
-
lastRunAt?: string | null;
|
|
44
|
-
lastRunStatus?: string | null;
|
|
45
|
-
sourceHealth?: 'OK' | 'SOURCE_MISSING' | 'SOURCE_ERROR' | 'STALE';
|
|
46
|
-
alertState?: AlertState | null;
|
|
47
|
-
jobConfig: AlertJobConfig;
|
|
48
|
-
deliveryConfig: DeliveryConfig;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export declare interface AlertBacktestResult {
|
|
54
|
-
ruleId?: string;
|
|
55
|
-
evaluationCount: number;
|
|
56
|
-
transitionsWithoutDampening: number;
|
|
57
|
-
transitionsWithDampening: number;
|
|
58
|
-
recommendation?: string | null;
|
|
59
|
-
firingEpisodes?: Array<{
|
|
60
|
-
triggeredAt: string;
|
|
61
|
-
recoveredAt: string | null;
|
|
62
|
-
durationMinutes: number;
|
|
63
|
-
peakValue: number;
|
|
64
|
-
}>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export declare type AlertConditionOperator = 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'neq' | 'pct_change_gt' | 'pct_change_lt';
|
|
68
|
-
|
|
69
|
-
export declare interface AlertContextInterpretResponse {
|
|
70
|
-
workflowDef: Record<string, unknown>;
|
|
71
|
-
contextSources: ContextSource[];
|
|
72
|
-
explanation?: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export declare type AlertContextSourceKind = 'trend_window' | 'peer_comparison' | 'related_metric' | 'breakdown' | 'custom_query';
|
|
76
|
-
|
|
77
|
-
export declare interface AlertDeliverablePreview {
|
|
78
|
-
mode: 'standard_fallback' | 'custom';
|
|
79
|
-
html: string;
|
|
80
|
-
warnings?: string[];
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export declare type AlertDeliveryChannel = 'EMAIL' | 'WEBHOOK' | 'SLACK' | 'IN_APP' | 'TELEGRAM';
|
|
84
|
-
|
|
85
|
-
export declare type AlertExecutionControlContext = {
|
|
86
|
-
values: Record<string, unknown>;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export declare type AlertExecutionFilterContext = {
|
|
90
|
-
active_filters: TFilterValue[];
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export declare type AlertExecutionQueryConfig = {
|
|
94
|
-
cardType: TChartType;
|
|
95
|
-
cardMode: CardMode;
|
|
96
|
-
cardConfig: CardConfig;
|
|
97
|
-
cardDataSource: DataSource;
|
|
98
|
-
connectionId?: string;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export declare interface AlertHistoryResponse {
|
|
102
|
-
ruleId: string;
|
|
103
|
-
windowDays: number;
|
|
104
|
-
totalFirings: number;
|
|
105
|
-
averageFiringDurationMinutes: number;
|
|
106
|
-
longestFiring: {
|
|
107
|
-
triggeredAt: string;
|
|
108
|
-
recoveredAt: string | null;
|
|
109
|
-
durationMinutes: number;
|
|
110
|
-
triggerValue: number | null;
|
|
111
|
-
recoveryValue: number | null;
|
|
112
|
-
} | null;
|
|
113
|
-
shortestFiring: {
|
|
114
|
-
triggeredAt: string;
|
|
115
|
-
recoveredAt: string | null;
|
|
116
|
-
durationMinutes: number;
|
|
117
|
-
triggerValue: number | null;
|
|
118
|
-
recoveryValue: number | null;
|
|
119
|
-
} | null;
|
|
120
|
-
totalFiringMinutes: number;
|
|
121
|
-
firingPercentage: number;
|
|
122
|
-
episodes: Array<{
|
|
123
|
-
triggeredAt: string;
|
|
124
|
-
recoveredAt: string | null;
|
|
125
|
-
durationMinutes: number;
|
|
126
|
-
triggerValue: number | null;
|
|
127
|
-
recoveryValue: number | null;
|
|
128
|
-
}>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export declare type AlertJobConfig = {
|
|
132
|
-
kind: 'ALERT';
|
|
133
|
-
source: AlertSource;
|
|
134
|
-
operator: AlertConditionOperator;
|
|
135
|
-
threshold: number;
|
|
136
|
-
severity: AlertSeverity;
|
|
137
|
-
consecutiveCount?: number;
|
|
138
|
-
notifyPolicy: 'on_state_change';
|
|
139
|
-
contextSources?: ContextSource[];
|
|
140
|
-
presentationPrompt?: string;
|
|
141
|
-
sensitivityPreset?: SensitivityPreset | null;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export declare interface AlertQuotaPolicy {
|
|
145
|
-
maxActiveAlerts: number;
|
|
146
|
-
minCadenceMinutes: number;
|
|
147
|
-
maxContextSources: number;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export declare interface AlertQuotaRecord {
|
|
151
|
-
tenantId: string | null;
|
|
152
|
-
policy: AlertQuotaPolicy;
|
|
153
|
-
activeAlerts: number;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export declare type AlertRecipient = {
|
|
157
|
-
type: 'email';
|
|
158
|
-
address: string;
|
|
159
|
-
name?: string;
|
|
160
|
-
} | {
|
|
161
|
-
type: 'user';
|
|
162
|
-
userId: string;
|
|
163
|
-
} | {
|
|
164
|
-
type: 'tenant_user';
|
|
165
|
-
tenantUserId: string;
|
|
166
|
-
} | {
|
|
167
|
-
type: 'group';
|
|
168
|
-
groupId: string;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
export declare interface AlertRun {
|
|
172
|
-
id: string;
|
|
173
|
-
ruleId: string;
|
|
174
|
-
status: 'QUEUED' | 'RUNNING' | 'SUCCESS' | 'FAILED';
|
|
175
|
-
scheduledFor: string;
|
|
176
|
-
startedAt?: string | null;
|
|
177
|
-
completedAt?: string | null;
|
|
178
|
-
error?: string | null;
|
|
179
|
-
result?: Record<string, unknown> | null;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export declare type AlertSeverity = 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
|
|
183
|
-
|
|
184
|
-
export declare type AlertSource = {
|
|
185
|
-
type: 'saved_metric';
|
|
186
|
-
visualId: string;
|
|
187
|
-
title?: string;
|
|
188
|
-
format?: CanonicalFormatSpec;
|
|
189
|
-
} | {
|
|
190
|
-
type: 'dashboard_metric';
|
|
191
|
-
dashboardId: string;
|
|
192
|
-
visualId: string;
|
|
193
|
-
cardId: string;
|
|
194
|
-
title?: string;
|
|
195
|
-
format?: CanonicalFormatSpec;
|
|
196
|
-
executionSnapshot: {
|
|
197
|
-
queryConfig: AlertExecutionQueryConfig;
|
|
198
|
-
filterContext: AlertExecutionFilterContext;
|
|
199
|
-
controlContext?: AlertExecutionControlContext;
|
|
200
|
-
controlDefinitions?: ControlDefinition[];
|
|
201
|
-
cardControlDefinitions?: ControlDefinition[];
|
|
202
|
-
controlBindings?: ControlBinding[];
|
|
203
|
-
connectionId: string;
|
|
204
|
-
calendarContext?: {
|
|
205
|
-
tz: string;
|
|
206
|
-
weekStart: number;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
export declare interface AlertState {
|
|
212
|
-
currentState: AlertStateValue;
|
|
213
|
-
lastEvaluatedAt?: string | null;
|
|
214
|
-
lastValue?: string | null;
|
|
215
|
-
lastTriggeredAt?: string | null;
|
|
216
|
-
lastRecoveredAt?: string | null;
|
|
217
|
-
consecutiveTrue: number;
|
|
218
|
-
consecutiveFalse: number;
|
|
219
|
-
firingDurationMinutes?: number | null;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export declare type AlertStateValue = 'OK' | 'FIRING';
|
|
223
|
-
|
|
224
|
-
export declare type AlertStatus = 'ACTIVE' | 'PAUSED' | 'DISABLED';
|
|
225
|
-
|
|
226
34
|
declare const APPEARANCE_SPEC_VERSION: 1;
|
|
227
35
|
|
|
228
36
|
declare type AppearanceColorToken = 'background' | 'foreground' | 'muted' | 'mutedForeground' | 'border' | 'input' | 'primary' | 'primaryForeground' | 'accent' | 'accentForeground' | 'card' | 'cardForeground' | 'positive' | 'negative' | 'warning' | 'info' | 'destructive' | 'destructiveForeground';
|
|
@@ -352,6 +160,358 @@ declare type BaseSurfaceAppearance = {
|
|
|
352
160
|
|
|
353
161
|
export declare type Breakpoint = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
|
|
354
162
|
|
|
163
|
+
declare const BRIEFING_ARTIFACT_FORMATS: readonly ["markdown", "html"];
|
|
164
|
+
|
|
165
|
+
declare const BRIEFING_KIND: "BRIEFING";
|
|
166
|
+
|
|
167
|
+
export declare type BriefingArtifactFormat = 'markdown' | 'html';
|
|
168
|
+
|
|
169
|
+
declare type BriefingArtifactFormat_2 = (typeof BRIEFING_ARTIFACT_FORMATS)[number];
|
|
170
|
+
|
|
171
|
+
export declare type BriefingArtifactKind = 'markdown' | 'html' | 'evidence' | 'trace';
|
|
172
|
+
|
|
173
|
+
export declare type BriefingArtifactResponse = {
|
|
174
|
+
kind: BriefingArtifactKind;
|
|
175
|
+
content: string;
|
|
176
|
+
contentType: string;
|
|
177
|
+
filename?: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare type BriefingAttachment = (BriefingAttachmentBase & {
|
|
181
|
+
type: 'dashboard';
|
|
182
|
+
dashboardId: string;
|
|
183
|
+
format: 'pdf';
|
|
184
|
+
}) | (BriefingAttachmentBase & {
|
|
185
|
+
type: 'dashboard_sheet';
|
|
186
|
+
dashboardId: string;
|
|
187
|
+
sheetId: string;
|
|
188
|
+
format: 'pdf';
|
|
189
|
+
}) | (BriefingAttachmentBase & {
|
|
190
|
+
type: 'document_sheet';
|
|
191
|
+
dashboardId: string;
|
|
192
|
+
sheetId: string;
|
|
193
|
+
format: 'pdf';
|
|
194
|
+
}) | (BriefingAttachmentBase & {
|
|
195
|
+
type: 'visual';
|
|
196
|
+
dashboardId: string;
|
|
197
|
+
visualId: string;
|
|
198
|
+
format: 'pdf' | 'png';
|
|
199
|
+
}) | (BriefingAttachmentBase & {
|
|
200
|
+
type: 'card';
|
|
201
|
+
dashboardId: string;
|
|
202
|
+
cardId: string;
|
|
203
|
+
format: 'csv' | 'pdf' | 'png';
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
declare type BriefingAttachmentBase = {
|
|
207
|
+
title?: string;
|
|
208
|
+
settings?: BriefingAttachmentSettings;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export declare type BriefingAttachmentFormat = 'pdf' | 'csv' | 'png';
|
|
212
|
+
|
|
213
|
+
export declare type BriefingAttachmentSettings = {
|
|
214
|
+
theme?: string;
|
|
215
|
+
pageSize?: BriefingPdfPageSize;
|
|
216
|
+
orientation?: BriefingPdfOrientation;
|
|
217
|
+
includeFilters?: boolean;
|
|
218
|
+
includeTimestamp?: boolean;
|
|
219
|
+
delimiter?: BriefingCsvDelimiter;
|
|
220
|
+
includeHeaders?: boolean;
|
|
221
|
+
useFormattedValues?: boolean;
|
|
222
|
+
sheetSelection?: 'current' | 'all';
|
|
223
|
+
currentSheetId?: string;
|
|
224
|
+
currentSheetName?: string;
|
|
225
|
+
filterValues?: unknown[];
|
|
226
|
+
inlineFilterValues?: unknown[];
|
|
227
|
+
sheetFilterValues?: unknown[];
|
|
228
|
+
filterLine?: string;
|
|
229
|
+
controlValues?: Record<string, unknown>;
|
|
230
|
+
controlDefinitions?: unknown[];
|
|
231
|
+
cardControlDefinitions?: unknown[];
|
|
232
|
+
controlBindings?: unknown[];
|
|
233
|
+
tablePreferences?: Record<string, unknown>;
|
|
234
|
+
dashboardInputExecutionSnapshot?: Record<string, unknown>;
|
|
235
|
+
selectedSheetId?: string;
|
|
236
|
+
cardType?: string;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export declare type BriefingBody = {
|
|
240
|
+
type: 'generated_analysis';
|
|
241
|
+
instruction: string;
|
|
242
|
+
} | {
|
|
243
|
+
type: 'custom_message';
|
|
244
|
+
message: string;
|
|
245
|
+
} | {
|
|
246
|
+
type: 'none';
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare type BriefingChannelConfig = {
|
|
250
|
+
subjectOverride?: string;
|
|
251
|
+
titleOverride?: string;
|
|
252
|
+
summaryOverride?: string;
|
|
253
|
+
actionBlockVisible?: boolean;
|
|
254
|
+
webhookConfig?: BriefingWebhookConfig;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export declare type BriefingChannelFormatConfig = BriefingChannelConfig & {
|
|
258
|
+
formatProfile?: BriefingFormatProfile;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export declare type BriefingCreatorMetadata = {
|
|
262
|
+
type: 'organization' | 'tenant' | 'unknown';
|
|
263
|
+
id: string | null;
|
|
264
|
+
name: string | null;
|
|
265
|
+
email: string | null;
|
|
266
|
+
label: string;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
declare type BriefingCsvDelimiter = ',' | ';' | '\t';
|
|
270
|
+
|
|
271
|
+
export declare type BriefingDeliveryChannel = 'EMAIL' | 'WEBHOOK' | 'SLACK' | 'IN_APP' | 'TELEGRAM';
|
|
272
|
+
|
|
273
|
+
export declare type BriefingDeliveryConfig = {
|
|
274
|
+
recipients: BriefingRecipient[];
|
|
275
|
+
channels: BriefingDeliveryChannel[];
|
|
276
|
+
channelConfigs?: Partial<Record<BriefingDeliveryChannel, BriefingChannelConfig>>;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
export declare interface BriefingDetail extends BriefingListItem {
|
|
280
|
+
deliveryConfig: BriefingDeliveryConfig | null;
|
|
281
|
+
latestRun?: BriefingRun | null;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export declare type BriefingDispatchResult = {
|
|
285
|
+
accepted: boolean;
|
|
286
|
+
mode?: string;
|
|
287
|
+
message?: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export declare type BriefingFormatProfile = 'concise' | 'balanced' | 'detailed';
|
|
291
|
+
|
|
292
|
+
export declare type BriefingJobConfig = {
|
|
293
|
+
kind: BriefingKind;
|
|
294
|
+
source: BriefingSource;
|
|
295
|
+
body: BriefingBody;
|
|
296
|
+
attachments: BriefingAttachment[];
|
|
297
|
+
presentation: BriefingPresentation;
|
|
298
|
+
limits?: BriefingLimits;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export declare type BriefingKind = typeof BRIEFING_KIND;
|
|
302
|
+
|
|
303
|
+
export declare type BriefingLimits = {
|
|
304
|
+
maxToolCalls?: number;
|
|
305
|
+
maxRows?: number;
|
|
306
|
+
timeoutMs?: number;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
export declare interface BriefingListItem {
|
|
310
|
+
id: string;
|
|
311
|
+
kind: BriefingKind;
|
|
312
|
+
name: string;
|
|
313
|
+
description: string | null;
|
|
314
|
+
status: BriefingStatus | string;
|
|
315
|
+
scheduleExpr: string | null;
|
|
316
|
+
timezone: string;
|
|
317
|
+
nextRunAt: string | null;
|
|
318
|
+
source: BriefingSource;
|
|
319
|
+
body: BriefingBody;
|
|
320
|
+
attachments: BriefingAttachment[];
|
|
321
|
+
presentation: BriefingPresentation;
|
|
322
|
+
limits?: BriefingLimits;
|
|
323
|
+
scope?: BriefingScopeMetadata;
|
|
324
|
+
creator?: BriefingCreatorMetadata;
|
|
325
|
+
lastRunAt: string | null;
|
|
326
|
+
lastRunStatus: BriefingRunStatus | string | null;
|
|
327
|
+
hasActiveRun: boolean;
|
|
328
|
+
canManage: boolean;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
updatedAt: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare type BriefingListResponse = {
|
|
334
|
+
briefings: BriefingListItem[];
|
|
335
|
+
total: number;
|
|
336
|
+
page: number;
|
|
337
|
+
pageSize: number;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
export declare type BriefingListScope = 'organization' | 'tenants';
|
|
341
|
+
|
|
342
|
+
declare type BriefingPdfOrientation = 'portrait' | 'landscape';
|
|
343
|
+
|
|
344
|
+
declare type BriefingPdfPageSize = 'letter' | 'legal' | 'a4' | 'a3' | 'tabloid';
|
|
345
|
+
|
|
346
|
+
export declare type BriefingPresentation = {
|
|
347
|
+
artifactFormats: BriefingArtifactFormat_2[];
|
|
348
|
+
includeEvidence: boolean;
|
|
349
|
+
includeSql: boolean;
|
|
350
|
+
audience?: string;
|
|
351
|
+
tone?: string;
|
|
352
|
+
format?: string;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
export declare type BriefingPreviewPlan = {
|
|
356
|
+
id: string;
|
|
357
|
+
status: 'READY';
|
|
358
|
+
generatedAt: string;
|
|
359
|
+
expiresAt: string;
|
|
360
|
+
understood: {
|
|
361
|
+
investigation: string;
|
|
362
|
+
threshold: string;
|
|
363
|
+
audience: string;
|
|
364
|
+
format: string;
|
|
365
|
+
};
|
|
366
|
+
steps: Array<{
|
|
367
|
+
order: number;
|
|
368
|
+
title: string;
|
|
369
|
+
detail: string;
|
|
370
|
+
tools: string[];
|
|
371
|
+
optional?: boolean;
|
|
372
|
+
}>;
|
|
373
|
+
scope: {
|
|
374
|
+
source: BriefingSource;
|
|
375
|
+
sourceLabel: string;
|
|
376
|
+
datasets: string[];
|
|
377
|
+
grounding?: {
|
|
378
|
+
source: 'project' | 'dashboard';
|
|
379
|
+
confidence: 'high' | 'medium' | 'low';
|
|
380
|
+
domainId?: string;
|
|
381
|
+
domainLabel?: string;
|
|
382
|
+
datasetName?: string;
|
|
383
|
+
datasetLabel?: string;
|
|
384
|
+
metric?: string;
|
|
385
|
+
dateField?: string;
|
|
386
|
+
dimensions: string[];
|
|
387
|
+
reason: string;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
estimate: {
|
|
391
|
+
runtime: string;
|
|
392
|
+
toolCalls: string;
|
|
393
|
+
};
|
|
394
|
+
ambiguities: string[];
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
export declare type BriefingPreviewRun = {
|
|
398
|
+
id: string;
|
|
399
|
+
status: BriefingRunStatus | string;
|
|
400
|
+
createdAt: string;
|
|
401
|
+
startedAt?: string | null;
|
|
402
|
+
completedAt?: string | null;
|
|
403
|
+
expiresAt: string;
|
|
404
|
+
error?: string | null;
|
|
405
|
+
planId?: string | null;
|
|
406
|
+
requestId?: string | null;
|
|
407
|
+
progress?: BriefingRunProgress | null;
|
|
408
|
+
result?: {
|
|
409
|
+
status: string;
|
|
410
|
+
title?: string;
|
|
411
|
+
summary?: string;
|
|
412
|
+
artifactPreview?: {
|
|
413
|
+
markdown?: string;
|
|
414
|
+
html?: string;
|
|
415
|
+
};
|
|
416
|
+
warnings: string[];
|
|
417
|
+
limits?: Record<string, unknown>;
|
|
418
|
+
} | null;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
export declare type BriefingRecipient = {
|
|
422
|
+
type: 'email';
|
|
423
|
+
address: string;
|
|
424
|
+
name?: string;
|
|
425
|
+
} | {
|
|
426
|
+
type: 'user';
|
|
427
|
+
userId: string;
|
|
428
|
+
} | {
|
|
429
|
+
type: 'tenant_user';
|
|
430
|
+
tenantUserId: string;
|
|
431
|
+
} | {
|
|
432
|
+
type: 'group';
|
|
433
|
+
groupId: string;
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
export declare interface BriefingRun {
|
|
437
|
+
id: string;
|
|
438
|
+
ruleId: string;
|
|
439
|
+
status: BriefingRunStatus | string;
|
|
440
|
+
scheduledFor: string;
|
|
441
|
+
startedAt?: string | null;
|
|
442
|
+
completedAt?: string | null;
|
|
443
|
+
error?: string | null;
|
|
444
|
+
requestId?: string | null;
|
|
445
|
+
attempt: number;
|
|
446
|
+
progress?: BriefingRunProgress | null;
|
|
447
|
+
result?: unknown;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export declare type BriefingRunProgress = {
|
|
451
|
+
stage: BriefingRunProgressStage;
|
|
452
|
+
label: string;
|
|
453
|
+
detail?: string;
|
|
454
|
+
eventCount: number;
|
|
455
|
+
updatedAt: string;
|
|
456
|
+
recentEvents?: Array<{
|
|
457
|
+
stage: BriefingRunProgressStage;
|
|
458
|
+
label: string;
|
|
459
|
+
updatedAt: string;
|
|
460
|
+
}>;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export declare type BriefingRunProgressStage = 'queued' | 'planning' | 'discovering' | 'inspecting' | 'querying' | 'analyzing' | 'rendering' | 'saving' | 'completed' | 'failed';
|
|
464
|
+
|
|
465
|
+
export declare type BriefingRunsResponse = {
|
|
466
|
+
runs: BriefingRun[];
|
|
467
|
+
nextCursor: string | null;
|
|
468
|
+
total: number;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
export declare type BriefingRunStatus = 'QUEUED' | 'RUNNING' | 'SUCCESS' | 'FAILED';
|
|
472
|
+
|
|
473
|
+
export declare type BriefingScopeMetadata = {
|
|
474
|
+
type: 'organization';
|
|
475
|
+
label: string;
|
|
476
|
+
tenantId: null;
|
|
477
|
+
tenantName: null;
|
|
478
|
+
} | {
|
|
479
|
+
type: 'tenant';
|
|
480
|
+
label: string;
|
|
481
|
+
tenantId: string;
|
|
482
|
+
tenantName: string | null;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
export declare type BriefingSource = {
|
|
486
|
+
type: 'project';
|
|
487
|
+
} | {
|
|
488
|
+
type: 'dashboard';
|
|
489
|
+
dashboardId: string;
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
export declare type BriefingStatus = 'ACTIVE' | 'PAUSED' | 'DISABLED';
|
|
493
|
+
|
|
494
|
+
export declare type BriefingTenantSummariesResponse = {
|
|
495
|
+
tenants: BriefingTenantSummary[];
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export declare type BriefingTenantSummary = {
|
|
499
|
+
tenantId: string;
|
|
500
|
+
tenantName: string;
|
|
501
|
+
briefingCount: number;
|
|
502
|
+
activeBriefingCount: number;
|
|
503
|
+
hasActiveRun: boolean;
|
|
504
|
+
latestRunAt: string | null;
|
|
505
|
+
latestRunStatus: BriefingRunStatus | string | null;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
declare type BriefingWebhookConfig = {
|
|
509
|
+
url: string;
|
|
510
|
+
method?: 'POST' | 'PUT';
|
|
511
|
+
headers?: Record<string, string>;
|
|
512
|
+
secretEncrypted?: string;
|
|
513
|
+
};
|
|
514
|
+
|
|
355
515
|
export declare type CacheConfig = {
|
|
356
516
|
ttl: string;
|
|
357
517
|
status: 'on' | 'on-refresh' | 'off';
|
|
@@ -452,6 +612,11 @@ export declare type CalendarContext = {
|
|
|
452
612
|
};
|
|
453
613
|
};
|
|
454
614
|
|
|
615
|
+
export declare type CancelBriefingRunResponse = {
|
|
616
|
+
run: BriefingRun;
|
|
617
|
+
transitionApplied: boolean;
|
|
618
|
+
};
|
|
619
|
+
|
|
455
620
|
export declare type CanonicalFormatSpec = NumericCanonicalFormat | DateCanonicalFormat | StringCanonicalFormat;
|
|
456
621
|
|
|
457
622
|
export declare interface CardConfig {
|
|
@@ -540,20 +705,6 @@ declare type CardWithFooter = BaseCustomCard & {
|
|
|
540
705
|
}>;
|
|
541
706
|
};
|
|
542
707
|
|
|
543
|
-
export declare type ChannelFormatConfig = {
|
|
544
|
-
formatProfile: FormatProfile;
|
|
545
|
-
subjectOverride?: string;
|
|
546
|
-
titleOverride?: string;
|
|
547
|
-
summaryOverride?: string;
|
|
548
|
-
actionBlockVisible?: boolean;
|
|
549
|
-
webhookConfig?: {
|
|
550
|
-
url: string;
|
|
551
|
-
method: string;
|
|
552
|
-
headers: Record<string, string>;
|
|
553
|
-
secretEncrypted?: string;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
|
|
557
708
|
declare type ChartAppearance = {
|
|
558
709
|
palette?: string[];
|
|
559
710
|
background?: string;
|
|
@@ -759,12 +910,6 @@ export declare type ConnectionType = 'GoogleSheets' | 'FileUpload' | 'MySQL' | '
|
|
|
759
910
|
|
|
760
911
|
export declare type ContainerId = 'groupBy' | 'metrics' | 'pivotBy' | 'sortBy' | 'detailColumns' | 'source';
|
|
761
912
|
|
|
762
|
-
export declare type ContextSource = {
|
|
763
|
-
kind: AlertContextSourceKind;
|
|
764
|
-
config: Record<string, unknown>;
|
|
765
|
-
outputAs?: string;
|
|
766
|
-
};
|
|
767
|
-
|
|
768
913
|
export declare const CONTROL_CARD_DEFAULT_VALUE: "__card_default__";
|
|
769
914
|
|
|
770
915
|
export declare type ControlBinding = {
|
|
@@ -842,25 +987,19 @@ export declare type ControlSource = {
|
|
|
842
987
|
|
|
843
988
|
export declare type ControlType = 'enum' | 'multi_enum' | 'text' | 'number' | 'boolean' | 'date' | 'field_selector' | 'metric_selector' | 'aggregation_selector' | 'grain_selector';
|
|
844
989
|
|
|
845
|
-
export declare
|
|
846
|
-
kind?: 'ALERT';
|
|
990
|
+
export declare type CreateBriefingRequest = {
|
|
847
991
|
name: string;
|
|
848
|
-
description
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
presentationPrompt?: string;
|
|
860
|
-
jobConfig?: AlertJobConfig;
|
|
861
|
-
deliveryConfig?: DeliveryConfig;
|
|
862
|
-
workflowDef?: Record<string, unknown>;
|
|
863
|
-
}
|
|
992
|
+
description: string | null;
|
|
993
|
+
status: BriefingStatus;
|
|
994
|
+
scheduleExpr: string | null;
|
|
995
|
+
timezone: string;
|
|
996
|
+
source: BriefingSource;
|
|
997
|
+
body: BriefingBody;
|
|
998
|
+
attachments: BriefingAttachment[];
|
|
999
|
+
presentation: BriefingPresentation;
|
|
1000
|
+
limits?: BriefingLimits;
|
|
1001
|
+
deliveryConfig: BriefingDeliveryConfig | null;
|
|
1002
|
+
};
|
|
864
1003
|
|
|
865
1004
|
export declare type CustomCard = CardWithContent | CardWithFooter;
|
|
866
1005
|
|
|
@@ -1063,6 +1202,7 @@ export declare type DashboardProps = {
|
|
|
1063
1202
|
currentTheme?: Theme;
|
|
1064
1203
|
version?: string;
|
|
1065
1204
|
showAssistant?: boolean;
|
|
1205
|
+
showBriefings?: boolean;
|
|
1066
1206
|
customCards?: CustomCard[];
|
|
1067
1207
|
onChartElementClicked?: (card: TCard, fieldValues: any) => void;
|
|
1068
1208
|
onEvent?: (event: TEvent) => void;
|
|
@@ -1176,12 +1316,13 @@ export declare const DEFAULT_SEMANTIC_DOMAIN_ACCESS: SemanticDomainAccess;
|
|
|
1176
1316
|
|
|
1177
1317
|
declare type DefaultDateFilter = RelativeDateFilter | FixedMonthDefaultDateFilter;
|
|
1178
1318
|
|
|
1179
|
-
export declare type
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1319
|
+
export declare type DeleteBriefingResponse = {
|
|
1320
|
+
success: boolean;
|
|
1321
|
+
deletedBriefingId?: string;
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
export declare type DeleteBriefingRunResponse = {
|
|
1325
|
+
deletedRunId: string;
|
|
1185
1326
|
};
|
|
1186
1327
|
|
|
1187
1328
|
/**
|
|
@@ -1823,8 +1964,6 @@ declare type FixedMonthDefaultDateFilter = {
|
|
|
1823
1964
|
|
|
1824
1965
|
export declare type FlatTableTotalsBehavior = 'sum' | 'avg' | 'count' | 'label';
|
|
1825
1966
|
|
|
1826
|
-
export declare type FormatProfile = 'concise' | 'balanced' | 'detailed';
|
|
1827
|
-
|
|
1828
1967
|
export declare type FormatSpec = {
|
|
1829
1968
|
type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
|
|
1830
1969
|
locale?: string;
|
|
@@ -2268,6 +2407,10 @@ export declare type Placeholders = {
|
|
|
2268
2407
|
|
|
2269
2408
|
export declare type PluginType = 'custom' | 'standard';
|
|
2270
2409
|
|
|
2410
|
+
export declare type PreviewBriefingPlanResponse = {
|
|
2411
|
+
plan: BriefingPreviewPlan;
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2271
2414
|
export declare interface QueryColumnKeyMap {
|
|
2272
2415
|
version: 1;
|
|
2273
2416
|
source: 'explorer';
|
|
@@ -2415,6 +2558,29 @@ export declare type ResolvedTokenParams = Omit<TokenParams, 'calendarContext'> &
|
|
|
2415
2558
|
calendarContext: CalendarContext;
|
|
2416
2559
|
};
|
|
2417
2560
|
|
|
2561
|
+
export declare type RunBriefingNowRequest = {
|
|
2562
|
+
requestId: string;
|
|
2563
|
+
};
|
|
2564
|
+
|
|
2565
|
+
export declare type RunBriefingNowResponse = {
|
|
2566
|
+
accepted: boolean;
|
|
2567
|
+
run: BriefingRun;
|
|
2568
|
+
transitionApplied: boolean;
|
|
2569
|
+
dispatch: BriefingDispatchResult | null;
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2572
|
+
export declare type RunBriefingPreviewRequest = {
|
|
2573
|
+
draft: CreateBriefingRequest;
|
|
2574
|
+
planId?: string | null;
|
|
2575
|
+
requestId?: string | null;
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
export declare type RunBriefingPreviewResponse = {
|
|
2579
|
+
accepted: boolean;
|
|
2580
|
+
previewRun: BriefingPreviewRun;
|
|
2581
|
+
dispatch: BriefingDispatchResult | null;
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2418
2584
|
export declare type SelectedEntities = SelectedEntity[];
|
|
2419
2585
|
|
|
2420
2586
|
export declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
|
|
@@ -2449,8 +2615,6 @@ declare type SemanticExecutionPayload = {
|
|
|
2449
2615
|
}>;
|
|
2450
2616
|
};
|
|
2451
2617
|
|
|
2452
|
-
export declare type SensitivityPreset = 'low_noise' | 'standard' | 'early_warning';
|
|
2453
|
-
|
|
2454
2618
|
export declare interface SortByField extends Field {
|
|
2455
2619
|
role: 'sortby';
|
|
2456
2620
|
direction: 'asc' | 'desc';
|
|
@@ -3690,6 +3854,12 @@ export declare type UIConfig = {
|
|
|
3690
3854
|
* If unset, runtime falls back to `showAssistant`; if both are unset, assistant is hidden.
|
|
3691
3855
|
*/
|
|
3692
3856
|
showDashboardAssistant?: boolean;
|
|
3857
|
+
/**
|
|
3858
|
+
* Controls briefing authoring visibility in the dashboard toolbar.
|
|
3859
|
+
* If set, this takes precedence over the embed prop `showBriefings`.
|
|
3860
|
+
* If unset, runtime falls back to `showBriefings`; if both are unset, briefings are visible.
|
|
3861
|
+
*/
|
|
3862
|
+
showBriefings?: boolean;
|
|
3693
3863
|
/**
|
|
3694
3864
|
* Shows the Direct Source option in the data-source selector.
|
|
3695
3865
|
* Defaults to true unless explicitly disabled.
|
|
@@ -3707,27 +3877,7 @@ export declare type UIConfig = {
|
|
|
3707
3877
|
appearance?: AppearanceSpec;
|
|
3708
3878
|
};
|
|
3709
3879
|
|
|
3710
|
-
export declare
|
|
3711
|
-
name?: string;
|
|
3712
|
-
description?: string | null;
|
|
3713
|
-
scheduleExpr?: string;
|
|
3714
|
-
timezone?: string;
|
|
3715
|
-
status?: AlertStatus;
|
|
3716
|
-
source?: AlertSource;
|
|
3717
|
-
operator?: AlertConditionOperator;
|
|
3718
|
-
threshold?: number;
|
|
3719
|
-
severity?: AlertSeverity;
|
|
3720
|
-
consecutiveCount?: number;
|
|
3721
|
-
recipients?: AlertRecipient[];
|
|
3722
|
-
channels?: AlertDeliveryChannel[];
|
|
3723
|
-
contextSources?: ContextSource[];
|
|
3724
|
-
presentationPrompt?: string;
|
|
3725
|
-
sensitivityPreset?: SensitivityPreset | null;
|
|
3726
|
-
channelConfigs?: Record<string, ChannelFormatConfig>;
|
|
3727
|
-
jobConfig?: AlertJobConfig;
|
|
3728
|
-
deliveryConfig?: DeliveryConfig;
|
|
3729
|
-
workflowDef?: Record<string, unknown> | null;
|
|
3730
|
-
}
|
|
3880
|
+
export declare type UpdateBriefingRequest = Partial<CreateBriefingRequest>;
|
|
3731
3881
|
|
|
3732
3882
|
export declare interface UpdateUserPreferenceRequest {
|
|
3733
3883
|
defaultDashboardId: string | null;
|