Reproducible portable ZIP STORE composer
WHEN TO USE: Package 1–32 supplied files as exact deterministic ZIP STORE bytes, CRC32, SHA-256 and member offsets for ZIP consumers. Restricted portable ASCII paths, fixed metadata, no compression, extraction, ZIP64, encryption, links or executable permissions. Does not create office-document formats or guarantee safe consumer extraction.
structured · Operation ID: zip-store-compose
Choose this operation when
- Need exact classic ZIP STORE bytes from explicit named file data
Outside this profile
- Reading or extracting ZIP, compression, encryption, signing, ZIP64 or filesystem paths
- Creating DOCX, XLSX or EPUB semantic package formats
- Extracting archives, writing files, uploading, publishing, or changing external state
Exact release references
Static JSON contract · Markdown reference · Fixed example response
Complete input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"files": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"encoding": {
"type": "string",
"enum": [
"utf8",
"base64"
]
},
"data": {
"type": "string",
"maxLength": 80000
}
},
"required": [
"path",
"encoding",
"data"
],
"additionalProperties": false
}
}
},
"required": [
"files"
],
"additionalProperties": false
}
Complete output-envelope schema
{
"type": "object",
"required": [
"operation",
"version",
"result",
"provenance"
],
"properties": {
"operation": {
"const": "zip-store-compose",
"type": "string"
},
"version": {
"const": "0.29.0",
"type": "string"
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"encoding": {
"type": "string",
"const": "base64"
},
"archive": {
"type": "string",
"maxLength": 91808
},
"byteLength": {
"type": "integer",
"minimum": 100,
"maximum": 68854
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"manifest": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"inputIndex": {
"type": "integer",
"minimum": 0,
"maximum": 31
},
"path": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 60000
},
"crc32": {
"type": "string",
"pattern": "^[a-f0-9]{8}$"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"headerOffset": {
"type": "integer",
"minimum": 0,
"maximum": 68854
},
"dataOffset": {
"type": "integer",
"minimum": 31,
"maximum": 68854
}
},
"required": [
"inputIndex",
"path",
"byteLength",
"crc32",
"sha256",
"headerOffset",
"dataOffset"
],
"additionalProperties": false
}
}
},
"required": [
"encoding",
"archive",
"byteLength",
"sha256",
"manifest"
],
"additionalProperties": false
},
"provenance": {
"type": "object",
"required": [
"inputSha256",
"outputSha256",
"deterministic",
"externalRequests"
],
"properties": {
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"outputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"deterministic": {
"const": true
},
"externalRequests": {
"const": 0
}
}
}
},
"additionalProperties": false
}
Fixed example
One accepted fixed example, not a custom-input trial. No operation runs when this static page is requested.
Example input
{
"files": [
{
"path": "a.txt",
"encoding": "utf8",
"data": "hi\n"
}
]
}
Example response
{
"operation": "zip-store-compose",
"version": "0.29.0",
"result": {
"encoding": "base64",
"archive": "UEsDBAoAAAAAAAAAIQB6em/tAwAAAAMAAAAFAAAAYS50eHRoaQpQSwECCgAKAAAAAAAAACEAenpv7QMAAAADAAAABQAAAAAAAAAAACAAAAAAAAAAYS50eHRQSwUGAAAAAAEAAQAzAAAAJgAAAAAA",
"byteLength": 111,
"sha256": "e234d8c82aedfe28cb160a03f2862eb4737208ffb98f7695f69b4638b880a625",
"manifest": [
{
"inputIndex": 0,
"path": "a.txt",
"byteLength": 3,
"crc32": "ed6f7a7a",
"sha256": "98ea6e4f216f2fb4b69fff9b3a44842c38686ca685f3f55dc48c5d3fb1107be4",
"headerOffset": 0,
"dataOffset": 35
}
]
},
"provenance": {
"inputSha256": "466d72e01f0ff4307aa75b44e6b6878bb3d1a57ccf05469a06d81e78042cef93",
"outputSha256": "99ba12cd80aea4a9952cbbad1e4da78c8e6b25d504f525006f6cc04a3159502f",
"deterministic": true,
"externalRequests": 0
}
}
Bounds and precision
JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.
{
"global": {
"requestBytes": 131072,
"responseBytes": 524288,
"jsonDepth": 32,
"jsonNodes": 20000,
"requestsPerMinute": 60,
"paidAttemptsPerMinute": 20,
"idempotencyHours": 24
},
"operation": {
"inputBytes": 100000,
"outputBytes": 400000,
"jsonNodes": 12000,
"depth": 20,
"profile": "portable-store-zip-v1",
"files": 32,
"pathBytes": 100,
"segmentBytes": 64,
"payloadBytes": 60000,
"archiveBytes": 68854
}
}
Complete schemas, descriptions and cross-field validation may impose additional limits.
Proposed price and protocol definitions
{
"unit": "one successful operation call",
"proposedNominalUsd": "0.005",
"sixDecimalTokenBaseUnits": "5000",
"subscription": false,
"includesPayerWalletOrNetworkFees": false,
"liveQuoteVerified": false,
"condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
}
Protocol definitions: x402, mpp. MPP uses Tempo charge. Paid MCP execution is unsupported. All runtime readiness is not evaluated in this build.
API path templates, not endpoints on this documentation host
{
"x402": "/v1/x402/zip-store-compose",
"mpp": "/v1/mpp/zip-store-compose"
}
Required headers
{
"Content-Type": "application/json",
"Idempotency-Key": "random 16–128 character operation identifier"
}
Actual SDK challenge amount, asset, network, recipient and wallet costs must pass independent authorization. Preserve identical key, body, protocol and credential on retries; on PAYMENT_UNCERTAIN stop and reconcile.
Execution profile and provider conditions
{
"deterministic": true,
"externalRequests": 0,
"maxExternalRequests": 0,
"resultSnapshotPersisted": false,
"fixedExampleIsIllustrativeSnapshot": false,
"requiresPayment": true,
"supportsMcpExecution": false
}
Deterministic supplied-input operation with no external requests or stored request/result bodies. Payment infrastructure retains payment metadata and hashes.
Failure handling
- HTTP 400: Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch Correct the request before payment
- HTTP 402: Payment challenge or rejected payment Use official protocol SDK; inspect payment outcome before another payment
- HTTP 409: Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay
- HTTP 413: Input or generated output too large Reduce input; no payment attempted for validation failure
- HTTP 415: Unsupported media type or compression Send uncompressed application/json
- HTTP 422: Schema or service-specific semantic validation failure Correct input using returned error code; no payment attempted
- HTTP 429: Request/payment-attempt rate exceeded Wait for rate limit window; preserve existing payment identity
- HTTP 503: Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation
Declared requirements
Before any paid call, refresh the live operation contract and POST the complete bounded budgeted plan to the separate API's /preflight. Unknown requirements block selection; compatible preflight is not permission to spend.