pxengine 0.1.112 → 0.1.114

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/index.d.cts CHANGED
@@ -3551,6 +3551,19 @@ interface PresentationJobOutput {
3551
3551
  slide_count: number;
3552
3552
  formats: PresentationFormats;
3553
3553
  }
3554
+ /** One planned slide in a deck outline (content only, no styling). */
3555
+ interface DeckOutlineSlide {
3556
+ n?: number;
3557
+ type?: string;
3558
+ message?: string;
3559
+ [key: string]: unknown;
3560
+ }
3561
+ /** The planned deck outline (deck_plan) shown for approval before rendering. */
3562
+ interface DeckOutline {
3563
+ title?: string;
3564
+ slides?: DeckOutlineSlide[];
3565
+ [key: string]: unknown;
3566
+ }
3554
3567
  /**
3555
3568
  * Real-time progress information for long-running jobs.
3556
3569
  * Updated during AI generation, PDF/PPTX creation, and upload phases.
@@ -3578,6 +3591,19 @@ interface PresentationJobCardProps {
3578
3591
  status: "pending" | "running" | "complete" | "failed";
3579
3592
  slide_count?: number;
3580
3593
  formats?: PresentationFormats;
3594
+ /** How the deck was generated: template (default) or legacy. */
3595
+ generation_mode?: "template" | "legacy" | string;
3596
+ /** Design template id used to render the deck. */
3597
+ template_id?: string;
3598
+ /** Saved version id after the deck is approved as the standard format. */
3599
+ template_version_id?: string;
3600
+ /** User review state for template-based decks. */
3601
+ review_status?: "pending_outline_approval" | "pending_review" | "approved" | "auto" | string;
3602
+ /**
3603
+ * The planned deck outline (deck_plan) shown for approval BEFORE the deck is
3604
+ * rendered. Present while `review_status === "pending_outline_approval"`.
3605
+ */
3606
+ outline?: DeckOutline;
3581
3607
  error?: string;
3582
3608
  /** Real-time progress information (populated during pending/running) */
3583
3609
  progress?: JobProgress$2;
@@ -3597,6 +3623,23 @@ interface PresentationJobCardProps {
3597
3623
  * Falls back to `${origin}/p/{job_id}`, then formats.html_url.
3598
3624
  */
3599
3625
  shareUrl?: string;
3626
+ /**
3627
+ * Approve-standard endpoint (POST). Defaults to
3628
+ * `/api/presentations/{job_id}/approve-standard`. Locks this deck's format.
3629
+ */
3630
+ approveUrl?: string;
3631
+ /**
3632
+ * Approve-outline endpoint (POST). Defaults to
3633
+ * `/api/presentations/{job_id}/approve-outline`. Proceeds to render the deck.
3634
+ */
3635
+ approveOutlineUrl?: string;
3636
+ /** Regenerate endpoint (POST). Defaults to `/api/presentations/{job_id}/regenerate`. */
3637
+ regenerateUrl?: string;
3638
+ /**
3639
+ * Hide the FINISHED-phase approve/regenerate buttons (the outline-approval
3640
+ * phase is unaffected). Used when a host wrapper owns those actions.
3641
+ */
3642
+ hideApproval?: boolean;
3600
3643
  className?: string;
3601
3644
  /** Organization brand theme — when provided, the card adopts its colors. */
3602
3645
  theme?: WidgetTheme;
@@ -3623,6 +3666,21 @@ interface ReportTheme {
3623
3666
  secondary?: string;
3624
3667
  accent?: string;
3625
3668
  }
3669
+ /** One planned section in a report outline (content only, no styling). */
3670
+ interface ReportOutlineSection {
3671
+ heading?: string;
3672
+ body?: string;
3673
+ takeaway?: string;
3674
+ [key: string]: unknown;
3675
+ }
3676
+ /** The planned report outline (report_data) shown for approval. */
3677
+ interface ReportOutline {
3678
+ title?: string;
3679
+ subtitle?: string;
3680
+ executive_summary?: string;
3681
+ sections?: ReportOutlineSection[];
3682
+ [key: string]: unknown;
3683
+ }
3626
3684
  /**
3627
3685
  * Real-time progress information for long-running research jobs.
3628
3686
  * Updated during web search, content generation, and upload phases.
@@ -3674,7 +3732,12 @@ interface ResearchReportJobCardProps {
3674
3732
  /** Saved version id after user approval */
3675
3733
  template_version_id?: string;
3676
3734
  /** User review state for template-based reports */
3677
- review_status?: "pending_review" | "approved" | "auto" | string;
3735
+ review_status?: "pending_outline_approval" | "pending_review" | "approved" | "auto" | string;
3736
+ /**
3737
+ * The planned outline (report_data) shown for approval BEFORE the report is
3738
+ * rendered. Present while `review_status === "pending_outline_approval"`.
3739
+ */
3740
+ outline?: ReportOutline;
3678
3741
  /** Dynamic theme colors generated based on topic */
3679
3742
  theme?: ReportTheme;
3680
3743
  /** Error message if job failed */
@@ -3694,8 +3757,20 @@ interface ResearchReportJobCardProps {
3694
3757
  * Approve endpoint (POST). Defaults to `/api/reports/{job_id}/approve`.
3695
3758
  */
3696
3759
  approveUrl?: string;
3760
+ /**
3761
+ * Approve-outline endpoint (POST). Defaults to
3762
+ * `/api/reports/{job_id}/approve-outline`. Called from the outline-review
3763
+ * phase to proceed to rendering the full report.
3764
+ */
3765
+ approveOutlineUrl?: string;
3697
3766
  /** Regenerate endpoint (POST). Defaults to `/api/reports/{job_id}/regenerate`. */
3698
3767
  regenerateUrl?: string;
3768
+ /**
3769
+ * Hide the FINISHED-phase approve/regenerate buttons (the outline-approval
3770
+ * phase is unaffected). Used when a host wrapper owns those actions in its own
3771
+ * action bar, so the card doesn't render duplicates.
3772
+ */
3773
+ hideApproval?: boolean;
3699
3774
  /** Additional CSS classes */
3700
3775
  className?: string;
3701
3776
  /** Callback when job completes */
package/dist/index.d.ts CHANGED
@@ -3551,6 +3551,19 @@ interface PresentationJobOutput {
3551
3551
  slide_count: number;
3552
3552
  formats: PresentationFormats;
3553
3553
  }
3554
+ /** One planned slide in a deck outline (content only, no styling). */
3555
+ interface DeckOutlineSlide {
3556
+ n?: number;
3557
+ type?: string;
3558
+ message?: string;
3559
+ [key: string]: unknown;
3560
+ }
3561
+ /** The planned deck outline (deck_plan) shown for approval before rendering. */
3562
+ interface DeckOutline {
3563
+ title?: string;
3564
+ slides?: DeckOutlineSlide[];
3565
+ [key: string]: unknown;
3566
+ }
3554
3567
  /**
3555
3568
  * Real-time progress information for long-running jobs.
3556
3569
  * Updated during AI generation, PDF/PPTX creation, and upload phases.
@@ -3578,6 +3591,19 @@ interface PresentationJobCardProps {
3578
3591
  status: "pending" | "running" | "complete" | "failed";
3579
3592
  slide_count?: number;
3580
3593
  formats?: PresentationFormats;
3594
+ /** How the deck was generated: template (default) or legacy. */
3595
+ generation_mode?: "template" | "legacy" | string;
3596
+ /** Design template id used to render the deck. */
3597
+ template_id?: string;
3598
+ /** Saved version id after the deck is approved as the standard format. */
3599
+ template_version_id?: string;
3600
+ /** User review state for template-based decks. */
3601
+ review_status?: "pending_outline_approval" | "pending_review" | "approved" | "auto" | string;
3602
+ /**
3603
+ * The planned deck outline (deck_plan) shown for approval BEFORE the deck is
3604
+ * rendered. Present while `review_status === "pending_outline_approval"`.
3605
+ */
3606
+ outline?: DeckOutline;
3581
3607
  error?: string;
3582
3608
  /** Real-time progress information (populated during pending/running) */
3583
3609
  progress?: JobProgress$2;
@@ -3597,6 +3623,23 @@ interface PresentationJobCardProps {
3597
3623
  * Falls back to `${origin}/p/{job_id}`, then formats.html_url.
3598
3624
  */
3599
3625
  shareUrl?: string;
3626
+ /**
3627
+ * Approve-standard endpoint (POST). Defaults to
3628
+ * `/api/presentations/{job_id}/approve-standard`. Locks this deck's format.
3629
+ */
3630
+ approveUrl?: string;
3631
+ /**
3632
+ * Approve-outline endpoint (POST). Defaults to
3633
+ * `/api/presentations/{job_id}/approve-outline`. Proceeds to render the deck.
3634
+ */
3635
+ approveOutlineUrl?: string;
3636
+ /** Regenerate endpoint (POST). Defaults to `/api/presentations/{job_id}/regenerate`. */
3637
+ regenerateUrl?: string;
3638
+ /**
3639
+ * Hide the FINISHED-phase approve/regenerate buttons (the outline-approval
3640
+ * phase is unaffected). Used when a host wrapper owns those actions.
3641
+ */
3642
+ hideApproval?: boolean;
3600
3643
  className?: string;
3601
3644
  /** Organization brand theme — when provided, the card adopts its colors. */
3602
3645
  theme?: WidgetTheme;
@@ -3623,6 +3666,21 @@ interface ReportTheme {
3623
3666
  secondary?: string;
3624
3667
  accent?: string;
3625
3668
  }
3669
+ /** One planned section in a report outline (content only, no styling). */
3670
+ interface ReportOutlineSection {
3671
+ heading?: string;
3672
+ body?: string;
3673
+ takeaway?: string;
3674
+ [key: string]: unknown;
3675
+ }
3676
+ /** The planned report outline (report_data) shown for approval. */
3677
+ interface ReportOutline {
3678
+ title?: string;
3679
+ subtitle?: string;
3680
+ executive_summary?: string;
3681
+ sections?: ReportOutlineSection[];
3682
+ [key: string]: unknown;
3683
+ }
3626
3684
  /**
3627
3685
  * Real-time progress information for long-running research jobs.
3628
3686
  * Updated during web search, content generation, and upload phases.
@@ -3674,7 +3732,12 @@ interface ResearchReportJobCardProps {
3674
3732
  /** Saved version id after user approval */
3675
3733
  template_version_id?: string;
3676
3734
  /** User review state for template-based reports */
3677
- review_status?: "pending_review" | "approved" | "auto" | string;
3735
+ review_status?: "pending_outline_approval" | "pending_review" | "approved" | "auto" | string;
3736
+ /**
3737
+ * The planned outline (report_data) shown for approval BEFORE the report is
3738
+ * rendered. Present while `review_status === "pending_outline_approval"`.
3739
+ */
3740
+ outline?: ReportOutline;
3678
3741
  /** Dynamic theme colors generated based on topic */
3679
3742
  theme?: ReportTheme;
3680
3743
  /** Error message if job failed */
@@ -3694,8 +3757,20 @@ interface ResearchReportJobCardProps {
3694
3757
  * Approve endpoint (POST). Defaults to `/api/reports/{job_id}/approve`.
3695
3758
  */
3696
3759
  approveUrl?: string;
3760
+ /**
3761
+ * Approve-outline endpoint (POST). Defaults to
3762
+ * `/api/reports/{job_id}/approve-outline`. Called from the outline-review
3763
+ * phase to proceed to rendering the full report.
3764
+ */
3765
+ approveOutlineUrl?: string;
3697
3766
  /** Regenerate endpoint (POST). Defaults to `/api/reports/{job_id}/regenerate`. */
3698
3767
  regenerateUrl?: string;
3768
+ /**
3769
+ * Hide the FINISHED-phase approve/regenerate buttons (the outline-approval
3770
+ * phase is unaffected). Used when a host wrapper owns those actions in its own
3771
+ * action bar, so the card doesn't render duplicates.
3772
+ */
3773
+ hideApproval?: boolean;
3699
3774
  /** Additional CSS classes */
3700
3775
  className?: string;
3701
3776
  /** Callback when job completes */