model

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package model defines stable deck, slide, object, media, notes, warning, validation, and report data structures shared by Puppt workflows.

Index

Constants

View Source
const SchemaVersion = "puppt.v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeItem

type ChangeItem struct {
	SlideNumber int    `json:"slide_number,omitempty"`
	ObjectID    string `json:"object_id,omitempty"`
	Message     string `json:"message"`
}

type CommandResult

type CommandResult struct {
	SchemaVersion string       `json:"schema_version"`
	Command       string       `json:"command"`
	Status        string       `json:"status"`
	Input         string       `json:"input"`
	Output        *string      `json:"output"`
	Outputs       []string     `json:"outputs,omitempty"`
	Warnings      []Warning    `json:"warnings"`
	Errors        []ErrorItem  `json:"errors"`
	Summary       Summary      `json:"summary"`
	Inspection    *Inspection  `json:"inspection,omitempty"`
	Plan          *EditPlan    `json:"plan,omitempty"`
	Changes       []ChangeItem `json:"changes,omitempty"`
	Skipped       []SkipItem   `json:"skipped,omitempty"`
	Ambiguous     []SkipItem   `json:"ambiguous,omitempty"`
	Unsupported   []SkipItem   `json:"unsupported,omitempty"`
	Validation    *Validation  `json:"validation,omitempty"`
	Render        *Render      `json:"render,omitempty"`
	Renders       []Render     `json:"renders,omitempty"`
}

CommandResult is the shared top-level JSON envelope for agent-facing output.

type EditPlan

type EditPlan struct {
	Operation              string        `json:"operation"`
	Target                 TargetSpec    `json:"target"`
	Matches                []TargetMatch `json:"matches"`
	Status                 string        `json:"status"`
	Message                string        `json:"message"`
	Replacement            string        `json:"replacement,omitempty"`
	ImagePath              string        `json:"image_path,omitempty"`
	InsertAfterSlide       int           `json:"insert_after_slide,omitempty"`
	DestinationSlideNumber int           `json:"destination_slide_number,omitempty"`
}

type EditSpec

type EditSpec struct {
	Operation              string     `json:"operation"`
	Target                 TargetSpec `json:"target"`
	Replacement            string     `json:"replacement,omitempty"`
	ImagePath              string     `json:"image_path,omitempty"`
	InsertAfterSlide       int        `json:"insert_after_slide,omitempty"`
	DestinationSlideNumber int        `json:"destination_slide_number,omitempty"`
}

type ErrorItem

type ErrorItem struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Part    string `json:"part,omitempty"`
}

type Inspection

type Inspection struct {
	PresentationPart string         `json:"presentation_part"`
	PartCount        int            `json:"part_count"`
	SlideCount       int            `json:"slide_count"`
	Metadata         Metadata       `json:"metadata"`
	Slides           []Slide        `json:"slides"`
	RepeatedText     []RepeatedText `json:"repeated_text"`
}

type MediaRef

type MediaRef struct {
	ObjectID         string `json:"object_id"`
	Kind             string `json:"kind"`
	Relationship     string `json:"relationship"`
	Target           string `json:"target"`
	ContentType      string `json:"content_type,omitempty"`
	Extension        string `json:"extension,omitempty"`
	RelationshipType string `json:"relationship_type,omitempty"`
}

type Metadata

type Metadata struct {
	Title          string `json:"title,omitempty"`
	Author         string `json:"author,omitempty"`
	Subject        string `json:"subject,omitempty"`
	Keywords       string `json:"keywords,omitempty"`
	LastModifiedBy string `json:"last_modified_by,omitempty"`
}

type Render

type Render struct {
	SlideNumber int    `json:"slide_number"`
	SlidePart   string `json:"slide_part"`
	Width       int    `json:"width"`
	Height      int    `json:"height"`
}

type RepeatedText

type RepeatedText struct {
	Text  string `json:"text"`
	Count int    `json:"count"`
}

type SkipItem

type SkipItem struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Part    string `json:"part,omitempty"`
}

type Slide

type Slide struct {
	Number      int         `json:"number"`
	ID          string      `json:"id"`
	Part        string      `json:"part"`
	Layout      string      `json:"layout,omitempty"`
	LayoutName  string      `json:"layout_name,omitempty"`
	Master      string      `json:"master,omitempty"`
	MasterName  string      `json:"master_name,omitempty"`
	Title       string      `json:"title,omitempty"`
	VisibleText []TextBlock `json:"visible_text"`
	Notes       []TextBlock `json:"notes"`
	Images      []MediaRef  `json:"images"`
	Media       []MediaRef  `json:"media"`
	Warnings    []Warning   `json:"warnings"`
}

type Summary

type Summary struct {
	Human string `json:"human"`
}

type TargetMatch

type TargetMatch struct {
	SlideNumber int    `json:"slide_number,omitempty"`
	SlideID     string `json:"slide_id,omitempty"`
	ObjectID    string `json:"object_id,omitempty"`
	Kind        string `json:"kind"`
	Text        string `json:"text,omitempty"`
	Property    string `json:"property,omitempty"`
}

type TargetSpec

type TargetSpec struct {
	Type        string `json:"type"`
	Scope       string `json:"scope,omitempty"`
	SlideNumber int    `json:"slide_number,omitempty"`
	Text        string `json:"text,omitempty"`
	ObjectID    string `json:"object_id,omitempty"`
	Property    string `json:"property,omitempty"`
}

type TextBlock

type TextBlock struct {
	ObjectID string   `json:"object_id"`
	Text     string   `json:"text"`
	Runs     []string `json:"runs"`
}

type Validation

type Validation struct {
	Valid    bool        `json:"valid"`
	Warnings []Warning   `json:"warnings"`
	Errors   []ErrorItem `json:"errors"`
}

type Warning

type Warning struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Part    string `json:"part,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL