{"openapi":"3.1.0","info":{"title":"OpenSci Commercial API","summary":"OpenSci Commercial API v1: resolution, Order, bank-transfer payment, protected delivery and Account tokens.","description":"The commercial API of OpenSci, for a person or their own Agent. The easiest path is the `os-optics` Python package: `os_optics.client.OpenSciClient` and the `os-optics` command line (`account`, `resolve`, `order`, `assembly`, `artifacts`) call these routes, open protected deliveries in memory and upload results; `GET /api/v1` describes the whole journey. Sequence: submit a Project with the Local Validation record of its local run; read the resolution's Customer Purchase BOM, prices and assembly notes; create the Order (`POST /api/v1/orders`): a token carrying `commercial:order:place` authorizes the Agent to create it; the Order returns its Order Number, quotation, agreement and corporate bank-transfer instructions; the customer pays by bank transfer with the Order Number as the transfer remark; the Agent reports the transfer when the person who paid says it was made; OpenSci confirms receipt; then the Assembly Detail is available and the Detailed Assembly Drawing is generated locally. Authentication: a scoped OpenSci Account token (`Authorization: Bearer oat_...`). Every POST that creates something takes an `Idempotency-Key` header. Every error body carries a `recovery` code.","version":"1.0.0"},"paths":{"/api/v1":{"get":{"tags":["discovery"],"summary":"Capabilities document: helpers, journey, token scopes and routes (public)","operationId":"get_capabilities_api_v1_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilitiesDocumentV1"}}}}}}},"/api/v1/health":{"get":{"tags":["discovery"],"summary":"Liveness and readiness: database, ACTIVE catalog release, artifact store (public)","operationId":"get_health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthV1"}}}},"503":{"description":"Not ready: the database, the catalog or the artifact store","headers":{"Retry-After":{"description":"Sent with every 503: seconds until the service may be ready again.","required":false,"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthV1"}}}}}}},"/api/v1/account/token":{"get":{"tags":["account"],"summary":"The presented token: organization, scopes, capabilities, expiry (any valid token)","description":"Read what the token in the Authorization header can do. No scope is needed. Use it to check a token before use and after rotation.","operationId":"get_token_status_api_v1_account_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTokenStatusV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]},"delete":{"tags":["account"],"summary":"Revoke the presented token itself, immediately (any valid token)","description":"The token stops working as soon as this response arrives. Use it after rotating to a new token, or when a token may have been exposed. Returns the token with status REVOKED.","operationId":"delete_presented_token_api_v1_account_token_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTokenStatusV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/account/tokens":{"get":{"tags":["account"],"summary":"List your tokens, newest first (scope `account:token:manage`)","description":"Non-secret records of the tokens of this Account member: scopes, capabilities, label, lifecycle, expiry (null for permanent), and status (ACTIVE, CONSUMED, EXPIRED or REVOKED). A consumed single-use token retains its read scopes. A token's secret is never shown again.","operationId":"get_member_tokens_api_v1_account_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTokenListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]},"post":{"tags":["account"],"summary":"Issue a token for your Agent (scope `account:token:manage`)","description":"Give exactly one of `scopes` or `profile` (`agent`: every customer commercial capability; `review`: resolve, view the Experimental Lab Assembly, read Orders and artifacts; it cannot create Orders or report payments). The token is for the same member and organization, never carries `account:token:manage`. Choose SINGLE_USE (one successful Order; reads remain), TIME_LIMITED (up to 30 days) or PERMANENT (no expiry, revocable). A bounded issuer cannot issue a permanent token. 201 returns the secret `credential` exactly once: store it in a file only you can read (for example with `os-optics account token create --profile agent --save`). A retry with the same Idempotency-Key and body returns 200 with `replayed: true` and `credential: null`.","operationId":"post_member_token_api_v1_account_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTokenCreateRequestV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTokenIssueResultV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `ISSUING_TOKEN_EXPIRES_SOON` (recovery `REQUEST_NEW_TOKEN`); `REQUEST_INVALID` (recovery `FIX_REQUEST`); `TOKEN_REQUEST_INVALID` (recovery `FIX_REQUEST`); `TOKEN_SCOPE_NOT_ISSUABLE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"ISSUING_TOKEN_EXPIRES_SOON","status":422,"recovery":"REQUEST_NEW_TOKEN"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"TOKEN_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"TOKEN_SCOPE_NOT_ISSUABLE","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/account/tokens/{token_id}":{"delete":{"tags":["account"],"summary":"Revoke one of your tokens, immediately (scope `account:token:manage`)","description":"Revoking a token that is already revoked returns it unchanged. A token of another member or organization is not found.","operationId":"delete_member_token_api_v1_account_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTokenStatusV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `TOKEN_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"TOKEN_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/account/addresses":{"get":{"tags":["account"],"summary":"List the organization's shipping addresses, the default first (scope `commercial:order:place` or `commercial:order:read`)","description":"The address book of your organization (mainland China). `POST /api/v1/orders` without `shipping_address_id` ships to `default_address_id`. A token that may create Orders or read them may list; only `commercial:order:place` may add. Addresses are personal data: show them to the person you work for, never log or share them.","operationId":"get_addresses_api_v1_account_addresses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingAddressListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]},"post":{"tags":["account"],"summary":"Add a shipping address in mainland China (scope `commercial:order:place`)","description":"Ask the person for the recipient, an 11-digit mobile number, province, city, district and street address (postal code and label optional). The first address becomes the default; `make_default: true` makes this one the default. At most 20 addresses (409 SHIPPING_ADDRESS_LIMIT_REACHED). An invalid value is 422 SHIPPING_ADDRESS_INVALID with `details.invalid_fields`. 201 for a new address; 200 with `replayed: true` for a retry with the same Idempotency-Key and body. Editing and deleting addresses is done on the Account website.","operationId":"post_address_api_v1_account_addresses_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingAddressCreateRequestV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingAddressCreationResultV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`); `SHIPPING_ADDRESS_LIMIT_REACHED` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`); `SHIPPING_ADDRESS_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"SHIPPING_ADDRESS_LIMIT_REACHED","status":409,"recovery":"FIX_REQUEST"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"SHIPPING_ADDRESS_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/account/billing-titles":{"get":{"tags":["account"],"summary":"List the organization's billing titles, the default first (scope `commercial:order:place` or `commercial:order:read`)","description":"The billing titles (单位抬头) of your organization: the customer its quotations and agreements name -- an organization or a person -- with its taxpayer ID, address, phone, bank and bank account when given. `POST /api/v1/orders` without `billing_title_id` names `default_billing_title_id`; with no title at all the Order names the account name. A token that may create Orders or read them may list; only `commercial:order:place` may change the titles. A title can name a person: show the titles to the person you work for, never log or share them.","operationId":"get_billing_titles_api_v1_account_billing_titles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]},"post":{"tags":["account"],"summary":"Add a billing title (scope `commercial:order:place`)","description":"Ask the person which organization or person their quotations and agreements should name: `kind` (ORGANIZATION or INDIVIDUAL) and `name` are required; taxpayer ID, address, phone, bank and bank account are optional, give those the person wants shown. The first title becomes the default; `make_default: true` makes this one the default. At most 20 titles (409 BILLING_TITLE_LIMIT_REACHED). An invalid value is 422 BILLING_TITLE_INVALID with `details.invalid_fields`. 201 for a new title; 200 with `replayed: true` for a retry with the same Idempotency-Key and body.","operationId":"post_billing_title_api_v1_account_billing_titles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleCreateRequestV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleCreationResultV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `BILLING_TITLE_LIMIT_REACHED` (recovery `FIX_REQUEST`); `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `BILLING_TITLE_INVALID` (recovery `FIX_REQUEST`); `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"BILLING_TITLE_LIMIT_REACHED","status":409,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"BILLING_TITLE_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/account/billing-titles/{billing_title_id}":{"patch":{"tags":["account"],"summary":"Change a billing title (scope `commercial:order:place`)","description":"Send only the fields to change; `null` clears an optional detail. The whole title is checked again (422 BILLING_TITLE_INVALID with `details.invalid_fields`). Orders already placed keep the title they were placed with. A title of another organization, or a deleted one, is 404 BILLING_TITLE_NOT_FOUND.","operationId":"patch_billing_title_api_v1_account_billing_titles__billing_title_id__patch","parameters":[{"name":"billing_title_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Title Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `BILLING_TITLE_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `BILLING_TITLE_INVALID` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleUpdateRequestV1"}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"BILLING_TITLE_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"BILLING_TITLE_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]},"delete":{"tags":["account"],"summary":"Delete a billing title (scope `commercial:order:place`)","description":"The title is deleted; Orders already placed keep their own copy of it. When it was the default, the most recently added remaining title becomes the default. Returns the remaining titles. A title of another organization, or one already deleted, is 404 BILLING_TITLE_NOT_FOUND.","operationId":"delete_billing_title_api_v1_account_billing_titles__billing_title_id__delete","parameters":[{"name":"billing_title_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Title Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `BILLING_TITLE_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"BILLING_TITLE_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/account/billing-titles/{billing_title_id}/default":{"put":{"tags":["account"],"summary":"Make a billing title the default (scope `commercial:order:place`)","description":"An Order created without `billing_title_id` names the default title. Returns the titles. A title of another organization, or a deleted one, is 404 BILLING_TITLE_NOT_FOUND.","operationId":"put_default_billing_title_api_v1_account_billing_titles__billing_title_id__default_put","parameters":[{"name":"billing_title_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Title Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `BILLING_TITLE_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTitleDefaultRequestV1"}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"BILLING_TITLE_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/feedback":{"post":{"tags":["feedback"],"summary":"Send feedback to OpenSci (any Account token)","description":"Report a problem you met while serving your user, a missing capability (FEATURE_REQUEST) or unclear instructions (DOCUMENTATION). One problem or suggestion per submission; never include tokens, passwords, payment data or personal data beyond what the problem needs; tell the user what you sent. Any valid Account token may send feedback (no scope is needed). Limits: 10 per token per hour, 50 per organization per day (429 FEEDBACK_RATE_LIMITED with `Retry-After`). An invalid field, or text containing a credential, is 422 FEEDBACK_INVALID with `details.reason` (INVALID_FIELDS or CONTAINS_CREDENTIAL) and `details.invalid_fields`; nothing is stored. 201 returns the `feedback_id`; a retry with the same Idempotency-Key and body returns 200 with `replayed: true`. `os-optics feedback submit` sends it for you.","operationId":"post_feedback_api_v1_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackSubmitRequestV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackReceiptV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `FEEDBACK_INVALID` (recovery `FIX_REQUEST`); `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"429":{"description":"Error. Codes: `FEEDBACK_RATE_LIMITED` (recovery `RETRY_LATER`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `FEEDBACK_RATE_LIMITED`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"FEEDBACK_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"FEEDBACK_RATE_LIMITED","status":429,"recovery":"RETRY_LATER"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/commercial-submissions":{"post":{"tags":["resolution"],"summary":"Submit a Project and its local run's record for commercial resolution (scope `commercial:resolve`)","description":"Send the Project and its Local Validation record exactly as `os-optics` produced them, whatever its targets came out as. The service checks that the record is well formed, binds to this Project and its catalog release, names an accepted Engine, and agrees with itself and with this organization's accepted records of the same run; it does not re-run the calculation. The response is the resolution: the Customer Purchase BOM with current prices, the delivery of each retained adjustment and the assembly notes. 201 for a new resolution; 200 with `replayed: true` for a retry with the same Idempotency-Key and body. Nothing is ordered or owed. While the same key -- or the same design under another key -- is still being resolved: 409 IDEMPOTENCY_IN_PROGRESS with `Retry-After`. When the service is at capacity: 503 RESOLUTION_CAPACITY_BUSY with `Retry-After` (nothing was done). In both cases send the same request with the same Idempotency-Key after that many seconds.","operationId":"post_submission_api_v1_commercial_submissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommercialSubmissionRequestV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommercialSubmissionResponseV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `CATALOG_RELEASE_SUPERSEDED` (recovery `UPDATE_CATALOG_AND_RERUN`); `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`); `LOCAL_VALIDATION_RUN_CONFLICT` (recovery `FIX_REQUEST`); `PRODUCT_TEMPORARILY_UNAVAILABLE` (recovery `CHOOSE_ANOTHER_PRODUCT`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `ASSEMBLY_SERVICE_REQUIRES_BREADBOARD` (recovery `FIX_REQUEST`); `ASSEMBLY_SERVICE_UNAVAILABLE` (recovery `FIX_REQUEST`); `BEAM_HEIGHT_UNREACHABLE` (recovery `ADJUST_COMPONENT_HEIGHT` or `ADJUST_COMPONENT_SPACING` or `ALLOW_LARGER_BREADBOARD` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `RELAX_RETAINED_DOF` or `SIMPLIFY_DESIGN`); `BREADBOARD_CONSTRAINT_UNSATISFIABLE` (recovery `ALLOW_LARGER_BREADBOARD` or `ADJUST_COMPONENT_HEIGHT` or `ADJUST_COMPONENT_SPACING` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `RELAX_RETAINED_DOF` or `SIMPLIFY_DESIGN`); `BREADBOARD_NO_STANDARD_FIT` (recovery `ADJUST_COMPONENT_SPACING` or `ADJUST_COMPONENT_HEIGHT` or `ALLOW_LARGER_BREADBOARD` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `RELAX_RETAINED_DOF` or `SIMPLIFY_DESIGN`); `CATALOG_BINDING_FAILED` (recovery `FIX_REQUEST`); `CATALOG_RELEASE_UNKNOWN` (recovery `UPDATE_CATALOG_AND_RERUN`); `CONFIGURATION_MOVES_FIXED_DOF` (recovery `RELAX_RETAINED_DOF`); `CUSTOMER_SUPPLIED_COMPONENT_UNKNOWN` (recovery `FIX_REQUEST`); `DECLARED_OPTIC_BEAM_PATH_UNDEFINED` (recovery `FIX_REQUEST`); `DESIGN_INTENT_HAS_NO_LAB_ASSEMBLY` (recovery `CHOOSE_OPTICS_ONLY`); `ENGINE_INPUT_HASH_MISMATCH` (recovery `FIX_REQUEST`); `ENGINE_VERSION_NOT_ACCEPTED` (recovery `UPGRADE_ENGINE_AND_RERUN`); `EXTENDED_EMITTER_NOT_RESOLVABLE` (recovery `CHOOSE_OPTICS_ONLY`); `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `LOCAL_VALIDATION_BINDING_FAILED` (recovery `FIX_REQUEST`); `LOCAL_VALIDATION_NOT_ACCEPTABLE` (recovery `FIX_REQUEST`); `LOCAL_VALIDATION_SCHEMA_INVALID` (recovery `FIX_REQUEST`); `MECHANICAL_LAYOUT_CONFLICT` (recovery `ADJUST_COMPONENT_SPACING` or `ADJUST_COMPONENT_HEIGHT` or `ALLOW_LARGER_BREADBOARD` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `RELAX_RETAINED_DOF` or `SIMPLIFY_DESIGN`); `MECHANICAL_RESOLUTION_FAILED` (recovery `SIMPLIFY_DESIGN` or `ADJUST_COMPONENT_HEIGHT` or `ADJUST_COMPONENT_SPACING` or `ALLOW_LARGER_BREADBOARD` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `RELAX_RETAINED_DOF`); `MOUNTING_INPUT_REQUIRED` (recovery `FIX_REQUEST`); `MOUNTING_NOT_AVAILABLE` (recovery `FIX_REQUEST`); `NO_COMPATIBLE_MOUNT` (recovery `CHANGE_COMPONENT` or `ADJUST_COMPONENT_HEIGHT` or `ADJUST_COMPONENT_SPACING` or `ALLOW_LARGER_BREADBOARD` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `RELAX_RETAINED_DOF` or `SIMPLIFY_DESIGN`); `OPTICAL_SKU_NOT_COMMERCIAL` (recovery `FIX_REQUEST`); `PRODUCT_NOT_AVAILABLE_FOR_ASSEMBLY` (recovery `CONTACT_OPENSCI`); `PROJECT_HASH_MISMATCH` (recovery `FIX_REQUEST`); `PROJECT_SCHEMA_INVALID` (recovery `FIX_REQUEST`); `PURCHASE_OPTIONS_CONFLICT` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`); `RESULT_HASH_INVALID` (recovery `FIX_REQUEST`); `RETAINED_DOF_UNSATISFIED` (recovery `RELAX_RETAINED_DOF` or `ADJUST_COMPONENT_HEIGHT` or `ADJUST_COMPONENT_SPACING` or `ALLOW_LARGER_BREADBOARD` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `REDUCE_TILT` or `SIMPLIFY_DESIGN`); `SPARE_UNITS_INVALID` (recovery `FIX_REQUEST`); `SUBMISSION_SCHEMA_INVALID` (recovery `FIX_REQUEST`); `UNKNOWN_OPTICAL_SKU` (recovery `FIX_REQUEST`); `UNSUPPORTED_DESIGN_TOPOLOGY` (recovery `FIX_REQUEST`); `UNSUPPORTED_OPTIC_ORIENTATION` (recovery `REDUCE_TILT` or `ADJUST_COMPONENT_HEIGHT` or `ADJUST_COMPONENT_SPACING` or `ALLOW_LARGER_BREADBOARD` or `CHANGE_COMPONENT` or `MOVE_COMPONENT_OFF_BEAM` or `RELAX_RETAINED_DOF` or `SIMPLIFY_DESIGN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `RESOLUTION_CAPACITY_BUSY` (recovery `RETRY_LATER`); `RESOLUTION_DEADLINE_EXCEEDED` (recovery `RETRY_LATER`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `RESOLUTION_CAPACITY_BUSY`, `RESOLUTION_DEADLINE_EXCEEDED`, `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"CATALOG_RELEASE_SUPERSEDED","status":409,"recovery":"UPDATE_CATALOG_AND_RERUN"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"LOCAL_VALIDATION_RUN_CONFLICT","status":409,"recovery":"FIX_REQUEST"},{"code":"PRODUCT_TEMPORARILY_UNAVAILABLE","status":409,"recovery":"CHOOSE_ANOTHER_PRODUCT"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"ASSEMBLY_SERVICE_REQUIRES_BREADBOARD","status":422,"recovery":"FIX_REQUEST"},{"code":"ASSEMBLY_SERVICE_UNAVAILABLE","status":422,"recovery":"FIX_REQUEST"},{"code":"BEAM_HEIGHT_UNREACHABLE","status":422,"recovery":"ADJUST_COMPONENT_HEIGHT","recoveries":["ADJUST_COMPONENT_HEIGHT","ADJUST_COMPONENT_SPACING","ALLOW_LARGER_BREADBOARD","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","RELAX_RETAINED_DOF","SIMPLIFY_DESIGN"]},{"code":"BREADBOARD_CONSTRAINT_UNSATISFIABLE","status":422,"recovery":"ALLOW_LARGER_BREADBOARD","recoveries":["ALLOW_LARGER_BREADBOARD","ADJUST_COMPONENT_HEIGHT","ADJUST_COMPONENT_SPACING","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","RELAX_RETAINED_DOF","SIMPLIFY_DESIGN"]},{"code":"BREADBOARD_NO_STANDARD_FIT","status":422,"recovery":"ADJUST_COMPONENT_SPACING","recoveries":["ADJUST_COMPONENT_SPACING","ADJUST_COMPONENT_HEIGHT","ALLOW_LARGER_BREADBOARD","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","RELAX_RETAINED_DOF","SIMPLIFY_DESIGN"]},{"code":"CATALOG_BINDING_FAILED","status":422,"recovery":"FIX_REQUEST"},{"code":"CATALOG_RELEASE_UNKNOWN","status":422,"recovery":"UPDATE_CATALOG_AND_RERUN"},{"code":"CONFIGURATION_MOVES_FIXED_DOF","status":422,"recovery":"RELAX_RETAINED_DOF"},{"code":"CUSTOMER_SUPPLIED_COMPONENT_UNKNOWN","status":422,"recovery":"FIX_REQUEST"},{"code":"DECLARED_OPTIC_BEAM_PATH_UNDEFINED","status":422,"recovery":"FIX_REQUEST"},{"code":"DESIGN_INTENT_HAS_NO_LAB_ASSEMBLY","status":422,"recovery":"CHOOSE_OPTICS_ONLY"},{"code":"ENGINE_INPUT_HASH_MISMATCH","status":422,"recovery":"FIX_REQUEST"},{"code":"ENGINE_VERSION_NOT_ACCEPTED","status":422,"recovery":"UPGRADE_ENGINE_AND_RERUN"},{"code":"EXTENDED_EMITTER_NOT_RESOLVABLE","status":422,"recovery":"CHOOSE_OPTICS_ONLY"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"LOCAL_VALIDATION_BINDING_FAILED","status":422,"recovery":"FIX_REQUEST"},{"code":"LOCAL_VALIDATION_NOT_ACCEPTABLE","status":422,"recovery":"FIX_REQUEST"},{"code":"LOCAL_VALIDATION_SCHEMA_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"MECHANICAL_LAYOUT_CONFLICT","status":422,"recovery":"ADJUST_COMPONENT_SPACING","recoveries":["ADJUST_COMPONENT_SPACING","ADJUST_COMPONENT_HEIGHT","ALLOW_LARGER_BREADBOARD","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","RELAX_RETAINED_DOF","SIMPLIFY_DESIGN"]},{"code":"MECHANICAL_RESOLUTION_FAILED","status":422,"recovery":"SIMPLIFY_DESIGN","recoveries":["SIMPLIFY_DESIGN","ADJUST_COMPONENT_HEIGHT","ADJUST_COMPONENT_SPACING","ALLOW_LARGER_BREADBOARD","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","RELAX_RETAINED_DOF"]},{"code":"MOUNTING_INPUT_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"MOUNTING_NOT_AVAILABLE","status":422,"recovery":"FIX_REQUEST"},{"code":"NO_COMPATIBLE_MOUNT","status":422,"recovery":"CHANGE_COMPONENT","recoveries":["CHANGE_COMPONENT","ADJUST_COMPONENT_HEIGHT","ADJUST_COMPONENT_SPACING","ALLOW_LARGER_BREADBOARD","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","RELAX_RETAINED_DOF","SIMPLIFY_DESIGN"]},{"code":"OPTICAL_SKU_NOT_COMMERCIAL","status":422,"recovery":"FIX_REQUEST"},{"code":"PRODUCT_NOT_AVAILABLE_FOR_ASSEMBLY","status":422,"recovery":"CONTACT_OPENSCI"},{"code":"PROJECT_HASH_MISMATCH","status":422,"recovery":"FIX_REQUEST"},{"code":"PROJECT_SCHEMA_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"PURCHASE_OPTIONS_CONFLICT","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"RESULT_HASH_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"RETAINED_DOF_UNSATISFIED","status":422,"recovery":"RELAX_RETAINED_DOF","recoveries":["RELAX_RETAINED_DOF","ADJUST_COMPONENT_HEIGHT","ADJUST_COMPONENT_SPACING","ALLOW_LARGER_BREADBOARD","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","REDUCE_TILT","SIMPLIFY_DESIGN"]},{"code":"SPARE_UNITS_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"SUBMISSION_SCHEMA_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"UNKNOWN_OPTICAL_SKU","status":422,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_DESIGN_TOPOLOGY","status":422,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_OPTIC_ORIENTATION","status":422,"recovery":"REDUCE_TILT","recoveries":["REDUCE_TILT","ADJUST_COMPONENT_HEIGHT","ADJUST_COMPONENT_SPACING","ALLOW_LARGER_BREADBOARD","CHANGE_COMPONENT","MOVE_COMPONENT_OFF_BEAM","RELAX_RETAINED_DOF","SIMPLIFY_DESIGN"]},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"RESOLUTION_CAPACITY_BUSY","status":503,"recovery":"RETRY_LATER"},{"code":"RESOLUTION_DEADLINE_EXCEEDED","status":503,"recovery":"RETRY_LATER"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/part-list-submissions":{"post":{"tags":["resolution"],"summary":"Submit a list of OpenSci part numbers for commercial resolution, without a design (scope `commercial:resolve`)","description":"Lines of ORDERABLE catalog optics (`OS-OPT-*`) and mechanical products (`OS-MECH-*`, from GET /api/v1/mechanical-products; breadboards are lines too) with quantities. With `mechanical_supply: DERIVED` OpenSci selects a mount, post and post holder for every listed optic at the beam height its `mounting` entry states (the mounting sheet is the deliverable). The response is the resolution (view 6, `basis: PART_LIST`): the lines with current prices, the shipping line, the delivery as separate components and the agreement, which states that OpenSci has not checked the products as an optical system. A part number that is not an orderable OpenSci product is 422 PART_NOT_ORDERABLE (`details.line_ids`). 201 for a new resolution; 200 with `replayed: true` for a retry with the same Idempotency-Key and body.","operationId":"post_part_list_submission_api_v1_part_list_submissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartListSubmissionV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommercialSubmissionResponseV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`); `PRODUCT_TEMPORARILY_UNAVAILABLE` (recovery `CHOOSE_ANOTHER_PRODUCT`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `MOUNTING_INPUT_REQUIRED` (recovery `FIX_REQUEST`); `MOUNTING_NOT_AVAILABLE` (recovery `FIX_REQUEST`); `ORDER_OPTION_ON_HOLD` (recovery `FIX_REQUEST`); `PART_NOT_ORDERABLE` (recovery `LIST_MECHANICAL_PRODUCTS`); `PURCHASE_OPTIONS_CONFLICT` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`); `SUBMISSION_SCHEMA_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `RESOLUTION_CAPACITY_BUSY` (recovery `RETRY_LATER`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `RESOLUTION_CAPACITY_BUSY`, `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"PRODUCT_TEMPORARILY_UNAVAILABLE","status":409,"recovery":"CHOOSE_ANOTHER_PRODUCT"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"MOUNTING_INPUT_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"MOUNTING_NOT_AVAILABLE","status":422,"recovery":"FIX_REQUEST"},{"code":"ORDER_OPTION_ON_HOLD","status":422,"recovery":"FIX_REQUEST"},{"code":"PART_NOT_ORDERABLE","status":422,"recovery":"LIST_MECHANICAL_PRODUCTS"},{"code":"PURCHASE_OPTIONS_CONFLICT","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"SUBMISSION_SCHEMA_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"RESOLUTION_CAPACITY_BUSY","status":503,"recovery":"RETRY_LATER"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/mechanical-products":{"get":{"tags":["resolution"],"summary":"The OpenSci mechanical products a part list can name (scope `commercial:resolve`)","description":"Every mechanical product (`OS-MECH-*`) of the current catalog release: mounts, posts, post holders and breadboards, with their names (en / zh-CN) and the engineering facts of their kind that hold for every part OpenSci can supply it as now (a fact those parts do not share, such as a breadboard's thickness, is left out); the names are those of the part a part-list line of it is resolved to now. Prices come with a resolution. `?kind=MOUNT|POST|POST_HOLDER|BREADBOARD` lists one kind; another value, or `kind` given more than once, is 422 COMMERCE_REQUEST_INVALID.","operationId":"get_mechanical_products_api_v1_mechanical_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MechanicalProductsV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `COMMERCE_REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"COMMERCE_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}/mounting-sheet":{"get":{"tags":["resolution"],"summary":"The mounting sheet of a resolution with OpenSci-derived mounts and no layout (scope `commercial:resolve`)","description":"Per optic: its mount, post and post holder lines, the stated beam height and angle of incidence, the assembly steps, the beam height arithmetic, the adjustment axes and the checks made, with English and Simplified Chinese text (`<field>_zh_cn`). Render it locally with `os-optics resolution mounting-sheet ID`. A purchase without derived mounts or with a layout has none (409 MOUNTING_SHEET_NOT_PART_OF_PURCHASE).","operationId":"get_resolution_mounting_sheet_api_v1_resolutions__resolution_id__mounting_sheet_get","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `MOUNTING_SHEET_NOT_PART_OF_PURCHASE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"MOUNTING_SHEET_NOT_PART_OF_PURCHASE","status":409,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/mounting-sheet":{"get":{"tags":["order and payment"],"summary":"The Order's mounting sheet, naming its Order Number (scope `commercial:order:read`)","description":"The deliverable of an Order with OpenSci-derived mounts and no layout (delivery mode COMPONENTS): `os-optics order mounting-sheet ORDER_ID`. Other Orders have none (409 MOUNTING_SHEET_NOT_PART_OF_PURCHASE).","operationId":"get_order_mounting_sheet_api_v1_orders__order_id__mounting_sheet_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`); `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `MOUNTING_SHEET_NOT_PART_OF_PURCHASE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"MOUNTING_SHEET_NOT_PART_OF_PURCHASE","status":409,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}":{"get":{"tags":["resolution"],"summary":"Read a resolution: Customer Purchase BOM, prices, assembly notes (scope `commercial:resolve`)","operationId":"get_resolution_api_v1_resolutions__resolution_id__get","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommercialSubmissionResponseV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}/presentation":{"get":{"tags":["resolution"],"summary":"A resolution presented in zh-CN or en (`?locale=`; scope `commercial:resolve`)","operationId":"get_resolution_presentation_api_v1_resolutions__resolution_id__presentation_get","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["zh-CN","en"]},"description":"The language of the presentation: `zh-CN` or `en`, given exactly once. There is no default: a missing, repeated or other value is 422 `REQUEST_INVALID` (`details.allowed` lists the values). Codes, identifiers, amounts and Order Numbers are the same in every language."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalizedPresentationV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}/optical-layout":{"get":{"tags":["resolution"],"summary":"The relative optical layout of a resolution (scope `commercial:resolve`)","description":"Every design component at its design position relative to a datum element, its orientation, OpenSci product (or why you supply it), public outline and retained DOFs, and the nominal beam path with the spacing along it. It is the deliverable of an optics-only purchase (`purchase_scope: OPTICS_ONLY`) and states no height above any table. Render it locally with `os-optics layout draw` / `resolution layout`.","operationId":"get_resolution_optical_layout_api_v1_resolutions__resolution_id__optical_layout_get","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpticalLayoutPackageV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `OPTICAL_LAYOUT_NOT_PART_OF_PURCHASE` (recovery `FIX_REQUEST`); `RESOLUTION_NO_LONGER_AVAILABLE` (recovery `RESUBMIT_DESIGN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"OPTICAL_LAYOUT_NOT_PART_OF_PURCHASE","status":409,"recovery":"FIX_REQUEST"},{"code":"RESOLUTION_NO_LONGER_AVAILABLE","status":409,"recovery":"RESUBMIT_DESIGN"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}/assembly-preview-deliveries":{"post":{"tags":["protected delivery"],"summary":"Obtain the Experimental Lab Assembly preview (scope `commercial:assembly-preview:read`)","description":"Returns the encrypted Assembly Preview Package and a short-lived grant. Open it in memory with `os_optics.client.OpenSciClient.assembly_preview` (or `os_optics.protected_delivery.open_preview_delivery`); keep the grant in memory and never log or store it. Each call issues a new delivery. When the service is preparing as many deliveries as it can: 503 DELIVERY_CAPACITY_BUSY with `Retry-After` (nothing was done); request it again after that many seconds. A purchase without a laboratory assembly: 409 `ASSEMBLY_NOT_PART_OF_PURCHASE` with recovery `USE_OPTICAL_LAYOUT` (the optical elements of a design only) or `FIX_REQUEST` (products delivered as separate components; `details.deliverables` names what the purchase has).","operationId":"post_preview_delivery_api_v1_resolutions__resolution_id__assembly_preview_deliveries_post","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtectedDeliveryV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `ASSEMBLY_NOT_PART_OF_PURCHASE` (recovery `USE_OPTICAL_LAYOUT` or `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `DELIVERY_REQUEST_INVALID` (recovery `FIX_REQUEST`); `ENGINE_VERSION_NOT_ACCEPTED` (recovery `UPGRADE_ENGINE_AND_RERUN`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`); `PREVIEW_PACKAGE_UNAVAILABLE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `DELIVERY_CAPACITY_BUSY` (recovery `RETRY_LATER`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `DELIVERY_CAPACITY_BUSY`, `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryRequestV1"}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ASSEMBLY_NOT_PART_OF_PURCHASE","status":409,"recovery":"USE_OPTICAL_LAYOUT","recoveries":["USE_OPTICAL_LAYOUT","FIX_REQUEST"]},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"DELIVERY_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ENGINE_VERSION_NOT_ACCEPTED","status":422,"recovery":"UPGRADE_ENGINE_AND_RERUN"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"PREVIEW_PACKAGE_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"DELIVERY_CAPACITY_BUSY","status":503,"recovery":"RETRY_LATER"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}/assembly-detail-deliveries":{"post":{"tags":["protected delivery"],"summary":"Obtain the Assembly Detail after OpenSci confirmed the Order's payment (scope `commercial:assembly-detail:read`)","description":"Available once OpenSci has confirmed receipt of the full payment of an Order of this resolution. Before that: 403 `ASSEMBLY_DETAIL_NOT_RELEASED` with recovery `CREATE_ORDER_FIRST` (no Order yet) or `WAIT_FOR_PAYMENT_CONFIRMATION`. Open it in memory together with the preview (`OpenSciClient.assembly_detail`, or `os_optics.protected_delivery.open_detail_delivery(..., preview=...)`). When the service is preparing as many deliveries as it can: 503 DELIVERY_CAPACITY_BUSY with `Retry-After` (nothing was done). A purchase without a laboratory assembly: 409 `ASSEMBLY_NOT_PART_OF_PURCHASE` with recovery `USE_OPTICAL_LAYOUT` (the optical elements of a design only) or `FIX_REQUEST` (products delivered as separate components; `details.deliverables` names what the purchase has).","operationId":"post_detail_delivery_api_v1_resolutions__resolution_id__assembly_detail_deliveries_post","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtectedDeliveryV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `ASSEMBLY_DETAIL_NOT_RELEASED` (recovery `CREATE_ORDER_FIRST` or `WAIT_FOR_PAYMENT_CONFIRMATION`); `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `ASSEMBLY_NOT_PART_OF_PURCHASE` (recovery `USE_OPTICAL_LAYOUT` or `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `DELIVERY_REQUEST_INVALID` (recovery `FIX_REQUEST`); `ENGINE_VERSION_NOT_ACCEPTED` (recovery `UPGRADE_ENGINE_AND_RERUN`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `ASSEMBLY_DETAIL_UNAVAILABLE` (recovery `CONTACT_OPENSCI`); `INTERNAL_ERROR` (recovery `RETRY`); `PREVIEW_PACKAGE_UNAVAILABLE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `DELIVERY_CAPACITY_BUSY` (recovery `RETRY_LATER`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `DELIVERY_CAPACITY_BUSY`, `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryRequestV1"}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"ASSEMBLY_DETAIL_NOT_RELEASED","status":403,"recovery":"CREATE_ORDER_FIRST","recoveries":["CREATE_ORDER_FIRST","WAIT_FOR_PAYMENT_CONFIRMATION"]},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ASSEMBLY_NOT_PART_OF_PURCHASE","status":409,"recovery":"USE_OPTICAL_LAYOUT","recoveries":["USE_OPTICAL_LAYOUT","FIX_REQUEST"]},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"DELIVERY_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ENGINE_VERSION_NOT_ACCEPTED","status":422,"recovery":"UPGRADE_ENGINE_AND_RERUN"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ASSEMBLY_DETAIL_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"PREVIEW_PACKAGE_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"DELIVERY_CAPACITY_BUSY","status":503,"recovery":"RETRY_LATER"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders":{"get":{"tags":["order and payment"],"summary":"List the organization's Orders, newest first (scope `commercial:order:read`)","operationId":"get_orders_api_v1_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]},"post":{"tags":["order and payment"],"summary":"Create the Order of a resolution (scope `commercial:order:place`)","description":"A token carrying `commercial:order:place` authorizes the Agent to create the Order: one call, no further step. The Order fixes the lines, quantities, prices, total and assembly notes of the resolution, and returns the Order Number (OS-ORD-...), the quotation (OS-QUO-...), the agreement (OS-CON-...), the corporate bank-transfer instructions (payment AWAITING_TRANSFER) and next steps; present them to the person who pays. The Order ships to `shipping_address_id` or, without it, to the organization's default address (mainland China), copied into the Order; with no address at all: 409 SHIPPING_ADDRESS_REQUIRED (recovery ADD_SHIPPING_ADDRESS: `POST /api/v1/account/addresses`, then retry). The quotation and the agreement name the customer by `billing_title_id` or, without it, by the organization's default billing title (`GET /api/v1/account/billing-titles`), copied into the Order; with no title at all they name the account name. 201 with `replayed: false` for a new Order; 200 with `replayed: true` for a retry with the same Idempotency-Key and the same body (`resolution_id`, `shipping_address_id`, `billing_title_id`); the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. A resolution has at most one unpaid Order (409 RESOLUTION_HAS_OPEN_ORDER names it). When the organization already has an Order of the same design (any resolution of the same Project, not cancelled), a new Order needs `additional_order: true` (409 DESIGN_ALREADY_ORDERED otherwise, details.orders; the resolution answers list them as `design_orders`). An organization holds at most a bounded number of unpaid Orders at once (409 OPEN_ORDER_LIMIT_REACHED: pay or withdraw one first) and creates a bounded number per hour (429 ORDER_RATE_LIMITED with `Retry-After`). Read the agreement before ordering: `GET /api/v1/resolutions/{id}/presentation` states its clauses (`resolution.agreement`).","operationId":"post_order_api_v1_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreationRequestV1"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPlacementResultV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_CONSUMED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `BILLING_TITLE_NOT_FOUND` (recovery `FIX_REQUEST`); `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`); `SHIPPING_ADDRESS_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `DESIGN_ALREADY_ORDERED` (recovery `CONFIRM_ADDITIONAL_ORDER`); `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`); `OPEN_ORDER_LIMIT_REACHED` (recovery `NONE`); `RESOLUTION_HAS_OPEN_ORDER` (recovery `NONE`); `RESOLUTION_NO_LONGER_AVAILABLE` (recovery `RESUBMIT_DESIGN`); `SHIPPING_ADDRESS_REQUIRED` (recovery `ADD_SHIPPING_ADDRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `COMMERCE_REQUEST_INVALID` (recovery `FIX_REQUEST`); `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"429":{"description":"Error. Codes: `ORDER_RATE_LIMITED` (recovery `RETRY_LATER`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `ORDER_RATE_LIMITED`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_CONSUMED","status":403,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"BILLING_TITLE_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"SHIPPING_ADDRESS_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"DESIGN_ALREADY_ORDERED","status":409,"recovery":"CONFIRM_ADDITIONAL_ORDER"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"OPEN_ORDER_LIMIT_REACHED","status":409,"recovery":"NONE"},{"code":"RESOLUTION_HAS_OPEN_ORDER","status":409,"recovery":"NONE"},{"code":"RESOLUTION_NO_LONGER_AVAILABLE","status":409,"recovery":"RESUBMIT_DESIGN"},{"code":"SHIPPING_ADDRESS_REQUIRED","status":409,"recovery":"ADD_SHIPPING_ADDRESS"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"COMMERCE_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ORDER_RATE_LIMITED","status":429,"recovery":"RETRY_LATER"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}]}},"/api/v1/orders/presentation":{"get":{"tags":["order and payment"],"summary":"The Order list presented in zh-CN or en (`?locale=`; scope `commercial:order:read`)","operationId":"get_orders_presentation_api_v1_orders_presentation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalizedPresentationV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["zh-CN","en"]},"description":"The language of the presentation: `zh-CN` or `en`, given exactly once. There is no default: a missing, repeated or other value is 422 `REQUEST_INVALID` (`details.allowed` lists the values). Codes, identifiers, amounts and Order Numbers are the same in every language."}],"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}":{"get":{"tags":["order and payment"],"summary":"Read an Order: quotation, agreement, bank-transfer instructions, payment state and next steps (scope `commercial:order:read`)","operationId":"get_order_api_v1_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOrderViewV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/presentation":{"get":{"tags":["order and payment"],"summary":"An Order presented in zh-CN or en (`?locale=`; scope `commercial:order:read`)","operationId":"get_order_presentation_api_v1_orders__order_id__presentation_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["zh-CN","en"]},"description":"The language of the presentation: `zh-CN` or `en`, given exactly once. There is no default: a missing, repeated or other value is 422 `REQUEST_INVALID` (`details.allowed` lists the values). Codes, identifiers, amounts and Order Numbers are the same in every language."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalizedPresentationV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/quotation/presentation":{"get":{"tags":["order and payment"],"summary":"The Order's quotation presented in zh-CN or en (`?locale=`; scope `commercial:order:read`)","operationId":"get_quotation_presentation_api_v1_orders__order_id__quotation_presentation_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["zh-CN","en"]},"description":"The language of the presentation: `zh-CN` or `en`, given exactly once. There is no default: a missing, repeated or other value is 422 `REQUEST_INVALID` (`details.allowed` lists the values). Codes, identifiers, amounts and Order Numbers are the same in every language."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalizedPresentationV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/optical-layout":{"get":{"tags":["order and payment"],"summary":"The Order's optical layout, bound to its Order Number (scope `commercial:order:read`)","description":"The deliverable of an optics-only Order: render it locally into the Optical Layout Drawing with `os-optics order layout ORDER_ID --out DIR`. A complete-system Order has none (409 OPTICAL_LAYOUT_NOT_PART_OF_PURCHASE): its deliverables are the assembly preview and the Detailed Assembly Drawing.","operationId":"get_order_optical_layout_api_v1_orders__order_id__optical_layout_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpticalLayoutPackageV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`); `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `OPTICAL_LAYOUT_NOT_PART_OF_PURCHASE` (recovery `FIX_REQUEST`); `RESOLUTION_NO_LONGER_AVAILABLE` (recovery `RESUBMIT_DESIGN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"OPTICAL_LAYOUT_NOT_PART_OF_PURCHASE","status":409,"recovery":"FIX_REQUEST"},{"code":"RESOLUTION_NO_LONGER_AVAILABLE","status":409,"recovery":"RESUBMIT_DESIGN"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/contract/presentation":{"get":{"tags":["order and payment"],"summary":"The Order's agreement presented in zh-CN or en (`?locale=`; scope `commercial:order:read`)","operationId":"get_contract_presentation_api_v1_orders__order_id__contract_presentation_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["zh-CN","en"]},"description":"The language of the presentation: `zh-CN` or `en`, given exactly once. There is no default: a missing, repeated or other value is 422 `REQUEST_INVALID` (`details.allowed` lists the values). Codes, identifiers, amounts and Order Numbers are the same in every language."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalizedPresentationV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/bank-transfer-reports":{"post":{"tags":["order and payment"],"summary":"Report that the corporate bank transfer was made (scope `commercial:payment:report`)","description":"Send it only when the person who paid says the transfer was made. The payment becomes PENDING_CONFIRMATION; OpenSci confirms receipt of the full amount, after which the Assembly Detail is available. 201 with `replayed: false`; 200 with `replayed: true` for a retry with the same Idempotency-Key.","operationId":"post_transfer_report_api_v1_orders__order_id__bank_transfer_reports_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankTransferReportResultV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`); `ORDER_CANCELLED` (recovery `NONE`); `PAYMENT_ALREADY_CONFIRMED` (recovery `NONE`); `PAYMENT_STATE_CONFLICT` (recovery `WAIT_FOR_PAYMENT_CONFIRMATION`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `COMMERCE_REQUEST_INVALID` (recovery `FIX_REQUEST`); `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankTransferReportRequestV1"}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"ORDER_CANCELLED","status":409,"recovery":"NONE"},{"code":"PAYMENT_ALREADY_CONFIRMED","status":409,"recovery":"NONE"},{"code":"PAYMENT_STATE_CONFLICT","status":409,"recovery":"WAIT_FOR_PAYMENT_CONFIRMATION"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"COMMERCE_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/orders/{order_id}/withdrawal":{"post":{"tags":["order and payment"],"summary":"Withdraw an unpaid Order; its data is deleted (scope `commercial:order:place`)","description":"Allowed only while the Order is unpaid and no transfer was reported for it (its `available_actions` lists WITHDRAW_ORDER). The Order, its quotation, agreement, payment, shipping-address copy and -- unless another Order names it -- its resolution, design submission, deliveries and artifacts are deleted; nothing of it is kept and its Order Number is never reused. Tell the person it was withdrawn. To change a design after ordering: withdraw, run the design again, order again. After a reported transfer or a payment: 409 ORDER_NOT_WITHDRAWABLE (recovery CONTACT_OPENSCI). A missing, another organization's or an already withdrawn Order is 404 ORDER_NOT_FOUND, so repeating the call is safe and answers 404 once the Order is gone. No Idempotency-Key: nothing is created.","operationId":"post_withdrawal_api_v1_orders__order_id__withdrawal_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderWithdrawalResultV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ORDER_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `ORDER_NOT_WITHDRAWABLE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"413":{"description":"Error. Codes: `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `COMMERCE_REQUEST_INVALID` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderWithdrawalRequestV1"}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ORDER_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ORDER_NOT_WITHDRAWABLE","status":409,"recovery":"CONTACT_OPENSCI"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"COMMERCE_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/artifact-sets":{"post":{"tags":["client artifacts"],"summary":"Upload an assembly validation result or a Detailed Assembly Drawing (scope `commercial:assembly-artifact:write`)","description":"Checked (manifest, sizes, SHA-256, file formats, binding to this resolution) and stored immutably. Upload the validation result, then the drawing: a drawing's validation source links to the uploaded validation set whenever it is read, whatever the upload order. 201 for a new set; 200 with `replayed: true` for a retry, or when the same set was already stored. `OpenSciClient.upload_assembly_results` does all of this. Every upload, a retry too, counts against hourly limits of the Account member and of its organization: 429 ARTIFACT_UPLOAD_RATE_LIMITED (`details.limit`) with `Retry-After`; send it again after that many seconds. When several uploads were refused for their content (CONTENT_NOT_ACCEPTED), the member's or the organization's uploads pause: 429 ARTIFACT_UPLOAD_SUSPENDED (`details.scope`) until `Retry-After`. When the service is checking as many uploads as it can: 503 ARTIFACT_UPLOAD_CAPACITY_BUSY with `Retry-After` (nothing was done; send the same upload again with the same Idempotency-Key).","operationId":"post_artifact_set_api_v1_artifact_sets_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientArtifactSetViewV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"409":{"description":"Error. Codes: `ASSEMBLY_NOT_PART_OF_PURCHASE` (recovery `USE_OPTICAL_LAYOUT` or `FIX_REQUEST`); `IDEMPOTENCY_IN_PROGRESS` (recovery `RETRY_WITH_SAME_KEY`); `IDEMPOTENCY_KEY_CONFLICT` (recovery `USE_NEW_IDEMPOTENCY_KEY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `IDEMPOTENCY_IN_PROGRESS`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"413":{"description":"Error. Codes: `ARTIFACT_TOO_LARGE` (recovery `FIX_REQUEST`); `REQUEST_TOO_LARGE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"415":{"description":"Error. Codes: `UNSUPPORTED_MEDIA_TYPE` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `ARTIFACT_BINDING_MISMATCH` (recovery `FIX_REQUEST`); `ARTIFACT_CONTENT_REJECTED` (recovery `FIX_REQUEST`); `ARTIFACT_FILE_INTEGRITY_FAILED` (recovery `FIX_REQUEST`); `ARTIFACT_FILE_SET_MISMATCH` (recovery `FIX_REQUEST`); `ARTIFACT_MANIFEST_INVALID` (recovery `FIX_REQUEST`); `ARTIFACT_REQUEST_INVALID` (recovery `FIX_REQUEST`); `IDEMPOTENCY_KEY_REQUIRED` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"429":{"description":"Error. Codes: `ARTIFACT_UPLOAD_RATE_LIMITED` (recovery `RETRY_LATER`); `ARTIFACT_UPLOAD_SUSPENDED` (recovery `RETRY_LATER`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `ARTIFACT_UPLOAD_RATE_LIMITED`, `ARTIFACT_UPLOAD_SUSPENDED`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}},"500":{"description":"Error. Codes: `INTERNAL_ERROR` (recovery `RETRY`); `PREVIEW_PACKAGE_UNAVAILABLE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `ARTIFACT_STORAGE_NOT_CONFIGURED` (recovery `CONTACT_OPENSCI`); `ARTIFACT_STORAGE_UNAVAILABLE` (recovery `RETRY_WITH_SAME_KEY`); `ARTIFACT_UPLOAD_CAPACITY_BUSY` (recovery `RETRY_LATER`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `ARTIFACT_UPLOAD_CAPACITY_BUSY`, `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ASSEMBLY_NOT_PART_OF_PURCHASE","status":409,"recovery":"USE_OPTICAL_LAYOUT","recoveries":["USE_OPTICAL_LAYOUT","FIX_REQUEST"]},{"code":"IDEMPOTENCY_IN_PROGRESS","status":409,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"IDEMPOTENCY_KEY_CONFLICT","status":409,"recovery":"USE_NEW_IDEMPOTENCY_KEY"},{"code":"ARTIFACT_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"REQUEST_TOO_LARGE","status":413,"recovery":"FIX_REQUEST"},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_BINDING_MISMATCH","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_CONTENT_REJECTED","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_FILE_INTEGRITY_FAILED","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_FILE_SET_MISMATCH","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_MANIFEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"IDEMPOTENCY_KEY_REQUIRED","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_UPLOAD_RATE_LIMITED","status":429,"recovery":"RETRY_LATER"},{"code":"ARTIFACT_UPLOAD_SUSPENDED","status":429,"recovery":"RETRY_LATER"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"PREVIEW_PACKAGE_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"ARTIFACT_STORAGE_NOT_CONFIGURED","status":503,"recovery":"CONTACT_OPENSCI"},{"code":"ARTIFACT_STORAGE_UNAVAILABLE","status":503,"recovery":"RETRY_WITH_SAME_KEY"},{"code":"ARTIFACT_UPLOAD_CAPACITY_BUSY","status":503,"recovery":"RETRY_LATER"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,160}$","maxLength":160},"description":"A key you choose for this request (1-160 printable ASCII characters). Retrying with the same key and the same body returns the original result with `replayed: true` and HTTP 200; the same key with another body is 409 IDEMPOTENCY_KEY_CONFLICT. While a request with the same key is still being processed, another one is answered at once with 409 IDEMPOTENCY_IN_PROGRESS and a `Retry-After` header: send it again with the same key after that many seconds. Use a new key for every new request."}],"requestBody":{"required":true,"description":"multipart/form-data with exactly one part `manifest` (a ClientAssemblyArtifactManifestV1 JSON document, as a text field or an application/json file part, at most 65536 bytes) and one part `file` per manifest file. Each file part's filename is exactly that file's `filename` in the manifest; its bytes must have the manifest's `size_bytes` and `sha256`. No other part is accepted. Limits: at most 5 files, 33554432 bytes per set; per file: assembly_local_validation.json (application/json, at most 2097152 bytes), drawing_manifest.json (application/json, at most 2097152 bytes), assembly_drawing.svg (image/svg+xml, at most 4194304 bytes), assembly_drawing.pdf (application/pdf, at most 16777216 bytes), drawing_result.json (application/json, at most 2097152 bytes). Files per artifact_kind: ASSEMBLY_LOCAL_VALIDATION: assembly_local_validation.json (sources: ASSEMBLY_LOCAL_VALIDATION, ASSEMBLY_PREVIEW_PACKAGE); ASSEMBLY_DRAWING: assembly_drawing.pdf, assembly_drawing.svg, drawing_manifest.json, drawing_result.json (sources: ASSEMBLY_DETAIL_PACKAGE, ASSEMBLY_LOCAL_VALIDATION, ASSEMBLY_PREVIEW_PACKAGE); ASSEMBLY_DRAWING_DIAGNOSTIC: assembly_drawing.pdf, assembly_drawing.svg, drawing_manifest.json, drawing_result.json (sources: ASSEMBLY_DETAIL_PACKAGE, ASSEMBLY_LOCAL_VALIDATION, ASSEMBLY_PREVIEW_PACKAGE). `os_optics.client_artifacts` builds the manifest and parts from a local validation or drawing.","content":{"multipart/form-data":{"schema":{"type":"object","required":["manifest","file"],"additionalProperties":false,"properties":{"manifest":{"$ref":"#/components/schemas/ClientAssemblyArtifactManifestV1"},"file":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"string","format":"binary"},"description":"One part per manifest file; the part filename is the manifest `filename`."}}},"encoding":{"manifest":{"contentType":"application/json"},"file":{"contentType":"application/json, application/pdf, image/svg+xml"}}}}}}},"/api/v1/artifact-sets/{artifact_set_id}":{"get":{"tags":["client artifacts"],"summary":"Read one uploaded artifact set (scope `commercial:assembly-artifact:read`)","operationId":"get_artifact_set_api_v1_artifact_sets__artifact_set_id__get","parameters":[{"name":"artifact_set_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientArtifactSetViewV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ARTIFACT_SET_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `ARTIFACT_INTEGRITY_UNAVAILABLE` (recovery `CONTACT_OPENSCI`); `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ARTIFACT_SET_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_INTEGRITY_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/resolutions/{resolution_id}/artifact-sets":{"get":{"tags":["client artifacts"],"summary":"List a resolution's artifact sets, oldest first (`?artifact_kind=` optional; scope `commercial:assembly-artifact:read`)","operationId":"list_artifact_sets_api_v1_resolutions__resolution_id__artifact_sets_get","parameters":[{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","title":"Resolution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientArtifactSetListV1"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `RESOLUTION_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `ARTIFACT_REQUEST_INVALID` (recovery `FIX_REQUEST`); `REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `ARTIFACT_INTEGRITY_UNAVAILABLE` (recovery `CONTACT_OPENSCI`); `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"RESOLUTION_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_INTEGRITY_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/artifact-sets/{artifact_set_id}/files/{role}":{"get":{"tags":["client artifacts"],"summary":"Download one stored artifact file by role (scope `commercial:assembly-artifact:read`)","operationId":"get_artifact_file_api_v1_artifact_sets__artifact_set_id__files__role__get","parameters":[{"name":"artifact_set_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Set Id"}},{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}}],"responses":{"200":{"description":"The exact stored bytes, as an attachment of the role's media type.","content":{"application/json":{"schema":{"type":"string","format":"binary"}},"image/svg+xml":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Error. Codes: `AUTHORIZATION_EXPIRED` (recovery `REQUEST_NEW_TOKEN`); `AUTHORIZATION_INVALID` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_MISSING` (recovery `PROVIDE_TOKEN`); `AUTHORIZATION_REVOKED` (recovery `REQUEST_NEW_TOKEN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"403":{"description":"Error. Codes: `AUTHORIZATION_SCOPE_MISSING` (recovery `REQUEST_SCOPE`); `PRINCIPAL_INACTIVE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"404":{"description":"Error. Codes: `ARTIFACT_SET_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"422":{"description":"Error. Codes: `ARTIFACT_REQUEST_INVALID` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"500":{"description":"Error. Codes: `ARTIFACT_INTEGRITY_UNAVAILABLE` (recovery `CONTACT_OPENSCI`); `INTERNAL_ERROR` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `ARTIFACT_STORAGE_NOT_CONFIGURED` (recovery `CONTACT_OPENSCI`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"security":[{"OpenSciAccountToken":[]}],"x-opensci-errors":[{"code":"AUTHORIZATION_EXPIRED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_INVALID","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_MISSING","status":401,"recovery":"PROVIDE_TOKEN"},{"code":"AUTHORIZATION_REVOKED","status":401,"recovery":"REQUEST_NEW_TOKEN"},{"code":"AUTHORIZATION_SCOPE_MISSING","status":403,"recovery":"REQUEST_SCOPE"},{"code":"PRINCIPAL_INACTIVE","status":403,"recovery":"CONTACT_OPENSCI"},{"code":"ARTIFACT_SET_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_REQUEST_INVALID","status":422,"recovery":"FIX_REQUEST"},{"code":"ARTIFACT_INTEGRITY_UNAVAILABLE","status":500,"recovery":"CONTACT_OPENSCI"},{"code":"INTERNAL_ERROR","status":500,"recovery":"RETRY"},{"code":"ARTIFACT_STORAGE_NOT_CONFIGURED","status":503,"recovery":"CONTACT_OPENSCI"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/catalog":{"get":{"tags":["catalog"],"summary":"The public catalog releases this service serves (public; conditional with If-None-Match)","description":"`current` is the release new designs use; `retained` lists every release a saved Project may still pin (newest first, the current one included). Fetch a release document from `release_path_template`. Send the manifest's `ETag` back as `If-None-Match`: `304` while nothing changed. `os-optics catalog sync` does this for you.","operationId":"get_catalog_manifest_api_v1_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogManifestV1"}}}},"503":{"description":"Error. Codes: `CATALOG_UNAVAILABLE` (recovery `RETRY`); `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"x-opensci-errors":[{"code":"CATALOG_UNAVAILABLE","status":503,"recovery":"RETRY"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/api/v1/catalog/releases/{catalog_version}":{"get":{"tags":["catalog"],"summary":"One public catalog release document, exactly as published (public; immutable)","description":"The public optical catalog of `catalog_version`, byte for byte (its SHA-256 is the `ETag` and the manifest's `sha256`). Sent gzip-encoded when the client accepts gzip. Only the releases the manifest lists are served: a version this service never published, retired or purged is 404 CATALOG_RELEASE_NOT_FOUND.","operationId":"get_catalog_release_api_v1_catalog_releases__catalog_version__get","parameters":[{"name":"catalog_version","in":"path","required":true,"schema":{"type":"string","title":"Catalog Version"}}],"responses":{"200":{"description":"The public optical catalog document (PublicOpticalCatalogV2), exactly as published","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Error. Codes: `CATALOG_RELEASE_NOT_FOUND` (recovery `UPDATE_CATALOG_AND_RERUN`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `SERVICE_UNAVAILABLE` (recovery `RETRY`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}},"headers":{"Retry-After":{"description":"Sent with `SERVICE_UNAVAILABLE`: seconds until the same request may be sent again.","required":false,"schema":{"type":"integer"}}}}},"x-opensci-errors":[{"code":"CATALOG_RELEASE_NOT_FOUND","status":404,"recovery":"UPDATE_CATALOG_AND_RERUN"},{"code":"SERVICE_UNAVAILABLE","status":503,"recovery":"RETRY"}]}},"/distribution/opensci-engine/manifest.json":{"get":{"tags":["engine distribution"],"summary":"The os-optics build this service offers: version, build id, SHA-256, install command","operationId":"get_distribution_manifest_distribution_opensci_engine_manifest_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"503":{"description":"Error. Codes: `DISTRIBUTION_UNAVAILABLE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}}},"x-opensci-errors":[{"code":"DISTRIBUTION_UNAVAILABLE","status":503,"recovery":"CONTACT_OPENSCI"}]}},"/distribution/opensci-engine/files/{filename}":{"get":{"tags":["engine distribution"],"summary":"The os-optics wheel named by the manifest (no other file is served)","operationId":"get_distribution_file_distribution_opensci_engine_files__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"The wheel named by the manifest.","content":{"application/json":{"schema":{}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Error. Codes: `ROUTE_NOT_FOUND` (recovery `FIX_REQUEST`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}},"503":{"description":"Error. Codes: `DISTRIBUTION_UNAVAILABLE` (recovery `CONTACT_OPENSCI`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseV1"}}}}},"x-opensci-errors":[{"code":"ROUTE_NOT_FOUND","status":404,"recovery":"FIX_REQUEST"},{"code":"DISTRIBUTION_UNAVAILABLE","status":503,"recovery":"CONTACT_OPENSCI"}]}}},"components":{"schemas":{"AccountTokenIssueResultV1":{"properties":{"schema":{"type":"string","const":"opensci.account.token_issue","title":"Schema","default":"opensci.account.token_issue"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"replayed":{"type":"boolean","title":"Replayed"},"token":{"$ref":"#/components/schemas/AccountTokenStatusV1"},"credential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential","description":"`oat_<32 hex>_<64 hex>`; store it in a file only you can read."}},"additionalProperties":false,"type":"object","required":["replayed","token"],"title":"AccountTokenIssueResultV1","description":"The result of issuing a token. ``credential`` is the secret bearer token, returned exactly once: in the 201\nresponse that minted it. A retry with the same Idempotency-Key and body returns the same token with\n``replayed: true`` and ``credential: null`` (the secret is never stored)."},"AccountTokenListV1":{"properties":{"schema":{"type":"string","const":"opensci.account.token_list","title":"Schema","default":"opensci.account.token_list"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"tokens":{"items":{"$ref":"#/components/schemas/AccountTokenStatusV1"},"type":"array","title":"Tokens"}},"additionalProperties":false,"type":"object","required":["tokens"],"title":"AccountTokenListV1","description":"This member's tokens in the organization, newest first. Never contains a credential."},"AccountTokenOrganizationV1":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"AccountTokenOrganizationV1","description":"The organization the token acts for."},"AccountTokenStatusV1":{"properties":{"schema":{"type":"string","const":"opensci.account.token_status","title":"Schema","default":"opensci.account.token_status"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"token_id":{"type":"string","title":"Token Id","description":"The token's non-secret identifier (the 32 hex characters after `oat_`, as a UUID)."},"organization":{"$ref":"#/components/schemas/AccountTokenOrganizationV1"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"issued_at":{"type":"string","title":"Issued At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At","description":"Expiry for a time-limited or single-use token; null for a revocable permanent token."},"lifecycle":{"type":"string","enum":["SINGLE_USE","TIME_LIMITED","PERMANENT"],"title":"Lifecycle","default":"TIME_LIMITED"},"consumed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consumed At","description":"When a single-use token placed its Order; its read scopes remain active."},"status":{"type":"string","enum":["ACTIVE","CONSUMED","EXPIRED","REVOKED","NOT_YET_VALID"],"title":"Status"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"The customer's own name for this credential."},"capabilities":{"$ref":"#/components/schemas/TokenCapabilitiesV1"}},"additionalProperties":false,"type":"object","required":["token_id","organization","scopes","issued_at","expires_at","status","capabilities"],"title":"AccountTokenStatusV1","description":"The non-secret status of one Account token."},"ArtifactFileRoleV1":{"type":"string","enum":["VALIDATION_RESULT","DRAWING_MANIFEST","DRAWING_SVG","DRAWING_PDF","DRAWING_RESULT"],"title":"ArtifactFileRoleV1"},"ArtifactVerificationV1":{"properties":{"resolution_binding":{"type":"string","const":"MATCHES_RESOLUTION","title":"Resolution Binding","default":"MATCHES_RESOLUTION"},"file_integrity":{"type":"string","const":"SIZE_AND_SHA256_VERIFIED","title":"File Integrity","default":"SIZE_AND_SHA256_VERIFIED"},"sources":{"items":{"$ref":"#/components/schemas/SourceBindingViewV1"},"type":"array","title":"Sources"},"files":{"items":{"$ref":"#/components/schemas/FileVerificationV1"},"type":"array","title":"Files"}},"additionalProperties":false,"type":"object","required":["sources","files"],"title":"ArtifactVerificationV1","description":"What OpenSci checked when it accepted the set: that it belongs to this resolution (Project, Customer Purchase\nBOM, resolution), every file's size and SHA-256, each file's format and content rules, and each source's link."},"BankTransferReportResultV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.bank_transfer_report","title":"Schema","default":"opensci.commercial.bank_transfer_report"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"replayed":{"type":"boolean","title":"Replayed"},"order":{"$ref":"#/components/schemas/CustomerOrderViewV1"}},"additionalProperties":false,"type":"object","required":["replayed","order"],"title":"BankTransferReportResultV1","description":"The answer of a bank-transfer report (``replayed``: an idempotent retry). A report is never a confirmation."},"BillingTitleCreationResultV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.billing_title_creation","title":"Schema","default":"opensci.commercial.billing_title_creation"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"replayed":{"type":"boolean","title":"Replayed"},"billing_title":{"$ref":"#/components/schemas/BillingTitleV1"}},"additionalProperties":false,"type":"object","required":["replayed","billing_title"],"title":"BillingTitleCreationResultV1","description":"The answer of a title creation: ``replayed`` is true for an idempotent retry (same key, same body), which\nreturns the title created by the first call and changes nothing."},"BillingTitleListV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.billing_title_list","title":"Schema","default":"opensci.commercial.billing_title_list"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"default_billing_title_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Billing Title Id"},"max_billing_titles":{"type":"integer","title":"Max Billing Titles"},"billing_titles":{"items":{"$ref":"#/components/schemas/BillingTitleV1"},"type":"array","title":"Billing Titles"}},"additionalProperties":false,"type":"object","required":["default_billing_title_id","max_billing_titles","billing_titles"],"title":"BillingTitleListV1","description":"The organization's billing titles, the default first, then the newest first."},"BillingTitleV1":{"properties":{"billing_title_id":{"type":"string","format":"uuid","title":"Billing Title Id"},"kind":{"type":"string","enum":["ORGANIZATION","INDIVIDUAL"],"title":"Kind"},"name":{"type":"string","title":"Name"},"taxpayer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxpayer Id"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"bank_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["billing_title_id","kind","name","taxpayer_id","address","phone","bank_name","bank_account","is_default","created_at","updated_at"],"title":"BillingTitleV1","description":"One billing title of the organization: the customer its quotations and agreements name. ``is_default``: the\ntitle an Order names when none is chosen. Absent optional details are ``null``."},"CapabilitiesDocumentV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial_api.capabilities","title":"Schema"},"schema_version":{"type":"string","title":"Schema Version"}},"additionalProperties":true,"type":"object","required":["schema","schema_version"],"title":"CapabilitiesDocumentV1","description":"The machine-readable description of this service (`GET /api/v1`): the helpers to use first, the customer\njourney, token scopes and profiles, and every route."},"CatalogManifestV1":{"properties":{"schema":{"type":"string","const":"opensci.design_catalog.catalog_manifest","title":"Schema"},"manifest_version":{"type":"string","const":"1.0","title":"Manifest Version"},"current":{"$ref":"#/components/schemas/CatalogReleaseEntryV1"},"retained":{"items":{"$ref":"#/components/schemas/CatalogReleaseEntryV1"},"type":"array","minItems":1,"title":"Retained"},"release_path_template":{"type":"string","maxLength":512,"minLength":17,"pattern":"^[^\\s?#]+$","title":"Release Path Template","description":"Path of one release, with '{catalog_version}' in place of the label; resolved against the manifest URL."}},"additionalProperties":false,"type":"object","required":["schema","manifest_version","current","retained","release_path_template"],"title":"CatalogManifestV1","description":"The public optical catalog releases available for download: the current release and the retained earlier\nreleases, each with its schema version, SHA-256 and size."},"CatalogReleaseEntryV1":{"properties":{"catalog_version":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}\\.[1-9][0-9]*$","title":"Catalog Version","description":"Catalog release label '<YYYY-MM-DD>.<n>'."},"schema_version":{"type":"string","pattern":"^[0-9]+\\.[0-9]+$","title":"Schema Version","description":"The public optical catalog schema_version of a release document, '<major>.<minor>'."},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Sha256","description":"Lowercase hexadecimal SHA-256 digest."},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"},"published_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z$","title":"Published At","description":"Strict UTC ISO-8601 timestamp; the literal 'Z' suffix is mandatory, no other offset form is accepted."},"status":{"$ref":"#/components/schemas/CatalogReleaseStatus"}},"additionalProperties":false,"type":"object","required":["catalog_version","schema_version","sha256","size_bytes","published_at","status"],"title":"CatalogReleaseEntryV1","description":"One distributed public optical catalog release."},"CatalogReleaseStatus":{"type":"string","enum":["CURRENT","RETAINED"],"title":"CatalogReleaseStatus","description":"``CURRENT``: the release new designs use (exactly one); ``RETAINED``: an older release still served."},"ClientArtifactFileV1":{"properties":{"role":{"$ref":"#/components/schemas/ArtifactFileRoleV1"},"filename":{"type":"string","maxLength":64,"title":"Filename","description":"The role's fixed file name (for example assembly_drawing.svg); never a path."},"media_type":{"type":"string","enum":["application/json","image/svg+xml","application/pdf"],"title":"Media Type"},"size_bytes":{"type":"integer","maximum":16777216.0,"minimum":1.0,"title":"Size Bytes"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Sha256","description":"Lowercase hexadecimal SHA-256 digest."}},"additionalProperties":false,"type":"object","required":["role","filename","media_type","size_bytes","sha256"],"title":"ClientArtifactFileV1"},"ClientArtifactKindV1":{"type":"string","enum":["ASSEMBLY_LOCAL_VALIDATION","ASSEMBLY_DRAWING","ASSEMBLY_DRAWING_DIAGNOSTIC"],"title":"ClientArtifactKindV1","description":"What the client generated: one value per kind of assembly artifact."},"ClientArtifactSetListV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.client_artifact_set_list","title":"Schema","default":"opensci.commercial.client_artifact_set_list"},"schema_version":{"type":"string","const":"2","title":"Schema Version","default":"2"},"commercial_resolution_id":{"type":"string","title":"Commercial Resolution Id"},"artifact_sets":{"items":{"$ref":"#/components/schemas/ClientArtifactSetViewV1"},"type":"array","title":"Artifact Sets"}},"additionalProperties":false,"type":"object","required":["commercial_resolution_id","artifact_sets"],"title":"ClientArtifactSetListV1","description":"The artifact sets of one resolution, oldest first."},"ClientArtifactSetViewV1":{"properties":{"schema":{"type":"string","const":"opensci.client_assembly_artifact_set","title":"Schema","default":"opensci.client_assembly_artifact_set"},"schema_version":{"type":"string","const":"2.0","title":"Schema Version","default":"2.0"},"artifact_set_id":{"type":"string","title":"Artifact Set Id"},"replayed":{"type":"boolean","title":"Replayed"},"artifact_kind":{"$ref":"#/components/schemas/ClientArtifactKindV1"},"project_hash":{"type":"string","title":"Project Hash"},"commercial_resolution_id":{"type":"string","title":"Commercial Resolution Id"},"customer_bom_digest":{"type":"string","title":"Customer Bom Digest"},"artifact_set_digest":{"type":"string","title":"Artifact Set Digest"},"generator":{"$ref":"#/components/schemas/GeneratorViewV1"},"files":{"items":{"$ref":"#/components/schemas/ClientArtifactFileV1"},"type":"array","title":"Files"},"file_count":{"type":"integer","title":"File Count"},"total_bytes":{"type":"integer","title":"Total Bytes"},"locale":{"anyOf":[{"type":"string","enum":["en","zh-CN"]},{"type":"null"}],"title":"Locale"},"verification":{"$ref":"#/components/schemas/ArtifactVerificationV1"},"uploaded_at":{"type":"string","title":"Uploaded At"}},"additionalProperties":false,"type":"object","required":["artifact_set_id","replayed","artifact_kind","project_hash","commercial_resolution_id","customer_bom_digest","artifact_set_digest","generator","files","file_count","total_bytes","verification","uploaded_at"],"title":"ClientArtifactSetViewV1","description":"One accepted, immutable client artifact set as its owning organization may see it."},"CommercialSubmissionResponseV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial_submission_response","title":"Schema","default":"opensci.commercial_submission_response"},"schema_version":{"type":"string","enum":["1.0","1.1"],"title":"Schema Version","default":"1.1"},"submission_id":{"type":"string","title":"Submission Id"},"resolution_id":{"type":"string","title":"Resolution Id"},"replayed":{"type":"boolean","title":"Replayed"},"resolution":{"$ref":"#/components/schemas/CustomerResolutionViewV1"},"design_orders":{"items":{"$ref":"#/components/schemas/CustomerDesignOrderV1"},"type":"array","title":"Design Orders","default":[]},"options_not_applied":{"items":{"$ref":"#/components/schemas/OptionNotAppliedV1"},"type":"array","title":"Options Not Applied","default":[]}},"additionalProperties":false,"type":"object","required":["submission_id","resolution_id","replayed","resolution"],"title":"CommercialSubmissionResponseV1","description":"A commercial resolution as returned by a submission (``replayed``: an idempotent retry) or a read."},"CustomerAgreementPreviewV1":{"properties":{"quotation_terms_code":{"type":"string","title":"Quotation Terms Code"},"notice_codes":{"items":{"type":"string"},"type":"array","title":"Notice Codes"},"terms_code":{"type":"string","title":"Terms Code"},"clause_codes":{"items":{"type":"string"},"type":"array","title":"Clause Codes"}},"additionalProperties":false,"type":"object","required":["quotation_terms_code","notice_codes","terms_code","clause_codes"],"title":"CustomerAgreementPreviewV1","description":"The terms an Order of this resolution is written under, readable before the Order exists: the\nquotation terms and notices and the Order agreement's clauses, as stable codes (the localized presentation of the\nresolution renders them). The Order fixes exactly these codes."},"CustomerAssemblyCommitmentV1":{"properties":{"dof_delivery":{"items":{"$ref":"#/components/schemas/CustomerOrderDofDeliveryV1"},"type":"array","title":"Dof Delivery"},"configuration_notes":{"items":{"$ref":"#/components/schemas/CustomerCommittedConfigurationNoteV1"},"type":"array","title":"Configuration Notes"},"customer_supplied_components":{"items":{"$ref":"#/components/schemas/CustomerOrderSuppliedComponentV1"},"type":"array","title":"Customer Supplied Components","default":[]},"optic_axis_heights":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomerOrderOpticAxisHeightV1"},"type":"array"},{"type":"null"}],"title":"Optic Axis Heights"},"purchase":{"anyOf":[{"$ref":"#/components/schemas/CustomerOrderPurchaseV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["dof_delivery","configuration_notes"],"title":"CustomerAssemblyCommitmentV1","description":"The assembly configuration the Order committed to besides lines and prices; ``customer_supplied_components``\nlists the design components the customer supplies; ``optic_axis_heights`` every OpenSci optic's optical-axis height\n(``None`` when the Order does not state it); ``purchase`` the purchase options (``None``: a complete system)."},"CustomerAssemblyServiceOfferV1":{"properties":{"available":{"type":"boolean","title":"Available"},"unavailable_reason_code":{"anyOf":[{"type":"string","enum":["CUSTOMER_SUPPLIED_INLINE_OPTICS","OPTICS_ONLY_PURCHASE","OPENSCI_OPTICS_SUPPLIED_UNMOUNTED"]},{"type":"null"}],"title":"Unavailable Reason Code"},"customer_supplied_components":{"items":{"type":"string"},"type":"array","title":"Customer Supplied Components","default":[]},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"},"unmounted_optics":{"items":{"type":"string"},"type":"array","title":"Unmounted Optics","default":[]}},"additionalProperties":false,"type":"object","required":["available"],"title":"CustomerAssemblyServiceOfferV1","description":"Whether the OpenSci assembly and alignment service can be chosen for this design, and why not. Eligibility follows the engineering role of each customer-supplied component: one that is part of the\ninline optical train OpenSci would need present to align and verify the delivered optical function (a lens, mirror,\nsplitter, filter, window, polarizer, waveplate, prism, or an aperture / other optic the beam continues through to\nOpenSci optics) makes the design self-assembly only (``CUSTOMER_SUPPLIED_INLINE_OPTICS``; those components are\n``customer_supplied_components``). External equipment the customer connects -- the light source, detectors,\ncameras, spectrometers, power meters, beam dumps, a terminal aperture -- does not by itself: OpenSci assembles the\noptics it supplies and aligns their designed input and output axes. OpenSci optics supplied unmounted\n(``OPENSCI_OPTICS_SUPPLIED_UNMOUNTED``; those optics are ``unmounted_optics``) make the design self-assembly only too:\nthe customer mounts them. ``notice`` is the English text."},"CustomerBankTransferV1":{"properties":{"method":{"type":"string","const":"CORPORATE_BANK_TRANSFER","title":"Method"},"state":{"type":"string","enum":["AWAITING_TRANSFER","PENDING_CONFIRMATION","CONFIRMED","TRANSFER_BEING_CLARIFIED","CANCELLED"],"title":"State"},"amount_due":{"type":"string","title":"Amount Due"},"currency":{"type":"string","title":"Currency"},"transfer_reference":{"type":"string","title":"Transfer Reference"},"transfer_reference_rule":{"type":"string","const":"EXACT_ORDER_NUMBER_AS_TRANSFER_REMARK","title":"Transfer Reference Rule","default":"EXACT_ORDER_NUMBER_AS_TRANSFER_REMARK"},"payee":{"$ref":"#/components/schemas/CustomerPayeeV1"},"confirmation_mode":{"type":"string","const":"OPENSCI_CONFIRMS_RECEIPT","title":"Confirmation Mode","default":"OPENSCI_CONFIRMS_RECEIPT"},"reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reported At"},"clarification_reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clarification Reason Code"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"cancellation_reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancellation Reason Code"}},"additionalProperties":false,"type":"object","required":["method","state","amount_due","currency","transfer_reference","payee","reported_at","clarification_reason_code","confirmed_at"],"title":"CustomerBankTransferV1"},"CustomerBillingTitleV1":{"properties":{"kind":{"anyOf":[{"type":"string","enum":["ORGANIZATION","INDIVIDUAL"]},{"type":"null"}],"title":"Kind"},"name":{"type":"string","title":"Name"},"taxpayer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxpayer Id"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"bank_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account"}},"additionalProperties":false,"type":"object","required":["kind","name","taxpayer_id","address","phone","bank_name","bank_account"],"title":"CustomerBillingTitleV1","description":"The billing title an Order names, as the Order froze it. ``kind`` is ``None`` when the organization\nhad no billing title and the Order names its account name; an absent detail is ``None``."},"CustomerBomLineV1":{"properties":{"line_key":{"type":"string","title":"Line Key"},"opensci_sku":{"type":"string","title":"Opensci Sku"},"display_name":{"type":"string","title":"Display Name"},"display_name_zh_cn":{"type":"string","title":"Display Name Zh Cn"},"description":{"type":"string","title":"Description"},"description_zh_cn":{"type":"string","title":"Description Zh Cn"},"category":{"type":"string","enum":["OPTICAL_ELEMENT","MOUNT","POST","POST_HOLDER_BASE","BREADBOARD","ASSEMBLY_SERVICE","SHIPPING","SPARE_OPTICAL_ELEMENT"],"title":"Category"},"supports_instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supports Instance Id"},"quantity":{"type":"string","title":"Quantity"},"unit_code":{"type":"string","const":"EA","title":"Unit Code"},"unit_price":{"type":"string","title":"Unit Price"},"line_total":{"type":"string","title":"Line Total"},"notices":{"items":{"type":"string","enum":["SUPPLIED_UNMOUNTED","HOUSED_PRODUCT"]},"type":"array","title":"Notices","default":[]}},"additionalProperties":false,"type":"object","required":["line_key","opensci_sku","display_name","display_name_zh_cn","description","description_zh_cn","category","supports_instance_id","quantity","unit_code","unit_price","line_total"],"title":"CustomerBomLineV1","description":"One product of the Customer Purchase BOM, named and described in English and Simplified Chinese. ``notices``\n(absent when empty) say how an optic is delivered: ``SUPPLIED_UNMOUNTED`` -- without mounting hardware although the\npurchase includes OpenSci mechanics (OpenSci has no mount for it; you mount it) -- and / or ``HOUSED_PRODUCT`` -- the\ndelivered part is the optic in its manufacturer's housing, whose outline differs from the design body."},"CustomerBomV1":{"properties":{"currency":{"type":"string","title":"Currency"},"price_basis":{"type":"string","const":"OPENSCI_PRICE_LIST","title":"Price Basis"},"price_notice_code":{"type":"string","const":"CURRENT_PRICES_FIXED_WHEN_ORDERED","title":"Price Notice Code","default":"CURRENT_PRICES_FIXED_WHEN_ORDERED"},"price_notice":{"type":"string","title":"Price Notice"},"subtotal":{"type":"string","title":"Subtotal"},"lines":{"items":{"$ref":"#/components/schemas/CustomerBomLineV1"},"type":"array","minItems":1,"title":"Lines"}},"additionalProperties":false,"type":"object","required":["currency","price_basis","price_notice","subtotal","lines"],"title":"CustomerBomV1"},"CustomerBreadboardV1":{"properties":{"opensci_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opensci Sku"},"size_mm":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"Size Mm"},"footprint_mm":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"Footprint Mm"},"edge_margin_mm":{"type":"number","title":"Edge Margin Mm"},"summary":{"type":"string","title":"Summary"},"supplied_by":{"type":"string","enum":["OPENSCI","CUSTOMER"],"title":"Supplied By","default":"OPENSCI"},"mounting_grid":{"anyOf":[{"$ref":"#/components/schemas/CustomerMountingGridV1"},{"type":"null"}]},"listed":{"type":"boolean","title":"Listed","default":false}},"additionalProperties":false,"type":"object","required":["opensci_sku","size_mm","footprint_mm","edge_margin_mm","summary"],"title":"CustomerBreadboardV1","description":"The breadboard of the configured system: its size, the footprint of the layout on it and the smallest distance\nfrom the layout to a board edge; ``summary`` states the same in English.\n\n``supplied_by``: ``OPENSCI`` -- the OpenSci breadboard is a BOM line (``opensci_sku``); ``CUSTOMER`` -- the\ncustomer uses their own optical table (``include_breadboard = false``): no board line and no ``opensci_sku``; the\nsize is the mounting area the layout needs on that table, on the same ``mounting_grid``."},"CustomerCommercialLineV1":{"properties":{"line_no":{"type":"integer","title":"Line No"},"line_key":{"type":"string","title":"Line Key"},"opensci_sku":{"type":"string","title":"Opensci Sku"},"display_name":{"type":"string","title":"Display Name"},"display_name_zh_cn":{"type":"string","title":"Display Name Zh Cn"},"quantity":{"type":"string","title":"Quantity"},"unit_code":{"type":"string","title":"Unit Code"},"unit_price":{"type":"string","title":"Unit Price"},"line_total":{"type":"string","title":"Line Total"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"notices":{"items":{"type":"string","enum":["SUPPLIED_UNMOUNTED","HOUSED_PRODUCT"]},"type":"array","title":"Notices","default":[]}},"additionalProperties":false,"type":"object","required":["line_no","line_key","opensci_sku","display_name","display_name_zh_cn","quantity","unit_code","unit_price","line_total"],"title":"CustomerCommercialLineV1"},"CustomerCommittedConfigurationNoteV1":{"properties":{"code":{"type":"string","enum":["STANDARD_FIXING_FASTENERS","CUSTOMER_SUPPLIED_LIGHT_SOURCE","DESIGN_ROTATED_ON_BOARD","CUSTOMER_OPTICAL_TABLE","OPENSCI_ASSEMBLY_SERVICE","STANDARD_FIXING_FASTENERS_CUSTOMER_TABLE","CUSTOMER_SUPPLIED_COMPONENT","CUSTOMER_EQUIPMENT_OFF_BOARD","OPTICS_ONLY_PURCHASE","PART_LIST_PURCHASE","MOUNTING_DERIVED_PER_OPTIC","OPENSCI_OPTIC_SUPPLIED_UNMOUNTED","HOUSED_OPTIC_DELIVERED","SOURCE_WITHOUT_BEAM_PATH"],"title":"Code"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance Id"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["code","subject","instance_id","message"],"title":"CustomerCommittedConfigurationNoteV1","description":"A configuration note of the ordered assembly, exactly as the resolution stated it before the Order."},"CustomerConfigurationNoteV1":{"properties":{"code":{"type":"string","enum":["STANDARD_FIXING_FASTENERS","CUSTOMER_SUPPLIED_LIGHT_SOURCE","DESIGN_ROTATED_ON_BOARD","CUSTOMER_OPTICAL_TABLE","OPENSCI_ASSEMBLY_SERVICE","STANDARD_FIXING_FASTENERS_CUSTOMER_TABLE","CUSTOMER_SUPPLIED_COMPONENT","CUSTOMER_EQUIPMENT_OFF_BOARD","OPTICS_ONLY_PURCHASE","PART_LIST_PURCHASE","MOUNTING_DERIVED_PER_OPTIC","OPENSCI_OPTIC_SUPPLIED_UNMOUNTED","HOUSED_OPTIC_DELIVERED","SOURCE_WITHOUT_BEAM_PATH"],"title":"Code"},"message":{"type":"string","title":"Message"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"CustomerConfigurationNoteV1","description":"A fact of the configured assembly besides its lines and DOF delivery. ``subject`` names the design component\nit is about (``CUSTOMER_SUPPLIED_LIGHT_SOURCE``, ``CUSTOMER_SUPPLIED_COMPONENT``, ``OPENSCI_OPTIC_SUPPLIED_UNMOUNTED``,\n``HOUSED_OPTIC_DELIVERED``, ``SOURCE_WITHOUT_BEAM_PATH``; for a part list, the line); ``message`` is its English text."},"CustomerContractV1":{"properties":{"contract_number":{"type":"string","title":"Contract Number"},"concluded_at":{"type":"string","format":"date-time","title":"Concluded At"},"terms_code":{"type":"string","title":"Terms Code"},"clause_codes":{"items":{"type":"string"},"type":"array","title":"Clause Codes"},"notice_codes":{"items":{"type":"string"},"type":"array","title":"Notice Codes"},"signature":{"$ref":"#/components/schemas/CustomerSignatureV1"}},"additionalProperties":false,"type":"object","required":["contract_number","concluded_at","terms_code","clause_codes","notice_codes","signature"],"title":"CustomerContractV1","description":"The agreement of the Order: parties, lines and total, payment, assembly configuration, notices and clauses."},"CustomerDeliverableV1":{"properties":{"kind":{"type":"string","enum":["ASSEMBLY_PREVIEW","DETAILED_ASSEMBLY_DRAWING","OPTICAL_LAYOUT_DRAWING","MOUNTING_SHEET"],"title":"Kind"},"available":{"type":"string","enum":["BEFORE_ORDER","AFTER_ORDER","AFTER_PAYMENT_CONFIRMATION"],"title":"Available"}},"additionalProperties":false,"type":"object","required":["kind","available"],"title":"CustomerDeliverableV1"},"CustomerDeliveryLineV1":{"properties":{"line_key":{"type":"string","title":"Line Key"},"quantity":{"type":"string","title":"Quantity"}},"additionalProperties":false,"type":"object","required":["line_key","quantity"],"title":"CustomerDeliveryLineV1"},"CustomerDeliveryTermsV1":{"properties":{"region":{"type":"string","const":"CN_MAINLAND","title":"Region"},"lead_time_working_days":{"type":"integer","minimum":1.0,"title":"Lead Time Working Days"},"lead_time_basis":{"type":"string","const":"AFTER_PAYMENT_CONFIRMATION","title":"Lead Time Basis"},"delivery_mode":{"type":"string","enum":["SELF_ASSEMBLY","OPENSCI_ASSEMBLY","OPTICS_ONLY","COMPONENTS"],"title":"Delivery Mode"},"summary":{"type":"string","title":"Summary"}},"additionalProperties":false,"type":"object","required":["region","lead_time_working_days","lead_time_basis","delivery_mode","summary"],"title":"CustomerDeliveryTermsV1","description":"When and where the Order is delivered, fixed in the Order's terms when it is created: OpenSci ships within\n``lead_time_working_days`` working days after it confirms payment, within mainland China; ``delivery_mode`` is a\nkit of parts (``SELF_ASSEMBLY``) or the system assembled and aligned by OpenSci (``OPENSCI_ASSEMBLY``). The\nshipping fee is the ``SHIPPING`` line of the Customer Purchase BOM. ``summary`` states the same in English."},"CustomerDeliveryV1":{"properties":{"delivery_number":{"type":"string","title":"Delivery Number"},"state":{"type":"string","enum":["SHIPPED","DELIVERED","CANCELLED"],"title":"State"},"carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier"},"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Number"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipped At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"lines":{"items":{"$ref":"#/components/schemas/CustomerDeliveryLineV1"},"type":"array","title":"Lines"}},"additionalProperties":false,"type":"object","required":["delivery_number","state","lines"],"title":"CustomerDeliveryV1"},"CustomerDesignDeviationV1":{"properties":{"kind":{"type":"string","const":"RETAINED_DOF","title":"Kind","default":"RETAINED_DOF"},"instance_id":{"type":"string","title":"Instance Id"},"axis":{"type":"string","enum":["Tx","Ty","Tz","Rx","Ry","Rz"],"title":"Axis"},"requested_control":{"type":"string","enum":["MANUAL","NUMERICAL"],"title":"Requested Control"},"delivered_status":{"type":"string","enum":["MANUAL_INSTEAD_OF_NUMERICAL","FIXED"],"title":"Delivered Status"},"not_delivered_reason":{"anyOf":[{"type":"string","enum":["NO_COMPATIBLE_HARDWARE","HARDWARE_DID_NOT_FIT","NOT_COMBINABLE_WITH_OTHER_DOFS","SLOT_NOT_ALONG_AXIS"]},{"type":"null"}],"title":"Not Delivered Reason"},"limited_by":{"anyOf":[{"$ref":"#/components/schemas/CustomerDofLimitV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["instance_id","axis","requested_control","delivered_status"],"title":"CustomerDesignDeviationV1","description":"A way the delivered hardware differs from what the design requested, stated before the Order:\n``RETAINED_DOF`` -- a retained DOF of ``instance_id`` is not delivered as requested (``delivered_status``), with the\nreason and, when the hardware did not fit, what was in the way. Only OpenSci's own delivery is listed (a DOF of a\ncustomer-supplied component, or of an optics-only purchase, is the customer's)."},"CustomerDesignOrderV1":{"properties":{"order_id":{"type":"string","title":"Order Id"},"order_number":{"type":"string","title":"Order Number"},"ordered_at":{"type":"string","title":"Ordered At"},"payment_state":{"type":"string","title":"Payment State"},"purchase_scope":{"anyOf":[{"type":"string","enum":["COMPLETE_SYSTEM","OPTICS_ONLY"]},{"type":"null"}],"title":"Purchase Scope"},"same_resolution":{"type":"boolean","title":"Same Resolution"}},"additionalProperties":false,"type":"object","required":["order_id","order_number","ordered_at","payment_state","same_resolution"],"title":"CustomerDesignOrderV1","description":"An Order of the caller's organization for the same design (the same Project hash) -- or the same part list (the\nsame part-list digest) --, at the time of the answer. ``same_resolution``: the Order was created from\nthis very resolution."},"CustomerDofDeliveryV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"axis":{"type":"string","enum":["Tx","Ty","Tz","Rx","Ry","Rz"],"title":"Axis"},"requested_control":{"type":"string","enum":["MANUAL","NUMERICAL"],"title":"Requested Control"},"delivered_control":{"type":"string","enum":["MANUAL","NUMERICAL","NONE"],"title":"Delivered Control"},"status":{"type":"string","enum":["AS_REQUESTED","MANUAL_INSTEAD_OF_NUMERICAL","FIXED","CUSTOMER_SUPPLIED","CUSTOMER_MOUNTING"],"title":"Status"},"mechanism_code":{"anyOf":[{"type":"string","enum":["MOUNT_TILT_HORIZONTAL_AXIS","MOUNT_TILT_VERTICAL_AXIS","MOUNT_TRANSLATION_HORIZONTAL","MOUNT_TRANSLATION_VERTICAL","MOUNT_ROTATION_ABOUT_OPTICAL_AXIS","POST_HEIGHT","POST_ROTATION","BASE_SLOT"]},{"type":"null"}],"title":"Mechanism Code"},"implementation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation"},"adjustment_grade":{"anyOf":[{"type":"string","enum":["CONTINUOUS_MANUAL","COARSE_REPOSITION","FINE_ADJUSTER"]},{"type":"null"}],"title":"Adjustment Grade"},"travel":{"anyOf":[{"$ref":"#/components/schemas/CustomerTravelV1"},{"type":"null"}]},"notice":{"type":"string","title":"Notice"},"notice_code":{"type":"string","enum":["DOF_ADJUSTED_BY_HAND","DOF_ROTATION_AXIS_OFFSET","DOF_MANUAL_INSTEAD_OF_NUMERICAL","DOF_FIXED","CUSTOMER_SUPPLIED_DOF","DOF_BY_CUSTOMER_MOUNTING"],"title":"Notice Code"},"notice_params":{"additionalProperties":{"type":"string"},"type":"object","title":"Notice Params"},"design_direction":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Design Direction"},"lab_direction":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3},{"type":"null"}],"title":"Lab Direction"},"not_delivered_reason":{"anyOf":[{"type":"string","enum":["NO_COMPATIBLE_HARDWARE","HARDWARE_DID_NOT_FIT","NOT_COMBINABLE_WITH_OTHER_DOFS","SLOT_NOT_ALONG_AXIS"]},{"type":"null"}],"title":"Not Delivered Reason"},"limited_by":{"anyOf":[{"$ref":"#/components/schemas/CustomerDofLimitV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["instance_id","axis","requested_control","delivered_control","status","mechanism_code","implementation","adjustment_grade","travel","notice","notice_code","design_direction","lab_direction"],"title":"CustomerDofDeliveryV1","description":"How one retained design DOF is provided by the delivered hardware.\n\n``status``: AS_REQUESTED, MANUAL_INSTEAD_OF_NUMERICAL (numerical control was requested; the hardware is adjusted\nby hand), FIXED (fixed at assembly) or CUSTOMER_SUPPLIED (the DOF belongs to a component the customer supplies).\n``mechanism_code`` names the adjustment that provides it and ``implementation`` is its English text.\n``notice_code`` (with ``notice_params``; ``DOF_ROTATION_AXIS_OFFSET`` carries ``offset_mm``, the distance of the\nrotation axis from the optic's reference point) is the language-neutral form of ``notice``."},"CustomerDofLimitV1":{"properties":{"reason":{"type":"string","enum":["SUPPORTS_COLLIDE","HARDWARE_BLOCKS_BEAM","NO_FIXING_HOLE","NO_COMMON_BEAM_HEIGHT","NO_POST_AND_HOLDER_FOR_OPTIC","BEAM_HEIGHT_NOT_REACHABLE","LAYOUT_OUTSIDE_BOARD","NO_SUPPORTED_MOUNTING"],"title":"Reason"},"with":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"With"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"CustomerDofLimitV1","description":"What kept hardware that provides a DOF out of the layout, so a simpler support was used: the layout problem\n(``SUPPORTS_COLLIDE``, ``HARDWARE_BLOCKS_BEAM``, ``NO_FIXING_HOLE``, ``NO_COMMON_BEAM_HEIGHT``, ...) and the other\ndesign component involved (``with``)."},"CustomerDofTravelV1":{"properties":{"minus":{"type":"string","title":"Minus"},"plus":{"type":"string","title":"Plus"},"unit":{"type":"string","enum":["mm","deg"],"title":"Unit"}},"additionalProperties":false,"type":"object","required":["minus","plus","unit"],"title":"CustomerDofTravelV1","description":"The adjustment range relative to the nominal pose (decimal text)."},"CustomerFrameV1":{"properties":{"convention":{"type":"string","const":"DESIGN_Z_UP_YAW_AND_TRANSLATION","title":"Convention","default":"DESIGN_Z_UP_YAW_AND_TRANSLATION"},"statement":{"type":"string","title":"Statement"},"design_to_lab":{"$ref":"#/components/schemas/CustomerTransformV1"},"lab_frame":{"type":"string","title":"Lab Frame"},"optic_axis_heights":{"items":{"$ref":"#/components/schemas/CustomerOpticAxisHeightV1"},"type":"array","title":"Optic Axis Heights"}},"additionalProperties":false,"type":"object","required":["statement","design_to_lab","lab_frame","optic_axis_heights"],"title":"CustomerFrameV1","description":"How the design frame of the resolution maps onto the laboratory frame."},"CustomerFulfillmentV1":{"properties":{"status":{"type":"string","enum":["AWAITING_PAYMENT","IN_FULFILLMENT","PARTIALLY_FULFILLED","SHIPPED","FULFILLED","CANCELLED"],"title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"delivery_mode":{"anyOf":[{"type":"string","enum":["SELF_ASSEMBLY","OPENSCI_ASSEMBLY","OPTICS_ONLY","COMPONENTS"]},{"type":"null"}],"title":"Delivery Mode"},"shipment_status":{"type":"string","enum":["UNSHIPPED","PARTIAL","SHIPPED","DELIVERED","RETURNED"],"title":"Shipment Status","default":"UNSHIPPED"},"deliveries":{"items":{"$ref":"#/components/schemas/CustomerDeliveryV1"},"type":"array","title":"Deliveries","default":[]}},"additionalProperties":false,"type":"object","required":["status","started_at"],"title":"CustomerFulfillmentV1","description":"Where the Order's fulfillment stands; ``started_at`` is when fulfillment started (after payment confirmation).\n``delivery_mode``: ``SELF_ASSEMBLY`` (a kit of parts) or ``OPENSCI_ASSEMBLY`` (assembled and aligned by OpenSci) for\nan Order with delivery terms, else ``None``."},"CustomerLineageV1":{"properties":{"basis":{"type":"string","enum":["DESIGN","PART_LIST"],"title":"Basis","default":"DESIGN"},"project_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Hash"},"local_validation_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Validation Hash"},"part_list_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part List Digest"},"public_catalog_version":{"type":"string","title":"Public Catalog Version"}},"additionalProperties":false,"type":"object","required":["public_catalog_version"],"title":"CustomerLineageV1","description":"What the resolution was made from: the design (its Project and Local Validation record hashes) or, for a part\nlist (view 6, ``basis = PART_LIST``), the part list's digest; and the public catalog release. A key that does not\napply is absent from the JSON form (a design lineage keeps exactly its earlier keys, without ``basis``)."},"CustomerMountingGridV1":{"properties":{"pitch_mm":{"type":"number","title":"Pitch Mm"},"thread":{"type":"string","title":"Thread"}},"additionalProperties":false,"type":"object","required":["pitch_mm","thread"],"title":"CustomerMountingGridV1","description":"The threaded hole grid the post holders are fixed to."},"CustomerOpticAxisHeightV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"axis_height_mm":{"type":"number","title":"Axis Height Mm"}},"additionalProperties":false,"type":"object","required":["instance_id","axis_height_mm"],"title":"CustomerOpticAxisHeightV1"},"CustomerOpticalSelectionV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"optical_sku":{"type":"string","title":"Optical Sku"}},"additionalProperties":false,"type":"object","required":["instance_id","optical_sku"],"title":"CustomerOpticalSelectionV1"},"CustomerOrderDeliverableV1":{"properties":{"kind":{"type":"string","enum":["ASSEMBLY_PREVIEW","DETAILED_ASSEMBLY_DRAWING","OPTICAL_LAYOUT_DRAWING","MOUNTING_SHEET"],"title":"Kind"},"status":{"type":"string","enum":["AVAILABLE","AFTER_PAYMENT_CONFIRMATION","NOT_AVAILABLE"],"title":"Status"},"command":{"type":"string","title":"Command"}},"additionalProperties":false,"type":"object","required":["kind","status","command"],"title":"CustomerOrderDeliverableV1","description":"One deliverable of the Order: ``AVAILABLE`` now (``command`` names the os-optics command that produces it\nlocally), or ``AFTER_PAYMENT_CONFIRMATION``; the Detailed Assembly Drawing of a cancelled Order is ``NOT_AVAILABLE``\n(the Experimental Lab Assembly preview and the Optical Layout Drawing belong to the resolution and stay available)."},"CustomerOrderDeliveryTermsV1":{"properties":{"region":{"type":"string","const":"CN_MAINLAND","title":"Region"},"lead_time_working_days":{"type":"integer","title":"Lead Time Working Days"},"lead_time_basis":{"type":"string","const":"AFTER_PAYMENT_CONFIRMATION","title":"Lead Time Basis"},"delivery_mode":{"type":"string","enum":["SELF_ASSEMBLY","OPENSCI_ASSEMBLY","OPTICS_ONLY","COMPONENTS"],"title":"Delivery Mode"}},"additionalProperties":false,"type":"object","required":["region","lead_time_working_days","lead_time_basis","delivery_mode"],"title":"CustomerOrderDeliveryTermsV1","description":"The delivery terms the Order committed to: OpenSci ships within ``lead_time_working_days`` working days after it\nconfirms payment, within mainland China, as a kit of parts, assembled by OpenSci, or the optical elements only."},"CustomerOrderDofDeliveryV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"axis":{"type":"string","enum":["Tx","Ty","Tz","Rx","Ry","Rz"],"title":"Axis"},"requested_control":{"type":"string","enum":["MANUAL","NUMERICAL"],"title":"Requested Control"},"delivered_control":{"type":"string","enum":["MANUAL","NUMERICAL","NONE"],"title":"Delivered Control"},"status":{"type":"string","enum":["AS_REQUESTED","MANUAL_INSTEAD_OF_NUMERICAL","FIXED","CUSTOMER_SUPPLIED","CUSTOMER_MOUNTING"],"title":"Status"},"mechanism_code":{"anyOf":[{"type":"string","enum":["MOUNT_TILT_HORIZONTAL_AXIS","MOUNT_TILT_VERTICAL_AXIS","MOUNT_TRANSLATION_HORIZONTAL","MOUNT_TRANSLATION_VERTICAL","MOUNT_ROTATION_ABOUT_OPTICAL_AXIS","POST_HEIGHT","POST_ROTATION","BASE_SLOT"]},{"type":"null"}],"title":"Mechanism Code"},"adjustment_grade":{"anyOf":[{"type":"string","enum":["CONTINUOUS_MANUAL","COARSE_REPOSITION","FINE_ADJUSTER"]},{"type":"null"}],"title":"Adjustment Grade"},"travel":{"anyOf":[{"$ref":"#/components/schemas/CustomerDofTravelV1"},{"type":"null"}]},"notice_code":{"type":"string","enum":["DOF_ADJUSTED_BY_HAND","DOF_ROTATION_AXIS_OFFSET","DOF_MANUAL_INSTEAD_OF_NUMERICAL","DOF_FIXED","CUSTOMER_SUPPLIED_DOF","DOF_BY_CUSTOMER_MOUNTING"],"title":"Notice Code"},"notice_params":{"additionalProperties":{"type":"string"},"type":"object","title":"Notice Params"},"notice":{"type":"string","title":"Notice"},"not_delivered_reason":{"anyOf":[{"type":"string","enum":["NO_COMPATIBLE_HARDWARE","HARDWARE_DID_NOT_FIT","NOT_COMBINABLE_WITH_OTHER_DOFS","SLOT_NOT_ALONG_AXIS"]},{"type":"null"}],"title":"Not Delivered Reason"},"limited_by":{"anyOf":[{"$ref":"#/components/schemas/CustomerDofLimitV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["instance_id","axis","requested_control","delivered_control","status","mechanism_code","adjustment_grade","travel","notice_code","notice_params","notice"],"title":"CustomerOrderDofDeliveryV1","description":"How one retained design DOF is provided by the ordered hardware (the resolution's DOF delivery vocabulary)."},"CustomerOrderIntegrityV1":{"properties":{"commercial_resolution_id":{"type":"string","format":"uuid","title":"Commercial Resolution Id"},"commercial_submission_id":{"type":"string","format":"uuid","title":"Commercial Submission Id"},"project_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Hash"},"local_validation_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Validation Hash"},"part_list_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part List Digest"},"public_catalog_version":{"type":"string","title":"Public Catalog Version"},"customer_bom_digest":{"type":"string","title":"Customer Bom Digest"},"commitment_digest":{"type":"string","title":"Commitment Digest"},"quotation_digest":{"type":"string","title":"Quotation Digest"},"contract_digest":{"type":"string","title":"Contract Digest"}},"additionalProperties":false,"type":"object","required":["commercial_resolution_id","commercial_submission_id","project_hash","local_validation_hash","public_catalog_version","customer_bom_digest","commitment_digest","quotation_digest","contract_digest"],"title":"CustomerOrderIntegrityV1","description":"Machine references and integrity digests of the Order (secondary to the human-facing fields).\n``project_hash`` and ``local_validation_hash`` are ``None`` for a part-list Order, which names its\n``part_list_digest`` instead (``None`` for a design Order)."},"CustomerOrderListV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.customer_order_list","title":"Schema","default":"opensci.commercial.customer_order_list"},"schema_version":{"type":"string","const":"3","title":"Schema Version","default":"3"},"orders":{"items":{"$ref":"#/components/schemas/CustomerOrderSummaryV1"},"type":"array","title":"Orders"}},"additionalProperties":false,"type":"object","required":["orders"],"title":"CustomerOrderListV1","description":"The organization's Orders, newest first."},"CustomerOrderOpticAxisHeightV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"axis_height_mm":{"type":"string","title":"Axis Height Mm"}},"additionalProperties":false,"type":"object","required":["instance_id","axis_height_mm"],"title":"CustomerOrderOpticAxisHeightV1","description":"The optical-axis height of one OpenSci optic of the Order, as the resolution showed it (``frame.optic_axis_heights``):\ndecimal text, millimetres above the breadboard top -- the top of the customer's own optical table when the Order\nincludes no breadboard (configuration note ``CUSTOMER_OPTICAL_TABLE``)."},"CustomerOrderOptionsV1":{"properties":{"basis":{"type":"string","enum":["DESIGN","PART_LIST"],"title":"Basis"},"optics_source":{"type":"string","const":"CATALOG","title":"Optics Source","default":"CATALOG"},"mechanical_supply":{"type":"string","enum":["NONE","DERIVED"],"title":"Mechanical Supply"},"platform":{"type":"string","enum":["NONE","BREADBOARD"],"title":"Platform"},"assembly":{"type":"string","enum":["CUSTOMER","OPENSCI"],"title":"Assembly"}},"additionalProperties":false,"type":"object","required":["basis","mechanical_supply","platform","assembly"],"title":"CustomerOrderOptionsV1","description":"The independent options of the order: what it is made from (``basis``: a design with its local run's record or a\npart list), where the optics come from (``optics_source``: the OpenSci catalog), whether OpenSci supplies the\nmounting hardware it derives for every optic it supplies (``mechanical_supply``), the platform (``BREADBOARD``: the\nOpenSci breadboard sized and drilled for the design's layout) and who assembles (``assembly``). A design order's\npurchase options (``purchase_options``) are the encoding of these: ``OPTICS_ONLY`` = NONE / NONE / CUSTOMER,\n``COMPLETE_SYSTEM`` without the breadboard = DERIVED / NONE / CUSTOMER, with it = DERIVED / BREADBOARD, and the\nassembly service = OPENSCI."},"CustomerOrderPurchaseV1":{"properties":{"purchase_scope":{"type":"string","enum":["COMPLETE_SYSTEM","OPTICS_ONLY"],"title":"Purchase Scope"},"include_breadboard":{"type":"boolean","title":"Include Breadboard"},"assembly_service":{"type":"boolean","title":"Assembly Service"},"assembly_service_unavailable_reason":{"anyOf":[{"type":"string","enum":["CUSTOMER_SUPPLIED_INLINE_OPTICS","OPTICS_ONLY_PURCHASE","OPENSCI_OPTICS_SUPPLIED_UNMOUNTED"]},{"type":"null"}],"title":"Assembly Service Unavailable Reason"},"assembly_service_unavailable_components":{"items":{"type":"string"},"type":"array","title":"Assembly Service Unavailable Components","default":[]}},"additionalProperties":false,"type":"object","required":["purchase_scope","include_breadboard","assembly_service"],"title":"CustomerOrderPurchaseV1","description":"The purchase the Order committed to: what OpenSci supplies, the breadboard, the assembly service\nand, when the service was not offered for the design, why (naming the components it is about)."},"CustomerOrderSummaryV1":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_number":{"type":"string","title":"Order Number"},"ordered_at":{"type":"string","format":"date-time","title":"Ordered At"},"currency":{"type":"string","title":"Currency"},"total":{"type":"string","title":"Total"},"payment_state":{"type":"string","enum":["AWAITING_TRANSFER","PENDING_CONFIRMATION","CONFIRMED","TRANSFER_BEING_CLARIFIED","CANCELLED"],"title":"Payment State"},"fulfillment_status":{"type":"string","enum":["AWAITING_PAYMENT","IN_FULFILLMENT","PARTIALLY_FULFILLED","SHIPPED","FULFILLED","CANCELLED"],"title":"Fulfillment Status"}},"additionalProperties":false,"type":"object","required":["order_id","order_number","ordered_at","currency","total","payment_state","fulfillment_status"],"title":"CustomerOrderSummaryV1"},"CustomerOrderSuppliedComponentV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"optical_role":{"type":"string","title":"Optical Role"},"reason_code":{"type":"string","enum":["CUSTOMER_LIGHT_SOURCE","NOT_IN_CATALOG","NOT_ORDERABLE","TEMPORARILY_UNAVAILABLE","CUSTOMER_OWNED"],"title":"Reason Code"},"opensci_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opensci Sku"},"custom_component_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Component Key"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"display_name_zh_cn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name Zh Cn"},"reserved_space":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reserved Space"},"axis_height_mm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Axis Height Mm"},"modelled_as":{"type":"string","enum":["CATALOG_PRODUCT","USER_DEFINED"],"title":"Modelled As","default":"CATALOG_PRODUCT"},"outside_board_by_mm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outside Board By Mm"}},"additionalProperties":false,"type":"object","required":["instance_id","optical_role","reason_code"],"title":"CustomerOrderSuppliedComponentV1","description":"A design component the customer supplies, as the Order committed to it: not an Order line, outside OpenSci's\ndelivery and warranty. ``opensci_sku`` is the OpenSci product to obtain (a catalog component).\n\nAs the resolution showed them when the Order was created: ``display_name`` / ``display_name_zh_cn`` (the product\nnames of a catalog component), ``reserved_space`` (``True``: the layout reserved its space and beam path;\n``False``: only its design position is given) and ``axis_height_mm`` (decimal text: the height of its design\nposition above the breadboard top, or the top of the customer's own optical table for an Order without a\nbreadboard). Each is ``None`` when the Order does not state it."},"CustomerOrderViewV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.customer_order","title":"Schema","default":"opensci.commercial.customer_order"},"schema_version":{"type":"string","const":"9","title":"Schema Version","default":"9"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_number":{"type":"string","title":"Order Number"},"order_status":{"type":"string","enum":["PLACED","CANCELLED"],"title":"Order Status"},"ordered_at":{"type":"string","format":"date-time","title":"Ordered At"},"seller":{"$ref":"#/components/schemas/CustomerSellerV1"},"customer":{"$ref":"#/components/schemas/CustomerOrganizationV1"},"currency":{"type":"string","title":"Currency"},"total":{"type":"string","title":"Total"},"lines":{"items":{"$ref":"#/components/schemas/CustomerCommercialLineV1"},"type":"array","minItems":1,"title":"Lines"},"assembly":{"$ref":"#/components/schemas/CustomerAssemblyCommitmentV1"},"quotation":{"$ref":"#/components/schemas/CustomerQuotationV1"},"contract":{"$ref":"#/components/schemas/CustomerContractV1"},"payment":{"$ref":"#/components/schemas/CustomerBankTransferV1"},"fulfillment":{"$ref":"#/components/schemas/CustomerFulfillmentV1"},"shipping_address":{"anyOf":[{"$ref":"#/components/schemas/CustomerShippingAddressV1"},{"type":"null"}]},"next_steps":{"items":{"type":"string","enum":["TRANSFER_FULL_AMOUNT_WITH_ORDER_NUMBER","REPORT_TRANSFER_WHEN_MADE","SIGNED_CONTRACT_COPY_ON_REQUEST","OPENSCI_CONFIRMS_RECEIPT","OPENSCI_CLARIFIES_TRANSFER","ASSEMBLY_DETAIL_AFTER_CONFIRMATION","ASSEMBLY_DETAIL_AVAILABLE","FULFILLMENT_STARTS","ORDER_CANCELLED_NO_TRANSFER","ORDER_AGAIN_IF_NEEDED","SHIPS_WITHIN_LEAD_TIME","OPTICAL_LAYOUT_AVAILABLE","REMAINING_GOODS_SHIP","TRACK_SHIPMENTS","MOUNTING_SHEET_AVAILABLE"]},"type":"array","title":"Next Steps"},"available_actions":{"items":{"type":"string","enum":["REPORT_BANK_TRANSFER","WITHDRAW_ORDER"]},"type":"array","title":"Available Actions"},"integrity":{"$ref":"#/components/schemas/CustomerOrderIntegrityV1"},"deliverables":{"items":{"$ref":"#/components/schemas/CustomerOrderDeliverableV1"},"type":"array","title":"Deliverables","default":[]},"design_deviations":{"items":{"$ref":"#/components/schemas/CustomerDesignDeviationV1"},"type":"array","title":"Design Deviations","default":[]},"basis":{"type":"string","enum":["DESIGN","PART_LIST"],"title":"Basis","default":"DESIGN"},"order_options":{"anyOf":[{"$ref":"#/components/schemas/CustomerOrderOptionsV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["order_id","order_number","order_status","ordered_at","seller","customer","currency","total","lines","assembly","quotation","contract","payment","fulfillment","next_steps","available_actions","integrity"],"title":"CustomerOrderViewV1","description":"An Order with its quotation, agreement, bank-transfer instructions and next steps. ``order_status`` is PLACED\nfrom creation on, or CANCELLED once OpenSci cancelled the unpaid Order; the payment state is ``payment.state``."},"CustomerOrganizationV1":{"properties":{"organization_display_name":{"type":"string","title":"Organization Display Name"},"billing_title":{"anyOf":[{"$ref":"#/components/schemas/CustomerBillingTitleV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["organization_display_name"],"title":"CustomerOrganizationV1","description":"The customer of the Order. ``organization_display_name``: the account's name as the Order froze it;\n``billing_title`` (view 9): the billing title the Order names (``None`` for an Order created before billing titles)."},"CustomerPayeeV1":{"properties":{"company_name_zh":{"type":"string","title":"Company Name Zh"},"company_name_en":{"type":"string","title":"Company Name En"},"bank_name_zh":{"type":"string","title":"Bank Name Zh"},"bank_account":{"type":"string","title":"Bank Account"}},"additionalProperties":false,"type":"object","required":["company_name_zh","company_name_en","bank_name_zh","bank_account"],"title":"CustomerPayeeV1"},"CustomerPurchaseOptionsV1":{"properties":{"purchase_scope":{"type":"string","enum":["COMPLETE_SYSTEM","OPTICS_ONLY"],"title":"Purchase Scope","default":"COMPLETE_SYSTEM"},"include_breadboard":{"type":"boolean","title":"Include Breadboard","default":true},"assembly_service":{"type":"boolean","title":"Assembly Service","default":false},"customer_supplied_components":{"items":{"type":"string"},"type":"array","title":"Customer Supplied Components","default":[]},"spare_units":{"additionalProperties":{"type":"integer"},"type":"object","title":"Spare Units"}},"additionalProperties":false,"type":"object","title":"CustomerPurchaseOptionsV1","description":"The purchase options the resolution was made with (``customer_constraints``): what OpenSci supplies\n(``purchase_scope``: the complete system -- optics and mounting hardware -- or the optical elements only), the\nOpenSci breadboard or the customer's own optical table, and the OpenSci assembly and alignment service."},"CustomerQuotationV1":{"properties":{"quotation_number":{"type":"string","title":"Quotation Number"},"issued_at":{"type":"string","format":"date-time","title":"Issued At"},"validity":{"type":"string","const":"BOUND_TO_ORDER","title":"Validity"},"terms":{"$ref":"#/components/schemas/CustomerTermsV1"},"prices_as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Prices As Of"}},"additionalProperties":false,"type":"object","required":["quotation_number","issued_at","validity","terms"],"title":"CustomerQuotationV1","description":"The formal quotation of the Order (the same lines, prices, total and assembly configuration as the Order)."},"CustomerResolutionViewV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial_resolution_view","title":"Schema","default":"opensci.commercial_resolution_view"},"schema_version":{"type":"string","enum":["2","3","4","5","6"],"title":"Schema Version","default":"6"},"status":{"type":"string","const":"RESOLVED","title":"Status","default":"RESOLVED"},"optical_design_selection":{"items":{"$ref":"#/components/schemas/CustomerOpticalSelectionV1"},"type":"array","title":"Optical Design Selection"},"customer_bom":{"$ref":"#/components/schemas/CustomerBomV1"},"dof_delivery":{"items":{"$ref":"#/components/schemas/CustomerDofDeliveryV1"},"type":"array","title":"Dof Delivery"},"breadboard":{"anyOf":[{"$ref":"#/components/schemas/CustomerBreadboardV1"},{"type":"null"}]},"configuration_notes":{"items":{"$ref":"#/components/schemas/CustomerConfigurationNoteV1"},"type":"array","title":"Configuration Notes"},"lineage":{"$ref":"#/components/schemas/CustomerLineageV1"},"next_steps":{"items":{"type":"string","enum":["VIEW_ASSEMBLY_PREVIEW","VIEW_OPTICAL_LAYOUT","VIEW_MOUNTING_SHEET","CREATE_ORDER"]},"type":"array","title":"Next Steps","default":["VIEW_ASSEMBLY_PREVIEW","CREATE_ORDER"]},"frame":{"anyOf":[{"$ref":"#/components/schemas/CustomerFrameV1"},{"type":"null"}]},"purchase_options":{"$ref":"#/components/schemas/CustomerPurchaseOptionsV1"},"delivery_terms":{"anyOf":[{"$ref":"#/components/schemas/CustomerDeliveryTermsV1"},{"type":"null"}]},"customer_supplied_components":{"items":{"$ref":"#/components/schemas/CustomerSuppliedComponentV1"},"type":"array","title":"Customer Supplied Components","default":[]},"assembly_service":{"anyOf":[{"$ref":"#/components/schemas/CustomerAssemblyServiceOfferV1"},{"type":"null"}]},"design_deviations":{"items":{"$ref":"#/components/schemas/CustomerDesignDeviationV1"},"type":"array","title":"Design Deviations","default":[]},"agreement":{"anyOf":[{"$ref":"#/components/schemas/CustomerAgreementPreviewV1"},{"type":"null"}]},"deliverables":{"items":{"$ref":"#/components/schemas/CustomerDeliverableV1"},"type":"array","title":"Deliverables","default":[]},"basis":{"type":"string","enum":["DESIGN","PART_LIST"],"title":"Basis","default":"DESIGN"},"order_options":{"anyOf":[{"$ref":"#/components/schemas/CustomerOrderOptionsV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["optical_design_selection","customer_bom","dof_delivery","breadboard","configuration_notes","lineage","frame"],"title":"CustomerResolutionViewV1","description":"The resolution of one design submitted with its local run's record -- or, view 6, of a part list: the Customer Purchase BOM with\ncurrent prices (with the service lines), how every retained DOF is provided, the breadboard, the purchase options\nand the order options, the delivery terms, the customer-supplied components, the configuration notes and how the\ndesign frame maps onto the laboratory frame."},"CustomerSellerV1":{"properties":{"company_name_zh":{"type":"string","title":"Company Name Zh"},"company_name_en":{"type":"string","title":"Company Name En"}},"additionalProperties":false,"type":"object","required":["company_name_zh","company_name_en"],"title":"CustomerSellerV1","description":"OpenSci's contracting company (the receiving company of the bank transfer)."},"CustomerShippingAddressV1":{"properties":{"region":{"type":"string","const":"CN_MAINLAND","title":"Region"},"recipient_name":{"type":"string","title":"Recipient Name"},"mobile_phone":{"type":"string","title":"Mobile Phone"},"province":{"type":"string","title":"Province"},"city":{"type":"string","title":"City"},"district":{"type":"string","title":"District"},"street_address":{"type":"string","title":"Street Address"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"}},"additionalProperties":false,"type":"object","required":["region","recipient_name","mobile_phone","province","city","district","street_address","postal_code"],"title":"CustomerShippingAddressV1","description":"The address the Order ships to (mainland China), as the Order committed to it: a later change of the address\nbook never changes it."},"CustomerSignatureV1":{"properties":{"required_for_order":{"type":"boolean","const":false,"title":"Required For Order"},"signed_copy_exchange":{"type":"string","const":"ON_CUSTOMER_REQUEST","title":"Signed Copy Exchange"}},"additionalProperties":false,"type":"object","required":["required_for_order","signed_copy_exchange"],"title":"CustomerSignatureV1","description":"The Order does not need a signature; a signed and stamped copy can be exchanged on the customer's request."},"CustomerSuppliedComponentV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"optical_role":{"type":"string","title":"Optical Role"},"reason_code":{"type":"string","enum":["CUSTOMER_LIGHT_SOURCE","NOT_IN_CATALOG","NOT_ORDERABLE","TEMPORARILY_UNAVAILABLE","CUSTOMER_OWNED"],"title":"Reason Code"},"opensci_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opensci Sku"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"display_name_zh_cn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name Zh Cn"},"custom_component_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Component Key"},"reserved_space":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reserved Space","default":false},"notice_code":{"type":"string","const":"CUSTOMER_SUPPLIED","title":"Notice Code","default":"CUSTOMER_SUPPLIED"},"notice":{"type":"string","title":"Notice"},"axis_height_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Axis Height Mm"},"modelled_as":{"type":"string","enum":["CATALOG_PRODUCT","USER_DEFINED"],"title":"Modelled As","default":"CATALOG_PRODUCT"},"outside_board_by_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Outside Board By Mm"}},"additionalProperties":false,"type":"object","required":["instance_id","optical_role","reason_code","notice"],"title":"CustomerSuppliedComponentV1","description":"A design component the customer supplies: it is not on the Customer Purchase BOM and is outside OpenSci's\ndelivery and warranty. It stays part of the design: the assembly is resolved with it in place (its design position\nis kept, and when its geometry is known its space and beam path are kept clear).\n\n``opensci_sku`` (with its English / Simplified Chinese names) is the OpenSci product to obtain for a catalog\ncomponent; ``custom_component_key`` names the customer's own user-defined component (its light source, or another\ncomponent that is not a catalog product). ``reason_code`` says why the customer supplies it; ``notice`` is the\nEnglish text of the per-component notice (``notice_code`` is its stable code, the zh-CN / en wording is in the\ncommerce message catalog). ``reserved_space``: the resolution reserved the component's space.\n\n``axis_height_mm``: the height of the component's design position above the breadboard top -- the top of the\ncustomer's own optical table when the resolution includes no breadboard -- in the laboratory frame of ``frame``\n(for the customer's light source, where its beam starts); ``None`` when the resolution does not state it."},"CustomerTermsV1":{"properties":{"terms_code":{"type":"string","title":"Terms Code"},"price_basis":{"type":"string","title":"Price Basis"},"notice_codes":{"items":{"type":"string"},"type":"array","title":"Notice Codes"},"tax_status":{"type":"string","title":"Tax Status"},"shipping_status":{"type":"string","title":"Shipping Status"},"payment_method":{"type":"string","const":"CORPORATE_BANK_TRANSFER","title":"Payment Method"},"payment_timing":{"type":"string","const":"PREPAYMENT","title":"Payment Timing"},"delivery":{"anyOf":[{"$ref":"#/components/schemas/CustomerOrderDeliveryTermsV1"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["terms_code","price_basis","notice_codes","tax_status","shipping_status","payment_method","payment_timing"],"title":"CustomerTermsV1","description":"The commercial terms the Order was written under. ``shipping_status``: ``CHARGED_AS_ORDER_LINE`` -- shipping is\nthe Shipping line of the Order -- or ``NOT_QUOTED``; ``delivery``: the Order's delivery terms (``None`` when the\nOrder states none)."},"CustomerTransformV1":{"properties":{"rotation_wxyz":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4,"title":"Rotation Wxyz"},"translation_mm":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Translation Mm"}},"additionalProperties":false,"type":"object","required":["rotation_wxyz","translation_mm"],"title":"CustomerTransformV1"},"CustomerTravelV1":{"properties":{"minus":{"type":"number","title":"Minus"},"plus":{"type":"number","title":"Plus"},"unit":{"type":"string","enum":["mm","deg"],"title":"Unit"}},"additionalProperties":false,"type":"object","required":["minus","plus","unit"],"title":"CustomerTravelV1","description":"The adjustment range relative to the nominal pose, signed along ``lab_direction``."},"FeedbackReceiptV1":{"properties":{"feedback_id":{"type":"string","format":"uuid","title":"Feedback Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"status":{"type":"string","const":"RECEIVED","title":"Status","default":"RECEIVED"},"replayed":{"type":"boolean","title":"Replayed"}},"additionalProperties":false,"type":"object","required":["feedback_id","received_at","replayed"],"title":"FeedbackReceiptV1","description":"The receipt of one feedback submission. ``replayed`` is true for a retry with the same Idempotency-Key and the\nsame body: it names the feedback the first call stored, and nothing new was stored."},"FileVerificationV1":{"properties":{"role":{"$ref":"#/components/schemas/ArtifactFileRoleV1"},"checks":{"items":{"type":"string"},"type":"array","title":"Checks"}},"additionalProperties":false,"type":"object","required":["role","checks"],"title":"FileVerificationV1"},"GeneratorViewV1":{"properties":{"generator_id":{"type":"string","title":"Generator Id"},"generator_version":{"type":"string","title":"Generator Version"},"build_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Id"}},"additionalProperties":false,"type":"object","required":["generator_id","generator_version"],"title":"GeneratorViewV1"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthV1":{"properties":{"status":{"type":"string","enum":["ok","unavailable"],"title":"Status"},"database":{"type":"string","enum":["ok","unreachable"],"title":"Database"},"catalog":{"anyOf":[{"type":"string","enum":["ok","unavailable"]},{"type":"null"}],"title":"Catalog"},"artifact_store":{"anyOf":[{"type":"string","enum":["ok","unavailable","not_configured"]},{"type":"null"}],"title":"Artifact Store"}},"additionalProperties":false,"type":"object","required":["status","database"],"title":"HealthV1","description":"Liveness and readiness. ``status`` is ``ok`` (HTTP 200) only when the database answers, the ACTIVE catalog\nrelease is loaded (``catalog``) and the artifact store is usable (``artifact_store``, when this instance stores\nartifacts); otherwise ``unavailable`` (HTTP 503). ``catalog`` and ``artifact_store`` are absent when the database\nis unreachable."},"LocalizedPresentationV1":{"properties":{"schema_id":{"type":"string","const":"opensci.commercial.localized_presentation","title":"Schema Id","default":"opensci.commercial.localized_presentation"},"schema_version":{"type":"string","const":"4","title":"Schema Version","default":"4"},"locale":{"type":"string","enum":["zh-CN","en"],"title":"Locale"},"view":{"type":"string","enum":["RESOLUTION","ORDER","QUOTATION","CONTRACT","ORDER_LIST","ERROR"],"title":"View"},"title":{"type":"string","title":"Title"},"headline_code":{"type":"string","title":"Headline Code"},"headline":{"type":"string","title":"Headline"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"state_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Label"},"sections":{"items":{"$ref":"#/components/schemas/PresentedSectionV1"},"type":"array","title":"Sections","default":[]},"fields":{"items":{"$ref":"#/components/schemas/PresentedFieldV1"},"type":"array","title":"Fields"},"parties":{"items":{"$ref":"#/components/schemas/PresentedPartyV1"},"type":"array","title":"Parties","default":[]},"lines":{"items":{"$ref":"#/components/schemas/PresentedLineV1"},"type":"array","title":"Lines"},"configuration_notes":{"items":{"$ref":"#/components/schemas/PresentedConfigurationNoteV1"},"type":"array","title":"Configuration Notes","default":[]},"customer_supplied":{"items":{"$ref":"#/components/schemas/PresentedCustomerSuppliedV1"},"type":"array","title":"Customer Supplied","default":[]},"dof_delivery":{"items":{"$ref":"#/components/schemas/PresentedDofV1"},"type":"array","title":"Dof Delivery","default":[]},"clauses":{"items":{"$ref":"#/components/schemas/PresentedNoticeV1"},"type":"array","title":"Clauses","default":[]},"notices":{"items":{"$ref":"#/components/schemas/PresentedNoticeV1"},"type":"array","title":"Notices"},"transfer":{"anyOf":[{"$ref":"#/components/schemas/PresentedTransferV1"},{"type":"null"}]},"next_steps":{"items":{"$ref":"#/components/schemas/PresentedNoticeV1"},"type":"array","title":"Next Steps","default":[]},"actions":{"items":{"$ref":"#/components/schemas/PresentedActionV1"},"type":"array","title":"Actions"},"reference":{"items":{"$ref":"#/components/schemas/PresentedFieldV1"},"type":"array","title":"Reference","default":[]},"items":{"items":{"items":{"$ref":"#/components/schemas/PresentedFieldV1"},"type":"array"},"type":"array","title":"Items","default":[]},"deviations":{"items":{"$ref":"#/components/schemas/PresentedNoticeV1"},"type":"array","title":"Deviations","default":[]},"existing_orders":{"items":{"$ref":"#/components/schemas/PresentedNoticeV1"},"type":"array","title":"Existing Orders","default":[]},"deliveries":{"items":{"items":{"$ref":"#/components/schemas/PresentedFieldV1"},"type":"array"},"type":"array","title":"Deliveries","default":[]}},"additionalProperties":false,"type":"object","required":["locale","view","title","headline_code","headline","state_code","state_label","fields","lines","notices","transfer","actions"],"title":"LocalizedPresentationV1","description":"A localized, human-readable rendering of a commercial view. ``sections`` lists the parts present, in display\norder; ``reference`` (identifiers and integrity digests) always comes last."},"MechanicalProductV1":{"properties":{"opensci_sku":{"type":"string","title":"Opensci Sku"},"kind":{"type":"string","enum":["MOUNT","POST","POST_HOLDER","BREADBOARD"],"title":"Kind"},"display_name":{"type":"string","title":"Display Name"},"display_name_zh_cn":{"type":"string","title":"Display Name Zh Cn"},"description":{"type":"string","title":"Description"},"description_zh_cn":{"type":"string","title":"Description Zh Cn"},"facts":{"additionalProperties":true,"type":"object","title":"Facts"}},"additionalProperties":false,"type":"object","required":["opensci_sku","kind","display_name","display_name_zh_cn","description","description_zh_cn","facts"],"title":"MechanicalProductV1"},"MechanicalProductsV1":{"properties":{"schema_id":{"type":"string","const":"opensci.commercial.mechanical_products","title":"Schema Id","default":"opensci.commercial.mechanical_products"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"catalog_version":{"type":"string","title":"Catalog Version"},"products":{"items":{"$ref":"#/components/schemas/MechanicalProductV1"},"type":"array","title":"Products"}},"additionalProperties":false,"type":"object","required":["catalog_version","products"],"title":"MechanicalProductsV1"},"OpticalLayoutBeamPathV1":{"properties":{"path_key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Path Key","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"wavelength_nm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Wavelength Nm"},"through":{"items":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"type":"array","maxItems":64,"minItems":2,"title":"Through"},"points_mm":{"items":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3},"type":"array","maxItems":64,"minItems":2,"title":"Points Mm"},"segment_lengths_mm":{"items":{"type":"number"},"type":"array","maxItems":63,"minItems":1,"title":"Segment Lengths Mm"}},"additionalProperties":false,"type":"object","required":["path_key","through","points_mm","segment_lengths_mm"],"title":"OpticalLayoutBeamPathV1","description":"One nominal beam path (one per light source and splitter branch): the elements it visits in order (``through``,\nelement and observation ids) at ``points_mm`` (relative), and the length of each straight segment between\nconsecutive points (``segment_lengths_mm``, one fewer than the points)."},"OpticalLayoutBindingV1":{"properties":{"project_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Project Hash"},"local_validation_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Local Validation Hash"},"public_catalog_version":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Public Catalog Version","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"commercial_resolution_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Commercial Resolution Id","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"purchase_scope":{"type":"string","enum":["COMPLETE_SYSTEM","OPTICS_ONLY"],"title":"Purchase Scope"},"order_number":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","description":"Stable OpenSci identifier (contains no '/' and no control character)."},{"type":"null"}],"title":"Order Number"},"customer_display_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Customer Display Name"}},"additionalProperties":false,"type":"object","required":["project_hash","local_validation_hash","public_catalog_version","commercial_resolution_id","purchase_scope"],"title":"OpticalLayoutBindingV1","description":"What the layout belongs to: the validated design and its commercial resolution; ``order_number`` and\n``customer_display_name`` once an Order of that resolution exists (``None`` for the layout of a resolution)."},"OpticalLayoutDofV1":{"properties":{"axis":{"type":"string","enum":["Tx","Ty","Tz","Rx","Ry","Rz"],"title":"Axis"},"control":{"type":"string","enum":["MANUAL","NUMERICAL"],"title":"Control"}},"additionalProperties":false,"type":"object","required":["axis","control"],"title":"OpticalLayoutDofV1","description":"A retained design DOF of the element (along or about its own local axis), as the design requests it."},"OpticalLayoutElementV1":{"properties":{"instance_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Instance Id","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"optical_role":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z_]+$","title":"Optical Role"},"supplied_by":{"type":"string","enum":["OPENSCI","CUSTOMER"],"title":"Supplied By"},"supply_reason":{"anyOf":[{"type":"string","enum":["CUSTOMER_LIGHT_SOURCE","NOT_IN_CATALOG","NOT_ORDERABLE","TEMPORARILY_UNAVAILABLE","CUSTOMER_OWNED"]},{"type":"null"}],"title":"Supply Reason"},"opensci_sku":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","description":"Stable OpenSci identifier (contains no '/' and no control character)."},{"type":"null"}],"title":"Opensci Sku"},"display_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Display Name"},"display_name_zh_cn":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Display Name Zh Cn"},"custom_component_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","description":"Stable OpenSci identifier (contains no '/' and no control character)."},{"type":"null"}],"title":"Custom Component Key"},"line_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","description":"Stable OpenSci identifier (contains no '/' and no control character)."},{"type":"null"}],"title":"Line Key"},"position_mm":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Position Mm"},"quaternion_wxyz":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4,"title":"Quaternion Wxyz"},"axis_direction":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Axis Direction"},"up_direction":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Up Direction"},"outline":{"anyOf":[{"$ref":"#/components/schemas/OpticalLayoutOutlineV1"},{"type":"null"}]},"retained_dofs":{"items":{"$ref":"#/components/schemas/OpticalLayoutDofV1"},"type":"array","title":"Retained Dofs","default":[]}},"additionalProperties":false,"type":"object","required":["instance_id","optical_role","supplied_by","position_mm","quaternion_wxyz","axis_direction","up_direction"],"title":"OpticalLayoutElementV1","description":"One design component at its relative design position.\n\n``supplied_by``: ``OPENSCI`` -- an OpenSci optical product on the Order (``opensci_sku``, its names and its Purchase\nBOM ``line_key``); ``CUSTOMER`` -- supplied by the customer (``supply_reason``). A customer-supplied catalog product\n(``opensci_sku`` set) is the catalog model the design used for it: the customer's own part may differ, and only\nthe catalog model's outline is known. A customer-supplied user-defined component has ``custom_component_key``; it\nhas an outline when the Project declares its optical model with a body of known extent (the model's design\ngeometry, a COMPOUND unit's envelope, or the outline and surfaces of the model)."},"OpticalLayoutObservationV1":{"properties":{"observation_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Observation Id","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"position_mm":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Position Mm"},"axis_direction":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"Axis Direction"}},"additionalProperties":false,"type":"object","required":["observation_id","position_mm","axis_direction"],"title":"OpticalLayoutObservationV1","description":"An observation plane of the design (design intent, not hardware) at its relative position."},"OpticalLayoutOutlineV1":{"properties":{"shape":{"type":"string","enum":["ROUND","RECTANGULAR"],"title":"Shape"},"diameter_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Diameter Mm"},"width_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width Mm"},"height_mm":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height Mm"},"z_min_mm":{"type":"number","title":"Z Min Mm"},"z_max_mm":{"type":"number","title":"Z Max Mm"}},"additionalProperties":false,"type":"object","required":["shape","z_min_mm","z_max_mm"],"title":"OpticalLayoutOutlineV1","description":"The outline of an element in its own design frame -- a catalog product's public design geometry, or the geometry\nof the optical model the Project declares for a component of its own -- round (``diameter_mm``) or rectangular\n(``width_mm`` across local X, ``height_mm`` across local Y), from ``z_min_mm`` to ``z_max_mm`` along local +Z."},"OpticalLayoutPackageV1":{"properties":{"schema":{"type":"string","const":"opensci.optical_layout.package","title":"Schema","default":"opensci.optical_layout.package"},"schema_version":{"type":"string","const":"1.0","title":"Schema Version","default":"1.0"},"binding":{"$ref":"#/components/schemas/OpticalLayoutBindingV1"},"frame":{"type":"string","const":"DESIGN_FRAME_RELATIVE_TO_DATUM","title":"Frame","default":"DESIGN_FRAME_RELATIVE_TO_DATUM"},"datum":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Datum","description":"Stable OpenSci identifier (contains no '/' and no control character)."},"elements":{"items":{"$ref":"#/components/schemas/OpticalLayoutElementV1"},"type":"array","maxItems":256,"minItems":1,"title":"Elements"},"beam_paths":{"items":{"$ref":"#/components/schemas/OpticalLayoutBeamPathV1"},"type":"array","maxItems":1024,"title":"Beam Paths","default":[]},"observations":{"items":{"$ref":"#/components/schemas/OpticalLayoutObservationV1"},"type":"array","title":"Observations","default":[]},"layout_content_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Layout Content Hash","description":"osc1 digest of this document without layout_content_hash."}},"additionalProperties":false,"type":"object","required":["binding","datum","elements","layout_content_hash"],"title":"OpticalLayoutPackageV1","description":"The Optical Layout Package: its content and the osc1 digest of that content."},"OptionNotAppliedV1":{"properties":{"field":{"type":"string","title":"Field"},"reason":{"type":"string","enum":["PURCHASE_SCOPE_OPTICS_ONLY","MECHANICAL_SUPPLY_NONE"],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["field","reason"],"title":"OptionNotAppliedV1","description":"A request option that does not apply to the requested purchase: it was left out, not refused."},"OrderPlacementResultV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.order_placement","title":"Schema","default":"opensci.commercial.order_placement"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"replayed":{"type":"boolean","title":"Replayed"},"order":{"$ref":"#/components/schemas/CustomerOrderViewV1"}},"additionalProperties":false,"type":"object","required":["replayed","order"],"title":"OrderPlacementResultV1","description":"The answer of an Order creation: ``replayed`` is true for an idempotent retry (same key, same body), which\nreturns the Order created by the first call and changes nothing."},"OrderWithdrawalResultV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.order_withdrawal","title":"Schema","default":"opensci.commercial.order_withdrawal"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"order_number":{"type":"string","title":"Order Number"},"order_status":{"type":"string","const":"WITHDRAWN","title":"Order Status","default":"WITHDRAWN"},"data_deleted":{"type":"boolean","const":true,"title":"Data Deleted","default":true},"resolution_deleted":{"type":"boolean","title":"Resolution Deleted"},"next_steps":{"items":{"type":"string","enum":["SUBMIT_DESIGN_AGAIN_TO_ORDER","ORDER_AGAIN_IF_NEEDED"]},"type":"array","title":"Next Steps"}},"additionalProperties":false,"type":"object","required":["order_id","order_number","resolution_deleted","next_steps"],"title":"OrderWithdrawalResultV1","description":"The answer of a withdrawal. The Order, its quotation, agreement, payment and shipping-address copy are deleted;\nso are its resolution and design data unless another Order still names them (``resolution_deleted``). The Order\nNumber is never used again. A later request for the Order -- including a second withdrawal -- is\n``ORDER_NOT_FOUND``."},"PresentedActionV1":{"properties":{"action":{"type":"string","title":"Action"},"command":{"type":"string","title":"Command"},"arguments":{"additionalProperties":{"type":"string"},"type":"object","title":"Arguments"},"label":{"type":"string","title":"Label"},"confirmation":{"type":"string","title":"Confirmation"}},"additionalProperties":false,"type":"object","required":["action","command","arguments","label","confirmation"],"title":"PresentedActionV1","description":"One button. ``action``, ``command`` and ``arguments`` are language-neutral and identical in every locale;\n``confirmation`` is the note shown with it."},"PresentedConfigurationNoteV1":{"properties":{"code":{"type":"string","title":"Code"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["code","subject","text"],"title":"PresentedConfigurationNoteV1"},"PresentedCustomerSuppliedV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"opensci_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opensci Sku"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"custom_component_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Component Key"},"reason_code":{"type":"string","title":"Reason Code"},"reason":{"type":"string","title":"Reason"},"text":{"type":"string","title":"Text"},"placement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placement"},"modelled_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelled As"}},"additionalProperties":false,"type":"object","required":["instance_id","reason_code","reason","text"],"title":"PresentedCustomerSuppliedV1","description":"One design component the customer supplies: ``opensci_sku`` and ``display_name`` (in the presentation's\nlanguage) name the OpenSci product to obtain, ``custom_component_key`` the customer's own component; ``reason``\nsays why the customer supplies it and ``text`` is the notice (supplied by the customer, not part of the purchase);\n``placement`` whether its space is kept free in the layout or only its design position is given (``None`` when the\nOrder does not state it)."},"PresentedDofV1":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"axis":{"type":"string","title":"Axis"},"status":{"type":"string","title":"Status"},"text":{"type":"string","title":"Text"},"mechanism":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mechanism"},"adjustment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adjustment"},"travel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Travel"},"notice":{"type":"string","title":"Notice"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["instance_id","axis","status","text","notice"],"title":"PresentedDofV1","description":"One retained DOF: ``text`` is how it is provided; ``mechanism``, ``adjustment`` and ``travel`` (when it is\nadjustable) and ``notice`` are the same facts the resolution showed before the Order, rendered from their codes.\n``notice`` is empty when it would only restate ``text``."},"PresentedFieldV1":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"value":{"type":"string","title":"Value"},"machine_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Machine Value"}},"additionalProperties":false,"type":"object","required":["code","label","value"],"title":"PresentedFieldV1","description":"One labelled value. ``machine_value`` is the ISO 8601 form of a timestamp field (identical in every locale)."},"PresentedLineV1":{"properties":{"line_key":{"type":"string","title":"Line Key"},"opensci_sku":{"type":"string","title":"Opensci Sku"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"quantity":{"type":"string","title":"Quantity"},"unit_code":{"type":"string","title":"Unit Code"},"unit_price":{"type":"string","title":"Unit Price"},"line_total":{"type":"string","title":"Line Total"},"notices":{"items":{"$ref":"#/components/schemas/PresentedNoticeV1"},"type":"array","title":"Notices","default":[]}},"additionalProperties":false,"type":"object","required":["line_key","opensci_sku","display_name","quantity","unit_code","unit_price","line_total"],"title":"PresentedLineV1","description":"One product line; ``display_name`` (and ``description``, on a resolution) is in the presentation's language.\n``notices`` (absent when none): how an optic of the line is delivered -- ``SUPPLIED_UNMOUNTED`` (without\nmounting hardware, the customer mounts it), ``HOUSED_PRODUCT`` (in its manufacturer's housing)."},"PresentedNoticeV1":{"properties":{"code":{"type":"string","title":"Code"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["code","text"],"title":"PresentedNoticeV1"},"PresentedPartyV1":{"properties":{"role":{"type":"string","enum":["SELLER","CUSTOMER"],"title":"Role"},"label":{"type":"string","title":"Label"},"name":{"type":"string","title":"Name"},"fields":{"items":{"$ref":"#/components/schemas/PresentedFieldV1"},"type":"array","title":"Fields","default":[]}},"additionalProperties":false,"type":"object","required":["role","label","name"],"title":"PresentedPartyV1","description":"A party of the agreement. ``fields`` (absent when none): the details of the CUSTOMER's billing title the Order\nnames (taxpayer ID, address, phone, bank, bank account), each a language-neutral fact under a localized label."},"PresentedSectionV1":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"}},"additionalProperties":false,"type":"object","required":["code","label"],"title":"PresentedSectionV1","description":"One section of the presentation, in display order, with its localized heading."},"PresentedTransferV1":{"properties":{"order_number":{"type":"string","title":"Order Number"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"fields":{"items":{"$ref":"#/components/schemas/PresentedFieldV1"},"type":"array","title":"Fields"},"instructions":{"items":{"type":"string"},"type":"array","title":"Instructions"},"confirmation_note":{"type":"string","title":"Confirmation Note"}},"additionalProperties":false,"type":"object","required":["order_number","amount","currency","fields","instructions","confirmation_note"],"title":"PresentedTransferV1","description":"The complete corporate bank-transfer instructions."},"ProtectedDeliveryV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial_api.protected_delivery","title":"Schema","default":"opensci.commercial_api.protected_delivery"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"delivery":{"type":"string","enum":["ASSEMBLY_PREVIEW","ASSEMBLY_DETAIL"],"title":"Delivery"},"commercial_resolution_id":{"type":"string","title":"Commercial Resolution Id"},"envelope":{"additionalProperties":true,"type":"object","title":"Envelope"},"grant":{"additionalProperties":true,"type":"object","title":"Grant"}},"additionalProperties":false,"type":"object","required":["delivery","commercial_resolution_id","envelope","grant"],"title":"ProtectedDeliveryV1","description":"A protected delivery: the encrypted package and the short-lived grant that opens it. Open it in memory with\n`os_optics.protected_delivery` (`open_preview_delivery` / `open_detail_delivery`); the grant is a secret\n(never log or store it). Each call issues a new envelope and grant; request a new delivery when the grant expired."},"ShippingAddressCreationResultV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.shipping_address_creation","title":"Schema","default":"opensci.commercial.shipping_address_creation"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"replayed":{"type":"boolean","title":"Replayed"},"address":{"$ref":"#/components/schemas/ShippingAddressV1"}},"additionalProperties":false,"type":"object","required":["replayed","address"],"title":"ShippingAddressCreationResultV1","description":"The answer of an address creation: ``replayed`` is true for an idempotent retry (same key, same body), which\nreturns the address created by the first call and changes nothing."},"ShippingAddressListV1":{"properties":{"schema":{"type":"string","const":"opensci.commercial.shipping_address_list","title":"Schema","default":"opensci.commercial.shipping_address_list"},"schema_version":{"type":"string","const":"1","title":"Schema Version","default":"1"},"default_address_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Address Id"},"max_addresses":{"type":"integer","title":"Max Addresses"},"addresses":{"items":{"$ref":"#/components/schemas/ShippingAddressV1"},"type":"array","title":"Addresses"}},"additionalProperties":false,"type":"object","required":["default_address_id","max_addresses","addresses"],"title":"ShippingAddressListV1","description":"The organization's addresses, the default first, then the newest first."},"ShippingAddressV1":{"properties":{"address_id":{"type":"string","format":"uuid","title":"Address Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"recipient_name":{"type":"string","title":"Recipient Name"},"mobile_phone":{"type":"string","title":"Mobile Phone"},"region":{"type":"string","const":"CN_MAINLAND","title":"Region","default":"CN_MAINLAND"},"province":{"type":"string","title":"Province"},"city":{"type":"string","title":"City"},"district":{"type":"string","title":"District"},"street_address":{"type":"string","title":"Street Address"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["address_id","label","recipient_name","mobile_phone","province","city","district","street_address","postal_code","is_default","created_at","updated_at"],"title":"ShippingAddressV1","description":"One address of the organization's address book (mainland China). ``label`` is the customer's own name for it\n(for example \"Lab\" or \"Home\"); ``is_default``: the address an Order uses when none is chosen."},"SourceBindingKindV1":{"type":"string","enum":["ASSEMBLY_PREVIEW_PACKAGE","ASSEMBLY_DETAIL_PACKAGE","ASSEMBLY_LOCAL_VALIDATION"],"title":"SourceBindingKindV1","description":"What an artifact set was generated from. The digest is that source's own content identity."},"SourceBindingViewV1":{"properties":{"kind":{"$ref":"#/components/schemas/SourceBindingKindV1"},"digest":{"type":"string","title":"Digest"},"linkage":{"$ref":"#/components/schemas/SourceLinkageV1"},"linked_artifact_set_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Artifact Set Id"}},"additionalProperties":false,"type":"object","required":["kind","digest","linkage"],"title":"SourceBindingViewV1","description":"One source of the artifact set and its link. The link of an assembly validation source of a drawing is read when\nthe set is read, so it does not depend on the order in which the validation and the drawing were uploaded."},"SourceLinkageV1":{"type":"string","enum":["RESOLUTION_PREVIEW","SAME_SET","LINKED_ARTIFACT_SET","NOT_UPLOADED","RELEASED_DETAIL"],"title":"SourceLinkageV1","description":"How one source an artifact set was generated from links to this resolution's records."},"TokenCapabilitiesV1":{"properties":{"resolve":{"type":"boolean","title":"Resolve","description":"Submit a Project with the record of its local run and read its resolution, Customer Purchase BOM and prices (`commercial:resolve`)."},"view_assembly_preview":{"type":"boolean","title":"View Assembly Preview","description":"Obtain the Experimental Lab Assembly preview of a resolution (`commercial:assembly-preview:read`)."},"place_order":{"type":"boolean","title":"Place Order","description":"Create the unpaid Order of a resolution (`commercial:order:place`). A single-use token loses placement after its first successful new Order; an idempotent retry of that request still returns the same Order."},"read_orders":{"type":"boolean","title":"Read Orders","description":"Read Orders, quotations, agreements and payment instructions (`commercial:order:read`)."},"report_bank_transfer":{"type":"boolean","title":"Report Bank Transfer","description":"Report that the corporate bank transfer was made (`commercial:payment:report`); only when the person who paid says so. OpenSci confirms receipt."},"obtain_assembly_detail":{"type":"boolean","title":"Obtain Assembly Detail","description":"Obtain the Assembly Detail once OpenSci has confirmed the Order's payment (`commercial:assembly-detail:read`)."},"upload_artifacts":{"type":"boolean","title":"Upload Artifacts","description":"Upload assembly validation results and Detailed Assembly Drawings (`commercial:assembly-artifact:write`)."},"read_artifacts":{"type":"boolean","title":"Read Artifacts","description":"Read uploaded assembly artifacts back (`commercial:assembly-artifact:read`)."},"manage_tokens":{"type":"boolean","title":"Manage Tokens","description":"List, issue and revoke this member's tokens (`account:token:manage`). It grants no commercial capability by itself."},"send_feedback":{"type":"boolean","title":"Send Feedback","description":"Send feedback to OpenSci (`POST /api/v1/feedback`, `os-optics feedback submit`): every Account token has it, Agent or Review profile; it needs no scope."}},"additionalProperties":false,"type":"object","required":["resolve","view_assembly_preview","place_order","read_orders","report_bank_transfer","obtain_assembly_detail","upload_artifacts","read_artifacts","manage_tokens","send_feedback"],"title":"TokenCapabilitiesV1","description":"What the token lets its holder do, one flag per customer capability."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"AccountTokenCreateRequestV1":{"additionalProperties":false,"description":"Issue a token for your own Agent (or another tool) with the Account owner's credential. Give exactly one of\n``scopes`` and ``profile``.","properties":{"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Explicit scopes (any customer commercial scope; `account:token:manage` is never issuable with a token).","title":"Scopes"},"profile":{"anyOf":[{"enum":["agent","review"],"type":"string"},{"type":"null"}],"default":null,"description":"`agent`: every customer commercial capability, including creating Orders and reporting a bank transfer. `review`: resolve, view the Experimental Lab Assembly, read Orders and artifacts; it cannot create Orders or report payments.","title":"Profile"},"lifecycle":{"default":"TIME_LIMITED","description":"SINGLE_USE spends placement authority after one successful new Order; TIME_LIMITED expires within 30 days; PERMANENT has no expiry and can be revoked. A consumed token can still read and track Orders if it carries commercial:order:read.","enum":["SINGLE_USE","TIME_LIMITED","PERMANENT"],"title":"Lifecycle","type":"string"},"lifetime_hours":{"default":720,"description":"Requested lifetime in hours (1..720); the token never outlives the credential that issues it.","maximum":720,"minimum":1,"title":"Lifetime Hours","type":"integer"},"label":{"anyOf":[{"maxLength":96,"type":"string"},{"type":"null"}],"default":null,"description":"Your own name for the token (1..64 characters after trimming).","title":"Label"}},"title":"AccountTokenCreateRequestV1","type":"object"},"BankTransferReportRequestV1":{"additionalProperties":false,"description":"Report that the corporate bank transfer was made (send it only when the person who paid says so). OpenSci\nconfirms receipt separately.","properties":{},"title":"BankTransferReportRequestV1","type":"object"},"BillingTitleCreateRequestV1":{"additionalProperties":false,"description":"A billing title for the organization: the customer its quotations and agreements name -- an organization or a\nperson -- with the details you want them to show. The first title becomes the default; `make_default` makes this\none the default. Values are checked and normalized by the service: an invalid one is 422 BILLING_TITLE_INVALID\nwith `details.invalid_fields`.","properties":{"kind":{"description":"ORGANIZATION (a company, university or institute) or INDIVIDUAL (a person).","maxLength":400,"title":"Kind","type":"string"},"name":{"description":"The full name as quotations and agreements show it (1-200 characters).","maxLength":400,"title":"Name","type":"string"},"taxpayer_id":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Optional unified social credit code (统一社会信用代码) or taxpayer number: letters and digits, hyphens between groups, at most 40; spaces are removed and letters upper-cased.","title":"Taxpayer Id"},"address":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Optional registered address (at most 200 characters).","title":"Address"},"phone":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Optional telephone number: digits, spaces, +, - and parentheses (at most 40).","title":"Phone"},"bank_name":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Optional name of the bank and branch (at most 100 characters).","title":"Bank Name"},"bank_account":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Optional bank account number: digits, optionally grouped by spaces or hyphens (at most 40).","title":"Bank Account"},"make_default":{"default":false,"description":"Make this title the default (the first one always is).","title":"Make Default","type":"boolean"}},"required":["kind","name"],"title":"BillingTitleCreateRequestV1","type":"object"},"BillingTitleDefaultRequestV1":{"additionalProperties":false,"description":"Make the billing title the default (no fields; the body may be omitted).","properties":{},"title":"BillingTitleDefaultRequestV1","type":"object"},"BillingTitleUpdateRequestV1":{"additionalProperties":false,"description":"Change some fields of a billing title: a field left out is unchanged; an optional detail (`taxpayer_id`,\n`address`, `phone`, `bank_name`, `bank_account`) set to null is cleared; `kind` and `name` cannot be cleared. The\nwhole title is checked again (422 BILLING_TITLE_INVALID). Orders already placed keep the title they were placed\nwith.","properties":{"kind":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"ORGANIZATION or INDIVIDUAL.","title":"Kind"},"name":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"1-200 characters.","title":"Name"},"taxpayer_id":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Letters and digits, hyphens between groups (at most 40); null clears.","title":"Taxpayer Id"},"address":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"At most 200 characters; null clears.","title":"Address"},"phone":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Digits, spaces, +, - and parentheses (at most 40); null clears.","title":"Phone"},"bank_name":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"At most 100 characters; null clears.","title":"Bank Name"},"bank_account":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":null,"description":"Digits grouped by spaces or hyphens (at most 40); null clears.","title":"Bank Account"}},"title":"BillingTitleUpdateRequestV1","type":"object"},"ClientArtifactBindingV1":{"additionalProperties":false,"description":"The commercial resolution the set belongs to, and what it was generated from; each value must match that\nresolution.","properties":{"project_hash":{"description":"Lowercase hexadecimal SHA-256 digest.","pattern":"^[0-9a-f]{64}$","title":"Project Hash","type":"string"},"commercial_resolution_id":{"description":"Lowercase canonical UUID text.","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","title":"Commercial Resolution Id","type":"string"},"customer_bom_digest":{"description":"Lowercase hexadecimal SHA-256 digest.","pattern":"^[0-9a-f]{64}$","title":"Customer Bom Digest","type":"string"},"sources":{"items":{"$ref":"#/components/schemas/ClientArtifactSourceBindingV1"},"maxItems":3,"minItems":1,"title":"Sources","type":"array"}},"required":["project_hash","commercial_resolution_id","customer_bom_digest","sources"],"title":"ClientArtifactBindingV1","type":"object"},"ClientArtifactGeneratorV1":{"additionalProperties":false,"description":"The client software that produced the files.","properties":{"generator_id":{"description":"Stable OpenSci identifier (contains no '/' and no control character).","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Generator Id","type":"string"},"generator_version":{"description":"Opaque non-empty build or package version string.","maxLength":128,"minLength":1,"pattern":"^\\S+$","title":"Generator Version","type":"string"},"build_id":{"anyOf":[{"description":"Opaque non-empty build or package version string.","maxLength":128,"minLength":1,"pattern":"^\\S+$","type":"string"},{"type":"null"}],"default":null,"title":"Build Id"}},"required":["generator_id","generator_version"],"title":"ClientArtifactGeneratorV1","type":"object"},"ClientArtifactSourceBindingV1":{"additionalProperties":false,"properties":{"kind":{"$ref":"#/components/schemas/SourceBindingKindV1"},"digest":{"description":"Lowercase hexadecimal SHA-256 digest.","pattern":"^[0-9a-f]{64}$","title":"Digest","type":"string"}},"required":["kind","digest"],"title":"ClientArtifactSourceBindingV1","type":"object"},"ClientAssemblyArtifactManifestV1":{"additionalProperties":false,"description":"One client-generated artifact set: kind, binding, generator, exact files, and its content identity.","properties":{"schema":{"const":"opensci.client_assembly_artifact_manifest","default":"opensci.client_assembly_artifact_manifest","title":"Schema","type":"string"},"schema_version":{"const":"1.0","default":"1.0","title":"Schema Version","type":"string"},"artifact_kind":{"$ref":"#/components/schemas/ClientArtifactKindV1"},"binding":{"$ref":"#/components/schemas/ClientArtifactBindingV1"},"generator":{"$ref":"#/components/schemas/ClientArtifactGeneratorV1"},"files":{"items":{"$ref":"#/components/schemas/ClientArtifactFileV1"},"maxItems":5,"minItems":1,"title":"Files","type":"array"},"locale":{"anyOf":[{"enum":["en","zh-CN"],"type":"string"},{"type":"null"}],"default":null,"description":"A drawing set: the language its sheet is written in (its drawing_result.json locale).","title":"Locale"},"artifact_set_digest":{"description":"osc1 digest of this manifest without artifact_set_digest.","pattern":"^[0-9a-f]{64}$","title":"Artifact Set Digest","type":"string"}},"required":["artifact_kind","binding","generator","files","artifact_set_digest"],"title":"ClientAssemblyArtifactManifestV1","type":"object"},"CommercialSubmissionRequestV1":{"additionalProperties":false,"description":"A Project and the Local Validation record of its local run, submitted for commercial resolution. Send it with an\n``Idempotency-Key`` header; the key is not part of the body.","properties":{"schema":{"const":"opensci.commercial_submission","title":"Schema","type":"string"},"schema_version":{"const":"2.0","title":"Schema Version","type":"string"},"project_hash":{"description":"osc1 content hash of `project`, as the client computed it","pattern":"^[0-9a-f]{64}$","title":"Project Hash","type":"string"},"project":{"additionalProperties":true,"description":"The Project document (`project.payload()` of os-optics).","title":"Project","type":"object"},"local_validation":{"additionalProperties":true,"description":"The Local Validation record of this Project, as the run wrote it (`run.local_validation.payload()`), whatever its targets came out as.","title":"Local Validation","type":"object"},"customer_constraints":{"$ref":"#/components/schemas/CustomerConstraintsV1"}},"required":["schema","schema_version","project_hash","project","local_validation"],"title":"CommercialSubmissionRequestV1","type":"object"},"CustomerConstraintsV1":{"additionalProperties":false,"description":"What the customer decides about the purchase: what OpenSci supplies, the largest breadboard, whether every\nretained DOF must be adjustable as requested, the OpenSci breadboard or the customer's own optical table, the\nOpenSci assembly and alignment service, which of the design's components the customer supplies, and spare units.\n\nThe beam height follows from the design: the reachable height that puts the first OpenSci optic nearest 125 mm\nabove the board top. OpenSci sizes the breadboard for the layout; ``include_breadboard = false`` leaves it out.","properties":{"purchase_scope":{"default":"COMPLETE_SYSTEM","description":"What OpenSci supplies. COMPLETE_SYSTEM (default): the optical elements of the design and the mounting hardware OpenSci derives for them (mounts, posts, holders, standard fixing screws and, unless include_breadboard = false, the breadboard). OPTICS_ONLY: only the optical elements the design selected -- no mounts, posts, holders, positioning hardware or breadboard; you mount them in your own mechanics; the deliverable is a relative Optical Layout Drawing (positions, orientations and beam path of every element, no absolute height). With OPTICS_ONLY, include_breadboard is false and assembly_service is false (PURCHASE_OPTIONS_CONFLICT otherwise); max_board_size_mm, require_all_retained_dofs and mounting do not apply and are left out (the answer lists them in options_not_applied). A Project designed as an optical system (design_intent OPTICAL_SYSTEM) has no laboratory layout: it is bought with OPTICS_ONLY, or with COMPLETE_SYSTEM, include_breadboard = false and a mounting input per optic (OpenSci-derived mounts without a layout; the deliverable is the mounting sheet); the breadboard or the assembly service is DESIGN_INTENT_HAS_NO_LAB_ASSEMBLY.","enum":["COMPLETE_SYSTEM","OPTICS_ONLY"],"title":"Purchase Scope","type":"string"},"max_board_size_mm":{"anyOf":[{"maxItems":2,"minItems":2,"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"description":"Largest acceptable breadboard outline (x, y) in mm; the configured breadboard stays within it. With include_breadboard = false: the free area on your own optical table.","title":"Max Board Size Mm"},"require_all_retained_dofs":{"default":false,"description":"Refuse the resolution unless every retained DOF is provided as requested.","title":"Require All Retained Dofs","type":"boolean"},"include_breadboard":{"default":true,"description":"Buy the OpenSci breadboard chosen for the layout (default). false: 'I will use my own optical table (M6 holes on a 25 mm grid)'; the board is then not a purchased line, while the layout, the preview and the drawing still use the resolved grid and the standard M6 fixing screws are still included.","title":"Include Breadboard","type":"boolean"},"assembly_service":{"default":false,"description":"OpenSci assembles and aligns the system on the OpenSci breadboard and delivers it assembled (a fee line, and a longer lead time). Requires include_breadboard = true (ASSEMBLY_SERVICE_REQUIRES_BREADBOARD otherwise).","title":"Assembly Service","type":"boolean"},"customer_supplied_components":{"default":[],"description":"Instance ids of design components you supply yourself (e.g. optics you already own): they stay in the design and the assembly is resolved with them in place, but they are not on the Customer Purchase BOM, are not delivered by OpenSci and are outside OpenSci's delivery and warranty. Components OpenSci cannot supply (your light source, a non-catalog component, a simulation-only or currently unavailable product) are customer-supplied anyway. A customer-supplied component of the inline optical train (a lens, mirror, splitter, filter, window, polarizer, waveplate, prism, or an aperture the beam continues through to OpenSci optics) makes the design self-assembly only (assembly_service = false; ASSEMBLY_SERVICE_UNAVAILABLE otherwise); your light source, detectors and beam dumps do not. Sorted and de-duplicated by the server; an id that is not a component of the Project is CUSTOMER_SUPPLIED_COMPONENT_UNKNOWN.","items":{"description":"Stable OpenSci identifier (contains no '/' and no control character).","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","type":"string"},"maxItems":256,"title":"Customer Supplied Components","type":"array"},"spare_units":{"description":"Extra units of OpenSci optical products this design uses, bought as spares: {OpenSci SKU: count}. They are separate Customer Purchase BOM lines (category SPARE_OPTICAL_ELEMENT), are not part of the assembly, its preview or its drawings, and ship with the order. Only a product OpenSci supplies for this design can be bought as a spare (SPARE_UNITS_INVALID otherwise).","maxProperties":1024,"patternProperties":{"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$":{"maximum":100000,"minimum":1,"type":"integer"}},"propertyNames":{"description":"Stable OpenSci identifier (contains no '/' and no control character).","maxLength":128,"minLength":1},"title":"Spare Units","type":"object"},"mounting":{"anyOf":[{"maxProperties":256,"patternProperties":{"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$":{"$ref":"#/components/schemas/MountingInputV1"}},"propertyNames":{"description":"Stable OpenSci identifier (contains no '/' and no control character).","maxLength":128,"minLength":1},"type":"object"},{"type":"null"}],"default":null,"description":"Only for a Project designed as an optical system (design_intent OPTICAL_SYSTEM) bought with purchase_scope COMPLETE_SYSTEM and include_breadboard = false: OpenSci derives a mount, post and post holder for every optic it supplies, without a laboratory layout, and the deliverable is the mounting sheet. {instance id: {beam_height_mm, incidence_deg?}} for every optic OpenSci supplies (MOUNTING_INPUT_REQUIRED otherwise); the retained DOFs are the Project's. Not for a laboratory assembly (PURCHASE_OPTIONS_CONFLICT); with an optics-only purchase it is left out (options_not_applied).","title":"Mounting"}},"title":"CustomerConstraintsV1","type":"object"},"DeliveryRequestV1":{"additionalProperties":false,"description":"Optional body of a protected delivery request. Without it the grant lives the default 10 minutes.","properties":{"grant_lifetime_seconds":{"anyOf":[{"maximum":1800,"minimum":30,"type":"integer"},{"type":"null"}],"default":null,"description":"Requested grant lifetime in seconds; never longer than the bearer token's own expiry.","title":"Grant Lifetime Seconds"}},"title":"DeliveryRequestV1","type":"object"},"DofAxisV1":{"description":"One of the six component-local design DOFs: translations ``Tx``/``Ty``/``Tz`` along and rotations\n``Rx``/``Ry``/``Rz`` about the component's local x, y, z axes (local +Z is the optical axis).","enum":["Tx","Ty","Tz","Rx","Ry","Rz"],"title":"DofAxisV1","type":"string"},"DofControlIntentV1":{"description":"How a retained DOF is intended to be operated after the system is built.","enum":["MANUAL","NUMERICAL"],"title":"DofControlIntentV1","type":"string"},"DofDriftV1":{"additionalProperties":false,"description":"How far a retained DOF's position drifts, as magnitudes in the axis's unit: per kelvin of temperature change and / or\nper hour. At least one is stated.","properties":{"per_kelvin":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"type":"null"}],"default":null,"description":"Drift magnitude per kelvin (axis unit / K).","title":"Per Kelvin"},"per_hour":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"type":"null"}],"default":null,"description":"Drift magnitude per hour (axis unit / h).","title":"Per Hour"}},"title":"DofDriftV1","type":"object"},"DofIntervalV1":{"additionalProperties":false,"description":"A closed interval of a retained DOF's offset from the nominal pose, in the axis's unit (``dof_unit``). The nominal\npose lies inside it: ``min <= 0 <= max``.","properties":{"min":{"description":"Lowest offset from the nominal pose (<= 0), in the axis's unit.","maximum":0.0,"title":"Min","type":"number"},"max":{"description":"Highest offset from the nominal pose (>= 0), in the axis's unit.","minimum":0.0,"title":"Max","type":"number"}},"required":["min","max"],"title":"DofIntervalV1","type":"object"},"FeedbackContextV1":{"additionalProperties":false,"description":"Optional facts that help OpenSci reproduce the problem. All optional; send only what applies.","properties":{"engine_version":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"The os-optics version (`os-optics --version`).","title":"Engine Version"},"runtime":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"E.g. `python 3.13 linux`.","title":"Runtime"},"catalog_version":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"The active local catalog release.","title":"Catalog Version"},"command":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"The command or call that failed (no tokens or personal data).","title":"Command"},"error_code":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"The `error.code` you received.","title":"Error Code"},"request_ids":{"anyOf":[{"items":{"maxLength":80,"type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"default":null,"description":"Up to 10 `request_id` values of the failing responses.","title":"Request Ids"},"resolution_id":{"anyOf":[{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},{"type":"null"}],"default":null,"description":"The resolution concerned.","title":"Resolution Id"},"order_id":{"anyOf":[{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},{"type":"null"}],"default":null,"description":"The Order concerned.","title":"Order Id"},"locale":{"anyOf":[{"enum":["zh-CN","en"],"type":"string"},{"type":"null"}],"default":null,"description":"The language of the conversation.","title":"Locale"},"agent":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"The Agent product sending the feedback.","title":"Agent"}},"title":"FeedbackContextV1","type":"object"},"FeedbackSubmitRequestV1":{"additionalProperties":false,"description":"Feedback to OpenSci from an Agent: a problem met while serving the user, a missing capability or a documentation\ngap. One problem or suggestion per submission. Never include tokens, passwords, payment data, or personal data\nbeyond what the problem needs.","properties":{"category":{"description":"PROBLEM: something did not work; FEATURE_REQUEST: something the user needed is missing; DOCUMENTATION: something was unclear or wrong in the instructions.","enum":["PROBLEM","FEATURE_REQUEST","DOCUMENTATION"],"title":"Category","type":"string"},"summary":{"description":"One line: what went wrong, or what is wanted (5-200 characters).","maxLength":200,"minLength":5,"title":"Summary","type":"string"},"details":{"description":"What the user needed, what you did (commands), what happened and what you expected (1-8000 characters).","maxLength":8000,"minLength":1,"title":"Details","type":"string"},"context":{"anyOf":[{"$ref":"#/components/schemas/FeedbackContextV1"},{"type":"null"}],"default":null,"description":"Optional facts (versions, error, ids)."}},"required":["category","summary","details"],"title":"FeedbackSubmitRequestV1","type":"object"},"MountingInputV1":{"additionalProperties":false,"description":"How one optic is to be held when OpenSci derives its mounting hardware without a laboratory layout:\nthe beam height -- the optical axis above the surface the post holder stands on (a breadboard or table top), mm --\nand, optionally, the angle at which the beam meets the optic (degrees; default 0 for a transmissive optic, 45 for\na mirror or a plate beam splitter). A mount whose bore would clip the beam at that angle is not chosen.","properties":{"beam_height_mm":{"description":"Optical axis height above the surface the post holder stands on (mm). OpenSci mounting hardware holds optics between 25 and 400 mm; whether a given optic reaches a given height is answered per optic.","exclusiveMinimum":0,"maximum":1000.0,"title":"Beam Height Mm","type":"number"},"incidence_deg":{"anyOf":[{"exclusiveMaximum":90,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Angle of the beam to the optic's axis (deg). Default: 0 for a transmissive optic, 45 for a mirror or a plate beam splitter.","title":"Incidence Deg"}},"required":["beam_height_mm"],"title":"MountingInputV1","type":"object"},"OrderCreationRequestV1":{"additionalProperties":false,"description":"Create the Order of one resolution. Lines, quantities and prices are those of the resolution, as OpenSci priced\nthem when the resolution was made; the quotation states that time. Quotation, agreement, Order Number and payment\ninstructions are created with the Order. The Order ships to `shipping_address_id`, or to the organization's\ndefault address when it is left out; it names the customer by `billing_title_id`, or by the organization's\ndefault billing title when it is left out (the account name when the organization has none).","properties":{"resolution_id":{"description":"The `resolution_id` of your commercial resolution.","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","title":"Resolution Id","type":"string"},"shipping_address_id":{"anyOf":[{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},{"type":"null"}],"default":null,"description":"An `address_id` of your address book (`GET /api/v1/account/addresses`). Left out: the default address. No address at all: 409 SHIPPING_ADDRESS_REQUIRED (recovery ADD_SHIPPING_ADDRESS). The address is copied into the Order. It is part of the request the Idempotency-Key is bound to: a retry with the same key and the same body returns the first Order; the same key with another `shipping_address_id` (or `resolution_id`) is 409 IDEMPOTENCY_KEY_CONFLICT.","title":"Shipping Address Id"},"billing_title_id":{"anyOf":[{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},{"type":"null"}],"default":null,"description":"A `billing_title_id` of your billing titles (`GET /api/v1/account/billing-titles`): the customer the quotation and the agreement name. Left out: the default billing title; with no billing title at all, the Order names your account name (never refused for it). An unknown, deleted or another organization's title is 404 BILLING_TITLE_NOT_FOUND. The title is copied into the Order; later changes of the title do not change it. It is part of the request the Idempotency-Key is bound to: the same key with another (or an added or dropped) `billing_title_id` is 409 IDEMPOTENCY_KEY_CONFLICT.","title":"Billing Title Id"},"additional_order":{"default":false,"description":"true: you mean to buy this design again although your organization already has an Order of it (any resolution of the same Project). Without it such an Order is refused with 409 DESIGN_ALREADY_ORDERED (details.orders, recovery CONFIRM_ADDITIONAL_ORDER), so a retry or a second submission never buys the design twice by accident. Part of the request the Idempotency-Key is bound to.","title":"Additional Order","type":"boolean"}},"required":["resolution_id"],"title":"OrderCreationRequestV1","type":"object"},"OrderWithdrawalRequestV1":{"additionalProperties":false,"description":"Withdraw the Order (no fields; the body may be omitted). Only while it is unpaid and no transfer was reported:\nthe Order and its data are deleted.","properties":{},"title":"OrderWithdrawalRequestV1","type":"object"},"PartLineV1":{"additionalProperties":false,"properties":{"line_id":{"description":"Your id of the line (unique in the list); the resolution names it.","maxLength":128,"minLength":1,"pattern":"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$","title":"Line Id","type":"string"},"opensci_sku":{"description":"An OpenSci part number: an ORDERABLE OS-OPT-* catalog optic or a listed OS-MECH-* mechanical product (GET /api/v1/mechanical-products).","maxLength":128,"minLength":1,"title":"Opensci Sku","type":"string"},"quantity":{"maximum":100000,"minimum":1,"title":"Quantity","type":"integer"}},"required":["line_id","opensci_sku","quantity"],"title":"PartLineV1","type":"object"},"PartListSubmissionV1":{"additionalProperties":false,"description":"A list of OpenSci part numbers and quantities, resolved without a Project. Send it with an\n``Idempotency-Key`` header.","properties":{"schema":{"const":"opensci.commercial.part_list_submission","title":"Schema","type":"string"},"schema_version":{"const":"1","title":"Schema Version","type":"string"},"lines":{"items":{"$ref":"#/components/schemas/PartLineV1"},"maxItems":1024,"minItems":1,"title":"Lines","type":"array"},"mechanical_supply":{"default":"NONE","description":"DERIVED: OpenSci selects a mount, post and post holder for every listed optic at the beam height its mounting entry states (the mounting sheet). NONE: the listed products only.","enum":["NONE","DERIVED"],"title":"Mechanical Supply","type":"string"},"mounting":{"anyOf":[{"maxProperties":1024,"patternProperties":{"^[^\\s/\\x00-\\x1f\\x7f-\\x9f][^/\\x00-\\x1f\\x7f-\\x9f]*$":{"$ref":"#/components/schemas/PartMountingV1"}},"propertyNames":{"description":"Stable OpenSci identifier (contains no '/' and no control character).","maxLength":128,"minLength":1},"type":"object"},{"type":"null"}],"default":null,"description":"{line_id: {beam_height_mm, retained_dofs?, incidence_deg?}} for every optic line when mechanical_supply = DERIVED (MOUNTING_INPUT_REQUIRED otherwise); not for mechanical lines.","title":"Mounting"},"optics_source":{"default":"CATALOG","description":"CUSTOM is on hold.","enum":["CATALOG","CUSTOM"],"title":"Optics Source","type":"string"},"platform":{"default":"NONE","description":"With a part list a breadboard is a listed line; INTEGRATED_BASE is on hold.","enum":["NONE","BREADBOARD","INTEGRATED_BASE"],"title":"Platform","type":"string"},"assembly":{"default":"CUSTOMER","description":"A part list is assembled by the customer.","enum":["CUSTOMER","OPENSCI"],"title":"Assembly","type":"string"}},"required":["schema","schema_version","lines"],"title":"PartListSubmissionV1","type":"object"},"PartMountingV1":{"additionalProperties":false,"description":"How one optic line is held when OpenSci derives its mounting hardware: the beam height above the surface the post\nholder stands on, the retained DOFs to keep adjustable (component-local, the existing vocabulary; default none) and\nthe angle of incidence (default 0 deg, 45 deg for a mirror or a plate beam splitter).","properties":{"beam_height_mm":{"exclusiveMinimum":0,"maximum":1000.0,"title":"Beam Height Mm","type":"number"},"retained_dofs":{"default":[],"items":{"$ref":"#/components/schemas/RetainedDofV1"},"maxItems":6,"title":"Retained Dofs","type":"array"},"incidence_deg":{"anyOf":[{"exclusiveMaximum":90,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Incidence Deg"}},"required":["beam_height_mm"],"title":"PartMountingV1","type":"object"},"RetainedDofV1":{"additionalProperties":false,"description":"One retained design DOF of one optical component: which local axis, how it is meant to be controlled, and optionally\nthe stated limits of the stage that provides it (module docstring).","properties":{"axis":{"$ref":"#/components/schemas/DofAxisV1"},"frame":{"const":"COMPONENT_LOCAL","default":"COMPONENT_LOCAL","description":"Always the owning optical component's local frame (local +Z = principal optical/reference axis).","title":"Frame","type":"string"},"control":{"$ref":"#/components/schemas/DofControlIntentV1","default":"MANUAL"},"travel":{"anyOf":[{"$ref":"#/components/schemas/DofIntervalV1"},{"type":"null"}],"default":null,"description":"The interval the stage reaches, relative to the nominal pose, in the axis's unit."},"hard_limits":{"anyOf":[{"$ref":"#/components/schemas/DofIntervalV1"},{"type":"null"}],"default":null,"description":"The mechanical end stops, relative to the nominal pose; they contain the travel."},"repeatability":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"type":"null"}],"default":null,"description":"+/- spread of returning to a commanded position, in the axis's unit.","title":"Repeatability"},"drift":{"anyOf":[{"$ref":"#/components/schemas/DofDriftV1"},{"type":"null"}],"default":null,"description":"Drift magnitudes per kelvin and / or per hour, in the axis's unit."},"unit":{"anyOf":[{"enum":["mm","deg"],"type":"string"},{"type":"null"}],"default":null,"description":"The axis's unit, stated for reading: mm for Tx/Ty/Tz, deg for Rx/Ry/Rz.","title":"Unit"}},"required":["axis"],"title":"RetainedDofV1","type":"object"},"ShippingAddressCreateRequestV1":{"additionalProperties":false,"description":"A shipping address in mainland China for the organization's address book. The first address becomes the\ndefault; `make_default` makes this one the default. Values are checked and normalized by the service: an invalid\none is 422 SHIPPING_ADDRESS_INVALID with `details.invalid_fields`.","properties":{"recipient_name":{"description":"The recipient's name (1-50 characters).","maxLength":200,"title":"Recipient Name","type":"string"},"mobile_phone":{"description":"A mainland China mobile number: 11 digits starting with 13-19; spaces, hyphens and a +86 prefix are removed.","maxLength":200,"title":"Mobile Phone","type":"string"},"province":{"description":"A province-level division of mainland China, in Chinese, full or short name (广东省 or 广东); stored by its full name.","maxLength":200,"title":"Province","type":"string"},"city":{"description":"City (1-30 characters), e.g. 深圳市.","maxLength":200,"title":"City","type":"string"},"district":{"description":"District or county (1-30 characters), e.g. 南山区.","maxLength":200,"title":"District","type":"string"},"street_address":{"description":"Street, building and room (1-120 characters).","maxLength":200,"title":"Street Address","type":"string"},"postal_code":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Optional 6-digit postal code.","title":"Postal Code"},"label":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Optional name of the address for you (1-20 characters), e.g. Lab.","title":"Label"},"make_default":{"default":false,"description":"Make this address the default (the first one always is).","title":"Make Default","type":"boolean"}},"required":["recipient_name","mobile_phone","province","city","district","street_address"],"title":"ShippingAddressCreateRequestV1","type":"object"},"ErrorResponseV1":{"type":"object","required":["error","request_id"],"additionalProperties":false,"description":"Every error response. `recovery` tells a client what to do next.","properties":{"request_id":{"type":"string","description":"Quote it when contacting OpenSci."},"error":{"type":"object","required":["code","family","message","details","recovery"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"Stable, language-neutral error code."},"family":{"type":"string","enum":["UNAUTHENTICATED","FORBIDDEN","NOT_FOUND","CONFLICT","TOO_LARGE","REJECTED","RATE_LIMITED","SERVER_ERROR"],"description":"Groups codes by how to handle them. The HTTP status is authoritative: `GET /api/v1` lists each family's statuses (`errors.status_by_family`, `errors.other_statuses_by_family`)."},"message":{"type":"string"},"details":{"type":"object","description":"Structured, code-specific facts (for example the invalid fields)."},"recovery":{"$ref":"#/components/schemas/Recovery"}}}}},"Recovery":{"type":"string","enum":["NONE","FIX_REQUEST","RETRY","RETRY_WITH_SAME_KEY","USE_NEW_IDEMPOTENCY_KEY","PROVIDE_TOKEN","REQUEST_NEW_TOKEN","REQUEST_SCOPE","WAIT_FOR_PAYMENT_CONFIRMATION","CREATE_ORDER_FIRST","REQUEST_NEW_DELIVERY","CONTACT_OPENSCI","ADD_SHIPPING_ADDRESS","RETRY_LATER","ADJUST_COMPONENT_SPACING","MOVE_COMPONENT_OFF_BEAM","ADJUST_COMPONENT_HEIGHT","RELAX_RETAINED_DOF","REDUCE_TILT","CHANGE_COMPONENT","ALLOW_LARGER_BREADBOARD","SIMPLIFY_DESIGN","UPDATE_CATALOG_AND_RERUN","CHOOSE_ANOTHER_PRODUCT","RESUBMIT_DESIGN","UPGRADE_ENGINE_AND_RERUN","CONFIRM_ADDITIONAL_ORDER","USE_OPTICAL_LAYOUT","CHOOSE_OPTICS_ONLY","LIST_MECHANICAL_PRODUCTS"],"description":"What a client does next after an error."}},"securitySchemes":{"OpenSciAccountToken":{"type":"http","scheme":"bearer","bearerFormat":"oat_<32 hex>_<64 hex>","description":"An OpenSci Account token: `Authorization: Bearer oat_<32 hex>_<64 hex>`. Each operation names the scope it needs; a token carries only the scopes it was issued with. Sign in to Account to create and download a single-use, time-limited or permanent-until-revoked Agent token. A separate bearer credential carrying `account:token:manage` can issue Agent tokens through `POST /api/v1/account/tokens`; `GET /api/v1/account/token` shows its lifecycle and remaining capabilities; `DELETE /api/v1/account/token` revokes it at once. Never put a token in a URL, a log or a shared file."}}}}