{"format":"jobhunt.support.operation/v1","revision":"f77de0f4803debf8c5aaac1702865d976a380e994ea7f572d4e571c044d5495f","contract_sha256":"acfda93724db1a3f53160a30bc5891f447ad14601f26b02ff4cacd7c17d0812e","documentation_only":true,"operation":{"name":"prepare_document_bundle","description":"Prepare the exact reviewed selection as one private frozen bundle. Require expected_sources and the complete fingerprint; any changed source/identity/theme/selection fails review. Application bundles additionally require read:applications. Reuse the same request_id/account/input after interruption. The existing worker renders all members with the captured paper or fails without a partial download; later account-default changes do not alter accepted files. Shares the export limits of three active/twenty new per hour and 24-hour retention.","http":"POST /api/v1/journey/prepare_document_bundle","readOnly":false,"scopes":["read:documents"],"availability":"connected-journey","destructive":true,"implementation_sha256":"4ab2d3580acdb931ceb4fc988260f608a052202f750f7efdba49fe6e34eb60d7","input_schema_ref":"/support/contracts.json#/tools/prepare_document_bundle/inputSchema","output_schema_ref":"/support/contracts.json#/tools/prepare_document_bundle/outputSchema","required_fields":["selection","request_id","expected_sources","expected_fingerprint"]},"contract":{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Prepare document bundle"},"description":"Prepare the exact reviewed selection as one private frozen bundle. Require expected_sources and the complete fingerprint; any changed source/identity/theme/selection fails review. Application bundles additionally require read:applications. Reuse the same request_id/account/input after interruption. The existing worker renders all members with the captured paper or fails without a partial download; later account-default changes do not alter accepted files. Shares the export limits of three active/twenty new per hour and 24-hour retention.","inputSchema":{"$defs":{"ApplicationBundleSelection":{"additionalProperties":false,"properties":{"application_id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Application Id","type":"string"},"documents":{"items":{"enum":["resume","cover_only","references"],"type":"string"},"maxItems":3,"minItems":1,"title":"Documents","type":"array"},"format":{"enum":["pdf","zip","docx"],"title":"Format","type":"string"},"page_size":{"enum":["us-letter","a4"],"title":"Page Size","type":"string"},"source":{"const":"application","title":"Source","type":"string"}},"required":["source","application_id","documents","format"],"title":"ApplicationBundleSelection","type":"object"},"BundleRevision":{"additionalProperties":false,"properties":{"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"revision":{"maximum":2147483647,"minimum":1,"title":"Revision","type":"integer"}},"required":["id","revision"],"title":"BundleRevision","type":"object"},"DocumentBundleSelection":{"additionalProperties":false,"properties":{"document_id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Document Id","type":"string"},"documents":{"items":{"enum":["resume","cover_only","references"],"type":"string"},"maxItems":3,"minItems":1,"title":"Documents","type":"array"},"format":{"enum":["pdf","zip","docx"],"title":"Format","type":"string"},"page_size":{"enum":["us-letter","a4"],"title":"Page Size","type":"string"},"source":{"const":"document","title":"Source","type":"string"}},"required":["source","document_id","documents","format"],"title":"DocumentBundleSelection","type":"object"},"LibraryBundleSelection":{"additionalProperties":false,"properties":{"document_ids":{"items":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},"maxItems":50,"minItems":1,"title":"Document Ids","type":"array"},"format":{"const":"json_zip","default":"json_zip","title":"Format","type":"string"},"source":{"const":"library","title":"Source","type":"string"}},"required":["source","document_ids"],"title":"LibraryBundleSelection","type":"object"},"PackageBundleSelection":{"additionalProperties":false,"properties":{"document_ids":{"items":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},"maxItems":8,"minItems":1,"title":"Document Ids","type":"array"},"format":{"enum":["pdf","zip"],"title":"Format","type":"string"},"page_size":{"enum":["us-letter","a4"],"title":"Page Size","type":"string"},"source":{"const":"package","title":"Source","type":"string"}},"required":["source","document_ids","format"],"title":"PackageBundleSelection","type":"object"}},"additionalProperties":false,"properties":{"expected_account_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"description":"Use the verified get_connected_account ID for this intent. A changed connection is rejected before any action; never replace it automatically on retry.","title":"Expected Account Id"},"expected_fingerprint":{"pattern":"^[0-9a-f]{64}$","title":"Expected Fingerprint","type":"string"},"expected_sources":{"items":{"$ref":"#/$defs/BundleRevision"},"maxItems":50,"minItems":1,"title":"Expected Sources","type":"array"},"request_id":{"maxLength":36,"minLength":36,"title":"Request Id","type":"string"},"selection":{"discriminator":{"mapping":{"application":"#/$defs/ApplicationBundleSelection","document":"#/$defs/DocumentBundleSelection","library":"#/$defs/LibraryBundleSelection","package":"#/$defs/PackageBundleSelection"},"propertyName":"source"},"oneOf":[{"$ref":"#/$defs/DocumentBundleSelection"},{"$ref":"#/$defs/ApplicationBundleSelection"},{"$ref":"#/$defs/LibraryBundleSelection"},{"$ref":"#/$defs/PackageBundleSelection"}],"title":"Selection"}},"required":["selection","request_id","expected_sources","expected_fingerprint"],"title":"PrepareBundleExport","type":"object"},"name":"prepare_document_bundle","outputSchema":{"$defs":{"ApplicationBundleSelection":{"additionalProperties":false,"properties":{"application_id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Application Id","type":"string"},"documents":{"items":{"enum":["resume","cover_only","references"],"type":"string"},"maxItems":3,"minItems":1,"title":"Documents","type":"array"},"format":{"enum":["pdf","zip","docx"],"title":"Format","type":"string"},"page_size":{"enum":["us-letter","a4"],"title":"Page Size","type":"string"},"source":{"const":"application","title":"Source","type":"string"}},"required":["source","application_id","documents","format"],"title":"ApplicationBundleSelection","type":"object"},"BundleRevision":{"additionalProperties":false,"properties":{"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"revision":{"maximum":2147483647,"minimum":1,"title":"Revision","type":"integer"}},"required":["id","revision"],"title":"BundleRevision","type":"object"},"BundleState":{"additionalProperties":false,"properties":{"bundle_kind":{"enum":["document","application","library","package"],"title":"Bundle Kind","type":"string"},"download_name":{"maxLength":255,"minLength":1,"title":"Download Name","type":"string"},"expires_at":{"maxLength":40,"title":"Expires At","type":"string"},"fingerprint":{"pattern":"^[0-9a-f]{64}$","title":"Fingerprint","type":"string"},"format":{"enum":["pdf","docx","zip"],"title":"Format","type":"string"},"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"media_type":{"enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/zip"],"title":"Media Type","type":"string"},"members":{"items":{"maxLength":255,"minLength":1,"type":"string"},"maxItems":50,"minItems":1,"title":"Members","type":"array"},"render_date":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"Render Date","type":"string"},"selection":{"discriminator":{"mapping":{"application":"#/$defs/ApplicationBundleSelection","document":"#/$defs/DocumentBundleSelection","library":"#/$defs/LibraryBundleSelection","package":"#/$defs/PackageBundleSelection"},"propertyName":"source"},"oneOf":[{"$ref":"#/$defs/DocumentBundleSelection"},{"$ref":"#/$defs/ApplicationBundleSelection"},{"$ref":"#/$defs/LibraryBundleSelection"},{"$ref":"#/$defs/PackageBundleSelection"}],"title":"Selection"},"sha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Sha256"},"size_bytes":{"anyOf":[{"maximum":25000000,"minimum":5,"type":"integer"},{"type":"null"}],"default":null,"title":"Size Bytes"},"source":{"const":"bundle","title":"Source","type":"string"},"sources":{"items":{"$ref":"#/$defs/BundleRevision"},"maxItems":50,"minItems":1,"title":"Sources","type":"array"},"status":{"enum":["pending","running","ready","failed","cancelled","expired"],"title":"Status","type":"string"}},"required":["source","bundle_kind","selection","sources","fingerprint","format","render_date","members","download_name","id","status","expires_at","media_type"],"title":"BundleState","type":"object"},"DocumentBundleSelection":{"additionalProperties":false,"properties":{"document_id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Document Id","type":"string"},"documents":{"items":{"enum":["resume","cover_only","references"],"type":"string"},"maxItems":3,"minItems":1,"title":"Documents","type":"array"},"format":{"enum":["pdf","zip","docx"],"title":"Format","type":"string"},"page_size":{"enum":["us-letter","a4"],"title":"Page Size","type":"string"},"source":{"const":"document","title":"Source","type":"string"}},"required":["source","document_id","documents","format"],"title":"DocumentBundleSelection","type":"object"},"Failure":{"additionalProperties":false,"properties":{"code":{"enum":["authentication_required","account_changed","insufficient_scope","access_unavailable","not_found","invalid_input","revision_conflict","request_id_conflict","source_unavailable","processing_failed","rate_limited","retry_expired"],"title":"Code","type":"string"},"message":{"maxLength":1000,"minLength":1,"title":"Message","type":"string"},"retry_after_seconds":{"anyOf":[{"maximum":900,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Retry After Seconds"}},"required":["code","message"],"title":"Failure","type":"object"},"LibraryBundleSelection":{"additionalProperties":false,"properties":{"document_ids":{"items":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},"maxItems":50,"minItems":1,"title":"Document Ids","type":"array"},"format":{"const":"json_zip","default":"json_zip","title":"Format","type":"string"},"source":{"const":"library","title":"Source","type":"string"}},"required":["source","document_ids"],"title":"LibraryBundleSelection","type":"object"},"NextAction":{"additionalProperties":false,"properties":{"kind":{"enum":["read","edit","select","retry","reconnect","consent","open_website","open_employer","support","none"],"title":"Kind","type":"string"},"label":{"maxLength":255,"title":"Label","type":"string"},"record_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"title":"Record Id"}},"required":["kind","label"],"title":"NextAction","type":"object"},"Operation":{"additionalProperties":false,"properties":{"error":{"anyOf":[{"$ref":"#/$defs/Failure"},{"type":"null"}],"default":null},"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"kind":{"maxLength":100,"minLength":1,"title":"Kind","type":"string"},"resource":{"anyOf":[{"$ref":"#/$defs/Summary"},{"type":"null"}],"default":null},"retry_after_seconds":{"maximum":900,"minimum":0,"title":"Retry After Seconds","type":"integer"},"retry_expires_at":{"maxLength":40,"minLength":20,"title":"Retry Expires At","type":"string"},"status":{"enum":["pending","running","succeeded","failed"],"title":"Status","type":"string"}},"required":["id","status","kind","retry_after_seconds","retry_expires_at"],"title":"Operation","type":"object"},"PackageBundleSelection":{"additionalProperties":false,"properties":{"document_ids":{"items":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},"maxItems":8,"minItems":1,"title":"Document Ids","type":"array"},"format":{"enum":["pdf","zip"],"title":"Format","type":"string"},"page_size":{"enum":["us-letter","a4"],"title":"Page Size","type":"string"},"source":{"const":"package","title":"Source","type":"string"}},"required":["source","document_ids","format"],"title":"PackageBundleSelection","type":"object"},"Summary":{"additionalProperties":false,"properties":{"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"kind":{"enum":["application","search","document","task","interview","contact","company","note","profile","package","notification","highlight"],"title":"Kind","type":"string"},"label":{"maxLength":255,"minLength":1,"title":"Label","type":"string"},"revision":{"anyOf":[{"maximum":2147483647,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Revision"},"website_url":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}],"default":null,"title":"Website Url"}},"required":["id","kind","label","revision"],"title":"Summary","type":"object"}},"additionalProperties":false,"properties":{"data":{"anyOf":[{"$ref":"#/$defs/BundleState"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/$defs/Failure"},{"type":"null"}],"default":null},"next_action":{"$ref":"#/$defs/NextAction"},"operation":{"anyOf":[{"$ref":"#/$defs/Operation"},{"type":"null"}],"default":null},"outcome":{"enum":["ready","pending","needs_input","conflict","failed"],"title":"Outcome","type":"string"},"revision":{"anyOf":[{"maximum":2147483647,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"title":"Revision"},"website_url":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}],"default":null,"title":"Website Url"}},"required":["outcome","data","next_action"],"title":"Result[BundleState]","type":"object"},"title":"Prepare document bundle"}}