{"openapi":"3.1.0","info":{"title":"ADK Config admin (reference app)","summary":"A thin API over the ADK Config admin client.","version":"0.1.0"},"paths":{"/api/health":{"get":{"tags":["session"],"summary":"Is the app running","operationId":"get_health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Get Health"}}}}}}},"/api/auth/personas":{"get":{"tags":["session"],"summary":"The demo users the sign-in page offers","operationId":"list_personas","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PersonaOut"},"type":"array","title":"Response List Personas"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}}}},"/api/auth/dev-login":{"post":{"tags":["session"],"summary":"Sign in as a demo user (demo only)","operationId":"create_dev_login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"tags":["session"],"summary":"Who the token says you are","operationId":"get_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/login":{"post":{"tags":["access"],"summary":"Sign in with an email and password","operationId":"create_sign_in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedInOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/change-password":{"post":{"tags":["access"],"summary":"Change your own password (also the first-sign-in step)","operationId":"change_own_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedInOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/logout":{"post":{"tags":["access"],"summary":"Sign out (recorded in the access history)","operationId":"create_sign_out","responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/access/options":{"get":{"tags":["access"],"summary":"The roles this administrator may give, and the scopes they can be given","operationId":"get_access_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessOptionsOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users":{"get":{"tags":["access"],"summary":"Everyone who can sign in","operationId":"list_users","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserOut"},"type":"array","title":"Response List Users"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["access"],"summary":"Add a person with a role (returns a one-time password, once)","operationId":"create_user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithPasswordOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/{user_id}":{"get":{"tags":["access"],"summary":"One person","operationId":"get_user","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["access"],"summary":"Change a person's name, role and scopes","operationId":"change_user_access","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeUserIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/disable":{"post":{"tags":["access"],"summary":"Switch a person off","operationId":"disable_user","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/enable":{"post":{"tags":["access"],"summary":"Switch a person back on","operationId":"enable_user","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/reset-password":{"post":{"tags":["access"],"summary":"Give a person a new one-time password (returned once)","operationId":"reset_user_password","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWithPasswordOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/access/events":{"get":{"tags":["access"],"summary":"Who signed in, who was added or changed, newest first","operationId":"list_access_events","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessEventOut"},"title":"Response List Access Events"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kinds":{"get":{"tags":["kinds"],"summary":"Every kind, with scope and field hints","operationId":"list_kinds","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/KindOut"},"type":"array","title":"Response List Kinds"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/kinds/{kind}/schema":{"get":{"tags":["kinds"],"summary":"The JSON Schema of a kind's spec (shape only)","operationId":"get_kind_schema","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Kind Schema"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants":{"get":{"tags":["tenants"],"summary":"The tenants the caller may see","operationId":"list_tenants","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TenantOut"},"type":"array","title":"Response List Tenants"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["tenants"],"summary":"Register a tenant (platform-admin)","operationId":"create_tenant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tenants/{tenant_id}":{"get":{"tags":["tenants"],"summary":"One tenant","operationId":"get_tenant","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/rename":{"post":{"tags":["tenants"],"summary":"Change the name people read for a customer, product or the platform (platform-admin)","operationId":"rename_tenant","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/suspend":{"post":{"tags":["tenants"],"summary":"Stop writes to a tenant (platform-admin)","operationId":"suspend_tenant","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/activate":{"post":{"tags":["tenants"],"summary":"Allow writes to a suspended tenant again (platform-admin)","operationId":"activate_tenant","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products":{"get":{"tags":["products"],"summary":"Every registered product","operationId":"list_products","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TenantOut"},"type":"array","title":"Response List Products"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["products"],"summary":"Register a product (platform admin)","operationId":"create_product","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tenants/{tenant_id}/configs/{kind}/{name}/versions":{"get":{"tags":["releases"],"summary":"The history of an item, oldest first, with the labels on each version","operationId":"list_versions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VersionOut"},"title":"Response List Versions"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/{kind}/{name}/used-by":{"get":{"tags":["releases"],"summary":"The live items that use this one, in the scopes the person may see","operationId":"list_used_by","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsedByOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/{kind}/{name}/compare":{"get":{"tags":["releases"],"summary":"What differs between two versions of an item","operationId":"compare_versions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"from_version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"From Version"}},{"name":"to_version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"To Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/{kind}/{name}/release-check":{"get":{"tags":["releases"],"summary":"What making a version live needs: which version is live now, and its dependencies","operationId":"check_release","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseCheckOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/{kind}/{name}/release":{"post":{"tags":["releases"],"summary":"Make a version the live one (a release)","operationId":"release_config","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseOneIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/{kind}/{name}/rollback":{"post":{"tags":["releases"],"summary":"Make an earlier version the live one again","operationId":"rollback_config","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/releases":{"post":{"tags":["releases"],"summary":"Release several items at once: all go live or none do","operationId":"release_items","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MoveOut"},"title":"Response Release Items"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs":{"get":{"tags":["configs"],"summary":"A tenant's items of one kind, by name","operationId":"list_configs","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","description":"Which kind to list (one at a time).","title":"Kind"},"description":"Which kind to list (one at a time)."},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only items carrying this label.","title":"Label"},"description":"Only items carrying this label."},{"name":"name_prefix","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Prefix"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The cursor of the previous page.","title":"After"},"description":"The cursor of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigPageOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/validate":{"post":{"tags":["configs"],"summary":"Check items as a save would, writing nothing","operationId":"validate_configs","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/tenants/{tenant_id}/configs/{kind}/{name}":{"get":{"tags":["configs"],"summary":"One config item: a version, a label's version, or the latest","operationId":"get_config","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Version"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}},"put":{"tags":["configs"],"summary":"Save a new version (releases nothing)","operationId":"save_config","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Conflict"}}}},"/api/tenants/{tenant_id}/connections":{"get":{"tags":["connections"],"summary":"A tenant's connections and the tools that use each, by name","operationId":"list_connections","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionOverviewOut"},"title":"Response List Connections"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/tools":{"get":{"tags":["tools"],"summary":"A tenant's tools, and those of the products it subscribes to, and how each is answered","description":"The tenant's own tools, then every tool of every product it subscribes to (CFG-D-68, CFG-D-70). A tool\nis a product and a name: the same name in two products is two tools, each with the tenant's own Backing for\nit (named ``<product>/<tool>``). A tenant's own tool of the same name hides none of them in the list, it\nonly says so.","operationId":"list_tools","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ToolOverviewOut"},"title":"Response List Tools"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/models":{"get":{"tags":["platform"],"summary":"The models the platform holds, by alias","operationId":"list_models","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelOverviewOut"},"type":"array","title":"Response List Models"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/platform/tiers":{"get":{"tags":["platform"],"summary":"The tiers the platform holds, each with its models in priority order","operationId":"list_tiers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TierOverviewOut"},"type":"array","title":"Response List Tiers"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/model-options":{"get":{"tags":["platform"],"summary":"What a model form offers: the providers, and what each tuning profile accepts","operationId":"get_model_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelOptionsOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/products/{product}/agents":{"get":{"tags":["agents"],"summary":"The agents a product defines, with their defaults and what a tenant may change","operationId":"list_agents","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentOverviewOut"},"title":"Response List Agents"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/agents":{"get":{"tags":["tenant-agents"],"summary":"The agents a tenant can turn on, and what it has done with them","operationId":"list_tenant_agents","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantAgentsOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/agents/{agent}/effective":{"get":{"tags":["tenant-agents"],"summary":"What a tenant's agent will run with: the product's agent plus the tenant's allowed changes","operationId":"get_effective_agent","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"agent","in":"path","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Read the tenant's entry at this label (live).","title":"Label"},"description":"Read the tenant's entry at this label (live)."},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Whose agent it is: the same agent name may be in two products.","title":"Product"},"description":"Whose agent it is: the same agent name may be in two products."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EffectiveAgentOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/move/export":{"post":{"tags":["move"],"summary":"Export what is live in some scopes as YAML text","operationId":"export_config","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/move/import/check":{"post":{"tags":["move"],"summary":"Check a file before importing it: what each item would do. Writes nothing","operationId":"check_import","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCheckOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/move/import":{"post":{"tags":["move"],"summary":"Import a file, scope by scope (platform, products, tenants)","operationId":"import_config","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportDoneOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/audit/{scope_id}/events":{"get":{"tags":["audit"],"summary":"A scope's audit events, newest first","operationId":"list_audit_events","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope_id","in":"path","required":true,"schema":{"type":"string","title":"Scope Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"From this time (inclusive).","title":"Since"},"description":"From this time (inclusive)."},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Up to this time (exclusive).","title":"Until"},"description":"Up to this time (exclusive)."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The cursor of the previous page.","title":"After"},"description":"The cursor of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditPageOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/audit/{scope_id}/verify":{"get":{"tags":["audit"],"summary":"Check that the history has not been altered","operationId":"verify_audit_trail","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope_id","in":"path","required":true,"schema":{"type":"string","title":"Scope Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditVerifyOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unprocessable Entity"}}}},"/api/products/{product}/tools":{"get":{"tags":["tools"],"summary":"The tools a product defines (their contracts), by name","operationId":"list_product_tools","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductToolOut"},"title":"Response List Product Tools"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessEventOut":{"properties":{"id":{"type":"integer","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"actor_email":{"type":"string","title":"Actor Email"},"action":{"type":"string","title":"Action"},"action_text":{"type":"string","title":"Action Text"},"outcome":{"type":"string","title":"Outcome"},"target_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Email"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["id","occurred_at","actor_email","action","action_text","outcome","target_email","target_id","detail"],"title":"AccessEventOut"},"AccessOptionsOut":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/RoleOptionOut"},"type":"array","title":"Roles"},"scopes":{"items":{"$ref":"#/components/schemas/ScopeOut"},"type":"array","title":"Scopes"}},"type":"object","required":["roles","scopes"],"title":"AccessOptionsOut","description":"What the Users screen may offer this administrator."},"AccountOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","title":"Role"},"title":{"type":"string","title":"Title"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"must_change_password":{"type":"boolean","title":"Must Change Password"}},"type":"object","required":["user_id","email","display_name","role","title","scopes","must_change_password"],"title":"AccountOut","description":"The signed-in person, as the screens need to know them."},"AgentOverviewOut":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"daily_cap_usd":{"type":"string","title":"Daily Cap Usd"},"monthly_cap_usd":{"type":"string","title":"Monthly Cap Usd"},"default_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Tier"},"default_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Model"},"allowed_models":{"items":{"type":"string"},"type":"array","title":"Allowed Models"},"default_max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Max Tokens"},"tenant_overridable":{"items":{"type":"string"},"type":"array","title":"Tenant Overridable"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"}},"type":"object","required":["name","description","daily_cap_usd","monthly_cap_usd","default_tier","default_model","allowed_models","default_max_tokens","tenant_overridable","latest_version","labels"],"title":"AgentOverviewOut","description":"One agent a product defines, with what a screen shows in a list (CFG-D-46)."},"AuditEventOut":{"properties":{"chain_seq":{"type":"integer","title":"Chain Seq"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"actor":{"type":"string","title":"Actor"},"actor_type":{"type":"string","title":"Actor Type"},"action":{"type":"string","title":"Action"},"kind":{"type":"string","title":"Kind"},"item_name":{"type":"string","title":"Item Name"},"outcome":{"type":"string","title":"Outcome"},"from_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Version"},"to_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Version"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"event_hash":{"type":"string","title":"Event Hash"}},"type":"object","required":["chain_seq","occurred_at","actor","actor_type","action","kind","item_name","outcome","from_version","to_version","label","reason","request_id","event_hash"],"title":"AuditEventOut","description":"One thing that happened to a scope's config. ``reason`` is free text and is not covered by the\nhistory check."},"AuditPageOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditEventOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"AuditPageOut"},"AuditVerifyOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"events_checked":{"type":"integer","title":"Events Checked"},"head_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Hash"},"first_bad_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Bad Seq"},"problem":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem"}},"type":"object","required":["ok","events_checked","head_hash","first_bad_seq","problem"],"title":"AuditVerifyOut","description":"Whether the history is intact; if not, where it first breaks and what is wrong."},"ChangeOut":{"properties":{"path":{"type":"string","title":"Path"},"change":{"type":"string","title":"Change"},"before":{"title":"Before"},"after":{"title":"After"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["path","change"],"title":"ChangeOut","description":"One difference between two versions. A hidden change is sensitive: no values."},"ChangePasswordIn":{"properties":{"current_password":{"type":"string","maxLength":256,"title":"Current Password"},"new_password":{"type":"string","maxLength":256,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordIn"},"ChangeUserIn":{"properties":{"display_name":{"type":"string","maxLength":200,"title":"Display Name"},"role":{"type":"string","maxLength":40,"title":"Role"},"scopes":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Scopes"},"expected_version":{"type":"integer","title":"Expected Version"}},"type":"object","required":["display_name","role","expected_version"],"title":"ChangeUserIn"},"CheckIn":{"properties":{"yaml":{"type":"string","maxLength":2000000,"title":"Yaml"}},"type":"object","required":["yaml"],"title":"CheckIn"},"CheckedItemOut":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"outcome":{"type":"string","title":"Outcome"},"problems":{"items":{"$ref":"#/components/schemas/IssueOut"},"type":"array","title":"Problems"}},"type":"object","required":["kind","name","outcome","problems"],"title":"CheckedItemOut","description":"One item of the file, and what importing it would do. ``outcome`` is would_create,\nwould_update, unchanged, checked_on_import (depends on something earlier in the same file, which\nonly the import itself can check) or invalid."},"CheckedScopeOut":{"properties":{"scope_id":{"type":"string","title":"Scope Id"},"items":{"items":{"$ref":"#/components/schemas/CheckedItemOut"},"type":"array","title":"Items"}},"type":"object","required":["scope_id","items"],"title":"CheckedScopeOut"},"ConfigOut":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"spec_hash":{"type":"string","title":"Spec Hash"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source":{"type":"string","title":"Source"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["tenant_id","kind","name","version","spec","spec_hash","created_by","created_at","source","labels","deleted"],"title":"ConfigOut"},"ConfigPageOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConfigSummaryOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"ConfigPageOut"},"ConfigSummaryOut":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["tenant_id","kind","name","latest_version","created_at","labels","deleted"],"title":"ConfigSummaryOut"},"ConnectionOverviewOut":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"base_address":{"type":"string","title":"Base Address"},"active":{"type":"boolean","title":"Active"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"},"used_by":{"items":{"type":"string"},"type":"array","title":"Used By"}},"type":"object","required":["name","kind","base_address","active","latest_version","labels","used_by"],"title":"ConnectionOverviewOut","description":"One connection of a tenant and which tools use it (through their Backing)."},"CreateUserIn":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"display_name":{"type":"string","maxLength":200,"title":"Display Name"},"role":{"type":"string","maxLength":40,"title":"Role"},"scopes":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Scopes"}},"type":"object","required":["email","display_name","role"],"title":"CreateUserIn"},"DependencyStatusOut":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"scope":{"type":"string","title":"Scope"},"live_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Live Version"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"}},"type":"object","required":["kind","name","role","scope","live_version","latest_version"],"title":"DependencyStatusOut","description":"Something a version needs, and whether it is live."},"DiffOut":{"properties":{"from_version":{"type":"integer","title":"From Version"},"to_version":{"type":"integer","title":"To Version"},"changes":{"items":{"$ref":"#/components/schemas/ChangeOut"},"type":"array","title":"Changes"},"redacted":{"type":"boolean","title":"Redacted"}},"type":"object","required":["from_version","to_version","changes","redacted"],"title":"DiffOut"},"EffectiveAgentOut":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"product":{"type":"string","title":"Product"},"agent":{"type":"string","title":"Agent"},"enabled":{"type":"boolean","title":"Enabled"},"tenant_agent_version":{"type":"integer","title":"Tenant Agent Version"},"agent_version":{"type":"integer","title":"Agent Version"},"agent_live":{"type":"boolean","title":"Agent Live"},"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"sources":{"additionalProperties":{"type":"string"},"type":"object","title":"Sources"},"ignored":{"items":{"$ref":"#/components/schemas/IgnoredOverrideOut"},"type":"array","title":"Ignored"},"redacted":{"type":"boolean","title":"Redacted"}},"type":"object","required":["tenant_id","product","agent","enabled","tenant_agent_version","agent_version","agent_live","spec","sources","ignored","redacted"],"title":"EffectiveAgentOut","description":"What an agent runs with for a tenant, and where each value came from."},"ExportCountOut":{"properties":{"scope_id":{"type":"string","title":"Scope Id"},"kind":{"type":"string","title":"Kind"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["scope_id","kind","count"],"title":"ExportCountOut"},"ExportIn":{"properties":{"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Kinds"}},"type":"object","title":"ExportIn","description":"What to export: the scopes (none given: every scope the person may act on) and, if wanted,\nonly some kinds."},"ExportOut":{"properties":{"yaml":{"type":"string","title":"Yaml"},"items":{"type":"integer","title":"Items"},"counts":{"items":{"$ref":"#/components/schemas/ExportCountOut"},"type":"array","title":"Counts"},"skipped":{"items":{"$ref":"#/components/schemas/ExportSkippedOut"},"type":"array","title":"Skipped"}},"type":"object","required":["yaml","items","counts","skipped"],"title":"ExportOut","description":"The live items as YAML text (the page makes the file), what is in it, and what was left out."},"ExportSkippedOut":{"properties":{"scope_id":{"type":"string","title":"Scope Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"}},"type":"object","required":["scope_id","kind","name"],"title":"ExportSkippedOut","description":"An item left out because it has no live version."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HowItRunsOut":{"properties":{"status":{"type":"string","enum":["ready","switched_off","not_set_up","runs_in_product"],"title":"Status"},"connection":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection"},"executor_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executor Kind"}},"type":"object","required":["status"],"title":"HowItRunsOut","description":"How a tool is answered for one tenant, worked out from its Backing."},"IgnoredOverrideOut":{"properties":{"field":{"type":"string","title":"Field"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["field","reason"],"title":"IgnoredOverrideOut"},"ImportCheckOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"scopes":{"items":{"$ref":"#/components/schemas/CheckedScopeOut"},"type":"array","title":"Scopes"},"unknown_scopes":{"items":{"type":"string"},"type":"array","title":"Unknown Scopes"},"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"unchanged":{"type":"integer","title":"Unchanged"}},"type":"object","required":["ok","scopes","unknown_scopes","created","updated","unchanged"],"title":"ImportCheckOut"},"ImportDoneOut":{"properties":{"scopes":{"items":{"$ref":"#/components/schemas/ImportedScopeOut"},"type":"array","title":"Scopes"},"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"unchanged":{"type":"integer","title":"Unchanged"}},"type":"object","required":["scopes","created","updated","unchanged"],"title":"ImportDoneOut"},"ImportIn":{"properties":{"yaml":{"type":"string","maxLength":2000000,"title":"Yaml"},"message":{"type":"string","maxLength":500,"minLength":1,"title":"Message"},"release":{"type":"boolean","title":"Release","default":false}},"type":"object","required":["yaml","message"],"title":"ImportIn"},"ImportedScopeOut":{"properties":{"scope_id":{"type":"string","title":"Scope Id"},"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"unchanged":{"type":"integer","title":"Unchanged"}},"type":"object","required":["scope_id","created","updated","unchanged"],"title":"ImportedScopeOut"},"IssueOut":{"properties":{"code":{"type":"string","title":"Code"},"path":{"type":"string","title":"Path"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","path","message"],"title":"IssueOut","description":"One problem found in a request, with a stable code and the path of the field."},"ItemValidationOut":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"outcome":{"type":"string","title":"Outcome"},"issues":{"items":{"$ref":"#/components/schemas/IssueOut"},"type":"array","title":"Issues"}},"type":"object","required":["kind","name","outcome","issues"],"title":"ItemValidationOut"},"KindOut":{"properties":{"kind":{"type":"string","title":"Kind"},"scope":{"type":"string","title":"Scope"},"tenant_fallback":{"type":"boolean","title":"Tenant Fallback"},"name_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Pattern"},"name_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Field"},"api_versions":{"items":{"type":"string"},"type":"array","title":"Api Versions"},"sensitive_fields":{"items":{"type":"string"},"type":"array","title":"Sensitive Fields"},"money_fields":{"items":{"type":"string"},"type":"array","title":"Money Fields"},"url_fields":{"items":{"type":"string"},"type":"array","title":"Url Fields"},"credential_ref_fields":{"items":{"type":"string"},"type":"array","title":"Credential Ref Fields"}},"type":"object","required":["kind","scope","tenant_fallback","name_pattern","name_field","api_versions","sensitive_fields","money_fields","url_fields","credential_ref_fields"],"title":"KindOut"},"KnobOut":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["number","integer","boolean","choice","text"],"title":"Kind"},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum"},"choices":{"items":{"type":"string"},"type":"array","title":"Choices"}},"type":"object","required":["name","kind"],"title":"KnobOut","description":"One tuning knob a profile accepts, and the range or choices it allows."},"LoginIn":{"properties":{"persona":{"type":"string","title":"Persona"}},"type":"object","required":["persona"],"title":"LoginIn"},"MeOut":{"properties":{"subject":{"type":"string","title":"Subject"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"tenants":{"items":{"type":"string"},"type":"array","title":"Tenants"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"app_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Role"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false},"tenants_may_create_tools":{"type":"boolean","title":"Tenants May Create Tools","default":true}},"type":"object","required":["subject","display_name","roles","tenants"],"title":"MeOut"},"ModelOptionsOut":{"properties":{"providers":{"items":{"$ref":"#/components/schemas/ProviderOut"},"type":"array","title":"Providers"},"profiles":{"items":{"$ref":"#/components/schemas/ProfileOut"},"type":"array","title":"Profiles"}},"type":"object","required":["providers","profiles"],"title":"ModelOptionsOut","description":"What a model form offers, read from the library."},"ModelOverviewOut":{"properties":{"name":{"type":"string","title":"Name"},"provider":{"type":"string","title":"Provider"},"model_id":{"type":"string","title":"Model Id"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"supports_tools":{"type":"boolean","title":"Supports Tools"},"supports_vision":{"type":"boolean","title":"Supports Vision"},"supports_streaming":{"type":"boolean","title":"Supports Streaming"},"input_per_1k":{"type":"string","title":"Input Per 1K"},"output_per_1k":{"type":"string","title":"Output Per 1K"},"fallbacks":{"items":{"type":"string"},"type":"array","title":"Fallbacks"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"}},"type":"object","required":["name","provider","model_id","tier","supports_tools","supports_vision","supports_streaming","input_per_1k","output_per_1k","fallbacks","latest_version","labels"],"title":"ModelOverviewOut","description":"One model the platform holds, named by its alias (for example ``bedrock/claude-sonnet``)."},"MoveOut":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"from_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Version"},"to_version":{"type":"integer","title":"To Version"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["kind","name","label","from_version","to_version","outcome"],"title":"MoveOut"},"PersonaOut":{"properties":{"key":{"type":"string","title":"Key"},"display_name":{"type":"string","title":"Display Name"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"tenants":{"items":{"type":"string"},"type":"array","title":"Tenants"},"description":{"type":"string","title":"Description"}},"type":"object","required":["key","display_name","roles","tenants","description"],"title":"PersonaOut"},"ProblemOut":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"issues":{"items":{"$ref":"#/components/schemas/IssueOut"},"type":"array","title":"Issues"},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"}},"type":"object","required":["code","message"],"title":"ProblemOut","description":"Every error answer has this shape, so the UI handles one."},"ProductOfferOut":{"properties":{"product":{"type":"string","title":"Product"},"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["product","display_name","description"],"title":"ProductOfferOut","description":"A product a tenant has not subscribed to yet, as the Subscribe card shows it."},"ProductToolOut":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"role":{"type":"string","title":"Role"},"execution":{"type":"string","title":"Execution"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"}},"type":"object","required":["name","description","role","execution","latest_version","labels"],"title":"ProductToolOut","description":"One tool a product defines: its contract, with no Backing (that is each tenant's)."},"ProfileOut":{"properties":{"name":{"type":"string","title":"Name"},"knobs":{"items":{"$ref":"#/components/schemas/KnobOut"},"type":"array","title":"Knobs"}},"type":"object","required":["name","knobs"],"title":"ProfileOut"},"ProviderOut":{"properties":{"value":{"type":"string","title":"Value"},"default_profile":{"type":"string","title":"Default Profile"}},"type":"object","required":["value","default_profile"],"title":"ProviderOut"},"ReasonIn":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"ReasonIn"},"ReleaseCheckOut":{"properties":{"version":{"type":"integer","title":"Version"},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"dependencies":{"items":{"$ref":"#/components/schemas/DependencyStatusOut"},"type":"array","title":"Dependencies"}},"type":"object","required":["version","current_version","dependencies"],"title":"ReleaseCheckOut","description":"What making one version live would need and change."},"ReleaseIn":{"properties":{"reason":{"type":"string","title":"Reason"},"items":{"items":{"$ref":"#/components/schemas/ReleaseItemIn"},"type":"array","title":"Items"}},"type":"object","required":["reason","items"],"title":"ReleaseIn"},"ReleaseItemIn":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["kind","name","version"],"title":"ReleaseItemIn"},"ReleaseOneIn":{"properties":{"version":{"type":"integer","title":"Version"},"reason":{"type":"string","title":"Reason"},"expected_current":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Current"}},"type":"object","required":["version","reason"],"title":"ReleaseOneIn"},"RenameIn":{"properties":{"display_name":{"type":"string","title":"Display Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["display_name","reason"],"title":"RenameIn","description":"A new name for what people read (CFG-D-72); the id never changes."},"RoleOptionOut":{"properties":{"role":{"type":"string","title":"Role"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"scope_types":{"items":{"type":"string"},"type":"array","title":"Scope Types"},"fixed_scopes_text":{"type":"string","title":"Fixed Scopes Text"}},"type":"object","required":["role","title","description","scope_types","fixed_scopes_text"],"title":"RoleOptionOut"},"RollbackIn":{"properties":{"to_version":{"type":"integer","title":"To Version"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["to_version","reason"],"title":"RollbackIn"},"SaveIn":{"properties":{"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"message":{"type":"string","title":"Message"},"expected_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Version"}},"type":"object","required":["spec","message"],"title":"SaveIn"},"SaveOut":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"outcome":{"type":"string","title":"Outcome"},"spec_hash":{"type":"string","title":"Spec Hash"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["tenant_id","kind","name","version","outcome","spec_hash","created_by","created_at","labels","warnings"],"title":"SaveOut"},"ScopeOut":{"properties":{"scope_id":{"type":"string","title":"Scope Id"},"scope_type":{"type":"string","title":"Scope Type"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["scope_id","scope_type","display_name"],"title":"ScopeOut"},"SignInIn":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"password":{"type":"string","maxLength":256,"title":"Password"}},"type":"object","required":["email","password"],"title":"SignInIn"},"SignedInOut":{"properties":{"token":{"type":"string","title":"Token"},"account":{"$ref":"#/components/schemas/AccountOut"}},"type":"object","required":["token","account"],"title":"SignedInOut"},"SubscriptionOut":{"properties":{"product":{"type":"string","title":"Product"},"display_name":{"type":"string","title":"Display Name"},"active":{"type":"boolean","title":"Active"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"}},"type":"object","required":["product","display_name","active","latest_version","labels"],"title":"SubscriptionOut","description":"A product a tenant has subscribed to (CFG-D-57)."},"TenantAgentRowOut":{"properties":{"product":{"type":"string","title":"Product"},"agent":{"type":"string","title":"Agent"},"description":{"type":"string","title":"Description"},"agent_live":{"type":"boolean","title":"Agent Live"},"overridable":{"items":{"type":"string"},"type":"array","title":"Overridable"},"product_values":{"additionalProperties":true,"type":"object","title":"Product Values"},"entry_exists":{"type":"boolean","title":"Entry Exists"},"entry_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Name"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"tenant_agent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tenant Agent Version"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"},"overrides":{"additionalProperties":true,"type":"object","title":"Overrides"},"allowed_tools":{"items":{"type":"string"},"type":"array","title":"Allowed Tools"},"daily_cap_usd":{"type":"string","title":"Daily Cap Usd"},"monthly_cap_usd":{"type":"string","title":"Monthly Cap Usd"},"model_or_tier":{"type":"string","title":"Model Or Tier"}},"type":"object","required":["product","agent","description","agent_live","overridable","product_values","entry_exists","enabled","tenant_agent_version","latest_version","labels","overrides","allowed_tools","daily_cap_usd","monthly_cap_usd","model_or_tier"],"title":"TenantAgentRowOut","description":"One agent of a subscribed product, with what this tenant has done with it. ``enabled`` is None\nwhen the tenant has never turned it on. The budget and model shown are what it runs with."},"TenantAgentsOut":{"properties":{"subscriptions":{"items":{"$ref":"#/components/schemas/SubscriptionOut"},"type":"array","title":"Subscriptions"},"agents":{"items":{"$ref":"#/components/schemas/TenantAgentRowOut"},"type":"array","title":"Agents"},"offers":{"items":{"$ref":"#/components/schemas/ProductOfferOut"},"type":"array","title":"Offers"}},"type":"object","required":["subscriptions","agents","offers"],"title":"TenantAgentsOut"},"TenantIn":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["tenant_id","display_name"],"title":"TenantIn"},"TenantOut":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"display_name":{"type":"string","title":"Display Name"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"scope_type":{"type":"string","title":"Scope Type"}},"type":"object","required":["tenant_id","display_name","status","created_at","scope_type"],"title":"TenantOut"},"TierOverviewOut":{"properties":{"name":{"type":"string","title":"Name"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"}},"type":"object","required":["name","models","latest_version","labels"],"title":"TierOverviewOut","description":"One tier: the models it routes to, the first tried first."},"TokenOut":{"properties":{"token":{"type":"string","title":"Token"},"persona":{"$ref":"#/components/schemas/PersonaOut"}},"type":"object","required":["token","persona"],"title":"TokenOut"},"ToolOverviewOut":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"role":{"type":"string","title":"Role"},"execution":{"type":"string","title":"Execution"},"latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version"},"labels":{"additionalProperties":{"type":"integer"},"type":"object","title":"Labels"},"how_it_runs":{"$ref":"#/components/schemas/HowItRunsOut"},"from_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Product"},"hides_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hides Product"}},"type":"object","required":["name","description","role","execution","latest_version","labels","how_it_runs"],"title":"ToolOverviewOut"},"UsedByItemOut":{"properties":{"scope_id":{"type":"string","title":"Scope Id"},"scope_name":{"type":"string","title":"Scope Name"},"scope_type":{"type":"string","title":"Scope Type"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"}},"type":"object","required":["scope_id","scope_name","scope_type","kind","name","role"],"title":"UsedByItemOut","description":"A live item that depends on the one asked about, and the part it plays."},"UsedByOut":{"properties":{"count":{"type":"integer","title":"Count"},"items":{"items":{"$ref":"#/components/schemas/UsedByItemOut"},"type":"array","title":"Items"},"partial":{"type":"boolean","title":"Partial"}},"type":"object","required":["count","items","partial"],"title":"UsedByOut","description":"The live items that use an item. ``partial`` is true unless the person may see every scope: the\nlibrary shows only the dependents in scopes they may act in, so the list can be incomplete."},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","title":"Role"},"title":{"type":"string","title":"Title"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"status":{"type":"string","title":"Status"},"must_change_password":{"type":"boolean","title":"Must Change Password"},"locked":{"type":"boolean","title":"Locked"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"type":"string","title":"Created By"},"last_sign_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sign In At"},"can_manage":{"type":"boolean","title":"Can Manage"}},"type":"object","required":["id","email","display_name","role","title","scopes","status","must_change_password","locked","version","created_at","created_by","last_sign_in_at","can_manage"],"title":"UserOut"},"UserWithPasswordOut":{"properties":{"user":{"$ref":"#/components/schemas/UserOut"},"one_time_password":{"type":"string","title":"One Time Password"}},"type":"object","required":["user","one_time_password"],"title":"UserWithPasswordOut","description":"A user an admin just created or reset, with the one-time password to hand over. Shown once:\nnothing stores it in a form that can be read back."},"ValidateIn":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ValidateItemIn"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ValidateIn"},"ValidateItemIn":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"spec":{"additionalProperties":true,"type":"object","title":"Spec"}},"type":"object","required":["kind","name","spec"],"title":"ValidateItemIn"},"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"},"ValidationOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"items":{"items":{"$ref":"#/components/schemas/ItemValidationOut"},"type":"array","title":"Items"}},"type":"object","required":["ok","items"],"title":"ValidationOut"},"VersionOut":{"properties":{"version":{"type":"integer","title":"Version"},"parent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Version"},"change_message":{"type":"string","title":"Change Message"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source":{"type":"string","title":"Source"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"}},"type":"object","required":["version","parent_version","change_message","created_by","created_at","source","labels"],"title":"VersionOut","description":"One entry of an item's history (no spec) and the labels now pointing at it."}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"The token from the sign-in page.","scheme":"bearer"}}}}