Repair structural defects in PowerPoint bytes, reporting every change as a loss.
Use describe("pptx.repair") when your code needs the complete live JSON Schemas.
At a glance
| Property | Value |
|---|---|
| Package | @runstamp/pptx |
| Domain / verb | pptx / repair |
| Customer jobs | repair, transform |
| Deterministic | Yes |
| Side effects | none |
Availability
| Local | SDK | CLI | MCP | Managed API |
|---|---|---|---|---|
| public ga | public ga | public ga | public ga | public ga |
Managed API route: POST /api/v2/operations/pptx/repair. Managed execution requires a free-trial workspace or an active Platform or Enterprise workspace, and an environment-bound API key.
Input and result
| Schema | Required fields | Optional fields |
|---|---|---|
| Input | none | none |
| Options | none | deterministic, deterministicSeed, timeoutMs, locale, lossPolicy, limits |
| Result value | bytes, mediaType, extension, byteLength, hash | none |
Every success also carries losses, diagnostics, and a hash-bound receipt.
Defaults, limits, and format constraints
Defaults
| Path | Default |
|---|---|
$.deterministic | default=true |
$.lossPolicy | default="collect" |
Formats and profiles
No separate format selector is declared. Accepted artifacts are bounded by the exact input schema.
Other limits
| Path | Constraint |
|---|---|
$.timeoutMs | minimum=1 |
$.limits.maxInputBytes | minimum=1maximum=9007199254740991 |
$.limits.maxOutputBytes | minimum=1maximum=9007199254740991 |
$.limits.maxPages | minimum=1maximum=9007199254740991 |
$.limits.maxElements | minimum=1maximum=9007199254740991 |
$.limits.maxArchiveEntries | minimum=1maximum=9007199254740991 |
$.limits.maxExpansionRatio | minimum=1 |
$.limits.maxDurationMs | exclusiveMinimum=0maximum=2147483647 |
Invoke
const input = await fetch("https://runstamp.com/demo-evidence/operation-evidence/pptx/pptx.repair/input.json").then((response) => response.json());
const result = await runstamp.run("pptx.repair", input);
if (!result.ok) throw new Error(`${result.error.code}: ${result.error.remediation}`);
console.log(result.value, result.losses, result.diagnostics, result.receipt);curl -fsS https://runstamp.com/demo-evidence/operation-evidence/pptx/pptx.repair/input.json -o input.json
npx -p @runstamp/sdk runstamp ops invoke pptx.repair --input input.json{
"tool": "runstamp_invoke_operation",
"arguments": {
"operation": "pptx.repair",
"input": "<JSON from https://runstamp.com/demo-evidence/operation-evidence/pptx/pptx.repair/input.json>",
"execution_mode": "local"
}
}Errors and losses
Declared errors (7)
common/SCHEMA_REJECTEDcommon/CONTRACT_VIOLATIONcommon/OPERATION_CANCELLEDcommon/OPERATION_TIMEOUTcommon/RESOURCE_LIMIT_EXCEEDEDcommon/INPUT_CORRUPTpptx/LOSS_POLICY_VIOLATED
Declared losses (18)
pptx/PROPERTY_NOT_RENDEREDpptx/FONT_SUBSTITUTEDpptx/FONT_EMBED_FAILEDpptx/FONT_EMBED_UNAVAILABLEpptx/TEXT_OVERFLOWS_SHAPEpptx/TABLE_CELL_OVERFLOWSpptx/CHART_DATA_MISSINGpptx/CHART_FALLBACK_MISSINGpptx/CHART_LABELS_COLLIDEpptx/VISUAL_FALLBACK_MISSINGpptx/HYPERLINK_DANGLINGpptx/ANIMATION_REFERENCE_BROKENpptx/RELATIONSHIP_TARGET_MISSINGpptx/ASSET_MISSINGpptx/BRAND_TOKEN_SUBSTITUTEDpptx/LAYOUT_SUBSTITUTEDpptx/MASTER_REFERENCE_UNRESOLVEDpptx/UNCLASSIFIED_CONDITION
SDK AbortSignal, CLI exit 130, and MCP cancellation return the typed common/OPERATION_CANCELLED failure envelope.
Verified example and exact contract
- Fixture:
icp-workflow(Board strategy PPTX with a controlled duplicate PNG content-type declaration). - Example input — SHA-256
7c1f466a3759ae4c6a81bf147268f53495cbbcca9f3ccfa25038bfd45b2e3f1f. - Example result — SHA-256
0a5ec690369c9f11734e7c350dd0de1c9786e8db4995e32297def2fa5e3ed35c. - Verified result SHA-256:
9617e692128ff5a5ad2efd0edb720fe25d5c5020cdd8ef6914db85b03ed6a3ce. - Qualification lane:
10-pptx-docx.
Contract fingerprints
- Descriptor:
e0dac8bfee2b4c9f74bc18a7d4b4eb964e62beb746748941bd033a152af6c0e7. - Input schema:
be5aae615354773b0213ceb142a132705f5f8b3c7172c6e440c1addcb489901f. - Options schema:
d7d9fd7e334e31e4f886caf027a388e38de73b52b6028150896e2a03d28e2122. - Result value schema:
73e84f12ca6fd72d728bde4136b0d7c45fe5273490d2ed01d895a153a04fef30.
The machine-readable operation reference publishes the complete schemas, qualification results, and evidence bindings for every operation.