{"quote_capture":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"partner":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}],"description":"Partner UUID, name or @handle."},"platforms":{"description":"instagram, tiktok, youtube, twitter (x), facebook; reels and stories only when named. Default: every platform the partner has a handle on.","minItems":1,"type":"array","items":{"type":"string"}},"maxPerPartner":{"description":"Posts to fetch per handle this run (1 to 100). Default: the workspace's saved setting.","type":"integer","minimum":1,"maximum":100}},"required":["partner"]},"start_capture":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"partner":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}],"description":"Partner UUID, name or @handle."},"platforms":{"description":"instagram, tiktok, youtube, twitter (x), facebook; reels and stories only when named. Default: every platform the partner has a handle on.","minItems":1,"type":"array","items":{"type":"string"}},"maxPerPartner":{"description":"Posts to fetch per handle this run (1 to 100). Default: the workspace's saved setting.","type":"integer","minimum":1,"maximum":100},"campaign":{"description":"File the captured posts into this campaign (UUID or name; not the default campaign).","anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}]},"quotedCredits":{"type":"number","minimum":0,"description":"The quotedCredits from quote_capture that the merchant approved."}},"required":["partner","quotedCredits"]},"get_capture_status":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"runIds":{"minItems":1,"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)$"},"description":"The runIds start_capture returned."}},"required":["runIds"]},"cancel_capture_run":{"type":"object","properties":{"runId":{"type":"string","format":"uuid"}},"required":["runId"]},"get_capture_guardrails":{"type":"object","properties":{}},"get_capture_metrics":{"type":"object","properties":{}},"get_capture_queue":{"type":"object","properties":{}},"get_capture_quotes":{"type":"object","properties":{"input":{"type":"array","items":{"$ref":"#/$defs/CaptureQuoteInput"}}},"required":["input"],"$defs":{"CaptureQuoteInput":{"type":"object","properties":{"addons":{"type":"array","items":{"type":"string"}},"cap":{"type":"integer","description":"A per-target cap — prices the WORST CASE the gate holds against (a projection). Set this OR `results`."},"memoryGb":{"type":"number"},"results":{"type":"integer","description":"An exact result count. Set this OR `cap`, never neither nor both."},"runShare":{"type":"number","description":"A batch story's share of the one start fee, 0..1. Omit for a solo run or a projection."},"surface":{"type":"string","description":"A CaptureSurface key, e.g. \"instagram-reel\"."},"targets":{"type":"integer"}},"required":["surface","targets"]}}},"list_capture_runs":{"type":"object","properties":{"after":{"type":"string","description":"Read all values in the set after (below) this cursor."},"filter":{"$ref":"#/$defs/PartnerPostRunFilter","description":"A filter to be used in determining which values should be returned by the collection."},"first":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."}},"$defs":{"PartnerPostRunFilter":{"type":"object","properties":{"and":{"type":"array","items":{"$ref":"#/$defs/PartnerPostRunFilter"}},"campaignId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"createdAt":{"$ref":"#/$defs/DatetimeFilter"},"flowId":{"$ref":"#/$defs/UUIDFilter"},"not":{"$ref":"#/$defs/PartnerPostRunFilter"},"notBefore":{"$ref":"#/$defs/DatetimeFilter"},"or":{"type":"array","items":{"$ref":"#/$defs/PartnerPostRunFilter"}},"rowId":{"$ref":"#/$defs/UUIDFilter"},"sourceRunId":{"$ref":"#/$defs/StringFilter"},"status":{"$ref":"#/$defs/CaptureRunStatusFilter"},"surface":{"$ref":"#/$defs/StringFilter"},"trigger":{"$ref":"#/$defs/CaptureTriggerFilter"},"waitReason":{"$ref":"#/$defs/CaptureWaitReasonFilter"},"workspaceId":{"$ref":"#/$defs/UUIDFilter"}}},"UUIDFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"uuid"},"greaterThan":{"type":"string","format":"uuid"},"greaterThanOrEqualTo":{"type":"string","format":"uuid"},"in":{"type":"array","items":{"type":"string","format":"uuid"}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"uuid"},"lessThanOrEqualTo":{"type":"string","format":"uuid"},"notEqualTo":{"type":"string","format":"uuid"},"notIn":{"type":"array","items":{"type":"string","format":"uuid"}}}},"DatetimeFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"greaterThan":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"greaterThanOrEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"in":{"type":"array","items":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"lessThanOrEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"notEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"notIn":{"type":"array","items":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."}}}},"StringFilter":{"type":"object","properties":{"equalTo":{"type":"string"},"greaterThan":{"type":"string"},"greaterThanOrEqualTo":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"includesInsensitive":{"type":"string"},"isNull":{"type":"boolean"},"lessThan":{"type":"string"},"lessThanOrEqualTo":{"type":"string"},"notEqualTo":{"type":"string"},"notIn":{"type":"array","items":{"type":"string"}}}},"CaptureRunStatusFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]},"greaterThan":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]},"greaterThanOrEqualTo":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]},"in":{"type":"array","items":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]},"lessThanOrEqualTo":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]},"notEqualTo":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]},"notIn":{"type":"array","items":{"type":"string","enum":["completing","dispatched","empty","failed","ok","queued","settling","starting","stopped"]}}}},"CaptureTriggerFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]},"greaterThan":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]},"greaterThanOrEqualTo":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]},"in":{"type":"array","items":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]},"lessThanOrEqualTo":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]},"notEqualTo":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]},"notIn":{"type":"array","items":{"type":"string","enum":["fill","import","manual","profile_resync","refresh","reply_fetch","resync","scheduled","tracking"]}}}},"CaptureWaitReasonFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["slot","source"]},"greaterThan":{"type":"string","enum":["slot","source"]},"greaterThanOrEqualTo":{"type":"string","enum":["slot","source"]},"in":{"type":"array","items":{"type":"string","enum":["slot","source"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["slot","source"]},"lessThanOrEqualTo":{"type":"string","enum":["slot","source"]},"notEqualTo":{"type":"string","enum":["slot","source"]},"notIn":{"type":"array","items":{"type":"string","enum":["slot","source"]}}}}}},"get_capture_schedules":{"type":"object","properties":{}},"get_capture_settings":{"type":"object","properties":{}},"get_capture_unit_rate":{"type":"object","properties":{}},"delete_capture_schedule":{"type":"object","properties":{"axis":{"type":"string"},"subjectId":{"type":"string"}},"required":["axis","subjectId"]},"dispatch_hashtag_capture":{"type":"object","properties":{"campaignId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"cap":{"type":"integer","description":"Per hashtag per run — required. TikTok reads at most 800, the others 250."},"caps":{"type":"object","propertyNames":{"type":"string","enum":["instagram-hashtag","tiktok-hashtag","youtube-hashtag"]},"additionalProperties":{"type":"integer","minimum":1,"maximum":9007199254740991},"description":"Per-surface caps keyed by surface, e.g. tiktok-hashtag: 55 — a surface not listed reads cap."},"hashtags":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","description":"Instagram only: posts | reels | both (both = two runs)."},"quotedCredits":{"type":"number","description":"The flow's 'up to' as the dialog summed it. Refused with quote_changed if the sum differs."},"surfaces":{"type":"array","items":{"type":"string"},"description":"instagram-hashtag | tiktok-hashtag | youtube-hashtag"}},"required":["campaignId","cap","hashtags","surfaces"]},"dispatch_partner_capture":{"type":"object","properties":{"campaignId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"File the captured posts into this campaign (not the default campaign). Posts already held keep their campaign. A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"maxPerPartner":{"type":"integer","description":"Per-partner cap for THIS run only — the saved workspace setting is left alone."},"partnerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Narrow to specific partners; absent = every watched handle on the surface."},"partnerPinned":{"type":"boolean","description":"A human picked the partner for this run. Ingest's solo-author backfill is skipped: a deliberate assignment outranks an author string."},"postUrl":{"type":"string","description":"Target ONE post URL (with exactly one partnerId); only surfaces with a direct-URL input accept it."},"postUrls":{"type":"array","items":{"type":"string"},"description":"Target THESE known post URLs in one run; partnerIds names whose posts they are."},"quotedCredits":{"type":"number","description":"The 'up to' the dialog showed. Refused with quote_changed if the hold would differ."},"surface":{"type":"string","description":"Capture surface key, e.g. instagram-post."}},"required":["surface"]},"rerun_capture_run":{"type":"object","properties":{"runId":{"type":"string","format":"uuid"}},"required":["runId"]},"reset_workspace_tracking":{"type":"object","properties":{}},"resync_capture_run":{"type":"object","properties":{"runId":{"type":"string","format":"uuid"}},"required":["runId"]},"save_capture_schedule":{"type":"object","properties":{"axis":{"type":"string","description":"\"platform\" or \"campaign\"."},"intervalMinutes":{"type":"integer","description":"Requested spacing. Snapped up onto the 15-minute grid, then to the plan's floor."},"maxCaptures":{"type":"integer","description":"How many captures before the row completes; null runs until turned off."},"slotMinutes":{"type":"integer","description":"Anchor offset within the interval, in minutes."},"subjectId":{"type":"string","description":"Surface key on the platform axis; the campaign's id on the campaign axis."},"until":{"type":"string","description":"An ISO instant the run stops at, whichever of it and the count comes first. Null runs on the count alone."}},"required":["axis","intervalMinutes","slotMinutes","subjectId"]},"save_integration_setting":{"type":"object","properties":{"integrationSlug":{"type":"string","description":"Catalogue slug the surface belongs to, e.g. instagram."},"settings":{"description":"The settings blob. Validated against the shape that key holds."},"surface":{"type":"string","description":"Capture surface key, \"tracking\" for the tracking cadence, \"writeback\" / \"import\" for a messaging provider."}},"required":["integrationSlug","settings","surface"]}}