pxengine 0.1.113 → 0.1.115
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.cjs +569 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +79 -1
- package/dist/index.d.ts +79 -1
- package/dist/index.mjs +569 -17
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +67 -1
- package/package.json +1 -1
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.
|
|
@@ -3667,6 +3725,8 @@ interface ResearchReportJobCardProps {
|
|
|
3667
3725
|
key_findings?: string[];
|
|
3668
3726
|
/** HTML report URL */
|
|
3669
3727
|
html_url?: string;
|
|
3728
|
+
/** PDF export URL (paginated print export; may be absent if PDF rendering failed) */
|
|
3729
|
+
pdf_url?: string;
|
|
3670
3730
|
/** How the report was generated: template (default) or legacy */
|
|
3671
3731
|
generation_mode?: "template" | "legacy" | string;
|
|
3672
3732
|
/** Built-in template id used to render the report */
|
|
@@ -3674,7 +3734,12 @@ interface ResearchReportJobCardProps {
|
|
|
3674
3734
|
/** Saved version id after user approval */
|
|
3675
3735
|
template_version_id?: string;
|
|
3676
3736
|
/** User review state for template-based reports */
|
|
3677
|
-
review_status?: "pending_review" | "approved" | "auto" | string;
|
|
3737
|
+
review_status?: "pending_outline_approval" | "pending_review" | "approved" | "auto" | string;
|
|
3738
|
+
/**
|
|
3739
|
+
* The planned outline (report_data) shown for approval BEFORE the report is
|
|
3740
|
+
* rendered. Present while `review_status === "pending_outline_approval"`.
|
|
3741
|
+
*/
|
|
3742
|
+
outline?: ReportOutline;
|
|
3678
3743
|
/** Dynamic theme colors generated based on topic */
|
|
3679
3744
|
theme?: ReportTheme;
|
|
3680
3745
|
/** Error message if job failed */
|
|
@@ -3694,8 +3759,20 @@ interface ResearchReportJobCardProps {
|
|
|
3694
3759
|
* Approve endpoint (POST). Defaults to `/api/reports/{job_id}/approve`.
|
|
3695
3760
|
*/
|
|
3696
3761
|
approveUrl?: string;
|
|
3762
|
+
/**
|
|
3763
|
+
* Approve-outline endpoint (POST). Defaults to
|
|
3764
|
+
* `/api/reports/{job_id}/approve-outline`. Called from the outline-review
|
|
3765
|
+
* phase to proceed to rendering the full report.
|
|
3766
|
+
*/
|
|
3767
|
+
approveOutlineUrl?: string;
|
|
3697
3768
|
/** Regenerate endpoint (POST). Defaults to `/api/reports/{job_id}/regenerate`. */
|
|
3698
3769
|
regenerateUrl?: string;
|
|
3770
|
+
/**
|
|
3771
|
+
* Hide the FINISHED-phase approve/regenerate buttons (the outline-approval
|
|
3772
|
+
* phase is unaffected). Used when a host wrapper owns those actions in its own
|
|
3773
|
+
* action bar, so the card doesn't render duplicates.
|
|
3774
|
+
*/
|
|
3775
|
+
hideApproval?: boolean;
|
|
3699
3776
|
/** Additional CSS classes */
|
|
3700
3777
|
className?: string;
|
|
3701
3778
|
/** Callback when job completes */
|
|
@@ -3720,6 +3797,7 @@ interface ResearchReportJobOutput {
|
|
|
3720
3797
|
key_findings?: string[];
|
|
3721
3798
|
theme?: ReportTheme;
|
|
3722
3799
|
html_url?: string;
|
|
3800
|
+
pdf_url?: string;
|
|
3723
3801
|
generation_mode?: string;
|
|
3724
3802
|
template_id?: string;
|
|
3725
3803
|
template_version_id?: string;
|
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.
|
|
@@ -3667,6 +3725,8 @@ interface ResearchReportJobCardProps {
|
|
|
3667
3725
|
key_findings?: string[];
|
|
3668
3726
|
/** HTML report URL */
|
|
3669
3727
|
html_url?: string;
|
|
3728
|
+
/** PDF export URL (paginated print export; may be absent if PDF rendering failed) */
|
|
3729
|
+
pdf_url?: string;
|
|
3670
3730
|
/** How the report was generated: template (default) or legacy */
|
|
3671
3731
|
generation_mode?: "template" | "legacy" | string;
|
|
3672
3732
|
/** Built-in template id used to render the report */
|
|
@@ -3674,7 +3734,12 @@ interface ResearchReportJobCardProps {
|
|
|
3674
3734
|
/** Saved version id after user approval */
|
|
3675
3735
|
template_version_id?: string;
|
|
3676
3736
|
/** User review state for template-based reports */
|
|
3677
|
-
review_status?: "pending_review" | "approved" | "auto" | string;
|
|
3737
|
+
review_status?: "pending_outline_approval" | "pending_review" | "approved" | "auto" | string;
|
|
3738
|
+
/**
|
|
3739
|
+
* The planned outline (report_data) shown for approval BEFORE the report is
|
|
3740
|
+
* rendered. Present while `review_status === "pending_outline_approval"`.
|
|
3741
|
+
*/
|
|
3742
|
+
outline?: ReportOutline;
|
|
3678
3743
|
/** Dynamic theme colors generated based on topic */
|
|
3679
3744
|
theme?: ReportTheme;
|
|
3680
3745
|
/** Error message if job failed */
|
|
@@ -3694,8 +3759,20 @@ interface ResearchReportJobCardProps {
|
|
|
3694
3759
|
* Approve endpoint (POST). Defaults to `/api/reports/{job_id}/approve`.
|
|
3695
3760
|
*/
|
|
3696
3761
|
approveUrl?: string;
|
|
3762
|
+
/**
|
|
3763
|
+
* Approve-outline endpoint (POST). Defaults to
|
|
3764
|
+
* `/api/reports/{job_id}/approve-outline`. Called from the outline-review
|
|
3765
|
+
* phase to proceed to rendering the full report.
|
|
3766
|
+
*/
|
|
3767
|
+
approveOutlineUrl?: string;
|
|
3697
3768
|
/** Regenerate endpoint (POST). Defaults to `/api/reports/{job_id}/regenerate`. */
|
|
3698
3769
|
regenerateUrl?: string;
|
|
3770
|
+
/**
|
|
3771
|
+
* Hide the FINISHED-phase approve/regenerate buttons (the outline-approval
|
|
3772
|
+
* phase is unaffected). Used when a host wrapper owns those actions in its own
|
|
3773
|
+
* action bar, so the card doesn't render duplicates.
|
|
3774
|
+
*/
|
|
3775
|
+
hideApproval?: boolean;
|
|
3699
3776
|
/** Additional CSS classes */
|
|
3700
3777
|
className?: string;
|
|
3701
3778
|
/** Callback when job completes */
|
|
@@ -3720,6 +3797,7 @@ interface ResearchReportJobOutput {
|
|
|
3720
3797
|
key_findings?: string[];
|
|
3721
3798
|
theme?: ReportTheme;
|
|
3722
3799
|
html_url?: string;
|
|
3800
|
+
pdf_url?: string;
|
|
3723
3801
|
generation_mode?: string;
|
|
3724
3802
|
template_id?: string;
|
|
3725
3803
|
template_version_id?: string;
|