sdkDeterministic

Upload content media

pipeline.uploadContentMedia

Upload one rendered PNG page below 3 MiB, as base64, against the saved work revision and visual specification. No hosted inference. Upload pages in order using the returned revision; finalize assembles PDFs from saved pages.

Parameters

workspaceId
string
No description.
workIdrequired
string
No description.
outputIdrequired
string
No description.
expectedRevisionrequired
integer
No description.
pageIndexrequired
integer
No description.
dataBase64required
string
No description.

Example

TypeScripttypescript
await pipeline.uploadContentMedia({
"workId": "00000000-0000-4000-8000-000000000000",
"outputId": "00000000-0000-4000-8000-000000000000",
"expectedRevision": 1,
"pageIndex": 0,
"dataBase64": "example"
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"jobId": {
"type": "string"
},
"kind": {
"type": "string"
},
"objective": {
"type": "string"
},
"publicOwner": {
"type": "string"
},
"status": {
"type": "string"
},
"currentStage": {
"type": [
"string",
"null"
]
},
"plan": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"publicOwner": {
"type": "string"
},
"internalRole": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"runId": {
"type": [
"string",
"null"
]
},
"approvalKey": {
"type": [
"string",
"null"
]
},
"artifactIds": {
"type": "array",
"items": {
"type": "string"
}
},
"blockedReason": {
"type": [
"string",
"null"
]
},
"retryable": {
"type": "boolean"
},
"startedAt": {
"type": [
"string",
"null"
]
},
"completedAt": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"stage",
"label",
"publicOwner",
"internalRole",
"status",
"runId",
"approvalKey",
"artifactIds",
"blockedReason",
"retryable",
"startedAt",
"completedAt"
],
"additionalProperties": false
}
},
"artifacts": {
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"setup": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"version": {
"type": "number",
"const": 1
},
"writingPreferences": {
"default": {},
"type": "object",
"properties": {
"voiceInstructions": {
"type": "string",
"maxLength": 20000
},
"toneKeywords": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"avoidKeywords": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"defaultPostLength": {
"type": "string",
"enum": [
"short",
"medium",
"long"
]
},
"useEmojis": {
"type": "boolean"
},
"useLineBreaks": {
"type": "boolean"
}
},
"additionalProperties": false
},
"baseTargetDigest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"knowledgeSources": {
"default": [],
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"knowledgeId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sourceId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"evidenceId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"knowledgeId",
"sourceId"
],
"additionalProperties": false
}
},
"linkedInterviewWorkIds": {
"default": [],
"maxItems": 2,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"appliedRevision": {
"default": null,
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"appliedAt": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
]
}
},
"required": [
"version",
"writingPreferences",
"baseTargetDigest",
"knowledgeSources",
"linkedInterviewWorkIds",
"appliedRevision",
"appliedAt"
],
"additionalProperties": false
},
"version": {
"type": "number"
},
"kind": {
"type": "string"
},
"executionMode": {
"type": "string",
"enum": [
"pipeline_hosted",
"external_agent"
]
},
"title": {
"type": "string"
},
"brief": {
"type": "object",
"properties": {
"voiceId": {
"type": [
"string",
"null"
]
},
"linkedinAccountId": {
"type": [
"string",
"null"
]
},
"strategyId": {
"type": [
"string",
"null"
]
},
"pillarIds": {
"type": "array",
"items": {
"type": "string"
}
},
"referenceId": {
"type": [
"string",
"null"
]
},
"offerReference": {
"type": [
"string",
"null"
]
},
"audience": {
"type": [
"string",
"null"
]
},
"goal": {
"type": [
"string",
"null"
]
},
"editorialType": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": [
"string",
"null"
]
},
"author": {
"type": [
"string",
"null"
]
},
"reader": {
"type": [
"string",
"null"
]
},
"thesis": {
"type": [
"string",
"null"
]
},
"desiredAction": {
"type": [
"string",
"null"
]
},
"promotionMode": {
"type": "string"
},
"format": {
"type": "string",
"enum": [
"text",
"infographic",
"document"
]
},
"resourceUrl": {
"type": [
"string",
"null"
]
},
"resourceAccessConfirmed": {
"type": "boolean"
},
"planFirst": {
"type": "boolean"
},
"linkedinLength": {
"type": "string"
},
"xLength": {
"type": "string"
},
"seriesCount": {
"type": "number"
},
"exportFormats": {
"type": "array",
"items": {
"type": "string"
}
},
"voiceInstructions": {
"type": [
"string",
"null"
]
},
"pillarContext": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"purpose": {
"type": "string"
}
},
"required": [
"id",
"name",
"purpose"
],
"additionalProperties": false
}
},
"workspaceContext": {
"type": "object",
"properties": {
"companyName": {
"type": [
"string",
"null"
]
},
"serviceDescription": {
"type": [
"string",
"null"
]
},
"icpSummary": {
"type": [
"string",
"null"
]
},
"positioningSummary": {
"type": [
"string",
"null"
]
},
"caseStudies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"metrics": {
"type": "string"
}
},
"required": [
"summary"
]
}
},
"leadMagnets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"name",
"description"
]
}
},
"personas": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"painPoints": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"painPoints"
],
"additionalProperties": false
}
}
},
"required": [
"companyName",
"serviceDescription",
"icpSummary",
"positioningSummary",
"personas"
],
"additionalProperties": false
}
},
"required": [
"voiceId",
"linkedinAccountId",
"strategyId",
"pillarIds",
"offerReference",
"audience",
"goal",
"editorialType",
"purpose",
"author",
"reader",
"thesis",
"desiredAction",
"promotionMode",
"linkedinLength",
"xLength",
"seriesCount",
"exportFormats"
],
"additionalProperties": false
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"pasted_text",
"content_post",
"inspiration_post",
"meeting",
"reply",
"table_aggregate",
"web_research"
]
},
"referenceId": {
"type": [
"string",
"null"
]
},
"title": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"observedAt": {
"type": [
"string",
"null"
]
},
"publicUse": {
"type": "boolean"
},
"revision": {
"type": [
"number",
"null"
]
},
"digest": {
"type": [
"string",
"null"
]
},
"available": {
"type": "boolean"
},
"stale": {
"type": "boolean"
}
},
"required": [
"id",
"kind",
"referenceId",
"title",
"excerpt",
"observedAt",
"publicUse",
"revision",
"digest",
"available",
"stale"
],
"additionalProperties": false
}
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sourceId": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"observedAt": {
"type": [
"string",
"null"
]
},
"usage": {
"type": "string",
"enum": [
"private_context",
"public_claim",
"structural_reference"
]
},
"provenance": {
"type": "string"
}
},
"required": [
"id",
"sourceId",
"excerpt",
"observedAt",
"usage",
"provenance"
],
"additionalProperties": false
}
},
"questions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"pillarId": {
"type": [
"string",
"null"
]
},
"topic": {
"type": [
"string",
"null"
]
},
"declined": {
"type": "boolean"
},
"followUpTo": {
"type": [
"string",
"null"
]
},
"prompt": {
"type": "string"
},
"answer": {
"type": [
"string",
"null"
]
},
"required": {
"type": "boolean"
}
},
"required": [
"id",
"prompt",
"answer",
"required"
],
"additionalProperties": false
}
},
"outputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"linkedin_post",
"x_post",
"newsletter",
"youtube_package",
"carousel",
"markdown_resource",
"csv_resource",
"diagnostic",
"brief",
"critique",
"response"
]
},
"title": {
"type": "string"
},
"body": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"needs_review",
"approved",
"superseded"
]
},
"sourceIds": {
"type": "array",
"items": {
"type": "string"
}
},
"sourceRevision": {
"type": "number"
},
"postId": {
"type": [
"string",
"null"
]
},
"stale": {
"type": "boolean"
},
"hookCandidates": {
"type": "array",
"items": {
"type": "string"
}
},
"selectedHook": {
"type": [
"string",
"null"
]
},
"patternId": {
"type": [
"string",
"null"
]
},
"contextSources": {
"type": [
"object",
"null"
],
"properties": {
"authorKnowledgeIds": {
"type": "array",
"items": {
"type": "string"
}
},
"voiceSampleIds": {
"type": "array",
"items": {
"type": "string"
}
},
"styleReferenceIds": {
"type": "array",
"items": {
"type": "string"
}
},
"sourceIds": {
"type": "array",
"items": {
"type": "string"
}
},
"audienceId": {
"type": [
"string",
"null"
]
},
"strategyId": {
"type": [
"string",
"null"
]
},
"strategyUpdatedAt": {
"type": [
"string",
"null"
]
},
"pillarIds": {
"type": "array",
"items": {
"type": "string"
}
},
"funnelStage": {
"type": [
"string",
"null"
]
},
"capturedAt": {
"type": "string"
},
"evidenceReviewed": {
"type": "boolean"
},
"evidenceRepaired": {
"type": "boolean"
},
"voiceBasis": {
"type": "string",
"enum": [
"approved_examples",
"instructions_only"
]
}
},
"required": [
"authorKnowledgeIds",
"voiceSampleIds",
"sourceIds",
"audienceId",
"strategyId",
"strategyUpdatedAt",
"pillarIds",
"funnelStage",
"capturedAt"
],
"additionalProperties": false
},
"idea": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"topic": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"angle": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"reader": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"buyerPurpose": {
"type": "string",
"enum": [
"reach_new_buyers",
"build_trust",
"help_buyers_decide"
]
},
"takeaway": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"authorEvidenceIds": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"missingEvidence": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"readiness": {
"type": "string",
"enum": [
"ready",
"needs_author_input"
]
}
},
"required": [
"topic",
"angle",
"reader",
"buyerPurpose",
"takeaway",
"authorEvidenceIds",
"missingEvidence",
"readiness"
],
"additionalProperties": false
},
"plannedDate": {
"type": [
"string",
"null"
],
"format": "date"
},
"quality": {
"type": [
"object",
"null"
],
"properties": {
"passed": {
"type": "boolean"
},
"normalizedPunctuation": {
"type": "array",
"items": {
"type": "string"
}
},
"hardViolations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"match": {
"type": "string"
}
},
"required": [
"code",
"match"
],
"additionalProperties": false
}
},
"structuralWarnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"code",
"detail"
],
"additionalProperties": false
}
},
"rewriteAttempted": {
"type": "boolean"
}
},
"required": [
"passed",
"normalizedPunctuation",
"hardViolations",
"structuralWarnings",
"rewriteAttempted"
],
"additionalProperties": false
},
"lineage": {
"type": [
"object",
"null"
],
"properties": {
"sourceWorkId": {
"type": [
"string",
"null"
]
},
"sourceOutputId": {
"type": [
"string",
"null"
]
},
"sourcePostId": {
"type": [
"string",
"null"
]
},
"sourceRevision": {
"type": "number"
},
"sourceDigest": {
"type": "string"
},
"stale": {
"type": "boolean"
}
},
"required": [
"sourceWorkId",
"sourceOutputId",
"sourcePostId",
"sourceRevision",
"sourceDigest",
"stale"
],
"additionalProperties": false
},
"visualSpec": {
"oneOf": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"theme": {
"default": "light",
"type": "string",
"enum": [
"light",
"dark"
]
},
"format": {
"type": "string",
"const": "infographic"
},
"pages": {
"minItems": 2,
"maxItems": 8,
"type": "array",
"items": {
"type": "object",
"properties": {
"heading": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"body": {
"type": "string",
"maxLength": 4000
}
},
"required": [
"heading",
"body"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"format",
"pages"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"theme": {
"default": "light",
"type": "string",
"enum": [
"light",
"dark"
]
},
"format": {
"type": "string",
"const": "document"
},
"pages": {
"minItems": 2,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"heading": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"body": {
"type": "string",
"maxLength": 4000
}
},
"required": [
"heading",
"body"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"format",
"pages"
],
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
},
"media": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
},
"format": {
"type": "string",
"enum": [
"infographic",
"document"
]
},
"sourceDigest": {
"type": "string"
},
"pages": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"mime": {
"type": "string",
"enum": [
"image/png",
"application/pdf"
]
},
"size": {
"type": "integer"
},
"sha256": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"pending",
"ready",
"deleting"
]
}
},
"required": [
"id",
"path",
"mime",
"size",
"sha256",
"status"
],
"additionalProperties": false
}
},
"file": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"mime": {
"type": "string",
"enum": [
"image/png",
"application/pdf"
]
},
"size": {
"type": "integer"
},
"sha256": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"pending",
"ready",
"deleting"
]
}
},
"required": [
"id",
"path",
"mime",
"size",
"sha256",
"status"
],
"additionalProperties": false
},
"approvedDigest": {
"type": [
"string",
"null"
]
},
"approvedAt": {
"type": [
"string",
"null"
]
},
"busyUntil": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"format",
"sourceDigest",
"pages",
"file",
"approvedDigest",
"approvedAt"
],
"additionalProperties": false
}
},
"required": [
"id",
"kind",
"title",
"body",
"status",
"sourceIds",
"sourceRevision",
"postId",
"stale",
"hookCandidates",
"selectedHook",
"patternId",
"quality",
"lineage"
],
"additionalProperties": false
}
},
"lineage": {
"type": [
"object",
"null"
],
"properties": {
"sourceWorkId": {
"type": [
"string",
"null"
]
},
"sourceOutputId": {
"type": [
"string",
"null"
]
},
"sourcePostId": {
"type": [
"string",
"null"
]
},
"sourceRevision": {
"type": "number"
},
"sourceDigest": {
"type": "string"
},
"stale": {
"type": "boolean"
}
},
"required": [
"sourceWorkId",
"sourceOutputId",
"sourcePostId",
"sourceRevision",
"sourceDigest",
"stale"
],
"additionalProperties": false
},
"answerRevisions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"questionId": {
"type": "string",
"format": "uuid"
},
"answer": {
"type": "string"
},
"revisedAt": {
"type": "string",
"format": "date-time"
},
"revisedBy": {
"type": [
"string",
"null"
]
}
},
"required": [
"questionId",
"answer",
"revisedAt",
"revisedBy"
],
"additionalProperties": false
}
},
"piperSessions": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uuid"
}
},
"voiceStage": {
"type": "string",
"enum": [
"interviewing",
"reviewing",
"confirmed"
]
},
"declinedTopics": {
"type": "array",
"items": {
"type": "string"
}
},
"proposedKnowledge": {
"type": "array",
"maxItems": 100,
"items": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"category": {
"type": "string",
"enum": [
"experience",
"life_fact",
"formative_experience",
"mistake",
"lesson",
"opinion",
"preference",
"boundary",
"skill",
"method",
"expertise",
"example",
"language",
"turning_point",
"value",
"mission",
"vision",
"life_goal",
"rejected_advice",
"proof"
]
},
"content": {
"type": "string",
"minLength": 1,
"maxLength": 8000
},
"sourceQuestionId": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"publicUse": {
"default": false,
"type": "boolean"
},
"approved": {
"default": false,
"type": "boolean"
},
"proof": {
"default": null,
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"version": {
"type": "number",
"const": 2
},
"sharing": {
"default": "unsure",
"type": "string",
"enum": [
"public",
"private",
"unsure"
]
},
"supportingNote": {
"type": "string",
"maxLength": 8000
},
"confirmedBy": {
"type": "string",
"minLength": 1
},
"confirmedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"attachments": {
"default": [],
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"path": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"maxLength": 255
},
"mime": {
"type": "string",
"enum": [
"image/png",
"image/jpeg",
"image/webp"
]
},
"size": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 10485760
},
"status": {
"type": "string",
"enum": [
"pending",
"ready",
"deleting"
]
}
},
"required": [
"id",
"path",
"name",
"mime",
"size",
"status"
],
"additionalProperties": false
}
}
},
"required": [
"version",
"sharing",
"confirmedBy",
"confirmedAt",
"attachments"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"value": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"period": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"source": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"clearedBy": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"clearedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
},
"required": [
"value",
"period",
"source",
"clearedBy",
"clearedAt"
],
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"category",
"content",
"sourceQuestionId",
"publicUse",
"approved",
"proof"
],
"additionalProperties": false
}
},
"pendingIntent": {
"type": [
"object",
"null"
],
"properties": {
"topic": {
"type": [
"string",
"null"
]
},
"sourceId": {
"type": [
"string",
"null"
]
},
"sourceText": {
"type": [
"string",
"null"
]
}
},
"required": [
"topic",
"sourceId",
"sourceText"
],
"additionalProperties": false
},
"previewRevision": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"interview": {
"type": "object",
"properties": {
"completed": {
"type": "boolean"
},
"stopped": {
"type": "boolean"
},
"contextual": {
"type": "boolean"
},
"topicsConfirmed": {
"type": "boolean"
}
},
"required": [
"completed",
"stopped"
],
"additionalProperties": false
},
"profileProposal": {
"type": [
"object",
"null"
],
"properties": {
"version": {
"type": "number"
},
"desiredAssociation": {
"type": "string"
},
"audience": {
"type": "string"
},
"positions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"position": {
"type": "string"
},
"reason": {
"type": "string"
},
"evidenceIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"position",
"reason",
"evidenceIds"
],
"additionalProperties": false
}
},
"approvedExperiences": {
"type": "array",
"items": {
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"evidenceIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"summary",
"evidenceIds"
],
"additionalProperties": false
}
},
"personalDetails": {
"type": "array",
"items": {
"type": "string"
}
},
"boundaries": {
"type": "array",
"items": {
"type": "string"
}
},
"styleRules": {
"type": "array",
"items": {
"type": "string"
}
},
"ownSampleIds": {
"type": "array",
"items": {
"type": "string"
}
},
"referenceIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"version",
"desiredAssociation",
"audience",
"positions",
"approvedExperiences",
"boundaries",
"styleRules",
"ownSampleIds",
"referenceIds"
],
"additionalProperties": false
},
"profileConfirmedAt": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"version",
"kind",
"executionMode",
"title",
"brief",
"sources",
"evidence",
"questions",
"outputs",
"lineage",
"interview",
"profileProposal",
"profileConfirmedAt",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"content"
],
"additionalProperties": false
},
"nextDecision": {
"type": [
"object",
"null"
],
"properties": {
"key": {
"type": "string"
},
"kind": {
"type": "string"
}
},
"required": [
"key",
"kind"
],
"additionalProperties": false
},
"idempotencyKey": {
"type": "string"
},
"revision": {
"type": "number"
},
"startedAt": {
"type": [
"string",
"null"
]
},
"completedAt": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"workspaceId",
"jobId",
"kind",
"objective",
"publicOwner",
"status",
"currentStage",
"plan",
"artifacts",
"nextDecision",
"idempotencyKey",
"revision",
"startedAt",
"completedAt",
"createdAt",
"updatedAt"
]
}
},
"required": [
"success",
"data"
],
"additionalProperties": false
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline