{"openapi":"3.1.0","info":{"title":"bbpservices.net API","description":"Ground motion simulation and site characterization: processes `bbp` (SCEC Broadband Platform), `sw4` (LLNL SW4, low frequency, 1D or 3D velocity model) and `bbp3d` (SW4 LF merged with BBP HF) through OGC API - Processes, and synchronous Vs30 queries at `/v1/sites/vs30`. `info.version` here is the release; `/v1/health` reports the contract version. Guide: https://bbpservices.net/bbpapi-docs/","version":"0.12.0"},"paths":{"/health":{"get":{"summary":"Health","description":"Liveness AND whether work is actually moving.\n\nThis used to return a flat {\"status\": \"ok\"}. During the 2026-08-11 stall it\nsaid \"ok\" for 11 hours while nothing dispatched: the process was up, so a\nprocess-liveness check could not see it. `status` now degrades when the\ndispatch loop cannot start work, and `dispatch` carries the reason plus the\nage of the oldest queued job.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Health Health Get"}}}}}}},"/v1/":{"get":{"summary":"Landing Page","description":"Entry point: links to the contract, conformance, processes, jobs and health.","operationId":"landing_page_v1__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Landing Page V1  Get"}}}}}}},"/v1/conformance":{"get":{"summary":"Conformance","operationId":"conformance_v1_conformance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Conformance V1 Conformance Get"}}}}}}},"/v1/health":{"get":{"summary":"Health V1","description":"/health plus the version layers, served under /v1 so no proxy rule is needed.","operationId":"health_v1_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Health V1 V1 Health Get"}}}}}}},"/v1/processes":{"get":{"summary":"List Processes","description":"The processes, `limit` at a time (OGC /req/core/pl-limit-response), with a\n`next` link while more remain.","operationId":"list_processes_v1_processes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Processes V1 Processes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/processes/{process_id}":{"get":{"summary":"Get Process","operationId":"get_process_v1_processes__process_id__get","parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","title":"Process Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Process V1 Processes  Process Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/methods":{"get":{"summary":"Get Methods","operationId":"get_methods_v1_catalog_methods_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Methods V1 Catalog Methods Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/regions":{"get":{"summary":"Get Regions","operationId":"get_regions_v1_catalog_regions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Regions V1 Catalog Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/validation-events":{"get":{"summary":"Get Validation Events","operationId":"get_validation_events_v1_catalog_validation_events_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Validation Events V1 Catalog Validation Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/versions":{"get":{"summary":"Get Versions","operationId":"get_versions_v1_catalog_versions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Versions V1 Catalog Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/engines":{"get":{"summary":"Get Engines","description":"The compute engines this deployment knows, and the SW4 limits in force.\n\n`enabled` says whether SW4 jobs are accepted here at all; a client checks it\n(or the route's existence) rather than inferring SW4 from a version number.","operationId":"get_engines_v1_catalog_engines_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Engines V1 Catalog Engines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sites/vs30":{"get":{"summary":"Get Site Vs30","description":"Vs30 at one coordinate. `vs30` is null outside UCVM's coverage.","operationId":"get_site_vs30_v1_sites_vs30_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Lon"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Today's JSON; a GeoJSON Feature (vs30_m_s, vs30_source) when the request sends Accept: application/geo+json (D40).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vs30Result"}},"application/geo+json":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Site Vs30","description":"Vs30 at many coordinates, returned in request order.\n\nThe batch form exists because bulk site seeding is the dominant use — the\nintensitylab gazetteer alone is 2,002 sites, and that is 2,002 auth round\ntrips through the single-point endpoint.","operationId":"post_site_vs30_v1_sites_vs30_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Vs30BatchRequest"}}}},"responses":{"200":{"description":"Today's JSON list for a `points` body; a GeoJSON FeatureCollection, in request order with each feature's id, for a FeatureCollection body (D40).","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Vs30Result"},"title":"Response 200 Post Site Vs30 V1 Sites Vs30 Post"}},"application/geo+json":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sites/vs30/limits":{"get":{"summary":"Get Vs30 Limits","description":"The largest batch POST /sites/vs30 accepts, and the backend behind it.\nWhich model answered a point is in that point's own source.","operationId":"get_vs30_limits_v1_sites_vs30_limits_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Vs30 Limits V1 Sites Vs30 Limits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage":{"get":{"summary":"Get Usage","description":"The calling account's own consumption rollup, priced.\n\n`cost` is what this consumption actually cost to produce, from the same rate\ntable `POST /v1/jobs/estimate` quotes against — so a user can hold an\nestimate next to a bill and have the two agree on the arithmetic.","operationId":"get_usage_v1_usage_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO8601 lower bound on job creation","title":"Since"},"description":"ISO8601 lower bound on job creation"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Usage V1 Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/estimate":{"post":{"summary":"Estimate Job","description":"Estimate a job's runtime, footprint and cost without submitting it.\n\nTakes exactly the body `POST /v1/jobs` takes, so a client builds one spec,\nestimates it, then submits the identical bytes — the estimate describes the\njob, not a summary of it.\n\nRuns the *same* `_validate_spec` as submission, so an unrunnable spec fails\nhere with the identical 422 and an estimate that succeeds means a submission\nthat will not be rejected for its contents.\n\nSide-effect free by design: 200 rather than 202, no job row, no\n`Idempotency-Key` handling, no `usage_events` metering. Estimating is free\nand safe to call on every keystroke of a form.","operationId":"estimate_job_v1_jobs_estimate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ScenarioJobSpec"},{"$ref":"#/components/schemas/ValidationJobSpec"},{"$ref":"#/components/schemas/ComparisonJobSpec"},{"$ref":"#/components/schemas/Sw4JobSpec"}],"discriminator":{"propertyName":"mode","mapping":{"scenario":"#/components/schemas/ScenarioJobSpec","validation":"#/components/schemas/ValidationJobSpec","comparison":"#/components/schemas/ComparisonJobSpec","sw4":"#/components/schemas/Sw4JobSpec"}},"title":"Spec"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobEstimate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs":{"post":{"summary":"Submit Job","operationId":"submit_job_v1_jobs_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ScenarioJobSpec"},{"$ref":"#/components/schemas/ValidationJobSpec"},{"$ref":"#/components/schemas/ComparisonJobSpec"},{"$ref":"#/components/schemas/Sw4JobSpec"}],"discriminator":{"propertyName":"mode","mapping":{"scenario":"#/components/schemas/ScenarioJobSpec","validation":"#/components/schemas/ValidationJobSpec","comparison":"#/components/schemas/ComparisonJobSpec","sw4":"#/components/schemas/Sw4JobSpec"}},"title":"Spec"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRef"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Jobs","description":"This account's jobs, newest first, one page at a time.\n\nKeyset pagination on (created_at, id) (T170): `next_cursor` and a `Link:\nrel=\"next\"` header are set only when more jobs exist, so a client that never\npaged sees exactly what it saw before.","operationId":"list_jobs_v1_jobs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"process","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"bbp | sw4","title":"Process"},"description":"bbp | sw4"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"from a previous page's next_cursor","title":"Cursor"},"description":"from a previous page's next_cursor"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Jobs V1 Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/sw4":{"post":{"summary":"Submit Sw4 Job","description":"Submit an SW4 run on an uploaded rupture (multipart: spec + srf).\n\nJobs whose rupture comes from an earlier job (source.kind 'from_job') use\nPOST /v1/jobs. The SRF is size-limited and parsed at submit: a malformed or\nunsupported one is a 422 before any compute.","operationId":"submit_sw4_job_v1_jobs_sw4_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_sw4_job_v1_jobs_sw4_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRef"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/comparison":{"post":{"summary":"Submit Comparison Job","description":"Submit an observed-vs-simulated comparison run.\n\nMultipart body: a JSON ``spec`` (mode=comparison) plus one BBP-format\nacceleration file per station, named ``<station-id>.bbp``. Each uploaded file's\nstation id must match a ``stations[].id`` in the spec; every station in the spec\nmust have an uploaded file. Observed files are stored under\n``OBSERVED_STORE/<job_id>/`` for the worker to stage.","operationId":"submit_comparison_job_v1_jobs_comparison_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_comparison_job_v1_jobs_comparison_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRef"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}":{"get":{"summary":"Get Job","operationId":"get_job_v1_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The job: the OGC status record (statusInfo) if it was submitted through /processes/{id}/execution, otherwise the JobDetail form (design/API_STANDARDS.md §15, D39).","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Dismiss Job","description":"OGC dismiss: cancel a job that no worker has started. A running job cannot\nbe stopped (409), as with POST /jobs/{id}/cancel.","operationId":"dismiss_job_v1_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The job: the OGC status record (statusInfo) if it was submitted through /processes/{id}/execution, otherwise the JobDetail form (design/API_STANDARDS.md §15, D39).","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/cancel":{"post":{"summary":"Cancel Job","operationId":"cancel_job_v1_jobs__job_id__cancel_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/processes/{process_id}/execution":{"post":{"summary":"Execute Process","description":"Submit a job (OGC execute). bbp and sw4 run asynchronously whatever `Prefer`\nasks (their only job control option; OGC auto execution mode): 201, an absolute\nLocation, and the job's status record. `echo` runs either way (echo.py).","operationId":"execute_process_v1_processes__process_id__execution_post","parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","title":"Process Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"prefer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefer"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Execute"}}}},"responses":{"201":{"description":"Job accepted; statusInfo, with Location: /v1/jobs/{jobId}","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/processes/{process_id}/estimate":{"post":{"summary":"Estimate Process","description":"Price a job without running it: the execution body, the same checks, no job,\nno metering. Sites without vs30_m_s are priced as given (Vs30 does not change\nthe cost and is looked up only at execution).","operationId":"estimate_process_v1_processes__process_id__estimate_post","parameters":[{"name":"process_id","in":"path","required":true,"schema":{"type":"string","title":"Process Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Execute"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/secret":{"get":{"summary":"Get Webhook Secret","description":"This account's Standard Webhooks secret, for verifying deliveries to the\n`subscriber` URIs of jobs submitted through /processes/{id}/execution.","operationId":"get_webhook_secret_v1_webhooks_secret_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Webhook Secret V1 Webhooks Secret Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads":{"post":{"summary":"Create Upload","description":"Reserve an upload for an input file (an SRF, or an observed record). PUT the\nfile to `put_url` before `expires_at`, then cite `upload_id` in a job's inputs.\nThe bytes must match `size_bytes` and `sha256`.","operationId":"create_upload_v1_uploads_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_UploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Upload V1 Uploads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads/{upload_id}/content":{"put":{"summary":"Put Upload","description":"The signed PUT URL from POST /uploads. No API key: the signature is the\ncredential, bound to this upload and its account.","operationId":"put_upload_v1_uploads__upload_id__content_put","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"exp","in":"query","required":true,"schema":{"type":"integer","title":"Exp"}},{"name":"sig","in":"query","required":true,"schema":{"type":"string","title":"Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Put Upload V1 Uploads  Upload Id  Content Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads/{upload_id}":{"get":{"summary":"Get Upload","operationId":"get_upload_v1_uploads__upload_id__get","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Upload V1 Uploads  Upload Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/results":{"get":{"summary":"Get Results","description":"The job's outputs as a STAC Item (application/geo+json): one asset per file\nwith a short-lived signed URL, media type, roles, size and SHA-256. 404 until\nthe job has finished; 410 once its data has been deleted or has expired.","operationId":"get_results_v1_jobs__job_id__results_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/realizations":{"get":{"summary":"List Realizations","description":"Per-realization outcomes for one job.\n\n`validation` is each realization's OWN goodness of fit, which is the only\nplace the spread across an ensemble can be read: the job-level figure is\nthe first realization's, deliberately, so a multi-realization run stays\ncomparable with the single-realization baselines the published numbers were\nmeasured against. Parsed out of its column rather than handed over as a JSON\nstring, so a client never has to double-decode one field of a response.","operationId":"list_realizations_v1_jobs__job_id__realizations_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Realizations V1 Jobs  Job Id  Realizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/events":{"get":{"summary":"Job Events","operationId":"job_events_v1_jobs__job_id__events_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"stream","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Stream"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/artifacts":{"get":{"summary":"List Artifacts","description":"A job's stored files. Unpaged unless `limit` is given (T170), so existing\nclients still receive every artifact in one response. `type=srf` also\nmatches the older `rupture` type (design/API_STANDARDS.md §5).","operationId":"list_artifacts_v1_jobs__job_id__artifacts_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"realization","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realization"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"page size; omitted = every artifact","title":"Limit"},"description":"page size; omitted = every artifact"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Artifacts V1 Jobs  Job Id  Artifacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Dataset","description":"Delete this job's stored results. Irreversible.\n\nDeliberately **not** behind `require_submitter`. That gate exists to stop\nunapproved accounts spending money on EC2; deleting spends nothing, and\nmaking it harder than creating would leave users unable to stop paying for\nstorage they no longer want. Ownership is the only thing that matters here\nand `_get_job_row` enforces it.\n\nIdempotent: a second call reports `deleted_count: 0` and 200. A retried or\ndouble-clicked DELETE is not an error, and 404 would tell the caller their\ndata is missing when in fact their first request worked.","operationId":"delete_dataset_v1_jobs__job_id__artifacts_delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Dataset V1 Jobs  Job Id  Artifacts Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/artifacts/{artifact_id}":{"get":{"summary":"Get Artifact","operationId":"get_artifact_v1_artifacts__artifact_id__get","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/data-product":{"get":{"summary":"Get Data Product","description":"Presigned download for the job's single data-product archive.\n\nThe worker builds one ``data_product`` artifact per job (seismograms + derived\ndata + GoF, logs excluded) unless the submitter set ``bundle=false``. Returns a\nfresh short-TTL download URL (S3 presigned GET, ``attachment``), so a 10 GB+\narchive downloads straight from S3 with standard tooling (browser/curl/wget)\nand never transits the front door. 404 if the job produced no data product.","operationId":"get_data_product_v1_jobs__job_id__data_product_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/bundle":{"post":{"summary":"Create Bundle","description":"(Re)build a single-archive bundle of the job's artifacts.","operationId":"create_bundle_v1_jobs__job_id__bundle_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets":{"get":{"summary":"List Datasets","description":"Everything this account is storing, one row per job, plus a total.\n\nOne grouped query rather than a call per job: a client building this view by\nlisting each job's artifacts issues one round trip per row, which is why the\nintensitylab dashboard capped its data page at 25 datasets.","operationId":"list_datasets_v1_datasets_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Datasets V1 Datasets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/{job_id}":{"get":{"summary":"Get Dataset","description":"One dataset: its rollup, its per-file rows, and what replacing it costs.\n\nFiles carry `checksum_sha256` so a downloaded archive can be verified against\nwhat the service holds, and tombstones are included and flagged — \"this file\nexisted and was deleted on the 4th\" is a real answer, not a gap.","operationId":"get_dataset_v1_datasets__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Dataset V1 Datasets  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/download":{"get":{"summary":"Download","description":"Signed download endpoint (S3-presigned-GET stand-in). No API key required.\n\nThe account is read from the row rather than the query string and fed back\ninto signature verification, so the link is bound to the owner it was minted\nfor. `deleted_at IS NULL` is the load-bearing part: without it a link minted\nminutes before a delete keeps serving a path whose bytes are gone, which\nfails as a confusing 500 from FileResponse instead of an honest 404.","operationId":"download_v1_download_get","parameters":[{"name":"art","in":"query","required":true,"schema":{"type":"string","title":"Art"}},{"name":"exp","in":"query","required":true,"schema":{"type":"integer","title":"Exp"}},{"name":"sig","in":"query","required":true,"schema":{"type":"string","title":"Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ArtifactDetail":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"realization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realization"},"filename":{"type":"string","title":"Filename"},"station_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Station Id"},"size_bytes":{"type":"integer","title":"Size Bytes"},"checksum_sha256":{"type":"string","title":"Checksum Sha256"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"srf_summary":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Srf Summary"},"links":{"type":"object","title":"Links"},"download_url":{"type":"string","title":"Download Url"},"download_url_expires_at":{"type":"string","title":"Download Url Expires At"}},"type":"object","required":["id","type","filename","size_bytes","checksum_sha256","created_at","links","download_url","download_url_expires_at"],"title":"ArtifactDetail"},"Body_submit_comparison_job_v1_jobs_comparison_post":{"properties":{"spec":{"type":"string","title":"Spec","description":"ComparisonJobSpec as JSON"},"observed":{"items":{"type":"string","format":"binary"},"type":"array","title":"Observed","description":"One <station-id>.bbp per site"}},"type":"object","required":["spec","observed"],"title":"Body_submit_comparison_job_v1_jobs_comparison_post"},"Body_submit_sw4_job_v1_jobs_sw4_post":{"properties":{"spec":{"type":"string","title":"Spec","description":"Sw4JobSpec as JSON, with source.kind 'srf_upload'"},"srf":{"type":"string","format":"binary","title":"Srf","description":"The rupture, SRF version 1 or 2"}},"type":"object","required":["spec","srf"],"title":"Body_submit_sw4_job_v1_jobs_sw4_post"},"ComparisonJobSpec":{"properties":{"mode":{"type":"string","const":"comparison","title":"Mode","default":"comparison"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"bbp_version":{"type":"string","title":"Bbp Version","description":"Which BBP build to run. Omit for the service default. GET /v1/catalog/versions lists the ids, each with the source repo, ref and commit it was compiled from."},"method":{"type":"string","title":"Method","default":"GP"},"region":{"type":"string","title":"Region","default":"LABasin500"},"event_id":{"type":"string","maxLength":64,"minLength":1,"title":"Event Id","description":"Real earthquake id the observed data is from"},"source":{"$ref":"#/components/schemas/SourceSpec"},"stations":{"items":{"$ref":"#/components/schemas/StationSpec"},"type":"array","minItems":1,"title":"Stations"},"realizations":{"$ref":"#/components/schemas/RealizationSpec","default":{"count":1,"seed_strategy":"auto","name_prefix":"r"}},"post_processing":{"$ref":"#/components/schemas/PostProcessingSpec","default":{"response_spectra":true,"goodness_of_fit":false,"plots":true,"maps":true}},"bundle":{"type":"boolean","title":"Bundle","description":"See ScenarioJobSpec.bundle.","default":true},"keep_components":{"type":"boolean","title":"Keep Components","description":"Keep BBP LF and BBP HF separately, not only the merged record: per station, the velocity records before site response (<sta>-lf.bbp, <sta>-hf.bbp) and the velocity and acceleration records after it (<sta>-lf.vel.bbp, -lf.acc.bbp, -hf.vel.bbp, -hf.acc.bbp), as artifacts of type seismogram_component. About 1.2 MB per station per realization for GP.","default":false},"client_metadata":{"anyOf":[{"type":"string","maxLength":32768},{"type":"null"}],"title":"Client Metadata","description":"See ScenarioJobSpec.client_metadata."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Optional HTTPS endpoint POSTed when the job reaches a terminal state (succeeded, failed, canceled, completed_with_errors). Signed with a BBP-Signature header; retried with exponential backoff. SSE remains available for live monitoring."}},"type":"object","required":["name","event_id","source","stations"],"title":"ComparisonJobSpec","description":"Compare a simulated event against real observed seismograms.\n\nRuns a scenario-style GP simulation (the ``source`` at ``stations``) plus the\nBBP goodness-of-fit chain against **user-supplied observed acceleration** — one\nBBP-format ``<station-id>.bbp`` file per site, uploaded alongside this spec via\n``POST /v1/jobs/comparison`` (not carried in the JSON). ``event_id`` is the\nreal earthquake (e.g. USGS ``ci41291863``) the observed data was fetched for;\nit labels the run and the GoF outputs. Unlike ``validation``, the observed data\nis not an installed SCEC package, so the source is user-provided (typically\nauto-derived from the USGS moment tensor)."},"EstimateCost":{"properties":{"currency":{"type":"string","title":"Currency","default":"USD"},"compute_usd":{"type":"number","title":"Compute Usd"},"storage_usd":{"type":"number","title":"Storage Usd"},"total_usd":{"type":"number","title":"Total Usd"},"rate_basis":{"type":"object","title":"Rate Basis","description":"Every rate used to produce the figures above. Echoed so a client never has to hold its own copy of a price."}},"type":"object","required":["compute_usd","storage_usd","total_usd","rate_basis"],"title":"EstimateCost"},"EstimateRange":{"properties":{"instance_seconds":{"items":{"type":"number"},"type":"array","title":"Instance Seconds"},"artifacts_bytes":{"items":{"type":"integer"},"type":"array","title":"Artifacts Bytes"},"total_usd":{"items":{"type":"number"},"type":"array","title":"Total Usd"}},"type":"object","required":["instance_seconds","artifacts_bytes","total_usd"],"title":"EstimateRange","description":"Low/high band as `[low, high]` pairs.\n\nThis is the p10/p90 spread of the fit's residuals against the sample it was\nbuilt from — an observed spread, **not** a confidence interval and not a\nguarantee. On a cold start it is a fixed fractional band."},"EstimateUsage":{"properties":{"instance_seconds":{"type":"number","title":"Instance Seconds","description":"Billed EC2 wall clock, the basis for compute cost."},"compute_seconds":{"type":"number","title":"Compute Seconds","description":"BBP subprocess time, always <= instance_seconds."},"artifacts_bytes":{"type":"integer","title":"Artifacts Bytes"},"storage_byte_days":{"type":"number","title":"Storage Byte Days","description":"Predicted occupancy: artifacts_bytes x RETENTION_DAYS — what keeping these results for the whole retention window would cost. A forecast of the maximum, not a commitment: actual storage is metered by the day against artifacts that still exist, so deleting results early bills less than this quotes. Legitimately 0 when RETENTION_DAYS=0, which means results are kept indefinitely and there is no window to quote against."},"instance_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance Type"},"wall_clock_seconds":{"type":"number","title":"Wall Clock Seconds","description":"Expected elapsed time from submit to terminal. Equal to instance_seconds today because realizations run serially on one instance."}},"type":"object","required":["instance_seconds","compute_seconds","artifacts_bytes","storage_byte_days","wall_clock_seconds"],"title":"EstimateUsage","description":"Predicted resource footprint of one job, in the same units the job's own\n`usage` block reports after it runs — so an estimate and an actual can be\ncompared field by field without conversion."},"Execute":{"properties":{"inputs":{"type":"object","title":"Inputs"},"outputs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Outputs"},"response":{"anyOf":[{"type":"string","enum":["raw","document"]},{"type":"null"}],"title":"Response"},"subscriber":{"anyOf":[{"$ref":"#/components/schemas/Subscriber"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"client_metadata":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Client Metadata"}},"type":"object","required":["inputs"],"title":"Execute","description":"An OGC execute request. `inputs` is validated against the process in the path.\n`outputs` and `response` are OGC's; bbp and sw4 have one output (their STAC\nresults), so only `echo` acts on them."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JobDetail":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"mode":{"type":"string","title":"Mode"},"engine":{"type":"string","title":"Engine","default":"bbp"},"method":{"type":"string","title":"Method"},"name":{"type":"string","title":"Name"},"bbp_version":{"type":"string","title":"Bbp Version"},"bbp_source_commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bbp Source Commit"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"realizations_total":{"type":"integer","title":"Realizations Total"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"links":{"type":"object","title":"Links"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"realizations_succeeded":{"type":"integer","title":"Realizations Succeeded","default":0},"realizations_failed":{"type":"integer","title":"Realizations Failed","default":0},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"usage":{"type":"object","title":"Usage","default":{}},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"validation":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Validation"}},"type":"object","required":["id","status","mode","method","name","bbp_version","realizations_total","created_at","links"],"title":"JobDetail"},"JobEstimate":{"properties":{"basis":{"type":"string","enum":["measured","modeled","cold_start"],"title":"Basis","description":"measured = fitted from comparable completed jobs on this deployment; modeled = fitted from this method in other regions; cold_start = no history, published baselines."},"confidence":{"type":"string","enum":["high","medium","low"],"title":"Confidence"},"sample_size":{"type":"integer","title":"Sample Size"},"sample_window_days":{"type":"integer","title":"Sample Window Days"},"sample_key":{"type":"string","title":"Sample Key","description":"Which key level the sample was drawn at."},"inputs":{"type":"object","title":"Inputs","description":"What was read out of the spec to produce the estimate."},"estimated":{"$ref":"#/components/schemas/EstimateUsage"},"range":{"$ref":"#/components/schemas/EstimateRange"},"cost":{"$ref":"#/components/schemas/EstimateCost"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats","description":"Plain-language limits. Render these; do not filter them."}},"type":"object","required":["basis","confidence","sample_size","sample_window_days","sample_key","inputs","estimated","range","cost"],"title":"JobEstimate","description":"Response of `POST /v1/jobs/estimate`.\n\nEstimating has no side effects: no job row, no idempotency key, no metering.\nSubmitting the identical body to `POST /v1/jobs` runs the job this describes."},"JobRef":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"mode":{"type":"string","title":"Mode"},"engine":{"type":"string","title":"Engine","default":"bbp"},"method":{"type":"string","title":"Method"},"name":{"type":"string","title":"Name"},"bbp_version":{"type":"string","title":"Bbp Version"},"bbp_source_commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bbp Source Commit"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"realizations_total":{"type":"integer","title":"Realizations Total"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"links":{"type":"object","title":"Links"}},"type":"object","required":["id","status","mode","method","name","bbp_version","realizations_total","created_at","links"],"title":"JobRef"},"PostProcessingSpec":{"properties":{"response_spectra":{"type":"boolean","title":"Response Spectra","default":true},"goodness_of_fit":{"type":"boolean","title":"Goodness Of Fit","default":false},"plots":{"type":"boolean","title":"Plots","default":true},"maps":{"type":"boolean","title":"Maps","default":true}},"type":"object","title":"PostProcessingSpec"},"RealizationSpec":{"properties":{"count":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Count","default":1},"seed_strategy":{"type":"string","enum":["auto","fixed"],"title":"Seed Strategy","default":"auto"},"name_prefix":{"type":"string","title":"Name Prefix","default":"r"}},"type":"object","title":"RealizationSpec"},"ScenarioJobSpec":{"properties":{"mode":{"type":"string","const":"scenario","title":"Mode","default":"scenario"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"bbp_version":{"type":"string","title":"Bbp Version","description":"Which BBP build to run. Omit for the service default. GET /v1/catalog/versions lists the ids, each with the source repo, ref and commit it was compiled from."},"method":{"type":"string","title":"Method","default":"GP"},"region":{"type":"string","title":"Region","default":"LABasin500"},"source":{"$ref":"#/components/schemas/SourceSpec"},"stations":{"items":{"$ref":"#/components/schemas/StationSpec"},"type":"array","minItems":1,"title":"Stations"},"realizations":{"$ref":"#/components/schemas/RealizationSpec","default":{"count":1,"seed_strategy":"auto","name_prefix":"r"}},"post_processing":{"$ref":"#/components/schemas/PostProcessingSpec","default":{"response_spectra":true,"goodness_of_fit":false,"plots":true,"maps":true}},"bundle":{"type":"boolean","title":"Bundle","description":"Package the run's data products (seismograms, response spectra, FAS, GoF; logs excluded) into a single downloadable data_product.tar.gz artifact. Machine clients that fetch per-station seismograms directly (e.g. the animation builder) set this False.","default":true},"keep_components":{"type":"boolean","title":"Keep Components","description":"Keep BBP LF and BBP HF separately, not only the merged record: per station, the velocity records before site response (<sta>-lf.bbp, <sta>-hf.bbp) and the velocity and acceleration records after it (<sta>-lf.vel.bbp, -lf.acc.bbp, -hf.vel.bbp, -hf.acc.bbp), as artifacts of type seismogram_component. About 1.2 MB per station per realization for GP.","default":false},"client_metadata":{"anyOf":[{"type":"string","maxLength":32768},{"type":"null"}],"title":"Client Metadata","description":"Client-supplied run description, written verbatim into the data-product archive as run_metadata.txt. Not interpreted by the service."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Optional HTTPS endpoint POSTed when the job reaches a terminal state (succeeded, failed, canceled, completed_with_errors). Signed with a BBP-Signature header; retried with exponential backoff. SSE remains available for live monitoring."}},"type":"object","required":["name","source","stations"],"title":"ScenarioJobSpec"},"SitePoint":{"properties":{"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Lat"},"lon":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Lon"}},"type":"object","required":["lat","lon"],"title":"SitePoint","description":"A coordinate to resolve Vs30 at. Accepts flat lat/lon or GeoJSON."},"SourceSpec":{"properties":{"magnitude":{"type":"number","title":"Magnitude"},"fault_length":{"type":"number","title":"Fault Length","description":"km"},"fault_width":{"type":"number","title":"Fault Width","description":"km"},"depth_to_top":{"type":"number","title":"Depth To Top","description":"km"},"strike":{"type":"number","title":"Strike"},"rake":{"type":"number","title":"Rake"},"dip":{"type":"number","title":"Dip"},"lat_top_center":{"type":"number","title":"Lat Top Center"},"lon_top_center":{"type":"number","title":"Lon Top Center"},"hypo_along_strike":{"type":"number","title":"Hypo Along Strike"},"hypo_down_dip":{"type":"number","title":"Hypo Down Dip"},"dwid":{"type":"number","title":"Dwid","default":0.2},"dlen":{"type":"number","title":"Dlen","default":0.2},"corner_freq":{"type":"number","title":"Corner Freq","default":0.15},"corner_freq_1":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Corner Freq 1"},"corner_freq_2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Corner Freq 2"},"seed":{"type":"integer","title":"Seed","default":2379646}},"type":"object","required":["magnitude","fault_length","fault_width","depth_to_top","strike","rake","dip","lat_top_center","lon_top_center","hypo_along_strike","hypo_down_dip"],"title":"SourceSpec","description":"A BBP scenario source description (fields of a `.src` file)."},"StationSpec":{"properties":{"lon":{"type":"number","title":"Lon"},"lat":{"type":"number","title":"Lat"},"id":{"type":"string","title":"Id"},"vs30":{"type":"integer","title":"Vs30"},"lp_freq":{"type":"number","title":"Lp Freq","description":"Low-pass corner (Hz)","default":0.1},"hp_freq":{"type":"number","title":"Hp Freq","description":"High-pass corner (Hz)","default":20.0}},"type":"object","required":["lon","lat","id","vs30"],"title":"StationSpec","description":"One row of a BBP station list (`.stl`).\n\nAccepts either flat `lat`/`lon` or GeoJSON — see `_coerce_geojson`. As a\nFeature, `properties` carries `id`, `vs30` and the corner frequencies."},"Subscriber":{"properties":{"successUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Successuri"},"inProgressUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inprogressuri"},"failedUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Faileduri"}},"additionalProperties":false,"type":"object","title":"Subscriber","description":"OGC subscriber URIs (T172 Phase 2c). Each is checked like `webhook_url`:\nhttps, and not a loopback, link-local or private address."},"Sw4Compute":{"properties":{"priority":{"type":"string","const":"standard","title":"Priority","default":"standard"},"max_cost_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Cost Usd","description":"Refused at submit if the estimate's upper bound is higher"}},"type":"object","title":"Sw4Compute"},"Sw4Domain":{"properties":{"auto":{"$ref":"#/components/schemas/Sw4DomainAuto","default":{"margin_km":5.0,"include":["fault","site_motions"],"max_extent_km":200.0}}},"type":"object","title":"Sw4Domain"},"Sw4DomainAuto":{"properties":{"margin_km":{"type":"number","maximum":50.0,"minimum":5.0,"title":"Margin Km","description":"Padding beyond the fault and sites, inside the sponge","default":5.0},"include":{"items":{"type":"string","enum":["fault","site_motions"]},"type":"array","title":"Include","default":["fault","site_motions"]},"max_extent_km":{"type":"number","maximum":600.0,"exclusiveMinimum":0.0,"title":"Max Extent Km","default":200.0}},"type":"object","title":"Sw4DomainAuto"},"Sw4Frames":{"properties":{"dt_s":{"type":"number","maximum":2.0,"exclusiveMinimum":0.0,"title":"Dt S","description":"Frame step (s)","default":0.2},"keep_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Keep Days","description":"Frame retention (D18)","default":14}},"type":"object","title":"Sw4Frames"},"Sw4JobSpec":{"properties":{"mode":{"type":"string","const":"sw4","title":"Mode","default":"sw4"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"sw4_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sw4 Version","description":"Omit: one SW4 build is served (GET /v1/catalog/engines)"},"source":{"oneOf":[{"$ref":"#/components/schemas/Sw4SourceFromJob"},{"$ref":"#/components/schemas/Sw4SourceSrfUpload"}],"title":"Source","discriminator":{"propertyName":"kind","mapping":{"from_job":"#/components/schemas/Sw4SourceFromJob","srf_upload":"#/components/schemas/Sw4SourceSrfUpload"}}},"velocity_model":{"$ref":"#/components/schemas/Sw4VelocityModel"},"resolution":{"$ref":"#/components/schemas/Sw4Resolution","default":{"f_max":0.5,"points_per_wavelength":5.0,"source_corner_hz":0.7}},"domain":{"$ref":"#/components/schemas/Sw4Domain","default":{"auto":{"include":["fault","site_motions"],"margin_km":5.0,"max_extent_km":200.0}}},"duration_s":{"type":"number","maximum":600.0,"minimum":10.0,"title":"Duration S","description":"Simulated time after the origin (s)","default":100.0},"products":{"$ref":"#/components/schemas/Sw4Products"},"compute":{"$ref":"#/components/schemas/Sw4Compute","default":{"priority":"standard"}},"client_metadata":{"anyOf":[{"type":"string","maxLength":32768},{"type":"null"}],"title":"Client Metadata","description":"See ScenarioJobSpec.client_metadata."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Optional HTTPS endpoint POSTed when the job reaches a terminal state (succeeded, failed, canceled, completed_with_errors). Signed with a BBP-Signature header; retried with exponential backoff. SSE remains available for live monitoring."}},"type":"object","required":["name","source","velocity_model","products"],"title":"Sw4JobSpec","description":"An SW4 low-frequency run (T108). See design/API_SPEC.md §10.4."},"Sw4Products":{"properties":{"site_motions":{"anyOf":[{"$ref":"#/components/schemas/Sw4SiteMotions"},{"type":"null"}]},"wavefield":{"anyOf":[{"$ref":"#/components/schemas/Sw4Wavefield"},{"type":"null"}]}},"type":"object","title":"Sw4Products"},"Sw4Resolution":{"properties":{"f_max":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"F Max","description":"Highest valid frequency (Hz)","default":0.5},"points_per_wavelength":{"type":"number","maximum":12.0,"minimum":4.0,"title":"Points Per Wavelength","default":5.0},"h_m":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"H M","description":"Explicit finest grid spacing (m)"},"source_corner_hz":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Source Corner Hz","description":"Source low-pass corner; default 1.4 × f_max"}},"type":"object","title":"Sw4Resolution","description":"Grid resolution: h = vs_min / (f_max × points_per_wavelength) (D24).\n\nThe result is rounded down to the supported ladder (100, 200, 400 m), or\ngiven directly as h_m. \"1 Hz\" is f_max 1.0, 5 points per wavelength, source\ncorner 1.4 × f_max."},"Sw4Site":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","title":"Id","description":"Unique in the job; used as the output file name"},"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Lat"},"lon":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Lon"},"depth_m":{"type":"number","maximum":5000.0,"minimum":0.0,"title":"Depth M","description":"0 = free surface","default":0.0}},"type":"object","required":["id","lat","lon"],"title":"Sw4Site","description":"One output site (an SW4 `rec` point). Flat lat/lon or GeoJSON."},"Sw4SiteMotions":{"properties":{"stations":{"items":{"$ref":"#/components/schemas/Sw4Site"},"type":"array","minItems":1,"title":"Stations"},"outside_domain":{"type":"string","enum":["refuse","drop"],"title":"Outside Domain","default":"refuse"},"outputs":{"items":{"type":"string","enum":["velocity","acceleration","displacement","peaks"]},"type":"array","title":"Outputs","default":["acceleration","peaks","velocity"]}},"type":"object","required":["stations"],"title":"Sw4SiteMotions"},"Sw4SourceFromJob":{"properties":{"kind":{"type":"string","const":"from_job","title":"Kind","default":"from_job"},"job_id":{"type":"string","maxLength":64,"minLength":1,"title":"Job Id"},"realization":{"type":"integer","minimum":1.0,"title":"Realization","description":"1-based realization number","default":1}},"type":"object","required":["job_id"],"title":"Sw4SourceFromJob","description":"The SRF of a finished job owned by the same account (D19)."},"Sw4SourceSrfUpload":{"properties":{"kind":{"type":"string","const":"srf_upload","title":"Kind","default":"srf_upload"}},"type":"object","title":"Sw4SourceSrfUpload","description":"An SRF (v1 or v2) uploaded as multipart part \"srf\" with the spec."},"Sw4VelocityModel":{"properties":{"kind":{"type":"string","enum":["bbp_1d","ucvm"],"title":"Kind","default":"bbp_1d"},"model":{"anyOf":[{"type":"string","enum":["cvmsi","sfcvm","auto"]},{"type":"null"}],"title":"Model","description":"ucvm only: cvmsi, sfcvm, or auto"},"region":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Region","description":"Installed BBP region whose 1D model is used (with ucvm: to fill the domain outside the 3D model). With source.kind 'from_job' it may be omitted: the source job's region is used, so the event's BBP and SW4 products share one velocity model. Required with 'srf_upload'."},"vs_min":{"type":"number","maximum":2000.0,"minimum":250.0,"title":"Vs Min","description":"Minimum shear velocity (m/s) imposed on the model","default":500.0}},"type":"object","title":"Sw4VelocityModel","description":"The material model. bbp_1d: the region's layered BBP model. ucvm: a 3D\ncommunity model through UCVM (T149): \"cvmsi\" (CVM-S4.26.M01, Southern\nCalifornia), \"sfcvm\" (SF-CVM 21.1, Northern California), or \"auto\" (the model\nwhose detailed region covers the hypocentre and the most of the domain). The\npart of the domain outside the model is filled from the region's 1D model,\nblended at the edge. A domain the model does not cover well enough is refused\nat submit (422 outside_model), so a client can resubmit as bbp_1d."},"Sw4Wavefield":{"properties":{"frames":{"$ref":"#/components/schemas/Sw4Frames","default":{"dt_s":0.2,"keep_days":14}},"pgv_map":{"type":"boolean","title":"Pgv Map","default":true}},"type":"object","title":"Sw4Wavefield"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValidationJobSpec":{"properties":{"mode":{"type":"string","const":"validation","title":"Mode","default":"validation"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"bbp_version":{"type":"string","title":"Bbp Version","description":"Which BBP build to run. Omit for the service default. GET /v1/catalog/versions lists the ids, each with the source repo, ref and commit it was compiled from."},"method":{"type":"string","title":"Method","default":"GP"},"validation_event":{"type":"string","title":"Validation Event","default":"NR"},"realizations":{"$ref":"#/components/schemas/RealizationSpec","default":{"count":1,"seed_strategy":"auto","name_prefix":"r"}},"post_processing":{"$ref":"#/components/schemas/ValidationPostProcessingSpec","default":{"response_spectra":true,"goodness_of_fit":true,"plots":true,"maps":true}},"compare_to_reference":{"type":"boolean","title":"Compare To Reference","default":true},"station_set":{"type":"string","enum":["full","acceptance"],"title":"Station Set","description":"Which of the package's stations to run. 'full' is every station the package ships and is what a published goodness-of-fit number should be based on. 'acceptance' is the curated subset sized to SCEC's reference outputs — 3 stations for Northridge, which is the only event with references — and is cheaper but not a credible GoF sample.","default":"full"},"bundle":{"type":"boolean","title":"Bundle","description":"See ScenarioJobSpec.bundle.","default":true},"keep_components":{"type":"boolean","title":"Keep Components","description":"Keep BBP LF and BBP HF separately, not only the merged record: per station, the velocity records before site response (<sta>-lf.bbp, <sta>-hf.bbp) and the velocity and acceleration records after it (<sta>-lf.vel.bbp, -lf.acc.bbp, -hf.vel.bbp, -hf.acc.bbp), as artifacts of type seismogram_component. About 1.2 MB per station per realization for GP.","default":false},"client_metadata":{"anyOf":[{"type":"string","maxLength":32768},{"type":"null"}],"title":"Client Metadata","description":"See ScenarioJobSpec.client_metadata."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Optional HTTPS endpoint POSTed when the job reaches a terminal state (succeeded, failed, canceled, completed_with_errors). Signed with a BBP-Signature header; retried with exponential backoff. SSE remains available for live monitoring."}},"type":"object","required":["name"],"title":"ValidationJobSpec"},"ValidationPostProcessingSpec":{"properties":{"response_spectra":{"type":"boolean","title":"Response Spectra","default":true},"goodness_of_fit":{"type":"boolean","title":"Goodness Of Fit","default":true},"plots":{"type":"boolean","title":"Plots","default":true},"maps":{"type":"boolean","title":"Maps","default":true}},"type":"object","title":"ValidationPostProcessingSpec","description":"Same fields, but goodness of fit defaults ON.\n\nA validation run exists to be compared with the observed recordings its\npackage ships; the GoF modules are the only thing that produces that\ncomparison. Inheriting the scenario default of False meant a bare validation\nspec ran the full simulation and emitted no bias numbers at all — and on a\nscenario run the flag does nothing anyway, because build_scenario_workflow\nnever calls _gof_modules. The default belongs with the mode that uses it."},"Vs30BatchRequest":{"properties":{"points":{"items":{"$ref":"#/components/schemas/SitePoint"},"type":"array","minItems":1,"title":"Points"}},"type":"object","required":["points"],"title":"Vs30BatchRequest","description":"Body of POST /v1/sites/vs30. Results come back in request order.\n\nAlso accepts a GeoJSON FeatureCollection in place of `points`; the results\nkeep their request order either way."},"Vs30Result":{"properties":{"lat":{"type":"number","title":"Lat"},"lon":{"type":"number","title":"Lon"},"vs30":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vs30"},"source":{"type":"string","title":"Source"}},"type":"object","required":["lat","lon","vs30","source"],"title":"Vs30Result","description":"One resolved site — the Vs30 that parameterises `StationSpec.vs30`.\n\n`vs30` is null wherever UCVM has no value: outside its coverage, or when the\nbackend could not answer. The two are not distinguished on purpose — the\ncaller's response to both is the same (apply its own fallback), and claiming\nto know which one occurred would be guessing."},"_UploadRequest":{"properties":{"purpose":{"type":"string","title":"Purpose"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["purpose","filename","size_bytes","sha256"],"title":"_UploadRequest"}}}}