{"openapi":"3.1.0","info":{"title":"Square Solana API","version":"0.28.0","summary":"Square HTTP API sözleşmesi (BE-35), uygulaması apps/api (BE-18).","description":"Contract-first API sözleşmesi. Zincirdeki hesaplar, event'ler ve instruction argümanları\nBC-44 IDL'lerinden üretilen `schemas/idl.json` şemalarıyla taşınır. Elle yazılan şemalar\n`@squaresdk/solana-types` zod şemalarıyla birebir aynıdır (test: packages/types/test).\n\nJSON kodlaması: adresler base58, u64 ondalık string, 32 baytlık değerler küçük harf hex,\nzamanlar unix saniyesi, alan adları camelCase. Tüm `/v1` yanıtları `{ success, data, error, meta }`\nzarfıyla döner. Ayrıntılar: docs/design/api-sdk-contract.md.\n","license":{"name":"Apache-2.0","identifier":"Apache-2.0"}},"security":[],"tags":[{"name":"auth","description":"Cüzdan Ed25519 oturumu ve API anahtarları."},{"name":"x402","description":"Geliştiricinin x402 ücretli uç nokta tanımları ve kullanımı (FE-22, ADR 0023). Ödemeyi geliştiricinin\nsunucusu `@squaresdk/solana-x402` `paidRouteFromDefinition` ile ister ve uzlaştırılan ödemeyi bildirir.\n"},{"name":"jobs","description":"Job okuma uçları ve teslimat yükleme (adım 3–4, 6–8)."},{"name":"policies","description":"Kurum ve policy okuma uçları; policy içeriği asla API'ye gelmez (adım 1, 5)."},{"name":"agents","description":"Agent kayıtları, agent card barındırma ve A2A keşif yolu (adım 2)."},{"name":"claims","description":"Alacak piyasası okuma uçları (adım 5)."},{"name":"disputes","description":"Dispute okuma uçları, dispute kanıtı ve arbitrator oyu (BE-22)."},{"name":"arbitration","description":"Arbitrator kuyruğu ve webhook bildirim abonelikleri (BE-22)."},{"name":"screening","description":"Sanctions screening kayıtları (adım 3)."},{"name":"events","description":"İndexlenmiş zincir event'leri."},{"name":"keeper","description":"Keeper günlüğü (finalize ve lapse crank kararları)."},{"name":"travel-rule","description":"Travel Rule kaydı (adım 3, BE-23, ADR 0017). Kayıt API'de zarf şifrelemesiyle saklanır; zincire yalnızca\nsalt'lı commitment'ı gider (`commitTravelRule`). Kaydı kurumun güncel yetkilisi yazar ve izin verdiği\ncüzdanlar (karşı VASP, denetçi) okur. Kişisel veriye dokunan her işlem erişim kaydına yazılır.\n"},{"name":"cctp","description":"CCTP ile cross-chain fonlama (BE-26, docs/design/cctp-funding.md). Kurum kaynak zincirdeki burn tx'ini bir\njob'a bağlar; relayer Circle'ın attestation'ını izler. Mesaj imzalanınca kurum mint ile fonlamayı tek tx'te\nimzalar; relayer mesajı önce teslim ettiyse yalnızca fonlamayı.\n"},{"name":"fiat","description":"Stripe MPP fiat rayı (BE-25, ADR 0024, ADR 0026). Kurum teslim edilmiş fiat işi Stripe ile öder: tarayıcıda,\nkayıtlı kartla off-session ya da MPP 402 akışıyla. Square'in MPP authority'si başarılı ödemenin makbuz\ncommitment'ını işe ve tutara bağlayarak imzalar; kurum attestation'ı ispatla `verify_mpp_payment_proof`'a verir.\n"},{"name":"tx","description":"8 adımın imzasız tx hazırlığı."},{"name":"prover","description":"Uzak prover (adım 7). Güven sınırı için ProveRequest açıklamasına bakın."},{"name":"health","description":"Sağlık ve hazırlık kontrolleri."}],"paths":{"/v1/auth/challenge":{"post":{"tags":["auth"],"operationId":"createAuthChallenge","summary":"Cüzdan için imzalanacak oturum mesajı üretir.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthChallengeRequest"}}}},"responses":{"200":{"description":"İmzalanacak mesaj.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/AuthChallenge"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/auth/session":{"post":{"tags":["auth"],"operationId":"createSession","summary":"İmzalı mesajla oturum açar.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRequest"}}}},"responses":{"200":{"description":"Oturum.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/Session"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["auth"],"operationId":"deleteSession","summary":"Oturumu kapatır.","security":[{"session":[]}],"responses":{"204":{"description":"Oturum kapatıldı."},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/api-keys":{"get":{"tags":["auth"],"operationId":"listApiKeys","summary":"Oturum sahibinin API anahtarlarını listeler.","security":[{"session":[]}],"responses":{"200":{"description":"API anahtarları.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["auth"],"operationId":"createApiKey","summary":"API anahtarı oluşturur; gizli değer yalnızca bu yanıtta döner.","security":[{"session":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Oluşturulan anahtar.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/ApiKeyCreated"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/api-keys/{id}":{"delete":{"tags":["auth"],"operationId":"deleteApiKey","summary":"API anahtarını iptal eder.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","description":"API anahtarının kimliği (`listApiKeys`).","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"204":{"description":"İptal edildi."},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/x402/endpoints":{"get":{"tags":["x402"],"operationId":"listX402Endpoints","summary":"Çağıranın cüzdanına ait ücretli uç nokta tanımlarını listeler.","security":[{"session":[]},{"apiKey":[]}],"description":"Anahtarla gelen istek `x402:serve` kapsamı ister.","responses":{"200":{"description":"Tanımlar, yeniden eskiye.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/X402Endpoint"}}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["x402"],"operationId":"createX402Endpoint","summary":"Ücretli uç nokta tanımı oluşturur.","description":"Yol cüzdan başına tekildir; aynı yolda ikinci tanım 409 alır.","security":[{"session":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402EndpointCreate"}}}},"responses":{"201":{"description":"Oluşturulan tanım.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/X402Endpoint"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/x402/endpoints/{id}":{"parameters":[{"$ref":"#/components/parameters/X402EndpointPath"}],"get":{"tags":["x402"],"operationId":"getX402Endpoint","summary":"Tek ücretli uç nokta tanımı (geliştiricinin sunucusu bunu okuyarak ödeme ister).","description":"Anahtarla gelen istek `x402:serve` kapsamı ister.","security":[{"session":[]},{"apiKey":[]}],"responses":{"200":{"description":"Tanım.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/X402Endpoint"}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"patch":{"tags":["x402"],"operationId":"updateX402Endpoint","summary":"Tanımı kısmen günceller (ör. etkin / pasif, fiyat).","security":[{"session":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402EndpointUpdate"}}}},"responses":{"200":{"description":"Güncel tanım.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/X402Endpoint"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["x402"],"operationId":"deleteX402Endpoint","summary":"Tanımı ve kullanım kaydını siler.","security":[{"session":[]}],"responses":{"204":{"description":"Silindi."},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/x402/endpoints/{id}/usage":{"get":{"tags":["x402"],"operationId":"getX402EndpointUsage","summary":"Kullanım - ödemeli çağrı sayısı, tahsil edilen tutar ve son ödemeler.","description":"Anahtarla gelen istek `x402:serve` kapsamı ister.","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/X402EndpointPath"}],"responses":{"200":{"description":"Kullanım özeti.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/X402EndpointUsage"}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/x402/endpoints/{id}/payments":{"post":{"tags":["x402"],"operationId":"recordX402Payment","summary":"Geliştiricinin sunucusunun uzlaştırdığı ödemeyi kaydeder.","description":"Kayıt ödeme yükünün kimliğiyle (`fingerprint`) idempotenttir: aynı kimlik ikinci kez bildirilirse ilk kayıt\ndöner (200), yeni kayıt 201 alır. Ödemenin ağı, mint'i ve alıcısı tanımınkiyle aynı olmalıdır.\nAnahtarla gelen istek `x402:serve` kapsamı ister.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/X402EndpointPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402PaymentReport"}}}},"responses":{"200":{"description":"Bu ödeme daha önce kaydedilmiş; ilk kayıt.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/X402Payment"}}}]}}}},"201":{"description":"Kaydedilen ödeme.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/X402Payment"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/jobs":{"get":{"tags":["jobs"],"operationId":"listJobs","summary":"Job'ları filtreleyerek listeler.","parameters":[{"name":"status","in":"query","description":"Job durumu.","schema":{"$ref":"#/components/schemas/JobStatus"}},{"name":"institution","in":"query","description":"Job'u açan kurum anahtarı (`institution`; Squads vault'u da olabilir).","schema":{"$ref":"#/components/schemas/Address"}},{"name":"agentRecord","in":"query","description":"Job'un bağlı olduğu agent kaydı.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"policy","in":"query","description":"Job'un bağlı olduğu politika.","schema":{"$ref":"#/components/schemas/Address"}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı job listesi.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/JobView"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/jobs/{job}":{"get":{"tags":["jobs"],"operationId":"getJob","summary":"Tek job; payee, claim, ReleaseProof ve validation kaydıyla.","parameters":[{"$ref":"#/components/parameters/JobPath"}],"responses":{"200":{"description":"Job görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/JobView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/jobs/{job}/deliveries":{"post":{"tags":["jobs"],"operationId":"uploadDelivery","summary":"Teslimatı yükler; `submit_work` için workHash ve deliveryUri döner.","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream"}}}}}},"responses":{"201":{"description":"Yükleme makbuzu.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/DeliveryReceipt"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/institutions/{institution}":{"get":{"tags":["policies"],"operationId":"getInstitution","summary":"Kurum hesabı (square_policy `Institution`).","parameters":[{"name":"institution","in":"path","description":"Kurum hesabının (`Institution` PDA) adresi.","required":true,"schema":{"$ref":"#/components/schemas/Address"}}],"responses":{"200":{"description":"Kurum görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/InstitutionView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/policies":{"get":{"tags":["policies"],"operationId":"listPolicies","summary":"Policy hesaplarını ve herkese açık meta verilerini listeler.","parameters":[{"name":"institution","in":"query","description":"Politikanın kurum hesabı.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"active","in":"query","description":"Yalnızca etkin (`true`) ya da devre dışı (`false`) politikalar.","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı policy listesi.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PolicyView"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/policies/{policy}":{"get":{"tags":["policies"],"operationId":"getPolicy","summary":"Tek policy.","parameters":[{"$ref":"#/components/parameters/PolicyPath"}],"responses":{"200":{"description":"Policy görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/PolicyView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/policies/{policy}/meta":{"put":{"tags":["policies"],"operationId":"putPolicyMeta","summary":"Policy'nin herkese açık meta verisini yazar (kurumun güncel yetkilisi).","security":[{"session":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/PolicyPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyMeta"}}}},"responses":{"200":{"description":"Güncel policy görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/PolicyView"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/agents":{"get":{"tags":["agents"],"operationId":"listAgents","summary":"Agent kayıtlarını listeler.","parameters":[{"name":"owner","in":"query","description":"Agent kaydının sahibi.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"status","in":"query","description":"Agent kaydının durumu.","schema":{"$ref":"#/components/schemas/AgentStatus"}},{"name":"skill","in":"query","description":"Agent card'daki beceri kimliği ya da etiketi.","schema":{"type":"string","minLength":1,"maxLength":64}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı agent listesi.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgentView"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/agents/{agentRecord}":{"get":{"tags":["agents"],"operationId":"getAgent","summary":"Tek agent; DID, doğrulanmış agent card ve itibar ile.","parameters":[{"$ref":"#/components/parameters/AgentRecordPath"}],"responses":{"200":{"description":"Agent görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/AgentView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/agents/{agentRecord}/card":{"put":{"tags":["agents"],"operationId":"putAgentCard","summary":"Agent card'ı barındırır; `update_agent` için URI ve SHA-256 döner (kayıt sahibi).","security":[{"session":[]},{"apiKey":[]}],"description":"Kayıt zincirde (indexlenmiş) ise çağıran `AgentRecord.owner`'dır. Kart kayıttan önce yüklenirken\n(8 adımın 2.si) `agentId` verilir: `agentRecord`, çağıranın cüzdanı ve bu kimlikle türetilen PDA\n(`[\"agent\", owner, agent_id]`) olmalıdır. Kartın `registrations`'ı bu kaydı içermelidir. Saklanan\nbaytlar kartın RFC 8785 kanonik JSON'udur; `agentCardHash` bu baytların SHA-256'sıdır.\n","parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/AgentRecordPath"},{"name":"agentId","in":"query","description":"`register_agent`'ın `agent_id`'si; yalnızca kayıt henüz yokken gerekir.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCard"}}}},"responses":{"200":{"description":"Barındırılan kartın adresi ve hash'i.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/AgentCardHosting"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/a/{agentRecord}/.well-known/agent-card.json":{"get":{"tags":["agents"],"operationId":"getWellKnownAgentCard","summary":"A2A keşif yolu; barındırılan kartı zarfsız döner.","parameters":[{"$ref":"#/components/parameters/AgentRecordPath"}],"responses":{"200":{"description":"Agent card.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCard"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/claims":{"get":{"tags":["claims"],"operationId":"listClaims","summary":"Alacak listelemelerini listeler.","parameters":[{"name":"status","in":"query","description":"Alacak listelemesinin durumu.","schema":{"$ref":"#/components/schemas/ClaimStatus"}},{"name":"seller","in":"query","description":"Alacağı satan agent cüzdanı.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"buyer","in":"query","description":"Alacağı alan cüzdan.","schema":{"$ref":"#/components/schemas/Address"}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı listeleme.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ClaimView"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/claims/{job}":{"get":{"tags":["claims"],"operationId":"getClaim","summary":"Job'un alacak listelemesi.","parameters":[{"$ref":"#/components/parameters/JobPath"}],"responses":{"200":{"description":"Listeleme görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/ClaimView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/disputes":{"get":{"tags":["disputes"],"operationId":"listDisputes","summary":"Dispute'u olan job'ları listeler.","parameters":[{"name":"jobStatus","in":"query","description":"Dispute'lu job'un durumu (`disputed`, `resolved` …).","schema":{"$ref":"#/components/schemas/JobStatus"}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı dispute listesi.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DisputeView"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/disputes/{job}":{"get":{"tags":["disputes"],"operationId":"getDispute","summary":"Job'un dispute bilgisi.","parameters":[{"$ref":"#/components/parameters/JobPath"}],"responses":{"200":{"description":"Dispute görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/DisputeView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/jobs/{job}/dispute/evidence":{"post":{"tags":["disputes"],"operationId":"uploadDisputeEvidence","summary":"Dispute kanıtını yükler; içeriğin SHA-256'sı `raise_dispute`'un reasonHash'idir.","description":"Yükleyen job'un kurumu (dispute açılmadan önce de), agent cüzdanı ya da sahibi ve aktif arbitrator'lardır;\nagent ve arbitrator'lar dispute açıldıktan sonra yükler. İçerik özel depoda durur, yalnızca\n`listDisputeEvidence`'ın okuyanları indirir. Aynı içerik ikinci kez yüklenirse ilk kayıt döner.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream"}}}}}},"responses":{"201":{"description":"Kanıt kaydı.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/DisputeEvidence"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/disputes/{job}/evidence":{"get":{"tags":["disputes"],"operationId":"listDisputeEvidence","summary":"Job'un dispute kanıtları (kurum, agent cüzdanı / sahibi ve aktif arbitrator'lar okur).","description":"Anahtarla gelen istek `disputes:read` kapsamı ister.","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"}],"responses":{"200":{"description":"Kanıtlar, eskiden yeniye.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DisputeEvidence"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/disputes/{job}/evidence/{id}":{"get":{"tags":["disputes"],"operationId":"getDisputeEvidenceContent","summary":"Kanıtın içeriği (zarfsız; içerik tipi yüklemedeki tip).","description":"Anahtarla gelen istek `disputes:read` kapsamı ister.","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"},{"name":"id","in":"path","required":true,"description":"Kanıtın kimliği (`listDisputeEvidence`'taki `id`).","schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Kanıtın baytları.","content":{"application/octet-stream":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/disputes/{job}/votes":{"post":{"tags":["disputes"],"operationId":"prepareDisputeVote","summary":"Arbitrator oyu için imzasız `resolve_dispute` tx'i hazırlar.","description":"Ön denetimler (zincirdeki job ve escrow config'ine göre): çağıran aktif arbitrator; dispute açık ve son\ntarih geçmemiş; arbitrator bekleyen öneriye (onay ya da ret) oy vermemiş; `pending` oy değil,\n`split.agentAmount` escrow'u aşamaz. Uymayan istek 409 `conflict` ya da 400 alır. Bekleyen öneriden farklı\nbir karar ret oyudur; ret eşiği ulaşılamaz kılarsa öneri sıfırlanır (ADR 0028).\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/JobPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeVoteRequest"}}}},"responses":{"200":{"description":"İmzasız tx.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/UnsignedTx"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/SimulationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/arbitration/queue":{"get":{"tags":["arbitration"],"operationId":"getArbitrationQueue","summary":"Oturumdaki arbitrator'ın açık dispute'ları; oylar, son tarih ve kanıtlarla.","description":"Son tarihi en yakın olan önce. Çağıran aktif arbitrator değilse 403. Anahtarla gelen istek `disputes:read` kapsamı ister.","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı kuyruk.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ArbitrationQueueItem"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/arbitration/webhooks":{"get":{"tags":["arbitration"],"operationId":"listArbitrationWebhooks","summary":"Oturum sahibinin webhook abonelikleri.","security":[{"session":[]}],"responses":{"200":{"description":"Abonelikler.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ArbitrationWebhook"}}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["arbitration"],"operationId":"createArbitrationWebhook","summary":"Webhook ucu kaydeder; imza sırrı yalnızca bu yanıtta döner.","description":"Yalnızca aktif arbitrator kaydeder. Teslimat `arbitrationNotification` webhook'udur (Standard Webhooks\nimzası). Bildirimler gönderim anında aktif olan arbitrator'lara gider.\n","security":[{"session":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArbitrationWebhookCreate"}}}},"responses":{"201":{"description":"Abonelik ve sır.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/ArbitrationWebhookCreated"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/arbitration/webhooks/{id}":{"delete":{"tags":["arbitration"],"operationId":"deleteArbitrationWebhook","summary":"Aboneliği siler; bekleyen teslimatları da silinir.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Aboneliğin kimliği (`listArbitrationWebhooks`'taki `id`).","schema":{"type":"string","minLength":1}}],"responses":{"204":{"description":"Silindi."},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/screening/{wallet}":{"get":{"tags":["screening"],"operationId":"getScreening","summary":"Cüzdanın screening kaydı ve tazeliği.","parameters":[{"name":"wallet","in":"path","description":"Screening kaydının cüzdanı.","required":true,"schema":{"$ref":"#/components/schemas/Address"}}],"responses":{"200":{"description":"Screening görünümü.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/ScreeningView"}}}]}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/events":{"get":{"tags":["events"],"operationId":"listEvents","summary":"İndexlenmiş event'leri listeler.","parameters":[{"name":"job","in":"query","description":"Event'in ilgili olduğu job.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"program","in":"query","description":"Event'i yayan Square programı.","schema":{"type":"string","enum":["registry","policy","verifier","escrow"]}},{"name":"name","in":"query","description":"IDL event adı (ör. JobCreated).","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"fromSlot","in":"query","description":"Bu slot'tan (dahil) sonraki event'ler.","schema":{"type":"integer","minimum":0}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı event listesi.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/IndexedEvent"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/keeper/actions":{"get":{"tags":["keeper"],"operationId":"listKeeperActions","summary":"Keeper günlüğü (gönderilen, bekletilen ve başarısız denemeler).","parameters":[{"name":"job","in":"query","description":"Kararın job'u.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"outcome","in":"query","description":"Kararın sonucu.","schema":{"$ref":"#/components/schemas/KeeperOutcome"}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı günlük.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/KeeperAction"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/jobs/{job}/travel-rule":{"put":{"tags":["travel-rule"],"operationId":"putTravelRule","summary":"Job'un Travel Rule kaydını şifreli saklar; `commitTravelRule` için commitment döner.","description":"Yalnızca job'u açan kurumun güncel yetkilisi (anahtar ya da Squads multisig'inde öneri açabilen üye) ve\njob zincirde `Open` iken. Her yazma yeni bir salt üretir; önceki kayıt değişir. Kaydın `amount` ve\n`mint`'i job'unkiyle aynı olmalı. Fonlanan işin kaydı değişmez (409).\n","security":[{"session":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelRulePut"}}}},"responses":{"200":{"description":"Saklanan kaydın durumu.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/TravelRuleStatus"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"get":{"tags":["travel-rule"],"operationId":"getTravelRule","summary":"Kaydı, salt'ı ve commitment'ın zincirle eşleşmesini döner (kişisel veri; erişim kaydına yazılır).","description":"Kurumun güncel yetkilisi ya da süresi dolmamış, geri alınmamış izni olan cüzdan. Sunucu commitment'ı\nkayıttan yeniden hesaplar ve zincirdeki `Job.travel_rule_commitment` ile karşılaştırır. Saklama süresi\ndolup silinen kayıt 404 döner.\n","security":[{"session":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"}],"responses":{"200":{"description":"Kayıt.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/TravelRuleDisclosure"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/jobs/{job}/travel-rule/grants":{"post":{"tags":["travel-rule"],"operationId":"createTravelRuleGrant","summary":"Bir cüzdana kaydı okuma izni verir (karşı VASP, denetçi); aynı cüzdana yeniden verilirse yenilenir.","security":[{"session":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TravelRuleGrantCreate"}}}},"responses":{"201":{"description":"İzin.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/TravelRuleGrant"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/jobs/{job}/travel-rule/grants/{grantee}":{"delete":{"tags":["travel-rule"],"operationId":"deleteTravelRuleGrant","summary":"Okuma iznini geri alır.","security":[{"session":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"},{"name":"grantee","in":"path","description":"İzni geri alınan cüzdan.","required":true,"schema":{"$ref":"#/components/schemas/Address"}}],"responses":{"204":{"description":"Geri alındı."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/jobs/{job}/travel-rule/access":{"get":{"tags":["travel-rule"],"operationId":"listTravelRuleAccess","summary":"Kaydın erişim kaydı (yazma, okuma, izin, geri alma, silme), yeniden eskiye; kurumun yetkilisi.","security":[{"session":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"},{"$ref":"#/components/parameters/JobPath"},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı erişim kaydı.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TravelRuleAccess"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/cctp/transfers":{"post":{"tags":["cctp"],"operationId":"registerCctpTransfer","summary":"Kaynak zincirdeki burn tx'ini bir job'a bağlar; aynı burn yeniden kaydedilirse aynı transfer döner.","description":"Job `Open` olmalı, mint'i settlement mint'i (USDC) olmalı ve `institution`'ı isteği yapan cüzdan olmalı.\nBurn'ün mint alıcısı kurumun USDC token hesabıdır (`mintRecipient`); başka hesaba yapılan burn relayer'da\n`failed` olur. Aynı burn başka bir job'a kayıtlıysa 409.\n","security":[{"session":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CctpTransferCreate"}}}},"responses":{"200":{"description":"Bu burn bu job'a zaten kayıtlı.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/CctpTransfer"}}}]}}}},"201":{"description":"Kayıt.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/CctpTransfer"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"get":{"tags":["cctp"],"operationId":"listCctpTransfers","summary":"CCTP transferleri, yeniden eskiye.","parameters":[{"name":"job","in":"query","description":"Transferin fonlayacağı job.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"institution","in":"query","description":"Transferi kaydeden kurum anahtarı.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"status","in":"query","description":"Transferin durumu.","schema":{"$ref":"#/components/schemas/CctpTransferStatus"}},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"description":"Sayfalı transfer listesi.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CctpTransfer"}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cctp/transfers/{transfer}":{"get":{"tags":["cctp"],"operationId":"getCctpTransfer","summary":"Tek transfer; attestation'ın ve teslimin durumu.","parameters":[{"$ref":"#/components/parameters/TransferPath"}],"responses":{"200":{"description":"Transfer.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/CctpTransfer"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/cctp/transfers/{transfer}/tx":{"post":{"tags":["cctp"],"operationId":"prepareCctpFundTx","summary":"Kurumun imzalayacağı imzasız tx; mesaj teslim edilmediyse mint ile fonlama tek tx'te.","description":"Mesaj Solana'da teslim edilmediyse `receive_message` ve `fund_job` tek tx'tedir (`receiveAndFund`); relayer\nya da başkası teslim ettiyse yalnızca `fund_job` (`fund`). Kurumun USDC hesabı yoksa aynı tx'te açılır.\nTx simüle edilir; zincirde düşecek tx 422 döner. Attestation yoksa, job artık `Open` değilse ya da transfer\n`failed` ise 409.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/TransferPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CctpFundTxRequest"}}}},"responses":{"200":{"description":"İmzasız tx.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/CctpFundTx"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/SimulationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/tx":{"post":{"tags":["tx"],"operationId":"prepareTx","summary":"Bir instruction için imzasız v0 tx hazırlar (8 adımın tamamı).","description":"`call` IDL'den üretilen `InstructionCall` birleşimidir. PDA'lar IDL'deki seed bilgisinden\nsunucuda çözülür; `accounts` yalnızca imzacıları, dış hesapları ve token hesaplarını taşır.\nTx imzalanıp doğrudan RPC'ye gönderilir.\n","security":[{"session":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxRequest"}}}},"responses":{"200":{"description":"İmzasız tx.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/UnsignedTx"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/SimulationFailed"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/prove":{"post":{"tags":["prover"],"operationId":"prove","summary":"payment-compliance devresi için Groth16 ispatı üretir.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProveRequest"}}}},"responses":{"200":{"description":"İspat ve public input'lar.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/ProveResponse"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/fiat/config":{"get":{"tags":["fiat"],"operationId":"getFiatConfig","summary":"Stripe.js'in yayımlanabilir anahtarı, MPP authority'si ve MPP profil kimliği.","description":"Fiat rayı yapılandırılmamışsa 503 `payment_unavailable`.","responses":{"200":{"description":"Yapılandırma.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatConfig"}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/fiat/setup-intents":{"post":{"tags":["fiat"],"operationId":"createFiatSetupIntent","summary":"Kurumun off-session ödemesi için kart kaydı (Stripe SetupIntent).","description":"Çağıran `institution`'ın güncel yetkilisi olmalı (kurum anahtarı ya da Squads multisig'inde öneri açabilen\nüye). Kurumun Stripe müşterisi ilk çağrıda açılır. Tarayıcı `stripe.confirmCardSetup(clientSecret)` ile\nonaylar; kart `setup_intent.succeeded` webhook'uyla kaydedilir ve öncekinin yerini alır. Anahtarla gelen istek\n`fiat:pay` kapsamı ister.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/SmartAccount"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FiatSetupIntentCreate"}}}},"responses":{"201":{"description":"SetupIntent.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatSetupIntent"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/fiat/customers/{institution}":{"get":{"tags":["fiat"],"operationId":"getFiatCustomer","summary":"Kurumun Stripe müşterisi ve kayıtlı kartı.","description":"Yalnızca kurumun güncel yetkilisi; anahtarla gelen istek `fiat:pay` kapsamı ister.","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"name":"institution","in":"path","required":true,"description":"Job'ları açan kurum anahtarı (`Job.institution`).","schema":{"$ref":"#/components/schemas/Address"}},{"$ref":"#/components/parameters/SmartAccount"}],"responses":{"200":{"description":"Müşteri ve kart.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatCustomer"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/jobs/{job}/fiat/payment":{"post":{"tags":["fiat"],"operationId":"createFiatPayment","summary":"Teslim edilmiş fiat işin Stripe ödemesi (PaymentIntent).","description":"Job fiat rayında ve `Delivered` olmalı, çağıran job'un kurumunun güncel yetkilisi olmalı, işin başarılı bir\nödemesi olmamalı (409). Tutar işin tutarıdır: settlement mint'inin taban biriminden sente çevrilir; tam sent\nolmayan ya da Stripe'ın en düşük tutarının altındaki iş 400. Kurumun public günlük tavanı bu ödemeyle aşılıyorsa\n400 (`details.dailyCeiling`). Kurumun gizli politikası ödemeden önce kurumda denetlenir (ADR 0026).\n\n`offSession: false`: tarayıcıda `stripe.confirmCardPayment(clientSecret)` ile onaylanacak PaymentIntent döner;\nişin açık PaymentIntent'i yeniden kullanılır. `offSession: true`: kurumun kayıtlı kartıyla hemen öder; ödeme\ntamamlanırsa attestation aynı yanıttadır. Kart reddedilir ya da müşterinin onayı gerekirse 402\n`payment_failed` (`details.paymentIntent`, `details.declineCode`). Anahtarla gelen istek `fiat:pay` kapsamı\nister.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/JobPath"},{"$ref":"#/components/parameters/SmartAccount"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FiatPaymentCreate"}}}},"responses":{"201":{"description":"PaymentIntent (ve tamamlandıysa attestation).","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatPayment"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentFailed"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/jobs/{job}/fiat/mpp":{"post":{"tags":["fiat"],"operationId":"payFiatJobMpp","summary":"Fiat işin MPP ile ödenmesi (402 challenge, Stripe Shared Payment Token).","description":"Machine Payments Protocol: credential'sız istek 402 `payment_required` alır; challenge `WWW-Authenticate:\nPayment` başlığındadır (yöntem `stripe`, niyet `charge`, tutar işin tutarı, `networkId` Square'in Stripe\nprofili). Ödeyen SPT'yi oluşturup isteği `Authorization: Payment <credential>` ile yineler (`mppx/client`).\nSquare PaymentIntent'i SPT ile onaylar; ödeme tamamlanınca yanıt attestation'dır ve `Payment-Receipt`\nbaşlığını taşır. Kimlik `X-API-Key` (`fiat:pay`) ile gelir: `Authorization` credential'ındır. Job, yetki ve\ntutar kuralları `createFiatPayment`'takilerdir. Stripe profili yapılandırılmamışsa 503 `payment_unavailable`.\n","security":[{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/JobPath"},{"$ref":"#/components/parameters/SmartAccount"}],"responses":{"200":{"description":"Ödeme alındı; attestation.","headers":{"Payment-Receipt":{"description":"MPP makbuzu (`reference` PaymentIntent kimliği).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatAttestation"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/jobs/{job}/fiat/attestation":{"get":{"tags":["fiat"],"operationId":"getFiatAttestation","summary":"Fiat işin ödemesinin makbuzu ve MPP authority'nin attestation'ı.","description":"Yalnızca job'un kurumunun güncel yetkilisi; anahtarla gelen istek `fiat:pay` kapsamı ister. Attestation\nbaşka bir MPP authority anahtarıyla imzalanmışsa (rotasyon, upgrade runbook'u §7) güncel anahtarla yeniden\nimzalanır. Ödeme yoksa 404.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/JobPath"},{"$ref":"#/components/parameters/SmartAccount"}],"responses":{"200":{"description":"Attestation.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatAttestation"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"post":{"tags":["fiat"],"operationId":"reconcileFiatPayment","summary":"Webhook gelmediyse işin PaymentIntent'lerini Stripe'tan okuyup attestation yazar.","description":"İşin bu API'de açılmış PaymentIntent'leri Stripe'tan okunur; başarılı olan varsa attestation yazılır ve döner\n(kaynak `reconcile`). Attestation zaten varsa o döner. Başarılı ödeme yoksa 404. Yetki `getFiatAttestation`'ınkidir.\n","security":[{"session":[]},{"apiKey":[]}],"parameters":[{"$ref":"#/components/parameters/JobPath"},{"$ref":"#/components/parameters/SmartAccount"}],"responses":{"200":{"description":"Attestation.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/FiatAttestation"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/stripe/webhook":{"post":{"tags":["fiat"],"operationId":"receiveStripeWebhook","summary":"Stripe'ın imzalı olayları (`payment_intent.succeeded`, `setup_intent.succeeded`).","description":"Stripe çağırır. Gövde ham baytlarıyla `Stripe-Signature`'a (HMAC-SHA256, webhook sırrı) karşı doğrulanır;\nimzası tutmayan ya da zaman damgası 300 saniyeden eski olay 400 alır. `payment_intent.succeeded`, metadata'sında\nSquare job'u olan ödemenin attestation'ını yazar. Aynı olay ve aynı PaymentIntent yeniden gelirse kayıt\ndeğişmez. Attestation'ı olan işe gelen ikinci başarılı ödeme iade edilir. Diğer olaylar kayıtsız alınır.\n","parameters":[{"name":"Stripe-Signature","in":"header","required":true,"description":"`t=<unix>,v1=<hex HMAC>`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Stripe olay nesnesi."}}}},"responses":{"200":{"description":"Alındı.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SuccessBase"},{"properties":{"data":{"$ref":"#/components/schemas/StripeWebhookReceipt"}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/health":{"get":{"tags":["health"],"operationId":"getHealth","summary":"Süreç sağlığı (zarfsız).","responses":{"200":{"description":"Sağlık durumu.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Servis çalışmıyor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/ready":{"get":{"tags":["health"],"operationId":"getReady","summary":"Bağımlılıklar (DB, RPC) hazır mı (zarfsız).","responses":{"200":{"description":"Hazır.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Hazır değil.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}}},"webhooks":{"arbitrationNotification":{"post":{"tags":["arbitration"],"operationId":"arbitrationNotification","summary":"Arbitrator'ın kaydettiği uca gönderilen dispute bildirimi.","description":"[Standard Webhooks](https://www.standardwebhooks.com) imzası: `webhook-id` (teslimat kimliği; yeniden\ndenemelerde aynı), `webhook-timestamp` (Unix saniyesi), `webhook-signature: v1,<base64>` =\nHMAC-SHA256(sır, `id.zaman.gövde`). Alıcı `@squaresdk/solana-hardening`'in `verifyWebhook`'uyla doğrular.\n2xx dışındaki yanıt üstel geri çekilmeyle yeniden denenir.\n","parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Teslimat kimliği; yeniden denemelerde aynı kalır.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"İmzanın anı, Unix saniyesi.","schema":{"type":"string","pattern":"^[0-9]+$"}},{"name":"webhook-signature","in":"header","required":true,"description":"İmza: `v1,<base64>` = HMAC-SHA256(sır, `id.zaman.gövde`).","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArbitrationNotification"}}}},"responses":{"200":{"description":"Alındı (her 2xx teslimatı tamamlar)."},"400":{"description":"Reddedildi; teslimat yeniden denenir."}}}}},"components":{"securitySchemes":{"session":{"type":"http","scheme":"bearer","description":"`POST /v1/auth/session` ile alınan oturum belirteci."},"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"`POST /v1/api-keys` ile oluşturulan anahtar."}},"parameters":{"Page":{"name":"page","in":"query","description":"Sayfa numarası (1'den).","schema":{"type":"integer","minimum":1,"default":1}},"Limit":{"name":"limit","in":"query","description":"Sayfa başına kayıt (1–200).","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"SmartAccount":{"name":"X-Square-Smart-Account","in":"header","required":false,"description":"Smart account (Squads v4 multisig) adresi (FE-21). Verilirse çağıran, multisig'in 0 numaralı vault'u adına da yazar ve okur: kaynağın sahibi (kurum anahtarı, agent cüzdanı ya da sahibi) bu vault olabilir. Koşul, oturumun ya da API anahtarının cüzdanının multisig'te öneri açabilen (`Initiate`) bir üye olmasıdır; üyelik vault adına yapılan denetimde zincirden o anda okunur. Hesap Squads v4 multisig'i değilse ya da cüzdan Initiate yetkili üye değilse vault adına yetki verilmez (403); multisig okunamazsa 503. Geçersiz adres 400. Kayıtlara (yükleyen, erişim kaydı, `updatedBy`) cüzdan yazılır.","schema":{"$ref":"#/components/schemas/Address"}},"JobPath":{"name":"job","in":"path","required":true,"description":"Job PDA adresi.","schema":{"$ref":"#/components/schemas/Address"}},"PolicyPath":{"name":"policy","in":"path","required":true,"description":"Policy PDA adresi.","schema":{"$ref":"#/components/schemas/Address"}},"AgentRecordPath":{"name":"agentRecord","in":"path","required":true,"description":"AgentRecord PDA adresi (did:aip v2 Solana tanımlayıcısının son parçası).","schema":{"$ref":"#/components/schemas/Address"}},"TransferPath":{"name":"transfer","in":"path","required":true,"description":"CCTP transferinin kimliği.","schema":{"type":"string","format":"uuid"}},"X402EndpointPath":{"name":"id","in":"path","required":true,"description":"Ücretli uç nokta tanımının kimliği.","schema":{"type":"string","minLength":1}}},"responses":{"BadRequest":{"description":"Geçersiz istek.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Kimlik doğrulama gerekli ya da geçersiz.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Yetki yok.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Kaynak bulunamadı.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Conflict":{"description":"İstek sunucunun durumuyla çelişiyor (ör. prover'da yüklü zkey başka; `details.expected`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"RateLimited":{"description":"Hız sınırı aşıldı.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"SimulationFailed":{"description":"Tx simülasyonu başarısız; zincir hatası `programError` alanında.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"PaymentRequired":{"description":"MPP: ödeme gerekli (`payment_required`); challenge `WWW-Authenticate: Payment` başlığında.","headers":{"WWW-Authenticate":{"description":"MPP challenge'ı (yöntem `stripe`, niyet `charge`).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"PaymentFailed":{"description":"Stripe ödemeyi reddetti ya da müşterinin onayını istiyor (`payment_failed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unavailable":{"description":"Bağımlı servis kullanılamıyor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"schemas":{"ApiErrorCode":{"type":"string","enum":["invalid_input","unauthorized","forbidden","not_found","conflict","rate_limited","program_error","simulation_failed","rpc_unavailable","db_unavailable","prover_unavailable","payment_required","payment_failed","payment_unavailable","internal_error"]},"ProgramErrorRef":{"type":"object","description":"Kodlar her programda 6000'den başlar; (program, code) çifti tekildir.","required":["program","code","name"],"additionalProperties":false,"properties":{"program":{"type":"string","enum":["registry","policy","verifier","escrow"]},"code":{"type":"integer"},"name":{"type":"string"}}},"ApiError":{"type":"object","required":["code","message","programError","details"],"additionalProperties":false,"properties":{"code":{"$ref":"#/components/schemas/ApiErrorCode"},"message":{"type":"string"},"programError":{"oneOf":[{"$ref":"#/components/schemas/ProgramErrorRef"},{"type":"null"}]},"details":{"oneOf":[{"type":"object","additionalProperties":true},{"type":"null"}]}}},"ResponseMeta":{"type":"object","required":["requestId","page","limit","total"],"additionalProperties":false,"properties":{"requestId":{"type":"string"},"page":{"type":["integer","null"],"minimum":1},"limit":{"type":["integer","null"],"minimum":1,"maximum":200},"total":{"type":["integer","null"],"minimum":0}}},"SuccessBase":{"type":"object","required":["success","data","error","meta"],"properties":{"success":{"type":"boolean","const":true},"data":{},"error":{"type":"null"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"ErrorResponse":{"type":"object","required":["success","data","error","meta"],"additionalProperties":false,"properties":{"success":{"type":"boolean","const":false},"data":{"type":"null"},"error":{"$ref":"#/components/schemas/ApiError"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"JobView":{"type":"object","required":["address","account","payee","claim","releaseProof","validation","slot","indexedAt"],"additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/Address"},"account":{"$ref":"#/components/schemas/Job"},"payee":{"$ref":"#/components/schemas/Address","description":"Satılmış alacakta alıcı, değilse agentWallet."},"claim":{"oneOf":[{"$ref":"#/components/schemas/ClaimListing"},{"type":"null"}]},"releaseProof":{"oneOf":[{"$ref":"#/components/schemas/ReleaseProof"},{"type":"null"}]},"validation":{"oneOf":[{"$ref":"#/components/schemas/ValidationRecord"},{"type":"null"}]},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"InstitutionView":{"type":"object","required":["address","account","slot","indexedAt"],"additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/Address"},"account":{"$ref":"#/components/schemas/Institution"},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"PolicyMeta":{"type":"object","description":"Herkese açık meta veri; kuralların kendisi asla API'ye gelmez.","required":["name","description","labels","updatedAt"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":["string","null"],"maxLength":2000},"labels":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"updatedAt":{"type":"integer","format":"int64"}}},"PolicyView":{"type":"object","required":["address","account","meta","slot","indexedAt"],"additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/Address"},"account":{"$ref":"#/components/schemas/Policy"},"meta":{"oneOf":[{"$ref":"#/components/schemas/PolicyMeta"},{"type":"null"}]},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"AgentView":{"type":"object","required":["address","account","did","card","cardVerified","reputation","slot","indexedAt"],"additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/Address"},"account":{"$ref":"#/components/schemas/AgentRecord"},"did":{"type":"string","pattern":"^did:[a-z0-9]+:[A-Za-z0-9._:%-]+$"},"card":{"oneOf":[{"$ref":"#/components/schemas/AgentCard"},{"type":"null"}]},"cardVerified":{"type":"boolean","description":"Kartın SHA-256'sı zincirdeki agentCardHash ile eşleşiyor mu."},"reputation":{"oneOf":[{"$ref":"#/components/schemas/AgentReputation"},{"type":"null"}]},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"ClaimView":{"type":"object","required":["address","job","account","slot","indexedAt"],"additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/Address"},"job":{"$ref":"#/components/schemas/Address"},"account":{"$ref":"#/components/schemas/ClaimListing"},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"DisputeView":{"type":"object","required":["job","jobStatus","institution","agentRecord","dispute","slot","indexedAt"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"jobStatus":{"$ref":"#/components/schemas/JobStatus"},"institution":{"$ref":"#/components/schemas/Address"},"agentRecord":{"$ref":"#/components/schemas/Address"},"dispute":{"$ref":"#/components/schemas/DisputeInfo"},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"ScreeningView":{"type":"object","required":["address","account","fresh","slot","indexedAt"],"additionalProperties":false,"properties":{"address":{"$ref":"#/components/schemas/Address"},"account":{"$ref":"#/components/schemas/ScreeningRecord"},"fresh":{"type":"boolean","description":"status == clear ve expiresAt > now."},"slot":{"type":"integer","minimum":0},"indexedAt":{"type":"integer","format":"int64"}}},"AgentSkill":{"type":"object","required":["id","name","description","tags"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":2000},"tags":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"examples":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":500}}}},"AgentRegistration":{"type":"object","required":["agentRegistry","agentId"],"additionalProperties":false,"properties":{"agentRegistry":{"type":"string","description":"solana:{chain-ref}:{registry}","pattern":"^solana:[1-9A-HJ-NP-Za-km-z]{32}:[1-9A-HJ-NP-Za-km-z]{32,44}$"},"agentId":{"$ref":"#/components/schemas/Address"}}},"AgentPricing":{"type":"object","required":["skillId","amount","mint"],"additionalProperties":false,"properties":{"skillId":{"type":"string","minLength":1,"maxLength":64},"amount":{"$ref":"#/components/schemas/U64"},"mint":{"$ref":"#/components/schemas/Address"}}},"AgentCard":{"type":"object","description":"Tek kart şeması: ERC-8004 kayıt dosyası (type, services, registrations, active; did:aip v2 §5) ve A2A AgentCard (url, capabilities, skills …). services, endpoint'i url ile aynı bir A2A girdisi içerir.","required":["type","name","description","url","version","capabilities","defaultInputModes","defaultOutputModes","skills","services","registrations"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"https://eips.ethereum.org/EIPS/eip-8004#registration-v1"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":4000},"url":{"type":"string","format":"uri","pattern":"^https://"},"version":{"type":"string","minLength":1,"maxLength":32},"provider":{"type":"object","required":["organization","url"],"additionalProperties":false,"properties":{"organization":{"type":"string","minLength":1,"maxLength":120},"url":{"type":"string","format":"uri","pattern":"^https://"}}},"capabilities":{"type":"object","additionalProperties":false,"properties":{"streaming":{"type":"boolean","default":false},"pushNotifications":{"type":"boolean","default":false}}},"defaultInputModes":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"defaultOutputModes":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"skills":{"type":"array","minItems":1,"maxItems":50,"items":{"$ref":"#/components/schemas/AgentSkill"}},"services":{"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/AgentService"}},"active":{"type":"boolean","description":"false: sahip ajanı kart üzerinden duraklattı"},"x402Support":{"type":"boolean"},"registrations":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/AgentRegistration"}},"pricing":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/AgentPricing"}},"supportedInterfaces":{"type":"array","description":"A2A v1.0 istemcilerinin uç noktayı okuduğu alan; verilirse url'i kartın url'i ile aynı bir girdi içerir.","minItems":1,"maxItems":8,"items":{"$ref":"#/components/schemas/AgentInterface"}}}},"AgentInterface":{"type":"object","description":"A2A v1.0 AgentInterface. Square yalnızca JSON-RPC bağlamasını sunar.","required":["url","protocolBinding","protocolVersion"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"protocolBinding":{"type":"string","const":"JSONRPC"},"protocolVersion":{"type":"string","pattern":"^\\d{1,4}\\.\\d{1,4}$"}}},"AgentService":{"type":"object","description":"Kartın servis girdisi; DID belgesinde {did}#{name-slug} olur. endpoint bir URL ya da DID.","required":["name","endpoint"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":64},"endpoint":{"type":"string","minLength":1,"maxLength":512},"version":{"type":"string","minLength":1,"maxLength":32}}},"AgentCardHosting":{"type":"object","required":["agentCardUri","agentCardHash"],"additionalProperties":false,"properties":{"agentCardUri":{"type":"string","minLength":1,"maxLength":200,"description":"update_agent argümanı"},"agentCardHash":{"$ref":"#/components/schemas/Hex32"}}},"IndexedEvent":{"type":"object","required":["signature","slot","blockTime","instructionIndex","eventIndex","payload"],"additionalProperties":false,"properties":{"signature":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"slot":{"type":"integer","minimum":0},"blockTime":{"type":["integer","null"],"format":"int64"},"instructionIndex":{"type":"integer","minimum":0},"eventIndex":{"type":"integer","minimum":0},"payload":{"$ref":"#/components/schemas/ProgramEventPayload"}}},"AuthChallengeRequest":{"type":"object","required":["wallet"],"additionalProperties":false,"properties":{"wallet":{"$ref":"#/components/schemas/Address"}}},"AuthChallenge":{"type":"object","required":["nonce","message","expiresAt"],"additionalProperties":false,"properties":{"nonce":{"type":"string","minLength":16},"message":{"type":"string","minLength":1,"description":"Cüzdanın imzalayacağı tam metin."},"expiresAt":{"type":"integer","format":"int64"}}},"SessionRequest":{"type":"object","required":["wallet","nonce","signature"],"additionalProperties":false,"properties":{"wallet":{"$ref":"#/components/schemas/Address"},"nonce":{"type":"string","minLength":16},"signature":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$","description":"Ed25519 imzası, base58."}}},"Session":{"type":"object","required":["token","wallet","expiresAt"],"additionalProperties":false,"properties":{"token":{"type":"string","minLength":1},"wallet":{"$ref":"#/components/schemas/Address"},"expiresAt":{"type":"integer","format":"int64"}}},"ApiKeyScope":{"type":"string","enum":["read","tx:prepare","deliveries:write","agents:write","prove","disputes:write","x402:serve","fiat:pay","disputes:read"]},"ApiKey":{"type":"object","required":["id","label","prefix","scopes","createdAt","lastUsedAt"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":80},"prefix":{"type":"string","minLength":4,"maxLength":16},"scopes":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/ApiKeyScope"}},"createdAt":{"type":"integer","format":"int64"},"lastUsedAt":{"type":["integer","null"],"format":"int64"}}},"ApiKeyCreate":{"type":"object","required":["label","scopes"],"additionalProperties":false,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"scopes":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/ApiKeyScope"}}}},"ApiKeyCreated":{"type":"object","required":["apiKey","secret"],"additionalProperties":false,"properties":{"apiKey":{"$ref":"#/components/schemas/ApiKey"},"secret":{"type":"string","minLength":32,"description":"Yalnızca bu yanıtta döner."}}},"X402Network":{"type":"string","description":"x402 v2 Solana ağı (CAIP-2) - mainnet, devnet, testnet.","enum":["solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"]},"X402Path":{"type":"string","maxLength":200,"pattern":"^/[A-Za-z0-9._~!$&'()*+,;=:@%/-]*$","description":"Geliştiricinin sunucusundaki route yolu; cüzdan başına tekil."},"X402Endpoint":{"type":"object","required":["id","name","path","description","amount","mint","network","payTo","enabled","createdAt","updatedAt"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":80},"path":{"$ref":"#/components/schemas/X402Path"},"description":{"type":["string","null"],"maxLength":500},"amount":{"allOf":[{"$ref":"#/components/schemas/U64"}],"description":"Çağrı başına fiyat, mint'in taban biriminde; sıfırdan büyük."},"mint":{"$ref":"#/components/schemas/Address"},"network":{"$ref":"#/components/schemas/X402Network"},"payTo":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Ödemeyi alan cüzdan (ATA'sı mint'e göre türetilir)."},"enabled":{"type":"boolean","description":"Pasif uç nokta ödeme istemez ve çağrıyı geçirmez."},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"}}},"X402EndpointCreate":{"type":"object","required":["name","path","description","amount","mint","network","payTo","enabled"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":80},"path":{"$ref":"#/components/schemas/X402Path"},"description":{"type":["string","null"],"maxLength":500},"amount":{"$ref":"#/components/schemas/U64"},"mint":{"$ref":"#/components/schemas/Address"},"network":{"$ref":"#/components/schemas/X402Network"},"payTo":{"$ref":"#/components/schemas/Address"},"enabled":{"type":"boolean"}}},"X402EndpointUpdate":{"type":"object","description":"Kısmi güncelleme; verilmeyen alan değişmez.","minProperties":1,"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":80},"path":{"$ref":"#/components/schemas/X402Path"},"description":{"type":["string","null"],"maxLength":500},"amount":{"$ref":"#/components/schemas/U64"},"mint":{"$ref":"#/components/schemas/Address"},"network":{"$ref":"#/components/schemas/X402Network"},"payTo":{"$ref":"#/components/schemas/Address"},"enabled":{"type":"boolean"}}},"X402PaymentReport":{"type":"object","required":["fingerprint","transaction","network","asset","amount","payer","payTo","settledAt"],"additionalProperties":false,"properties":{"fingerprint":{"type":"string","pattern":"^(svm|json):[0-9a-f]{64}$","description":"Ödeme yükünün tekrar koruması kimliği (`paymentFingerprint`); ağ başına tekil."},"transaction":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$","description":"Uzlaştırma makbuzunun (`PAYMENT-RESPONSE`) işlem imzası."},"network":{"$ref":"#/components/schemas/X402Network"},"asset":{"$ref":"#/components/schemas/Address"},"amount":{"$ref":"#/components/schemas/U64"},"payer":{"$ref":"#/components/schemas/Address"},"payTo":{"$ref":"#/components/schemas/Address"},"settledAt":{"type":"integer","format":"int64"}}},"X402Payment":{"type":"object","required":["id","endpointId","fingerprint","transaction","network","asset","amount","payer","payTo","settledAt","reportedAt"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"endpointId":{"type":"string","minLength":1},"fingerprint":{"type":"string","pattern":"^(svm|json):[0-9a-f]{64}$"},"transaction":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"network":{"$ref":"#/components/schemas/X402Network"},"asset":{"$ref":"#/components/schemas/Address"},"amount":{"$ref":"#/components/schemas/U64"},"payer":{"$ref":"#/components/schemas/Address"},"payTo":{"$ref":"#/components/schemas/Address"},"settledAt":{"type":"integer","format":"int64"},"reportedAt":{"type":"integer","format":"int64"}}},"X402UsageTotal":{"type":"object","required":["network","asset","amount","payments"],"additionalProperties":false,"properties":{"network":{"$ref":"#/components/schemas/X402Network"},"asset":{"$ref":"#/components/schemas/Address"},"amount":{"$ref":"#/components/schemas/U64"},"payments":{"type":"integer","minimum":0}}},"X402EndpointUsage":{"type":"object","required":["endpointId","payments","totals","lastPaidAt","recent"],"additionalProperties":false,"properties":{"endpointId":{"type":"string","minLength":1},"payments":{"type":"integer","minimum":0,"description":"Uzlaştırılmış (ödemeli) çağrı sayısı."},"totals":{"type":"array","description":"Ağ ve mint başına tahsil edilen toplam.","items":{"$ref":"#/components/schemas/X402UsageTotal"}},"lastPaidAt":{"type":["integer","null"],"format":"int64"},"recent":{"type":"array","description":"Son ödemeler, yeniden eskiye.","maxItems":20,"items":{"$ref":"#/components/schemas/X402Payment"}}}},"TxRequest":{"type":"object","required":["call","accounts","feePayer","computeUnitPrice"],"additionalProperties":false,"properties":{"call":{"$ref":"#/components/schemas/InstructionCall"},"accounts":{"type":"object","description":"Türetilemeyen hesaplar (imzacılar, dış hesaplar, token hesapları), IDL hesap adıyla.","additionalProperties":{"$ref":"#/components/schemas/Address"}},"feePayer":{"$ref":"#/components/schemas/Address"},"computeUnitPrice":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]}}},"UnsignedTx":{"type":"object","required":["transaction","blockhash","lastValidBlockHeight","feePayer","signers","addressLookupTables","computeUnitLimit","simulatedUnits"],"additionalProperties":false,"properties":{"transaction":{"type":"string","contentEncoding":"base64","description":"İmzasız v0 VersionedTransaction."},"blockhash":{"type":"string","minLength":32},"lastValidBlockHeight":{"type":"integer","minimum":0},"feePayer":{"$ref":"#/components/schemas/Address"},"signers":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Address"}},"addressLookupTables":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"computeUnitLimit":{"type":"integer","minimum":0},"simulatedUnits":{"type":["integer","null"],"minimum":0}}},"DeliveryReceipt":{"type":"object","required":["workHash","deliveryUri","contentType","size"],"additionalProperties":false,"properties":{"workHash":{"$ref":"#/components/schemas/Hex32"},"deliveryUri":{"type":"string","minLength":1,"maxLength":128},"contentType":{"type":"string","minLength":1,"maxLength":120},"size":{"type":"integer","minimum":0}}},"ProveRequest":{"type":"object","description":"Güven sınırı: witness politikanın kendisini içerir; servisi işleten taraf politikayı görür.\nKurum kendi prover'ını çalıştırmalı ya da in-process proving kullanmalı.\n","required":["circuit","artifactVersion","witness"],"additionalProperties":false,"properties":{"circuit":{"type":"string","const":"payment-compliance"},"artifactVersion":{"$ref":"#/components/schemas/Hex32"},"witness":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}}},"ProveResponse":{"type":"object","required":["artifactVersion","proofA","proofB","proofC","publicInputs","provingMs"],"additionalProperties":false,"properties":{"artifactVersion":{"$ref":"#/components/schemas/Hex32"},"proofA":{"type":"string","pattern":"^[0-9a-f]{128}$"},"proofB":{"type":"string","pattern":"^[0-9a-f]{256}$"},"proofC":{"type":"string","pattern":"^[0-9a-f]{128}$"},"publicInputs":{"type":"array","description":"Release devresinin 13 public sinyali, devre sırasıyla (release-circuit.md §2).","minItems":13,"maxItems":13,"items":{"$ref":"#/components/schemas/Hex32"}},"provingMs":{"type":"integer","minimum":0}}},"KeeperActionKind":{"type":"string","enum":["finalizePayment","executeResolution","lapseDispute"]},"KeeperOutcome":{"type":"string","enum":["submitted","confirmed","skipped","failed"]},"KeeperReason":{"type":"string","enum":["challengeOpen","proofRequired","staleProof","screeningPending","unprofitable","rpcError","programError"]},"KeeperAction":{"type":"object","required":["id","job","action","outcome","reason","signature","keeperFee","at","nextAttemptAt"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"job":{"$ref":"#/components/schemas/Address"},"action":{"$ref":"#/components/schemas/KeeperActionKind"},"outcome":{"$ref":"#/components/schemas/KeeperOutcome"},"reason":{"oneOf":[{"$ref":"#/components/schemas/KeeperReason"},{"type":"null"}]},"signature":{"type":["string","null"],"pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"keeperFee":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]},"at":{"type":"integer","format":"int64"},"nextAttemptAt":{"type":["integer","null"],"format":"int64"}}},"DisputeEvidenceRole":{"type":"string","enum":["institution","agent","arbitrator"]},"DisputeEvidence":{"type":"object","required":["id","job","reasonHash","contentType","size","role","uploadedBy","isDisputeReason","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"job":{"$ref":"#/components/schemas/Address"},"reasonHash":{"$ref":"#/components/schemas/Hex32","description":"İçeriğin SHA-256'sı; kurumun kanıtında raise_dispute'un reason_hash argümanı."},"contentType":{"type":"string","minLength":1,"maxLength":120},"size":{"type":"integer","minimum":0},"role":{"$ref":"#/components/schemas/DisputeEvidenceRole"},"uploadedBy":{"$ref":"#/components/schemas/Address"},"isDisputeReason":{"type":"boolean","description":"Zincirdeki dispute'un reasonHash'i bu içeriğin hash'i mi."},"createdAt":{"type":"integer","format":"int64"}}},"DisputeVoteKind":{"type":"string","description":"Bekleyen öneriye onay (DisputeVote) ya da ret (DisputeVoteRejected, ADR 0028).","enum":["approve","reject"]},"DisputeVoteRecord":{"type":"object","description":"DisputeVote ya da DisputeVoteRejected event'inden bir oy.","required":["kind","arbitrator","resolution","approvalCount","rejectionCount","proposalReset","signature","slot","blockTime"],"additionalProperties":false,"properties":{"kind":{"$ref":"#/components/schemas/DisputeVoteKind"},"arbitrator":{"$ref":"#/components/schemas/Address"},"resolution":{"$ref":"#/components/schemas/DisputeResolution","description":"Oyun kararı; retde bekleyen öneriden farklı olan karar."},"approvalCount":{"type":["integer","null"],"minimum":1,"maximum":7,"description":"Onayla birlikte sayımdaki onay sayısı; retde null."},"rejectionCount":{"type":["integer","null"],"minimum":1,"maximum":7,"description":"Retle birlikte bekleyen önerinin ret sayısı; onayda null."},"proposalReset":{"type":"boolean","description":"Ret eşiği ulaşılamaz kıldı ve öneri sıfırlandı; onayda false."},"signature":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"slot":{"type":"integer","minimum":0},"blockTime":{"type":["integer","null"],"format":"int64"}}},"ArbitrationQueueItem":{"type":"object","required":["dispute","votes","hasVoted","canVote","threshold","evidence"],"additionalProperties":false,"properties":{"dispute":{"$ref":"#/components/schemas/DisputeView"},"votes":{"type":"array","description":"Dispute açıldıktan sonraki oylar, eskiden yeniye.","items":{"$ref":"#/components/schemas/DisputeVoteRecord"}},"hasVoted":{"type":"boolean","description":"Arbitrator bekleyen öneriye (onay ya da ret) oy verdi mi."},"canVote":{"type":"boolean","description":"Oy yok ve son tarih geçmedi."},"threshold":{"type":"integer","minimum":2,"maximum":7,"description":"Karar için gereken onay (M)."},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/DisputeEvidence"}}}},"DisputeVoteRequest":{"type":"object","required":["resolution","feePayer","computeUnitPrice"],"additionalProperties":false,"properties":{"resolution":{"$ref":"#/components/schemas/DisputeResolution"},"feePayer":{"description":"Boşsa arbitrator'ın kendisi.","oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"computeUnitPrice":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]}}},"ArbitrationEventType":{"type":"string","enum":["dispute.raised","dispute.escalated","dispute.vote","dispute.decided","dispute.deadline"]},"ArbitrationWebhook":{"type":"object","required":["id","url","events","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"url":{"type":"string","format":"uri","maxLength":512},"events":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/ArbitrationEventType"}},"createdAt":{"type":"integer","format":"int64"}}},"ArbitrationWebhookCreate":{"type":"object","required":["url","events"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","maxLength":512,"description":"https; özel ağ adresleri reddedilir."},"events":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/ArbitrationEventType"}}}},"ArbitrationWebhookCreated":{"type":"object","required":["webhook","secret"],"additionalProperties":false,"properties":{"webhook":{"$ref":"#/components/schemas/ArbitrationWebhook"},"secret":{"type":"string","minLength":32,"description":"whsec_ sırrı; yalnızca bu yanıtta döner."}}},"ArbitrationNotification":{"type":"object","required":["type","timestamp","job","deadline","event"],"additionalProperties":false,"properties":{"type":{"$ref":"#/components/schemas/ArbitrationEventType"},"timestamp":{"type":"integer","format":"int64"},"job":{"$ref":"#/components/schemas/Address"},"deadline":{"type":["integer","null"],"format":"int64"},"event":{"description":"Bildirimi doğuran zincir event'i; dispute.deadline'da null.","oneOf":[{"$ref":"#/components/schemas/IndexedEvent"},{"type":"null"}]}}},"Health":{"type":"object","required":["status","version","checks"],"additionalProperties":false,"properties":{"status":{"type":"string","enum":["ok","degraded","down"]},"version":{"type":"string","minLength":1},"checks":{"type":"object","additionalProperties":{"type":"string","enum":["ok","fail"]}}}},"TravelRuleAddress":{"type":"object","required":["street","city","postcode","country"],"additionalProperties":false,"properties":{"street":{"type":["string","null"],"minLength":1,"maxLength":140},"city":{"type":"string","minLength":1,"maxLength":70},"postcode":{"type":["string","null"],"minLength":1,"maxLength":16},"country":{"$ref":"#/components/schemas/CountryCode"}}},"CountryCode":{"type":"string","description":"ISO 3166-1 alpha-2.","pattern":"^[A-Z]{2}$"},"TravelRuleIdentifierType":{"type":"string","description":"IVMS101 `NationalIdentifierTypeCode`.","enum":["ARNU","CCPT","RAID","DRLC","FIIN","TXID","SOCS","IDCD","LEIX","MISC"]},"TravelRuleNationalId":{"type":"object","required":["type","value","country"],"additionalProperties":false,"properties":{"type":{"$ref":"#/components/schemas/TravelRuleIdentifierType"},"value":{"type":"string","minLength":1,"maxLength":35},"country":{"oneOf":[{"$ref":"#/components/schemas/CountryCode"},{"type":"null"}]}}},"TravelRulePersonKind":{"type":"string","enum":["natural","legal"]},"TravelRulePerson":{"type":"object","description":"Originator ya da beneficiary (IVMS101 alan adları). Gerçek kişide `primaryIdentifier` soyad,\n`secondaryIdentifier` ad; tüzel kişide `primaryIdentifier` unvandır, `secondaryIdentifier`,\n`dateOfBirth` ve `placeOfBirth` null'dır.\n","required":["kind","primaryIdentifier","secondaryIdentifier","accountNumber","address","nationalIdentification","dateOfBirth","placeOfBirth","countryOfResidence"],"additionalProperties":false,"properties":{"kind":{"$ref":"#/components/schemas/TravelRulePersonKind"},"primaryIdentifier":{"type":"string","minLength":1,"maxLength":100},"secondaryIdentifier":{"type":["string","null"],"minLength":1,"maxLength":100},"accountNumber":{"type":"string","minLength":1,"maxLength":100},"address":{"oneOf":[{"$ref":"#/components/schemas/TravelRuleAddress"},{"type":"null"}]},"nationalIdentification":{"oneOf":[{"$ref":"#/components/schemas/TravelRuleNationalId"},{"type":"null"}]},"dateOfBirth":{"type":["string","null"],"format":"date"},"placeOfBirth":{"type":["string","null"],"minLength":1,"maxLength":70},"countryOfResidence":{"oneOf":[{"$ref":"#/components/schemas/CountryCode"},{"type":"null"}]}}},"TravelRuleVasp":{"type":"object","required":["name","lei"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":100},"lei":{"type":["string","null"],"pattern":"^[A-Z0-9]{18}[0-9]{2}$"}}},"TravelRuleRecord":{"type":"object","description":"Commitment'ın girdisi; RFC 8785 kanonik JSON'unun SHA-256'sı `recordDigest`'tir.","required":["originator","beneficiary","originatingVasp","beneficiaryVasp","amount","mint"],"additionalProperties":false,"properties":{"originator":{"$ref":"#/components/schemas/TravelRulePerson"},"beneficiary":{"$ref":"#/components/schemas/TravelRulePerson"},"originatingVasp":{"oneOf":[{"$ref":"#/components/schemas/TravelRuleVasp"},{"type":"null"}]},"beneficiaryVasp":{"oneOf":[{"$ref":"#/components/schemas/TravelRuleVasp"},{"type":"null"}]},"amount":{"$ref":"#/components/schemas/U64"},"mint":{"$ref":"#/components/schemas/Address"}}},"TravelRulePut":{"type":"object","required":["record"],"additionalProperties":false,"properties":{"record":{"$ref":"#/components/schemas/TravelRuleRecord"}}},"TravelRuleStatus":{"type":"object","required":["job","commitment","recordDigest","storedBy","storedAt","retainUntil","purgedAt","chainCommitment","committed"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"commitment":{"$ref":"#/components/schemas/Hex32"},"recordDigest":{"$ref":"#/components/schemas/Hex32"},"storedBy":{"$ref":"#/components/schemas/Address"},"storedAt":{"type":"integer","format":"int64"},"retainUntil":{"type":"integer","format":"int64"},"purgedAt":{"type":["integer","null"],"format":"int64"},"chainCommitment":{"oneOf":[{"$ref":"#/components/schemas/Hex32"},{"type":"null"}]},"committed":{"type":"boolean"}}},"TravelRuleDisclosure":{"type":"object","required":["status","record","salt"],"additionalProperties":false,"properties":{"status":{"$ref":"#/components/schemas/TravelRuleStatus"},"record":{"$ref":"#/components/schemas/TravelRuleRecord"},"salt":{"$ref":"#/components/schemas/Hex32"}}},"TravelRuleGrantCreate":{"type":"object","required":["grantee","purpose","expiresAt"],"additionalProperties":false,"properties":{"grantee":{"$ref":"#/components/schemas/Address"},"purpose":{"type":"string","minLength":1,"maxLength":200},"expiresAt":{"type":"integer","format":"int64"}}},"TravelRuleGrant":{"type":"object","required":["job","grantee","purpose","grantedBy","grantedAt","expiresAt","revokedAt"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"grantee":{"$ref":"#/components/schemas/Address"},"purpose":{"type":"string","minLength":1,"maxLength":200},"grantedBy":{"$ref":"#/components/schemas/Address"},"grantedAt":{"type":"integer","format":"int64"},"expiresAt":{"type":"integer","format":"int64"},"revokedAt":{"type":["integer","null"],"format":"int64"}}},"TravelRuleAccessAction":{"type":"string","enum":["store","read","grant","revoke","purge"]},"TravelRuleAccess":{"type":"object","required":["id","job","action","actor","grantee","requestId","at"],"additionalProperties":false,"properties":{"id":{"type":"string","minLength":1},"job":{"$ref":"#/components/schemas/Address"},"action":{"$ref":"#/components/schemas/TravelRuleAccessAction"},"actor":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"grantee":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"requestId":{"type":["string","null"]},"at":{"type":"integer","format":"int64"}}},"CctpTransferStatus":{"type":"string","enum":["pendingAttestation","attested","received","funded","failed"]},"CctpTransferCreate":{"type":"object","required":["sourceDomain","sourceTxHash","job"],"additionalProperties":false,"properties":{"sourceDomain":{"type":"integer","minimum":0,"maximum":4294967295,"description":"Burn'ün yapıldığı zincirin Circle domain'i."},"sourceTxHash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"Burn tx'i (EVM)."},"job":{"$ref":"#/components/schemas/Address"}}},"CctpTransfer":{"type":"object","required":["id","sourceDomain","sourceTxHash","job","institution","mintRecipient","status","nonce","message","attestation","amount","feeExecuted","minted","attestedAt","receiveSignature","fundSignature","error","attempts","nextAttemptAt","createdAt","updatedAt"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"sourceDomain":{"type":"integer","minimum":0,"maximum":4294967295},"sourceTxHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"mintRecipient":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Beklenen mint alıcısı, kurumun USDC token hesabı."},"status":{"$ref":"#/components/schemas/CctpTransferStatus"},"nonce":{"oneOf":[{"$ref":"#/components/schemas/Hex32"},{"type":"null"}]},"message":{"type":["string","null"],"pattern":"^(?:[0-9a-f]{2})+$","description":"Attestation'lı mesaj, hex."},"attestation":{"type":["string","null"],"pattern":"^(?:[0-9a-f]{2})+$"},"amount":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]},"feeExecuted":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]},"minted":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]},"attestedAt":{"type":["integer","null"],"format":"int64"},"receiveSignature":{"type":["string","null"],"pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"fundSignature":{"type":["string","null"],"pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"error":{"type":["string","null"]},"attempts":{"type":"integer","minimum":0},"nextAttemptAt":{"type":["integer","null"],"format":"int64"},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"}}},"CctpFundTxRequest":{"type":"object","required":["feePayer","computeUnitPrice"],"additionalProperties":false,"properties":{"feePayer":{"$ref":"#/components/schemas/Address"},"computeUnitPrice":{"oneOf":[{"$ref":"#/components/schemas/U64"},{"type":"null"}]}}},"CctpFundTx":{"type":"object","required":["step","transfer","tx"],"additionalProperties":false,"properties":{"step":{"type":"string","enum":["receiveAndFund","fund"]},"transfer":{"$ref":"#/components/schemas/CctpTransfer"},"tx":{"$ref":"#/components/schemas/UnsignedTx"}}},"FiatCurrency":{"type":"string","enum":["usd"]},"FiatPaymentStatus":{"type":"string","enum":["requires_payment_method","requires_confirmation","requires_action","processing","requires_capture","canceled","succeeded"]},"FiatPaymentVia":{"type":"string","enum":["intent","mpp"]},"FiatAttestationSource":{"type":"string","enum":["webhook","reconcile","mpp"]},"FiatConfig":{"type":"object","required":["currency","publishableKey","mppAuthority","mppNetworkId","minimumAmountMinor"],"additionalProperties":false,"properties":{"currency":{"$ref":"#/components/schemas/FiatCurrency"},"publishableKey":{"type":"string","pattern":"^pk_(test|live)_[A-Za-z0-9]+$"},"mppAuthority":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"`VerifierConfig.mpp_authority`."},"mppNetworkId":{"type":["string","null"],"minLength":1,"description":"MPP challenge'ındaki Stripe profil kimliği; MPP kapalıysa null."},"minimumAmountMinor":{"type":"integer","minimum":1,"description":"Stripe'ın en düşük kart ödemesi (sent)."}}},"FiatSetupIntentCreate":{"type":"object","required":["institution"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address"}}},"FiatSetupIntent":{"type":"object","required":["institution","customer","setupIntent","clientSecret"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address"},"customer":{"type":"string","pattern":"^cus_[A-Za-z0-9]+$"},"setupIntent":{"type":"string","pattern":"^seti_[A-Za-z0-9]+$"},"clientSecret":{"type":"string","minLength":1}}},"FiatCard":{"type":"object","required":["paymentMethod","brand","last4","expMonth","expYear"],"additionalProperties":false,"properties":{"paymentMethod":{"type":"string","pattern":"^pm_[A-Za-z0-9]+$"},"brand":{"type":"string","minLength":1},"last4":{"type":"string","pattern":"^[0-9]{4}$"},"expMonth":{"type":"integer","minimum":1,"maximum":12},"expYear":{"type":"integer","minimum":2000}}},"FiatCustomer":{"type":"object","required":["institution","customer","card"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address"},"customer":{"type":"string","pattern":"^cus_[A-Za-z0-9]+$"},"card":{"oneOf":[{"$ref":"#/components/schemas/FiatCard"},{"type":"null"}]}}},"FiatPaymentCreate":{"type":"object","required":["offSession"],"additionalProperties":false,"properties":{"offSession":{"type":"boolean","description":"true ise kayıtlı kartla hemen öder."}}},"FiatAttestation":{"type":"object","description":"Kanonik Stripe makbuzu ve MPP authority'nin attestation'ı. `receiptHash` = Poseidon(alan(paymentIntent),\namountMinor, alan(currency), alan(customer ?? \"\"), paidAt); alan(s) = Poseidon(s'nin 32'ye sıfırla doldurulmuş\nUTF-8 baytlarının iki 16 baytlık yarısı). `signature`, `\"square/mpp-attestation/v1\" ‖ job ‖ receiptHash ‖\namount (u64 LE)` mesajının ed25519 imzasıdır (ADR 0024 §3).\n","required":["job","institution","amount","paymentIntent","amountMinor","currency","customer","paidAt","receiptHash","authority","signature","source"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"amount":{"allOf":[{"$ref":"#/components/schemas/U64"}],"description":"Job'un tutarı, settlement mint'inin taban biriminde."},"paymentIntent":{"type":"string","pattern":"^pi_[A-Za-z0-9]+$"},"amountMinor":{"type":"integer","minimum":1},"currency":{"$ref":"#/components/schemas/FiatCurrency"},"customer":{"type":["string","null"],"pattern":"^cus_[A-Za-z0-9]+$"},"paidAt":{"type":"integer","format":"int64"},"receiptHash":{"$ref":"#/components/schemas/Hex32"},"authority":{"$ref":"#/components/schemas/Address"},"signature":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{64,88}$"},"source":{"$ref":"#/components/schemas/FiatAttestationSource"}}},"FiatPayment":{"type":"object","required":["job","paymentIntent","via","status","amountMinor","currency","clientSecret","attestation"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"paymentIntent":{"type":"string","pattern":"^pi_[A-Za-z0-9]+$"},"via":{"$ref":"#/components/schemas/FiatPaymentVia"},"status":{"$ref":"#/components/schemas/FiatPaymentStatus"},"amountMinor":{"type":"integer","minimum":1},"currency":{"$ref":"#/components/schemas/FiatCurrency"},"clientSecret":{"type":["string","null"],"minLength":1},"attestation":{"oneOf":[{"$ref":"#/components/schemas/FiatAttestation"},{"type":"null"}]}}},"StripeWebhookReceipt":{"type":"object","required":["event","type","recorded"],"additionalProperties":false,"properties":{"event":{"type":"string","pattern":"^evt_[A-Za-z0-9]+$"},"type":{"type":"string","minLength":1},"recorded":{"type":"boolean","description":"Olay bir kaydı değiştirdi (attestation ya da kart)."}}},"Address":{"type":"string","description":"Base58 Solana adresi (32 bayt)","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$"},"U64":{"type":"string","description":"u64, ondalık string (JS number hassasiyetini aşmamak için)","pattern":"^(0|[1-9][0-9]{0,19})$"},"JobStatus":{"type":"string","enum":["open","funded","accepted","delivered","disputed","resolved","released","refunded","cancelled"]},"Hex32":{"type":"string","description":"32 bayt, küçük harf hex","pattern":"^[0-9a-f]{64}$"},"DisputeResolutionPending":{"type":"object","required":["kind"],"additionalProperties":false,"properties":{"kind":{"type":"string","const":"pending"}}},"DisputeResolutionFavorAgent":{"type":"object","required":["kind"],"additionalProperties":false,"properties":{"kind":{"type":"string","const":"favorAgent"}}},"DisputeResolutionFavorInstitution":{"type":"object","required":["kind"],"additionalProperties":false,"properties":{"kind":{"type":"string","const":"favorInstitution"}}},"DisputeResolutionSplit":{"type":"object","required":["kind","agentAmount"],"additionalProperties":false,"properties":{"kind":{"type":"string","const":"split"},"agentAmount":{"$ref":"#/components/schemas/U64"}}},"DisputeResolution":{"oneOf":[{"$ref":"#/components/schemas/DisputeResolutionPending"},{"$ref":"#/components/schemas/DisputeResolutionFavorAgent"},{"$ref":"#/components/schemas/DisputeResolutionFavorInstitution"},{"$ref":"#/components/schemas/DisputeResolutionSplit"}],"discriminator":{"propertyName":"kind","mapping":{"pending":"#/components/schemas/DisputeResolutionPending","favorAgent":"#/components/schemas/DisputeResolutionFavorAgent","favorInstitution":"#/components/schemas/DisputeResolutionFavorInstitution","split":"#/components/schemas/DisputeResolutionSplit"}}},"DisputeInfo":{"type":"object","description":"Inline dispute state; `raised_at == 0` means no dispute. One dispute per job.","required":["challenger","bond","reasonHash","raisedAt","deadline","decidedAt","closedAt","lapsed","approvalMask","approvalCount","arbitratorSetVersion","resolution"],"additionalProperties":false,"properties":{"challenger":{"$ref":"#/components/schemas/Address","description":"Institution (`raise_dispute`) or agent wallet (`escalate_missing_proof`)."},"bond":{"$ref":"#/components/schemas/U64","description":"0 for an escalation without bond."},"reasonHash":{"$ref":"#/components/schemas/Hex32"},"raisedAt":{"type":"integer","format":"int64"},"deadline":{"type":"integer","format":"int64","description":"`raised_at + dispute_timeout_secs`; votes before it, `lapse_dispute` at or after it."},"decidedAt":{"type":"integer","format":"int64","description":"When the threshold was reached."},"closedAt":{"type":"integer","format":"int64","description":"When `execute_resolution` or `lapse_dispute` closed the dispute."},"lapsed":{"type":"boolean","description":"Set by `lapse_dispute`; the institution cannot raise a second dispute, the agent may escalate again after `proof_timeout_secs`."},"approvalMask":{"type":"integer","minimum":0,"maximum":255,"description":"Bit i = `config.arbitrators[i]` voted for `resolution`."},"approvalCount":{"type":"integer","minimum":0,"maximum":255},"arbitratorSetVersion":{"type":"integer","minimum":0,"maximum":4294967295,"description":"`config.arbitrator_set_version` the tally is counted against; a newer set restarts the tally."},"resolution":{"$ref":"#/components/schemas/DisputeResolution"}}},"SettlementRail":{"type":"string","description":"Settlement rail of a job (ADR 0024).","enum":["escrow","fiat"]},"Job":{"type":"object","description":"seeds = [\"job\", institution, spec_hash]; vault = [\"escrow_token\", job], bond vault = [\"bond\", job] (token authority of both = job).","required":["institution","agentRecord","agentWallet","mint","rentPayer","amount","specHash","status","createdAt","fundedAt","deadline","challengePeriod","challengeEnd","deliveredAt","settledAt","workHash","travelRuleCommitment","policyCommitment","policyDailyCeiling","policyVersion","bump","vaultBump","bondBump","policy","dispute","deliveryUri","rail","disputeRejectionMask"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address","description":"Institution wallet or Squads vault that created/funds the job; refund target."},"agentRecord":{"$ref":"#/components/schemas/Address","description":"square_registry `AgentRecord` the job is bound to; reputation is written against it."},"agentWallet":{"$ref":"#/components/schemas/Address","description":"`AgentRecord.wallet` at creation (or at the last `sync_agent_wallet`); signs accept/submit/list and is the payee unless the receivable was sold."},"mint":{"$ref":"#/components/schemas/Address"},"rentPayer":{"$ref":"#/components/schemas/Address","description":"Paid the rent of the job and its vaults; receives it back when they close."},"amount":{"$ref":"#/components/schemas/U64"},"specHash":{"$ref":"#/components/schemas/Hex32","description":"SHA-256 of the off-chain job spec JSON (A2A task mapping, BE side)."},"status":{"$ref":"#/components/schemas/JobStatus"},"createdAt":{"type":"integer","format":"int64"},"fundedAt":{"type":"integer","format":"int64"},"deadline":{"type":"integer","format":"int64","description":"Deadline for delivery."},"challengePeriod":{"$ref":"#/components/schemas/U64"},"challengeEnd":{"type":"integer","format":"int64","description":"Set in `submit_work`; finalize allowed after it."},"deliveredAt":{"type":"integer","format":"int64"},"settledAt":{"type":"integer","format":"int64"},"workHash":{"$ref":"#/components/schemas/Hex32"},"travelRuleCommitment":{"$ref":"#/components/schemas/Hex32","description":"Salted Travel Rule commitment bound before funding (ADR 0015); all zeros = none."},"policyCommitment":{"$ref":"#/components/schemas/Hex32","description":"Policy snapshot taken at `create_job` (zeros when `policy` is None). The release proof is checked against it, so later policy updates or deactivation cannot change this job's rules."},"policyDailyCeiling":{"$ref":"#/components/schemas/U64"},"policyVersion":{"type":"integer","minimum":0,"maximum":4294967295},"bump":{"type":"integer","minimum":0,"maximum":255},"vaultBump":{"type":"integer","minimum":0,"maximum":255},"bondBump":{"type":"integer","minimum":0,"maximum":255,"description":"Set by `raise_dispute`; 0 while no bond vault exists."},"policy":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}],"description":"square_policy `Policy`; `Some` = proof-gated release."},"dispute":{"$ref":"#/components/schemas/DisputeInfo"},"deliveryUri":{"type":"string"},"rail":{"$ref":"#/components/schemas/SettlementRail","description":"How the job is paid (ADR 0024). Appended last: accounts created before the field read their zero padding as `Escrow`."},"disputeRejectionMask":{"type":"integer","minimum":0,"maximum":255,"description":"Arbitrators that rejected the pending proposal (ADR 0028): bit i = `config.arbitrators[i]`. Appended last: accounts created before the field read their zero padding as no rejection."}}},"ClaimStatus":{"type":"string","description":"`cancel_claim` closes the listing, so there is no Cancelled state.","enum":["listed","bought","settled","defaulted"]},"ClaimListing":{"type":"object","description":"seeds = [\"claim\", job]","required":["job","seller","buyer","rentPayer","price","faceValue","listedAt","boughtAt","status","bump"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"seller":{"$ref":"#/components/schemas/Address","description":"`job.agent_wallet` at listing time."},"buyer":{"$ref":"#/components/schemas/Address","description":"`Pubkey::default()` until bought."},"rentPayer":{"$ref":"#/components/schemas/Address","description":"Paid the listing rent; receives it back on `cancel_claim`."},"price":{"$ref":"#/components/schemas/U64"},"faceValue":{"$ref":"#/components/schemas/U64","description":"`job.amount` at listing time (informational)."},"listedAt":{"type":"integer","format":"int64"},"boughtAt":{"type":"integer","format":"int64"},"status":{"$ref":"#/components/schemas/ClaimStatus"},"bump":{"type":"integer","minimum":0,"maximum":255}}},"ReleaseVerdict":{"type":"string","enum":["compliant","refused"]},"ReleaseProof":{"type":"object","description":"seeds = [\"release_proof\", job]","required":["job","institution","policy","payee","netAmount","mint","dailySpentBefore","proofTimestamp","verdict","refusalCode","consumed","bump"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address","description":"square_policy `Institution` PDA (key of the `OperatorState` it advances)."},"policy":{"$ref":"#/components/schemas/Address"},"payee":{"$ref":"#/components/schemas/Address","description":"Address the proof is bound to: the agent wallet, or the claim buyer if the receivable was sold."},"netAmount":{"$ref":"#/components/schemas/U64","description":"Amount the payee receives; escrow compares it with its own net at release."},"mint":{"$ref":"#/components/schemas/Address"},"dailySpentBefore":{"$ref":"#/components/schemas/U64","description":"`OperatorState.daily_spent` the proof was built against; a different value at release = stale."},"proofTimestamp":{"type":"integer","format":"int64"},"verdict":{"$ref":"#/components/schemas/ReleaseVerdict"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535,"description":"Policy rule that refused the release (0 when compliant). Codes defined with the circuit (BC-19)."},"consumed":{"type":"boolean"},"bump":{"type":"integer","minimum":0,"maximum":255}}},"ValidationOutcome":{"type":"string","enum":["verified","refused","noGate","noPayout"]},"ValidationRecord":{"type":"object","description":"seeds = [\"validation\", job] — gate outcome of a settled job (BC-26); written once per job.","required":["job","agentRecord","outcome","refusalCode","recordedAt","bump","policy","releaseProof"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"agentRecord":{"$ref":"#/components/schemas/Address"},"outcome":{"$ref":"#/components/schemas/ValidationOutcome"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535,"description":"`ReleaseProof.refusal_code` when Refused, else 0."},"recordedAt":{"type":"integer","format":"int64"},"bump":{"type":"integer","minimum":0,"maximum":255},"policy":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"releaseProof":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]}}},"Institution":{"type":"object","description":"seeds = [\"institution\", owner_key]","required":["ownerKey","policyCount","createdAt","bump","name","multisig","multisigVault"],"additionalProperties":false,"properties":{"ownerKey":{"$ref":"#/components/schemas/Address","description":"The key the institution was created with; part of the PDA seeds, never changes."},"policyCount":{"type":"integer","minimum":0,"maximum":4294967295},"createdAt":{"type":"integer","format":"int64"},"bump":{"type":"integer","minimum":0,"maximum":255},"name":{"type":"string"},"multisig":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}],"description":"Squads v4 multisig bound with `set_institution_multisig`."},"multisigVault":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}],"description":"Squads vault PDA that is the sole authority once set (derived from `multisig` + vault index)."}}},"Policy":{"type":"object","description":"seeds = [\"policy\", institution, policy_id]","required":["institution","policyId","commitment","dailyCeiling","buyerRoot","version","active","createdAt","updatedAt","bump"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address"},"policyId":{"$ref":"#/components/schemas/Hex32"},"commitment":{"$ref":"#/components/schemas/Hex32","description":"Salted Poseidon commitment of the policy (the policy itself stays off chain)."},"dailyCeiling":{"$ref":"#/components/schemas/U64","description":"Public daily spending ceiling in settlement-mint atomic units (USDC: 6 decimals)."},"buyerRoot":{"$ref":"#/components/schemas/Hex32","description":"Root of the salted approved-buyer Merkle tree; all zeros = unrestricted."},"version":{"type":"integer","minimum":0,"maximum":4294967295},"active":{"type":"boolean"},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"},"bump":{"type":"integer","minimum":0,"maximum":255}}},"AgentStatus":{"type":"string","enum":["active","inactive","deregistered"]},"AgentRecord":{"type":"object","description":"seeds = [\"agent\", creator, agent_id]","required":["creator","owner","wallet","agentCardHash","status","registeredAt","updatedAt","bump","agentId","agentCardUri"],"additionalProperties":false,"properties":{"creator":{"$ref":"#/components/schemas/Address","description":"Original registrant; part of the PDA seeds, never changes."},"owner":{"$ref":"#/components/schemas/Address","description":"Current owner; can change via `transfer_agent_ownership`."},"wallet":{"$ref":"#/components/schemas/Address","description":"Agent wallet: signs escrow `accept_job` / `submit_work` / `list_claim` and is the default payee."},"agentCardHash":{"$ref":"#/components/schemas/Hex32","description":"SHA-256 of the agent card JSON served at `agent_card_uri`."},"status":{"$ref":"#/components/schemas/AgentStatus"},"registeredAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"},"bump":{"type":"integer","minimum":0,"maximum":255},"agentId":{"type":"string"},"agentCardUri":{"type":"string"}}},"AgentReputation":{"type":"object","description":"seeds = [\"reputation\", agent_record] — bound to the registry agent, not to a wallet (BC-26).","required":["agentRecord","jobsCompleted","jobsFailed","jobsDisputed","totalEarned","firstJobAt","lastJobAt","bump"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"},"jobsCompleted":{"$ref":"#/components/schemas/U64"},"jobsFailed":{"$ref":"#/components/schemas/U64"},"jobsDisputed":{"$ref":"#/components/schemas/U64"},"totalEarned":{"$ref":"#/components/schemas/U64"},"firstJobAt":{"type":"integer","format":"int64"},"lastJobAt":{"type":"integer","format":"int64"},"bump":{"type":"integer","minimum":0,"maximum":255}}},"ScreeningStatus":{"type":"string","enum":["clear","flagged"]},"ScreeningRecord":{"type":"object","description":"seeds = [\"screening\", wallet]","required":["wallet","status","sourceHash","screenedAt","expiresAt","bump"],"additionalProperties":false,"properties":{"wallet":{"$ref":"#/components/schemas/Address"},"status":{"$ref":"#/components/schemas/ScreeningStatus"},"sourceHash":{"$ref":"#/components/schemas/Hex32","description":"Hash of the screening evidence (provider response / list version)."},"screenedAt":{"type":"integer","format":"int64"},"expiresAt":{"type":"integer","format":"int64"},"bump":{"type":"integer","minimum":0,"maximum":255}}},"AgentDeregistered":{"type":"object","required":["agentRecord"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"}}},"AgentDeregisteredEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"AgentDeregistered"},"data":{"$ref":"#/components/schemas/AgentDeregistered"}}},"AgentOwnershipTransferred":{"type":"object","required":["agentRecord","previousOwner","newOwner"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"},"previousOwner":{"$ref":"#/components/schemas/Address"},"newOwner":{"$ref":"#/components/schemas/Address"}}},"AgentOwnershipTransferredEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"AgentOwnershipTransferred"},"data":{"$ref":"#/components/schemas/AgentOwnershipTransferred"}}},"AgentRegistered":{"type":"object","required":["agentRecord","creator","owner","agentId","wallet","agentCardHash"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"},"creator":{"$ref":"#/components/schemas/Address"},"owner":{"$ref":"#/components/schemas/Address"},"agentId":{"type":"string"},"wallet":{"$ref":"#/components/schemas/Address"},"agentCardHash":{"$ref":"#/components/schemas/Hex32"}}},"AgentRegisteredEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"AgentRegistered"},"data":{"$ref":"#/components/schemas/AgentRegistered"}}},"AgentStatusChanged":{"type":"object","required":["agentRecord","status"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"},"status":{"$ref":"#/components/schemas/AgentStatus"}}},"AgentStatusChangedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"AgentStatusChanged"},"data":{"$ref":"#/components/schemas/AgentStatusChanged"}}},"AgentUpdated":{"type":"object","required":["agentRecord","wallet","agentCardHash"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"},"wallet":{"$ref":"#/components/schemas/Address"},"agentCardHash":{"$ref":"#/components/schemas/Hex32"}}},"AgentUpdatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"AgentUpdated"},"data":{"$ref":"#/components/schemas/AgentUpdated"}}},"RegistryConfigUpdated":{"type":"object","required":["admin","screenerAuthority","screeningTtlSecs"],"additionalProperties":false,"properties":{"admin":{"$ref":"#/components/schemas/Address"},"screenerAuthority":{"$ref":"#/components/schemas/Address"},"screeningTtlSecs":{"type":"integer","format":"int64"}}},"RegistryConfigUpdatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"RegistryConfigUpdated"},"data":{"$ref":"#/components/schemas/RegistryConfigUpdated"}}},"ScreeningRecorded":{"type":"object","required":["wallet","status","sourceHash","expiresAt"],"additionalProperties":false,"properties":{"wallet":{"$ref":"#/components/schemas/Address"},"status":{"$ref":"#/components/schemas/ScreeningStatus"},"sourceHash":{"$ref":"#/components/schemas/Hex32"},"expiresAt":{"type":"integer","format":"int64"}}},"ScreeningRecordedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"name":{"type":"string","const":"ScreeningRecorded"},"data":{"$ref":"#/components/schemas/ScreeningRecorded"}}},"BuyerRootCommitted":{"type":"object","required":["policy","buyerRoot"],"additionalProperties":false,"properties":{"policy":{"$ref":"#/components/schemas/Address"},"buyerRoot":{"$ref":"#/components/schemas/Hex32"}}},"BuyerRootCommittedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"name":{"type":"string","const":"BuyerRootCommitted"},"data":{"$ref":"#/components/schemas/BuyerRootCommitted"}}},"InstitutionCreated":{"type":"object","required":["institution","ownerKey","name"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address"},"ownerKey":{"$ref":"#/components/schemas/Address"},"name":{"type":"string"}}},"InstitutionCreatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"name":{"type":"string","const":"InstitutionCreated"},"data":{"$ref":"#/components/schemas/InstitutionCreated"}}},"InstitutionMultisigSet":{"type":"object","required":["institution","multisig","multisigVault"],"additionalProperties":false,"properties":{"institution":{"$ref":"#/components/schemas/Address"},"multisig":{"$ref":"#/components/schemas/Address"},"multisigVault":{"$ref":"#/components/schemas/Address"}}},"InstitutionMultisigSetEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"name":{"type":"string","const":"InstitutionMultisigSet"},"data":{"$ref":"#/components/schemas/InstitutionMultisigSet"}}},"PolicyCommitted":{"type":"object","required":["policy","institution","policyId","commitment","dailyCeiling","version"],"additionalProperties":false,"properties":{"policy":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"policyId":{"$ref":"#/components/schemas/Hex32"},"commitment":{"$ref":"#/components/schemas/Hex32"},"dailyCeiling":{"$ref":"#/components/schemas/U64"},"version":{"type":"integer","minimum":0,"maximum":4294967295}}},"PolicyCommittedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"name":{"type":"string","const":"PolicyCommitted"},"data":{"$ref":"#/components/schemas/PolicyCommitted"}}},"PolicyDeactivated":{"type":"object","required":["policy"],"additionalProperties":false,"properties":{"policy":{"$ref":"#/components/schemas/Address"}}},"PolicyDeactivatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"name":{"type":"string","const":"PolicyDeactivated"},"data":{"$ref":"#/components/schemas/PolicyDeactivated"}}},"PolicyUpdated":{"type":"object","required":["policy","commitment","dailyCeiling","version"],"additionalProperties":false,"properties":{"policy":{"$ref":"#/components/schemas/Address"},"commitment":{"$ref":"#/components/schemas/Hex32"},"dailyCeiling":{"$ref":"#/components/schemas/U64"},"version":{"type":"integer","minimum":0,"maximum":4294967295}}},"PolicyUpdatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"name":{"type":"string","const":"PolicyUpdated"},"data":{"$ref":"#/components/schemas/PolicyUpdated"}}},"ComplianceProofSet":{"type":"object","required":["job","policy","verdict","refusalCode","payee","netAmount","mint","dailySpentBefore"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"policy":{"$ref":"#/components/schemas/Address"},"verdict":{"$ref":"#/components/schemas/ReleaseVerdict"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535},"payee":{"$ref":"#/components/schemas/Address"},"netAmount":{"$ref":"#/components/schemas/U64"},"mint":{"$ref":"#/components/schemas/Address"},"dailySpentBefore":{"$ref":"#/components/schemas/U64"}}},"ComplianceProofSetEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"name":{"type":"string","const":"ComplianceProofSet"},"data":{"$ref":"#/components/schemas/ComplianceProofSet"}}},"MppPaymentVerified":{"type":"object","description":"A Stripe (MPP) payment bound to a fiat job by `verify_mpp_payment_proof` (ADR 0024).","required":["job","institution","policy","stripeReceiptHash","amount"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"policy":{"$ref":"#/components/schemas/Address"},"stripeReceiptHash":{"$ref":"#/components/schemas/Hex32"},"amount":{"$ref":"#/components/schemas/U64"}}},"MppPaymentVerifiedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"name":{"type":"string","const":"MppPaymentVerified"},"data":{"$ref":"#/components/schemas/MppPaymentVerified"}}},"PreflightProofSet":{"type":"object","description":"A pre-acceptance compliance proof bound to a policy job by `set_preflight_proof` (ADR 0028).","required":["job","policy","refusalCode","proofTimestamp"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"policy":{"$ref":"#/components/schemas/Address"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535},"proofTimestamp":{"type":"integer","format":"int64"}}},"PreflightProofSetEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"name":{"type":"string","const":"PreflightProofSet"},"data":{"$ref":"#/components/schemas/PreflightProofSet"}}},"ReleaseRecorded":{"type":"object","required":["job","institution","netAmount","dailySpent","dayStartUnix"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"netAmount":{"$ref":"#/components/schemas/U64"},"dailySpent":{"$ref":"#/components/schemas/U64"},"dayStartUnix":{"type":"integer","format":"int64"}}},"ReleaseRecordedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"name":{"type":"string","const":"ReleaseRecorded"},"data":{"$ref":"#/components/schemas/ReleaseRecorded"}}},"VerifierConfigUpdated":{"type":"object","required":["admin","escrowProgram","policyProgram","mppAuthority","vkVersion"],"additionalProperties":false,"properties":{"admin":{"$ref":"#/components/schemas/Address"},"escrowProgram":{"$ref":"#/components/schemas/Address"},"policyProgram":{"$ref":"#/components/schemas/Address"},"mppAuthority":{"$ref":"#/components/schemas/Address"},"vkVersion":{"type":"integer","minimum":0,"maximum":65535}}},"VerifierConfigUpdatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"name":{"type":"string","const":"VerifierConfigUpdated"},"data":{"$ref":"#/components/schemas/VerifierConfigUpdated"}}},"ArbitratorsUpdated":{"type":"object","required":["arbitrators","threshold","arbitratorSetVersion"],"additionalProperties":false,"properties":{"arbitrators":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"threshold":{"type":"integer","minimum":0,"maximum":255},"arbitratorSetVersion":{"type":"integer","minimum":0,"maximum":4294967295}}},"ArbitratorsUpdatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ArbitratorsUpdated"},"data":{"$ref":"#/components/schemas/ArbitratorsUpdated"}}},"ClaimBought":{"type":"object","required":["job","buyer","price"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"buyer":{"$ref":"#/components/schemas/Address"},"price":{"$ref":"#/components/schemas/U64"}}},"ClaimBoughtEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ClaimBought"},"data":{"$ref":"#/components/schemas/ClaimBought"}}},"ClaimCancelled":{"type":"object","required":["job"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"}}},"ClaimCancelledEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ClaimCancelled"},"data":{"$ref":"#/components/schemas/ClaimCancelled"}}},"ClaimListed":{"type":"object","required":["job","seller","price","faceValue"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"seller":{"$ref":"#/components/schemas/Address"},"price":{"$ref":"#/components/schemas/U64"},"faceValue":{"$ref":"#/components/schemas/U64"}}},"ClaimListedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ClaimListed"},"data":{"$ref":"#/components/schemas/ClaimListed"}}},"DisputeDecided":{"type":"object","required":["job","resolution"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"resolution":{"$ref":"#/components/schemas/DisputeResolution"}}},"DisputeDecidedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"DisputeDecided"},"data":{"$ref":"#/components/schemas/DisputeDecided"}}},"DisputeLapsed":{"type":"object","description":"DRAFT (M5).","required":["job","bondRefunded"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"bondRefunded":{"$ref":"#/components/schemas/U64"}}},"DisputeLapsedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"DisputeLapsed"},"data":{"$ref":"#/components/schemas/DisputeLapsed"}}},"DisputeRaised":{"type":"object","required":["job","challenger","bond","reasonHash","deadline"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"challenger":{"$ref":"#/components/schemas/Address"},"bond":{"$ref":"#/components/schemas/U64"},"reasonHash":{"$ref":"#/components/schemas/Hex32"},"deadline":{"type":"integer","format":"int64"}}},"DisputeRaisedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"DisputeRaised"},"data":{"$ref":"#/components/schemas/DisputeRaised"}}},"DisputeResolved":{"type":"object","required":["job","resolution","agentSideAmount","institutionRefund","bondToAgentSide","bondReturned"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"resolution":{"$ref":"#/components/schemas/DisputeResolution"},"agentSideAmount":{"$ref":"#/components/schemas/U64"},"institutionRefund":{"$ref":"#/components/schemas/U64"},"bondToAgentSide":{"$ref":"#/components/schemas/U64"},"bondReturned":{"$ref":"#/components/schemas/U64"}}},"DisputeResolvedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"DisputeResolved"},"data":{"$ref":"#/components/schemas/DisputeResolved"}}},"DisputeVote":{"type":"object","required":["job","arbitrator","resolution","approvalCount"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"arbitrator":{"$ref":"#/components/schemas/Address"},"resolution":{"$ref":"#/components/schemas/DisputeResolution"},"approvalCount":{"type":"integer","minimum":0,"maximum":255}}},"DisputeVoteEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"DisputeVote"},"data":{"$ref":"#/components/schemas/DisputeVote"}}},"DisputeVoteRejected":{"type":"object","required":["job","arbitrator","resolution","rejectionCount","proposalReset"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"arbitrator":{"$ref":"#/components/schemas/Address"},"resolution":{"$ref":"#/components/schemas/DisputeResolution"},"rejectionCount":{"type":"integer","minimum":0,"maximum":255},"proposalReset":{"type":"boolean"}}},"DisputeVoteRejectedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"DisputeVoteRejected"},"data":{"$ref":"#/components/schemas/DisputeVoteRejected"}}},"EscrowParams":{"type":"object","required":["minChallengePeriod","maxChallengePeriod","minBondBps","minBondAbsolute","keeperFeeBps","proofTimeoutSecs","disputeTimeoutSecs","travelRuleThreshold"],"additionalProperties":false,"properties":{"minChallengePeriod":{"$ref":"#/components/schemas/U64"},"maxChallengePeriod":{"$ref":"#/components/schemas/U64"},"minBondBps":{"type":"integer","minimum":0,"maximum":65535},"minBondAbsolute":{"$ref":"#/components/schemas/U64"},"keeperFeeBps":{"type":"integer","minimum":0,"maximum":65535,"description":"Share of the escrowed amount paid to the `finalize_payment` caller (BC-23)."},"proofTimeoutSecs":{"type":"integer","format":"int64","description":"`escalate_missing_proof` allowed after `challenge_end + proof_timeout_secs` (>= 0)."},"disputeTimeoutSecs":{"type":"integer","format":"int64","description":"`dispute.deadline = raised_at + dispute_timeout_secs` (> 0)."},"travelRuleThreshold":{"$ref":"#/components/schemas/U64","description":"Jobs at or above this amount need a Travel Rule commitment before `fund_job`; 0 = disabled."}}},"EscrowConfigUpdated":{"type":"object","required":["admin","settlementMint","params"],"additionalProperties":false,"properties":{"admin":{"$ref":"#/components/schemas/Address"},"settlementMint":{"$ref":"#/components/schemas/Address"},"params":{"$ref":"#/components/schemas/EscrowParams"}}},"EscrowConfigUpdatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"EscrowConfigUpdated"},"data":{"$ref":"#/components/schemas/EscrowConfigUpdated"}}},"FiatJobCreated":{"type":"object","description":"A fiat job was opened by `create_fiat_job` (ADR 0024): no vault, always proof-gated.","required":["job","institution","agentRecord","agentWallet","policy","policyVersion","mint","amount","specHash","deadline"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"agentRecord":{"$ref":"#/components/schemas/Address"},"agentWallet":{"$ref":"#/components/schemas/Address"},"policy":{"$ref":"#/components/schemas/Address"},"policyVersion":{"type":"integer","minimum":0,"maximum":4294967295},"mint":{"$ref":"#/components/schemas/Address"},"amount":{"$ref":"#/components/schemas/U64"},"specHash":{"$ref":"#/components/schemas/Hex32"},"deadline":{"type":"integer","format":"int64"}}},"FiatJobCreatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"FiatJobCreated"},"data":{"$ref":"#/components/schemas/FiatJobCreated"}}},"Finalized":{"type":"object","required":["job","keeper","keeperFee"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"keeper":{"$ref":"#/components/schemas/Address"},"keeperFee":{"$ref":"#/components/schemas/U64"}}},"FinalizedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"Finalized"},"data":{"$ref":"#/components/schemas/Finalized"}}},"JobAccepted":{"type":"object","required":["job","agentRecord","agentWallet"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"agentRecord":{"$ref":"#/components/schemas/Address"},"agentWallet":{"$ref":"#/components/schemas/Address"}}},"JobAcceptedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"JobAccepted"},"data":{"$ref":"#/components/schemas/JobAccepted"}}},"JobAgentWalletSynced":{"type":"object","required":["job","agentWallet"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"agentWallet":{"$ref":"#/components/schemas/Address"}}},"JobAgentWalletSyncedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"JobAgentWalletSynced"},"data":{"$ref":"#/components/schemas/JobAgentWalletSynced"}}},"JobCancelled":{"type":"object","required":["job","refundedAmount"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"refundedAmount":{"$ref":"#/components/schemas/U64"}}},"JobCancelledEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"JobCancelled"},"data":{"$ref":"#/components/schemas/JobCancelled"}}},"JobCreated":{"type":"object","required":["job","institution","agentRecord","agentWallet","policy","policyVersion","mint","amount","specHash","deadline","challengePeriod"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"institution":{"$ref":"#/components/schemas/Address"},"agentRecord":{"$ref":"#/components/schemas/Address"},"agentWallet":{"$ref":"#/components/schemas/Address"},"policy":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"policyVersion":{"type":"integer","minimum":0,"maximum":4294967295},"mint":{"$ref":"#/components/schemas/Address"},"amount":{"$ref":"#/components/schemas/U64"},"specHash":{"$ref":"#/components/schemas/Hex32"},"deadline":{"type":"integer","format":"int64"},"challengePeriod":{"$ref":"#/components/schemas/U64"}}},"JobCreatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"JobCreated"},"data":{"$ref":"#/components/schemas/JobCreated"}}},"JobFunded":{"type":"object","required":["job","amount"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"amount":{"$ref":"#/components/schemas/U64"}}},"JobFundedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"JobFunded"},"data":{"$ref":"#/components/schemas/JobFunded"}}},"MissingProofEscalated":{"type":"object","description":"DRAFT (M5).","required":["job","agentWallet"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"agentWallet":{"$ref":"#/components/schemas/Address"}}},"MissingProofEscalatedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"MissingProofEscalated"},"data":{"$ref":"#/components/schemas/MissingProofEscalated"}}},"ReleaseRefused":{"type":"object","required":["job","refusalCode","refundedAmount","releaseProof"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535},"refundedAmount":{"$ref":"#/components/schemas/U64"},"releaseProof":{"$ref":"#/components/schemas/Address"}}},"ReleaseRefusedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ReleaseRefused"},"data":{"$ref":"#/components/schemas/ReleaseRefused"}}},"ReleaseVerified":{"type":"object","required":["job","payee","netAmount","releaseProof"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"payee":{"$ref":"#/components/schemas/Address"},"netAmount":{"$ref":"#/components/schemas/U64"},"releaseProof":{"oneOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]}}},"ReleaseVerifiedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ReleaseVerified"},"data":{"$ref":"#/components/schemas/ReleaseVerified"}}},"ReputationRecorded":{"type":"object","required":["agentRecord","job","jobsCompleted","jobsFailed","jobsDisputed","totalEarned"],"additionalProperties":false,"properties":{"agentRecord":{"$ref":"#/components/schemas/Address"},"job":{"$ref":"#/components/schemas/Address"},"jobsCompleted":{"$ref":"#/components/schemas/U64"},"jobsFailed":{"$ref":"#/components/schemas/U64"},"jobsDisputed":{"$ref":"#/components/schemas/U64"},"totalEarned":{"$ref":"#/components/schemas/U64"}}},"ReputationRecordedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ReputationRecorded"},"data":{"$ref":"#/components/schemas/ReputationRecorded"}}},"TravelRuleCommitted":{"type":"object","description":"A Travel Rule commitment was bound to an Open job (BC-34).","required":["job","commitment"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"commitment":{"$ref":"#/components/schemas/Hex32"}}},"TravelRuleCommittedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"TravelRuleCommitted"},"data":{"$ref":"#/components/schemas/TravelRuleCommitted"}}},"ValidationRecorded":{"type":"object","required":["job","agentRecord","outcome","refusalCode"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"agentRecord":{"$ref":"#/components/schemas/Address"},"outcome":{"$ref":"#/components/schemas/ValidationOutcome"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535}}},"ValidationRecordedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"ValidationRecorded"},"data":{"$ref":"#/components/schemas/ValidationRecorded"}}},"WorkSubmitted":{"type":"object","required":["job","workHash","deliveryUri","challengeEnd"],"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/Address"},"workHash":{"$ref":"#/components/schemas/Hex32"},"deliveryUri":{"type":"string"},"challengeEnd":{"type":"integer","format":"int64"}}},"WorkSubmittedEvent":{"type":"object","required":["program","name","data"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"name":{"type":"string","const":"WorkSubmitted"},"data":{"$ref":"#/components/schemas/WorkSubmitted"}}},"ProgramEventPayload":{"oneOf":[{"$ref":"#/components/schemas/AgentDeregisteredEvent"},{"$ref":"#/components/schemas/AgentOwnershipTransferredEvent"},{"$ref":"#/components/schemas/AgentRegisteredEvent"},{"$ref":"#/components/schemas/AgentStatusChangedEvent"},{"$ref":"#/components/schemas/AgentUpdatedEvent"},{"$ref":"#/components/schemas/RegistryConfigUpdatedEvent"},{"$ref":"#/components/schemas/ScreeningRecordedEvent"},{"$ref":"#/components/schemas/BuyerRootCommittedEvent"},{"$ref":"#/components/schemas/InstitutionCreatedEvent"},{"$ref":"#/components/schemas/InstitutionMultisigSetEvent"},{"$ref":"#/components/schemas/PolicyCommittedEvent"},{"$ref":"#/components/schemas/PolicyDeactivatedEvent"},{"$ref":"#/components/schemas/PolicyUpdatedEvent"},{"$ref":"#/components/schemas/ComplianceProofSetEvent"},{"$ref":"#/components/schemas/MppPaymentVerifiedEvent"},{"$ref":"#/components/schemas/PreflightProofSetEvent"},{"$ref":"#/components/schemas/ReleaseRecordedEvent"},{"$ref":"#/components/schemas/VerifierConfigUpdatedEvent"},{"$ref":"#/components/schemas/ArbitratorsUpdatedEvent"},{"$ref":"#/components/schemas/ClaimBoughtEvent"},{"$ref":"#/components/schemas/ClaimCancelledEvent"},{"$ref":"#/components/schemas/ClaimListedEvent"},{"$ref":"#/components/schemas/DisputeDecidedEvent"},{"$ref":"#/components/schemas/DisputeLapsedEvent"},{"$ref":"#/components/schemas/DisputeRaisedEvent"},{"$ref":"#/components/schemas/DisputeResolvedEvent"},{"$ref":"#/components/schemas/DisputeVoteEvent"},{"$ref":"#/components/schemas/DisputeVoteRejectedEvent"},{"$ref":"#/components/schemas/EscrowConfigUpdatedEvent"},{"$ref":"#/components/schemas/FiatJobCreatedEvent"},{"$ref":"#/components/schemas/FinalizedEvent"},{"$ref":"#/components/schemas/JobAcceptedEvent"},{"$ref":"#/components/schemas/JobAgentWalletSyncedEvent"},{"$ref":"#/components/schemas/JobCancelledEvent"},{"$ref":"#/components/schemas/JobCreatedEvent"},{"$ref":"#/components/schemas/JobFundedEvent"},{"$ref":"#/components/schemas/MissingProofEscalatedEvent"},{"$ref":"#/components/schemas/ReleaseRefusedEvent"},{"$ref":"#/components/schemas/ReleaseVerifiedEvent"},{"$ref":"#/components/schemas/ReputationRecordedEvent"},{"$ref":"#/components/schemas/TravelRuleCommittedEvent"},{"$ref":"#/components/schemas/ValidationRecordedEvent"},{"$ref":"#/components/schemas/WorkSubmittedEvent"}],"discriminator":{"propertyName":"name","mapping":{"AgentDeregistered":"#/components/schemas/AgentDeregisteredEvent","AgentOwnershipTransferred":"#/components/schemas/AgentOwnershipTransferredEvent","AgentRegistered":"#/components/schemas/AgentRegisteredEvent","AgentStatusChanged":"#/components/schemas/AgentStatusChangedEvent","AgentUpdated":"#/components/schemas/AgentUpdatedEvent","RegistryConfigUpdated":"#/components/schemas/RegistryConfigUpdatedEvent","ScreeningRecorded":"#/components/schemas/ScreeningRecordedEvent","BuyerRootCommitted":"#/components/schemas/BuyerRootCommittedEvent","InstitutionCreated":"#/components/schemas/InstitutionCreatedEvent","InstitutionMultisigSet":"#/components/schemas/InstitutionMultisigSetEvent","PolicyCommitted":"#/components/schemas/PolicyCommittedEvent","PolicyDeactivated":"#/components/schemas/PolicyDeactivatedEvent","PolicyUpdated":"#/components/schemas/PolicyUpdatedEvent","ComplianceProofSet":"#/components/schemas/ComplianceProofSetEvent","MppPaymentVerified":"#/components/schemas/MppPaymentVerifiedEvent","PreflightProofSet":"#/components/schemas/PreflightProofSetEvent","ReleaseRecorded":"#/components/schemas/ReleaseRecordedEvent","VerifierConfigUpdated":"#/components/schemas/VerifierConfigUpdatedEvent","ArbitratorsUpdated":"#/components/schemas/ArbitratorsUpdatedEvent","ClaimBought":"#/components/schemas/ClaimBoughtEvent","ClaimCancelled":"#/components/schemas/ClaimCancelledEvent","ClaimListed":"#/components/schemas/ClaimListedEvent","DisputeDecided":"#/components/schemas/DisputeDecidedEvent","DisputeLapsed":"#/components/schemas/DisputeLapsedEvent","DisputeRaised":"#/components/schemas/DisputeRaisedEvent","DisputeResolved":"#/components/schemas/DisputeResolvedEvent","DisputeVote":"#/components/schemas/DisputeVoteEvent","DisputeVoteRejected":"#/components/schemas/DisputeVoteRejectedEvent","EscrowConfigUpdated":"#/components/schemas/EscrowConfigUpdatedEvent","FiatJobCreated":"#/components/schemas/FiatJobCreatedEvent","Finalized":"#/components/schemas/FinalizedEvent","JobAccepted":"#/components/schemas/JobAcceptedEvent","JobAgentWalletSynced":"#/components/schemas/JobAgentWalletSyncedEvent","JobCancelled":"#/components/schemas/JobCancelledEvent","JobCreated":"#/components/schemas/JobCreatedEvent","JobFunded":"#/components/schemas/JobFundedEvent","MissingProofEscalated":"#/components/schemas/MissingProofEscalatedEvent","ReleaseRefused":"#/components/schemas/ReleaseRefusedEvent","ReleaseVerified":"#/components/schemas/ReleaseVerifiedEvent","ReputationRecorded":"#/components/schemas/ReputationRecordedEvent","TravelRuleCommitted":"#/components/schemas/TravelRuleCommittedEvent","ValidationRecorded":"#/components/schemas/ValidationRecordedEvent","WorkSubmitted":"#/components/schemas/WorkSubmittedEvent"}}},"DeregisterAgentArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"DeregisterAgentCall":{"type":"object","description":"Terminal: sets `Deregistered`. The record is kept (not closed) so the same (creator, agent_id) can never be re-registered and inherit the agent's reputation or did:aip.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"deregisterAgent"},"args":{"$ref":"#/components/schemas/DeregisterAgentArgs"}}},"InitRegistryConfigArgs":{"type":"object","required":["screenerAuthority","screeningTtlSecs"],"additionalProperties":false,"properties":{"screenerAuthority":{"$ref":"#/components/schemas/Address"},"screeningTtlSecs":{"type":"integer","format":"int64"}}},"InitRegistryConfigCall":{"type":"object","description":"Creates the singleton registry config. Only the program upgrade authority (Squads vault) can call it (checked through `program_data`), so the config cannot be front-run.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"initRegistryConfig"},"args":{"$ref":"#/components/schemas/InitRegistryConfigArgs"}}},"RecordScreeningArgs":{"type":"object","required":["wallet","status","sourceHash"],"additionalProperties":false,"properties":{"wallet":{"$ref":"#/components/schemas/Address"},"status":{"$ref":"#/components/schemas/ScreeningStatus"},"sourceHash":{"$ref":"#/components/schemas/Hex32"}}},"RecordScreeningCall":{"type":"object","description":"Flow step 3: the screener service (BE-16) records a sanctions screening result for a wallet. Escrow reads it on `fund_job` (institution and agent), `buy_claim` (buyer) and release (payee).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"recordScreening"},"args":{"$ref":"#/components/schemas/RecordScreeningArgs"}}},"RegisterAgentArgs":{"type":"object","required":["agentId","agentCardUri","agentCardHash","wallet"],"additionalProperties":false,"properties":{"agentId":{"type":"string"},"agentCardUri":{"type":"string"},"agentCardHash":{"$ref":"#/components/schemas/Hex32"},"wallet":{"$ref":"#/components/schemas/Address"}}},"RegisterAgentCall":{"type":"object","description":"Flow step 2: an agent registers; it resolves as did:aip (Solana profile, BC-14). `agent_id` is an immutable slug, unique per creator and never reusable (see `deregister_agent`).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"registerAgent"},"args":{"$ref":"#/components/schemas/RegisterAgentArgs"}}},"SetAgentStatusArgs":{"type":"object","required":["status"],"additionalProperties":false,"properties":{"status":{"$ref":"#/components/schemas/AgentStatus"}}},"SetAgentStatusCall":{"type":"object","description":"Pauses (`Inactive`) or resumes (`Active`) the agent. Escrow rejects `create_job` and `accept_job` for a non-active agent; jobs already accepted can still be delivered and settled. `Deregistered` is not accepted here.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"setAgentStatus"},"args":{"$ref":"#/components/schemas/SetAgentStatusArgs"}}},"TransferAgentOwnershipArgs":{"type":"object","required":["newOwner"],"additionalProperties":false,"properties":{"newOwner":{"$ref":"#/components/schemas/Address"}}},"TransferAgentOwnershipCall":{"type":"object","description":"Transfers ownership and resets `wallet` to the new owner (did:aip Solana profile §4.2). The PDA is derived from the immutable `creator`, so the address stays stable.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"transferAgentOwnership"},"args":{"$ref":"#/components/schemas/TransferAgentOwnershipArgs"}}},"UpdateAgentArgs":{"type":"object","required":["agentCardUri","agentCardHash","wallet"],"additionalProperties":false,"properties":{"agentCardUri":{"type":"string"},"agentCardHash":{"$ref":"#/components/schemas/Hex32"},"wallet":{"$ref":"#/components/schemas/Address"}}},"UpdateAgentCall":{"type":"object","description":"Updates the agent card pointer/hash and the agent wallet. Owner only. Jobs keep the wallet they were created with until the owner calls escrow `sync_agent_wallet`.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"updateAgent"},"args":{"$ref":"#/components/schemas/UpdateAgentArgs"}}},"UpdateRegistryConfigArgs":{"type":"object","required":["screenerAuthority","screeningTtlSecs"],"additionalProperties":false,"properties":{"screenerAuthority":{"$ref":"#/components/schemas/Address"},"screeningTtlSecs":{"type":"integer","format":"int64"}}},"UpdateRegistryConfigCall":{"type":"object","description":"Rotates the screener authority and the screening record lifetime.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"registry"},"instruction":{"type":"string","const":"updateRegistryConfig"},"args":{"$ref":"#/components/schemas/UpdateRegistryConfigArgs"}}},"DeactivatePolicyArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"DeactivatePolicyCall":{"type":"object","description":"Deactivates a policy: no new jobs can reference it. Existing jobs settle against their snapshot.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"instruction":{"type":"string","const":"deactivatePolicy"},"args":{"$ref":"#/components/schemas/DeactivatePolicyArgs"}}},"InitInstitutionArgs":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string"}}},"InitInstitutionCall":{"type":"object","description":"Creates the institution account for `authority` (which becomes `owner_key`).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"instruction":{"type":"string","const":"initInstitution"},"args":{"$ref":"#/components/schemas/InitInstitutionArgs"}}},"SetBuyerRootArgs":{"type":"object","required":["buyerRoot"],"additionalProperties":false,"properties":{"buyerRoot":{"$ref":"#/components/schemas/Hex32"}}},"SetBuyerRootCall":{"type":"object","description":"Flow step 5 (institution side): publishes the root of the salted approved-buyer list. Leaf = sha256(buyer_pubkey || leaf_salt); escrow `buy_claim` checks a Merkle proof against the current root. An all-zero root means \"no buyer restriction\".","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"instruction":{"type":"string","const":"setBuyerRoot"},"args":{"$ref":"#/components/schemas/SetBuyerRootArgs"}}},"SetInstitutionMultisigArgs":{"type":"object","required":["multisig","vaultIndex"],"additionalProperties":false,"properties":{"multisig":{"$ref":"#/components/schemas/Address"},"vaultIndex":{"type":"integer","minimum":0,"maximum":255}}},"SetInstitutionMultisigCall":{"type":"object","description":"Binds (or, signed by the current vault, rebinds) a Squads v4 multisig. Afterwards only its vault PDA (`vault_index`) may sign as authority.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"instruction":{"type":"string","const":"setInstitutionMultisig"},"args":{"$ref":"#/components/schemas/SetInstitutionMultisigArgs"}}},"SetPolicyArgs":{"type":"object","required":["policyId","commitment","dailyCeiling"],"additionalProperties":false,"properties":{"policyId":{"$ref":"#/components/schemas/Hex32"},"commitment":{"$ref":"#/components/schemas/Hex32"},"dailyCeiling":{"$ref":"#/components/schemas/U64"}}},"SetPolicyCall":{"type":"object","description":"Flow step 1: commits a spending policy. Only the salted Poseidon commitment and the public daily ceiling (settlement-mint atomic units) are stored.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"instruction":{"type":"string","const":"setPolicy"},"args":{"$ref":"#/components/schemas/SetPolicyArgs"}}},"UpdatePolicyArgs":{"type":"object","required":["commitment","dailyCeiling"],"additionalProperties":false,"properties":{"commitment":{"$ref":"#/components/schemas/Hex32"},"dailyCeiling":{"$ref":"#/components/schemas/U64"}}},"UpdatePolicyCall":{"type":"object","description":"Replaces the commitment and/or daily ceiling and increments `version`. Existing jobs keep the snapshot taken at `create_job`.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"policy"},"instruction":{"type":"string","const":"updatePolicy"},"args":{"$ref":"#/components/schemas/UpdatePolicyArgs"}}},"InitVerifierConfigArgs":{"type":"object","required":["escrowProgram","policyProgram","mppAuthority"],"additionalProperties":false,"properties":{"escrowProgram":{"$ref":"#/components/schemas/Address"},"policyProgram":{"$ref":"#/components/schemas/Address"},"mppAuthority":{"$ref":"#/components/schemas/Address"}}},"InitVerifierConfigCall":{"type":"object","description":"Creates the singleton verifier config. Only the program upgrade authority (Squads vault) can call it. `escrow_program` / `policy_program` pin the owners checked on account-read.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"instruction":{"type":"string","const":"initVerifierConfig"},"args":{"$ref":"#/components/schemas/InitVerifierConfigArgs"}}},"RecordReleaseArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"RecordReleaseCall":{"type":"object","description":"CPI-only (escrow, signed by its `escrow_authority` PDA): marks the release proof consumed and advances `OperatorState.daily_spent` (UTC-day rollover) by the released net amount.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"instruction":{"type":"string","const":"recordRelease"},"args":{"$ref":"#/components/schemas/RecordReleaseArgs"}}},"SetComplianceProofArgs":{"type":"object","required":["proofA","proofB","proofC","refusalCode","netAmount","proofTimestamp"],"additionalProperties":false,"properties":{"proofA":{"type":"string","pattern":"^[0-9a-f]{128}$"},"proofB":{"type":"string","pattern":"^[0-9a-f]{256}$"},"proofC":{"type":"string","pattern":"^[0-9a-f]{128}$"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535},"netAmount":{"$ref":"#/components/schemas/U64"},"proofTimestamp":{"type":"integer","format":"int64"}}},"SetComplianceProofCall":{"type":"object","description":"Flow step 7: verifies a Groth16 proof (alt_bn128) of the release circuit (13 public signals, docs/design/release-circuit.md §2). The program builds ten of the signals itself from the accounts: the job's policy snapshot (`Job.policy_commitment`, `Job.policy_daily_ceiling`), the payee (claim buyer if the receivable was sold, else `Job.agent_wallet`), the mint, the institution's daily counter (`OperatorState`, UTC day rollover applied), the job address and a zero `stripe_receipt_hash`. The caller supplies `refusal_code`, `net_amount` and `proof_timestamp`, which must be within the clock tolerance. Writes `ReleaseProof` with a verdict; a refusing proof records `Refused` + reason code. Can be re-bound until escrow consumes it. Arguments: `refusal_code` is public signal 0, the bit mask of broken rules (0 when compliant, release-circuit.md §3); `net_amount` is public signal 5, the amount the payee receives; `proof_timestamp` is public signal 9, the instant the proof evaluates the policy at (Unix seconds).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"instruction":{"type":"string","const":"setComplianceProof"},"args":{"$ref":"#/components/schemas/SetComplianceProofArgs"}}},"SetPreflightProofArgs":{"type":"object","required":["proofA","proofB","proofC","refusalCode","proofTimestamp"],"additionalProperties":false,"properties":{"proofA":{"type":"string","pattern":"^[0-9a-f]{128}$"},"proofB":{"type":"string","pattern":"^[0-9a-f]{256}$"},"proofC":{"type":"string","pattern":"^[0-9a-f]{128}$"},"refusalCode":{"type":"integer","minimum":0,"maximum":65535},"proofTimestamp":{"type":"integer","format":"int64"}}},"SetPreflightProofCall":{"type":"object","description":"Pre-acceptance compliance proof (ADR 0028): before the agent accepts a policy job (Open or Funded), the institution's authority proves the job against its own terms. The program builds the signals from the job: net = `job.amount` (the upper bound of every release to the agent side), payee = `Job.agent_wallet`, mint, daily counter 0, the job address and a zero `stripe_receipt_hash`; the policy snapshot is the job's. `refusal_code` must have no permanent bit and no daily-ceiling bit (time window and category are temporary); otherwise `PreflightRefused`. Writes `PreflightProof` with the payee, which escrow `accept_job` requires while the job's agent wallet is unchanged; can be re-bound until acceptance. Arguments: `refusal_code` is public signal 0; `proof_timestamp` is public signal 9 (Unix seconds), within the clock tolerance.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"instruction":{"type":"string","const":"setPreflightProof"},"args":{"$ref":"#/components/schemas/SetPreflightProofArgs"}}},"UpdateMppAuthorityArgs":{"type":"object","required":["mppAuthority"],"additionalProperties":false,"properties":{"mppAuthority":{"$ref":"#/components/schemas/Address"}}},"UpdateMppAuthorityCall":{"type":"object","description":"The config admin (Squads vault) rotates the MPP attestation key without a program upgrade. A zero key disables the fiat rail: no attestation can verify.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"instruction":{"type":"string","const":"updateMppAuthority"},"args":{"$ref":"#/components/schemas/UpdateMppAuthorityArgs"}}},"VerifyMppPaymentProofArgs":{"type":"object","required":["proofA","proofB","proofC","stripeReceiptHash","proofTimestamp"],"additionalProperties":false,"properties":{"proofA":{"type":"string","pattern":"^[0-9a-f]{128}$"},"proofB":{"type":"string","pattern":"^[0-9a-f]{256}$"},"proofC":{"type":"string","pattern":"^[0-9a-f]{128}$"},"stripeReceiptHash":{"$ref":"#/components/schemas/Hex32"},"proofTimestamp":{"type":"integer","format":"int64"}}},"VerifyMppPaymentProofCall":{"type":"object","description":"Fiat rail (ADR 0024): binds a Stripe (MPP) payment to a delivered fiat job. The instruction right before it must be the Ed25519 precompile verifying `config.mpp_authority`'s signature on `\"square/mpp-attestation/v1\" || job || stripe_receipt_hash || amount (u64 LE)`, `amount` being the job amount. The Groth16 proof is checked against the same 13 signals as `set_compliance_proof` with `refusal_code` 0, `net_amount` = job amount, payee = agent wallet and the non-zero `stripe_receipt_hash` (public signal 12). Writes a `Compliant` `ReleaseProof` that `finalize_fiat_payment` consumes. Arguments: `stripe_receipt_hash` is the Poseidon commitment of the Stripe receipt; `proof_timestamp` is public signal 9 (Unix seconds).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"verifier"},"instruction":{"type":"string","const":"verifyMppPaymentProof"},"args":{"$ref":"#/components/schemas/VerifyMppPaymentProofArgs"}}},"AcceptJobArgs":{"type":"object","required":["specHash"],"additionalProperties":false,"properties":{"specHash":{"$ref":"#/components/schemas/Hex32"}}},"AcceptJobCall":{"type":"object","description":"The job's agent wallet accepts a funded job (a fiat job while Open); the agent record must be Active. On a policy job the institution's `PreflightProof` (verifier `set_preflight_proof`, ADR 0028) must be bound to this job, its policy snapshot and its current agent wallet (bound again after `sync_agent_wallet`). `spec_hash` guards against a swapped spec.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"acceptJob"},"args":{"$ref":"#/components/schemas/AcceptJobArgs"}}},"BuyClaimArgs":{"type":"object","required":["price","leafSalt","merkleProof"],"additionalProperties":false,"properties":{"price":{"$ref":"#/components/schemas/U64"},"leafSalt":{"$ref":"#/components/schemas/Hex32"},"merkleProof":{"type":"array","items":{"$ref":"#/components/schemas/Hex32"}}}},"BuyClaimCall":{"type":"object","description":"A screened buyer on the institution's approved list buys the receivable. `price` must equal the listing price (front-running guard). Leaf = sha256(buyer || leaf_salt), checked against the current `policy.buyer_root`; jobs without a policy or with an all-zero root are unrestricted.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"buyClaim"},"args":{"$ref":"#/components/schemas/BuyClaimArgs"}}},"CancelClaimArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"CancelClaimCall":{"type":"object","description":"The seller withdraws an unsold listing; the account is closed and its rent returned.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"cancelClaim"},"args":{"$ref":"#/components/schemas/CancelClaimArgs"}}},"CancelFiatJobArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"CancelFiatJobCall":{"type":"object","description":"Fiat rail (ADR 0024): the institution cancels an Open job, or an Accepted job after `deadline`. There is no vault and nothing to refund.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"cancelFiatJob"},"args":{"$ref":"#/components/schemas/CancelFiatJobArgs"}}},"CancelJobArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"CancelJobCall":{"type":"object","description":"The institution cancels an Open / Funded job, or an Accepted job after `deadline`; the vault balance is refunded and the vault closed (rent to `job.rent_payer`).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"cancelJob"},"args":{"$ref":"#/components/schemas/CancelJobArgs"}}},"CommitTravelRuleArgs":{"type":"object","required":["commitment"],"additionalProperties":false,"properties":{"commitment":{"$ref":"#/components/schemas/Hex32"}}},"CommitTravelRuleCall":{"type":"object","description":"Binds a salted Travel Rule commitment to an Open job (no PII on chain, ADR 0015). It can be replaced until `fund_job`, which requires it when `amount >= params.travel_rule_threshold` (threshold 0 = disabled).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"commitTravelRule"},"args":{"$ref":"#/components/schemas/CommitTravelRuleArgs"}}},"CreateFiatJobArgs":{"type":"object","required":["specHash","amount","deadline"],"additionalProperties":false,"properties":{"specHash":{"$ref":"#/components/schemas/Hex32"},"amount":{"$ref":"#/components/schemas/U64"},"deadline":{"type":"integer","format":"int64"}}},"CreateFiatJobCall":{"type":"object","description":"Fiat rail (ADR 0024): the institution opens a job it pays off-chain through Stripe (MPP). The job has no vault, no funding step, no challenge window, dispute or claim; it is always proof-gated by `policy` (snapshotted like `create_job`). Both parties need a fresh, clear screening record. The agent accepts it while Open.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"createFiatJob"},"args":{"$ref":"#/components/schemas/CreateFiatJobArgs"}}},"CreateJobArgs":{"type":"object","required":["specHash","amount","deadline","challengePeriod"],"additionalProperties":false,"properties":{"specHash":{"$ref":"#/components/schemas/Hex32"},"amount":{"$ref":"#/components/schemas/U64"},"deadline":{"type":"integer","format":"int64"},"challengePeriod":{"$ref":"#/components/schemas/U64"}}},"CreateJobCall":{"type":"object","description":"Flow step 3a: the institution opens a job for an active registered agent and creates its empty vault. With the optional `policy` account the job is proof-gated and snapshots the policy's commitment, daily ceiling and version. Funds move in `fund_job`.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"createJob"},"args":{"$ref":"#/components/schemas/CreateJobArgs"}}},"EscalateMissingProofArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"EscalateMissingProofCall":{"type":"object","description":"The agent's recourse when a policy job's release cannot settle: `proof_timeout_secs` after `challenge_end` (or after a lapsed dispute closed) with no bound proof, a temporary refusal, a proof evaluated on another UTC day or a proof for another net amount or mint, it opens a dispute without bond.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"escalateMissingProof"},"args":{"$ref":"#/components/schemas/EscalateMissingProofArgs"}}},"ExecuteResolutionArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"ExecuteResolutionCall":{"type":"object","description":"Permissionless: pays out a `Resolved` dispute. The agent-side amount goes through the same payee resolution and proof gate as `finalize_payment` (no keeper fee); the bond is slashed to the agent side (FavorAgent) or returned to the institution. Closes the vaults.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"executeResolution"},"args":{"$ref":"#/components/schemas/ExecuteResolutionArgs"}}},"FinalizeFiatPaymentArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"FinalizeFiatPaymentCall":{"type":"object","description":"Fiat rail (ADR 0024), permissionless: records a delivered fiat job as paid once the verifier's `verify_mpp_payment_proof` bound a compliant `ReleaseProof` (payee = agent wallet, net = full `amount`, fresh daily counter). CPIs `record_release`, writes reputation and a `Verified` `ValidationRecord`, moves the job to `Released`. No funds move and no keeper fee is paid.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"finalizeFiatPayment"},"args":{"$ref":"#/components/schemas/FinalizeFiatPaymentArgs"}}},"FinalizePaymentArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"FinalizePaymentCall":{"type":"object","description":"Flow steps 6-8, permissionless crank. After `challenge_end` with no dispute: - no policy: pay the payee (claim buyer if sold, else agent wallet) `amount - keeper fee`; - policy: read `ReleaseProof` [\"release_proof\", job] owned by square_verifier. Missing -> `ProofRequired` (escrow waits). `Compliant` with matching payee / net / mint / daily counter -> pay the payee, CPI `record_release`, `ReleaseVerified`. `Refused` -> refund the net to the institution, `ReleaseRefused` with the reason code.  The keeper fee is paid in every branch. Reputation goes to the agent record (not the buyer); a `ValidationRecord` is written; the vault is closed and its rent returned to `job.rent_payer`.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"finalizePayment"},"args":{"$ref":"#/components/schemas/FinalizePaymentArgs"}}},"FundJobArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"FundJobCall":{"type":"object","description":"Flow step 3b: locks `amount` in the vault. Both parties need a fresh, clear screening record. CCTP (DRAFT M6, BC-36): runs in the same tx after the CCTP `receive_message` that mints USDC to the institution's token account; no separate instruction is planned.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"fundJob"},"args":{"$ref":"#/components/schemas/FundJobArgs"}}},"LinkedPrograms":{"type":"object","required":["registryProgram","policyProgram","verifierProgram"],"additionalProperties":false,"properties":{"registryProgram":{"$ref":"#/components/schemas/Address"},"policyProgram":{"$ref":"#/components/schemas/Address"},"verifierProgram":{"$ref":"#/components/schemas/Address"}}},"InitConfigArgs":{"type":"object","required":["settlementMint","arbitrators","threshold","params","linked"],"additionalProperties":false,"properties":{"settlementMint":{"$ref":"#/components/schemas/Address"},"arbitrators":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"threshold":{"type":"integer","minimum":0,"maximum":255},"params":{"$ref":"#/components/schemas/EscrowParams"},"linked":{"$ref":"#/components/schemas/LinkedPrograms"}}},"InitConfigCall":{"type":"object","description":"Creates the singleton config. Only the program upgrade authority (Squads vault) can call it. `settlement_mint` is the only job mint (USDC); `linked` pins the registry / policy / verifier program IDs used for account-read owner checks.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"initConfig"},"args":{"$ref":"#/components/schemas/InitConfigArgs"}}},"LapseDisputeArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"LapseDisputeCall":{"type":"object","description":"Permissionless at or after `dispute.deadline` without a decision. Returns the bond and drops the dispute: the job goes back to `Delivered` and settles through `finalize_payment`.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"lapseDispute"},"args":{"$ref":"#/components/schemas/LapseDisputeArgs"}}},"ListClaimArgs":{"type":"object","required":["price"],"additionalProperties":false,"properties":{"price":{"$ref":"#/components/schemas/U64"}}},"ListClaimCall":{"type":"object","description":"The agent lists its receivable on a delivered job below face value.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"listClaim"},"args":{"$ref":"#/components/schemas/ListClaimArgs"}}},"RaiseDisputeArgs":{"type":"object","required":["reasonHash","bond"],"additionalProperties":false,"properties":{"reasonHash":{"$ref":"#/components/schemas/Hex32"},"bond":{"$ref":"#/components/schemas/U64"}}},"RaiseDisputeCall":{"type":"object","description":"The institution disputes a delivery inside the challenge window with a bond `>= max(amount * min_bond_bps / 10_000, min_bond_absolute)`. One dispute per job.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"raiseDispute"},"args":{"$ref":"#/components/schemas/RaiseDisputeArgs"}}},"ResolveDisputeArgs":{"type":"object","required":["resolution"],"additionalProperties":false,"properties":{"resolution":{"$ref":"#/components/schemas/DisputeResolution"}}},"ResolveDisputeCall":{"type":"object","description":"One arbitrator vote. The first vote opens a proposal; the same resolution approves it, a different one rejects it (`DisputeVoteRejected`). When rejections make the threshold unreachable the proposal is reset and the next vote opens a new one (ADR 0028). Reaching the threshold moves the job to `Resolved` (`DisputeDecided`). No funds move here.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"resolveDispute"},"args":{"$ref":"#/components/schemas/ResolveDisputeArgs"}}},"SubmitWorkArgs":{"type":"object","required":["workHash","deliveryUri"],"additionalProperties":false,"properties":{"workHash":{"$ref":"#/components/schemas/Hex32"},"deliveryUri":{"type":"string"}}},"SubmitWorkCall":{"type":"object","description":"Flow step 4: delivery; the challenge window opens (`challenge_end = now + challenge_period`).","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"submitWork"},"args":{"$ref":"#/components/schemas/SubmitWorkArgs"}}},"SyncAgentWalletArgs":{"type":"object","required":[],"additionalProperties":false,"properties":{}},"SyncAgentWalletCall":{"type":"object","description":"The agent record owner re-points an unsettled job to the record's current wallet (after a wallet rotation with registry `update_agent`). A sold receivable keeps paying the buyer.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"syncAgentWallet"},"args":{"$ref":"#/components/schemas/SyncAgentWalletArgs"}}},"UpdateArbitratorsArgs":{"type":"object","required":["arbitrators","threshold"],"additionalProperties":false,"properties":{"arbitrators":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"threshold":{"type":"integer","minimum":0,"maximum":255}}},"UpdateArbitratorsCall":{"type":"object","description":"Replaces the arbitrator set (N <= 7, 2 <= M <= N) and bumps `arbitrator_set_version`. An active dispute keeps its deadline; its next vote restarts the tally with the new set.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"updateArbitrators"},"args":{"$ref":"#/components/schemas/UpdateArbitratorsArgs"}}},"UpdateParamsArgs":{"type":"object","required":["params"],"additionalProperties":false,"properties":{"params":{"$ref":"#/components/schemas/EscrowParams"}}},"UpdateParamsCall":{"type":"object","description":"Updates challenge bounds, bond, keeper fee, proof and dispute timeouts and the Travel Rule threshold.","required":["program","instruction","args"],"additionalProperties":false,"properties":{"program":{"type":"string","const":"escrow"},"instruction":{"type":"string","const":"updateParams"},"args":{"$ref":"#/components/schemas/UpdateParamsArgs"}}},"InstructionCall":{"oneOf":[{"$ref":"#/components/schemas/DeregisterAgentCall"},{"$ref":"#/components/schemas/InitRegistryConfigCall"},{"$ref":"#/components/schemas/RecordScreeningCall"},{"$ref":"#/components/schemas/RegisterAgentCall"},{"$ref":"#/components/schemas/SetAgentStatusCall"},{"$ref":"#/components/schemas/TransferAgentOwnershipCall"},{"$ref":"#/components/schemas/UpdateAgentCall"},{"$ref":"#/components/schemas/UpdateRegistryConfigCall"},{"$ref":"#/components/schemas/DeactivatePolicyCall"},{"$ref":"#/components/schemas/InitInstitutionCall"},{"$ref":"#/components/schemas/SetBuyerRootCall"},{"$ref":"#/components/schemas/SetInstitutionMultisigCall"},{"$ref":"#/components/schemas/SetPolicyCall"},{"$ref":"#/components/schemas/UpdatePolicyCall"},{"$ref":"#/components/schemas/InitVerifierConfigCall"},{"$ref":"#/components/schemas/RecordReleaseCall"},{"$ref":"#/components/schemas/SetComplianceProofCall"},{"$ref":"#/components/schemas/SetPreflightProofCall"},{"$ref":"#/components/schemas/UpdateMppAuthorityCall"},{"$ref":"#/components/schemas/VerifyMppPaymentProofCall"},{"$ref":"#/components/schemas/AcceptJobCall"},{"$ref":"#/components/schemas/BuyClaimCall"},{"$ref":"#/components/schemas/CancelClaimCall"},{"$ref":"#/components/schemas/CancelFiatJobCall"},{"$ref":"#/components/schemas/CancelJobCall"},{"$ref":"#/components/schemas/CommitTravelRuleCall"},{"$ref":"#/components/schemas/CreateFiatJobCall"},{"$ref":"#/components/schemas/CreateJobCall"},{"$ref":"#/components/schemas/EscalateMissingProofCall"},{"$ref":"#/components/schemas/ExecuteResolutionCall"},{"$ref":"#/components/schemas/FinalizeFiatPaymentCall"},{"$ref":"#/components/schemas/FinalizePaymentCall"},{"$ref":"#/components/schemas/FundJobCall"},{"$ref":"#/components/schemas/InitConfigCall"},{"$ref":"#/components/schemas/LapseDisputeCall"},{"$ref":"#/components/schemas/ListClaimCall"},{"$ref":"#/components/schemas/RaiseDisputeCall"},{"$ref":"#/components/schemas/ResolveDisputeCall"},{"$ref":"#/components/schemas/SubmitWorkCall"},{"$ref":"#/components/schemas/SyncAgentWalletCall"},{"$ref":"#/components/schemas/UpdateArbitratorsCall"},{"$ref":"#/components/schemas/UpdateParamsCall"}],"discriminator":{"propertyName":"instruction","mapping":{"deregisterAgent":"#/components/schemas/DeregisterAgentCall","initRegistryConfig":"#/components/schemas/InitRegistryConfigCall","recordScreening":"#/components/schemas/RecordScreeningCall","registerAgent":"#/components/schemas/RegisterAgentCall","setAgentStatus":"#/components/schemas/SetAgentStatusCall","transferAgentOwnership":"#/components/schemas/TransferAgentOwnershipCall","updateAgent":"#/components/schemas/UpdateAgentCall","updateRegistryConfig":"#/components/schemas/UpdateRegistryConfigCall","deactivatePolicy":"#/components/schemas/DeactivatePolicyCall","initInstitution":"#/components/schemas/InitInstitutionCall","setBuyerRoot":"#/components/schemas/SetBuyerRootCall","setInstitutionMultisig":"#/components/schemas/SetInstitutionMultisigCall","setPolicy":"#/components/schemas/SetPolicyCall","updatePolicy":"#/components/schemas/UpdatePolicyCall","initVerifierConfig":"#/components/schemas/InitVerifierConfigCall","recordRelease":"#/components/schemas/RecordReleaseCall","setComplianceProof":"#/components/schemas/SetComplianceProofCall","setPreflightProof":"#/components/schemas/SetPreflightProofCall","updateMppAuthority":"#/components/schemas/UpdateMppAuthorityCall","verifyMppPaymentProof":"#/components/schemas/VerifyMppPaymentProofCall","acceptJob":"#/components/schemas/AcceptJobCall","buyClaim":"#/components/schemas/BuyClaimCall","cancelClaim":"#/components/schemas/CancelClaimCall","cancelFiatJob":"#/components/schemas/CancelFiatJobCall","cancelJob":"#/components/schemas/CancelJobCall","commitTravelRule":"#/components/schemas/CommitTravelRuleCall","createFiatJob":"#/components/schemas/CreateFiatJobCall","createJob":"#/components/schemas/CreateJobCall","escalateMissingProof":"#/components/schemas/EscalateMissingProofCall","executeResolution":"#/components/schemas/ExecuteResolutionCall","finalizeFiatPayment":"#/components/schemas/FinalizeFiatPaymentCall","finalizePayment":"#/components/schemas/FinalizePaymentCall","fundJob":"#/components/schemas/FundJobCall","initConfig":"#/components/schemas/InitConfigCall","lapseDispute":"#/components/schemas/LapseDisputeCall","listClaim":"#/components/schemas/ListClaimCall","raiseDispute":"#/components/schemas/RaiseDisputeCall","resolveDispute":"#/components/schemas/ResolveDisputeCall","submitWork":"#/components/schemas/SubmitWorkCall","syncAgentWallet":"#/components/schemas/SyncAgentWalletCall","updateArbitrators":"#/components/schemas/UpdateArbitratorsCall","updateParams":"#/components/schemas/UpdateParamsCall"}}}}},"servers":[{"url":"https://squaresdksolana-api-production.up.railway.app"}]}