@burdenoff/microfe-bigconsole 2026.1013.4 → 2026.1013.5

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.
@@ -0,0 +1,22 @@
1
+ /** Bind an unlinked approval to the server revision displayed on its card or preview. */
2
+ export interface ReviewedGeneration {
3
+ id: string;
4
+ status: string;
5
+ dashboardId?: string | null;
6
+ generatedSpecDigest?: string | null;
7
+ updatedAt?: string | null;
8
+ }
9
+ export type GenerationApproval = {
10
+ kind: 'view';
11
+ dashboardId: string;
12
+ } | {
13
+ kind: 'hold';
14
+ } | {
15
+ kind: 'create';
16
+ input: {
17
+ generationId: string;
18
+ expectedSpecDigest: string;
19
+ expectedUpdatedAt?: string;
20
+ };
21
+ };
22
+ export declare function generationApproval(generation: ReviewedGeneration): GenerationApproval;
@@ -0,0 +1,18 @@
1
+ //#region src/bigconsole/utils/generationApproval.ts
2
+ function e(e) {
3
+ if (e.dashboardId) return {
4
+ kind: "view",
5
+ dashboardId: e.dashboardId
6
+ };
7
+ let t = e.generatedSpecDigest;
8
+ return e.status !== "COMPLETED" || typeof t != "string" || !/^v1:sha256:[a-f0-9]{64}$/.test(t) ? { kind: "hold" } : {
9
+ kind: "create",
10
+ input: {
11
+ generationId: e.id,
12
+ expectedSpecDigest: t,
13
+ ...e.updatedAt ? { expectedUpdatedAt: e.updatedAt } : {}
14
+ }
15
+ };
16
+ }
17
+ //#endregion
18
+ export { e as generationApproval };
@@ -4300,6 +4300,7 @@ export type PromptGenerationFieldsFragment = {
4300
4300
  prompt: string;
4301
4301
  status: Types.PromptGenerationStatus;
4302
4302
  dashboardId?: string | null;
4303
+ generatedSpecDigest?: string | null;
4303
4304
  errorMessage?: string | null;
4304
4305
  createdAt: string;
4305
4306
  updatedAt: string;
@@ -4394,6 +4395,7 @@ export type GenerateDashboardFromPromptMutation = {
4394
4395
  prompt: string;
4395
4396
  status: Types.PromptGenerationStatus;
4396
4397
  dashboardId?: string | null;
4398
+ generatedSpecDigest?: string | null;
4397
4399
  errorMessage?: string | null;
4398
4400
  createdAt: string;
4399
4401
  updatedAt: string;
@@ -4452,6 +4454,7 @@ export type GetPromptGenerationQuery = {
4452
4454
  prompt: string;
4453
4455
  status: Types.PromptGenerationStatus;
4454
4456
  dashboardId?: string | null;
4457
+ generatedSpecDigest?: string | null;
4455
4458
  errorMessage?: string | null;
4456
4459
  createdAt: string;
4457
4460
  updatedAt: string;
@@ -4535,6 +4538,7 @@ export type ListPromptGenerationsQuery = {
4535
4538
  prompt: string;
4536
4539
  status: Types.PromptGenerationStatus;
4537
4540
  dashboardId?: string | null;
4541
+ generatedSpecDigest?: string | null;
4538
4542
  errorMessage?: string | null;
4539
4543
  createdAt: string;
4540
4544
  updatedAt: string;
@@ -570,6 +570,7 @@ ${b}`, S = t`
570
570
  prompt
571
571
  status
572
572
  dashboardId
573
+ generatedSpecDigest
573
574
  errorMessage
574
575
  createdAt
575
576
  updatedAt