{"openapi":"3.1.0","info":{"title":"Maskflare Platform API","description":"Manage a Maskflare organization from automation (Terraform, MCP servers, scripts) with an API\nclient created by an organization owner or admin in the console (Settings > API clients).\n\n**Authentication.** OAuth 2.0 client credentials against Maskflare's identity provider: send\n`grant_type=client_credentials` with the client's `client_id` and either its secret\n(`client_secret_post`/`client_secret_basic`) or a JWT assertion signed with its private key\n(`private_key_jwt`, `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer`,\nwith the assertion's `kid` header set to the key's RFC 7638 thumbprint shown in the console;\nsign with RS256 for an RSA key, ES256/ES384/ES512 for an EC P-256/P-384/P-521 key)\nto the token URL shown when the client was created, then call this API with\n`Authorization: Bearer <access_token>`. A token is bound to the client's one organization and\nrole; `X-Maskflare-Organization` may be omitted, and naming another organization is refused\n(403 `org_forbidden`). Tokens stop working at once when the client is revoked or its\ncredentials are rotated (401 `api_client_inactive`): request a new one.\n\n**Rate limits.** Each client may make a configured number of requests per fixed one-minute\nwindow (600 by default). Responses carry `RateLimit-Limit`, `RateLimit-Remaining` and\n`RateLimit-Reset` (seconds until the window ends); a refused request is 429 `rate_limited` with\n`Retry-After` and `RateLimit-Remaining: 0`.\n\n**Versioning.** The version is in the path (`/api/platform/v1`). Within v1 changes are only\nadditive: new operations, new optional request fields and new response fields. Removing or\nrenaming anything, or making a field required, ships as a new version alongside v1.\n\nErrors are RFC 9457 problem documents with a stable `code`.","version":"1.0.0"},"paths":{"/api/platform/v1/me":{"get":{"tags":["me"],"summary":"Me","operationId":"me_api_platform_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"security":[{"HTTPBearer":[]}]}},"/api/platform/v1/organizations/current":{"get":{"tags":["organizations"],"summary":"Current Organization","operationId":"current_organization_api_platform_v1_organizations_current_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/usage":{"get":{"tags":["organizations"],"summary":"Current Organization Usage","description":"The organization's traffic totals over the trailing `days` days - what a member reads on\nthe ledger's own summary, here for API clients, which the ledger doesn't accept. Ledger being\nunreachable is a 503 `ledger_unavailable`, never an all-zero summary.","operationId":"current_organization_usage_api_platform_v1_organizations_current_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/api-keys":{"get":{"tags":["api keys"],"summary":"List Api Keys","description":"MF-223: search (`q`, the name or prefix) and filters apply to every key, before paging.\n`hide_revoked` leaves revoked keys out unless `status=revoked` asks for them.","operationId":"list_api_keys_api_platform_v1_organizations_current_api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyPurpose"},{"type":"null"}],"title":"Purpose"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["active","expired","revoked"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"hide_revoked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hide Revoked"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ApiKeyOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["api keys"],"summary":"Create Api Key","operationId":"create_api_key_api_platform_v1_organizations_current_api_keys_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/api-keys/attention":{"get":{"tags":["api keys"],"summary":"Keys Needing Attention","description":"The keys Home and the App keys page warn about: inside the policy's notice days or just\nexpired (`api_key_expiry`), the most urgent first.","operationId":"keys_needing_attention_api_platform_v1_organizations_current_api_keys_attention_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ApiKeyAttentionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/api-keys/{key_id}":{"patch":{"tags":["api keys"],"summary":"Update Api Key","description":"Changes a key's settings under the same role rules as creating and revoking it: re-hydration,\nand its expiry (`expires_in_days`, extended in place within the organization's policy - the\nsecret stays). Traffic services pick the change up through `config.changed`.","operationId":"update_api_key_api_platform_v1_organizations_current_api_keys__key_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["api keys"],"summary":"Revoke Api Key","operationId":"revoke_api_key_api_platform_v1_organizations_current_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/api-keys/{key_id}/rotate":{"post":{"tags":["api keys"],"summary":"Rotate Api Key","description":"A replacement with the same name, environment, purpose and settings (its secret shown once).\nThe old key keeps working until the grace ends - `grace_hours`, else the organization's - and\nthen answers `api_key_expired`. Audited as `api_key.rotated`, with an `api_key.rotated`\nwebhook event.","operationId":"rotate_api_key_api_platform_v1_organizations_current_api_keys__key_id__rotate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RotationRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRotated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/credential-policy":{"get":{"tags":["credential policy"],"summary":"Get Credential Policy","operationId":"get_credential_policy_api_platform_v1_organizations_current_credential_policy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialPolicy"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["credential policy"],"summary":"Update Credential Policy","operationId":"update_credential_policy_api_platform_v1_organizations_current_credential_policy_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialPolicy"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialPolicy"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-enrollment-tokens":{"get":{"tags":["devices"],"summary":"List Enrollment Tokens","operationId":"list_enrollment_tokens_api_platform_v1_organizations_current_device_enrollment_tokens_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EnrollmentTokenOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["devices"],"summary":"Create Enrollment Token","operationId":"create_enrollment_token_api_platform_v1_organizations_current_device_enrollment_tokens_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentTokenCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentTokenCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-enrollment-tokens/{token_id}":{"delete":{"tags":["devices"],"summary":"Revoke Enrollment Token","operationId":"revoke_enrollment_token_api_platform_v1_organizations_current_device_enrollment_tokens__token_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Token Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentTokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/export.csv":{"get":{"tags":["devices"],"summary":"Export Devices","description":"Every device of the organization as CSV - state, version, OS, user, last seen - for an\ninventory or an audit. Rate limited per organization; audited.","operationId":"export_devices_api_platform_v1_organizations_current_devices_export_csv_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DeviceState"},{"type":"null"}],"title":"State"}},{"name":"unassigned","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unassigned"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/{device_id}":{"get":{"tags":["devices"],"summary":"Get Device","operationId":"get_device_api_platform_v1_organizations_current_devices__device_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"patch":{"tags":["devices"],"summary":"Update Device","description":"Rename a device, or assign it to a member of the organization (or unassign it). The\nmember then counts it against their device limit. Audited as `device.updated`.","operationId":"update_device_api_platform_v1_organizations_current_devices__device_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["devices"],"summary":"Revoke Device","operationId":"revoke_device_api_platform_v1_organizations_current_devices__device_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/{device_id}/timeline":{"get":{"tags":["devices"],"summary":"Device Timeline","description":"What happened to the device, newest first: the audit events naming it (enrolled,\nwatchdog repairs, policy refused, diagnostics, uninstall codes, renamed, revoked) and the\nissues reported from it.","operationId":"device_timeline_api_platform_v1_organizations_current_devices__device_id__timeline_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceTimelineEntry"},"title":"Response Device Timeline Api Platform V1 Organizations Current Devices  Device Id  Timeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-lifecycle":{"get":{"tags":["devices"],"summary":"Get Device Lifecycle","operationId":"get_device_lifecycle_api_platform_v1_organizations_current_device_lifecycle_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLifecycleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["devices"],"summary":"Update Device Lifecycle","description":"Remove inactive devices, purge removed ones, limit each member's devices - each null\n(off) by default. Applied hourly; audited as `device_lifecycle.updated`.","operationId":"update_device_lifecycle_api_platform_v1_organizations_current_device_lifecycle_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLifecycle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLifecycleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-groups":{"get":{"tags":["devices"],"summary":"List Groups","description":"In order: a device with MDM tags joins the first group here whose tag it reports.","operationId":"list_groups_api_platform_v1_organizations_current_device_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceGroupOut"},"title":"Response List Groups Api Platform V1 Organizations Current Device Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["devices"],"summary":"Create Group","operationId":"create_group_api_platform_v1_organizations_current_device_groups_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceGroupOut"},"title":"Response Create Group Api Platform V1 Organizations Current Device Groups Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-groups/order":{"put":{"tags":["devices"],"summary":"Order Groups","description":"The groups' order, first to last: every group of the organization, once.","operationId":"order_groups_api_platform_v1_organizations_current_device_groups_order_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupOrder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceGroupOut"},"title":"Response Order Groups Api Platform V1 Organizations Current Device Groups Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-groups/{group_id}":{"patch":{"tags":["devices"],"summary":"Update Group","operationId":"update_group_api_platform_v1_organizations_current_device_groups__group_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceGroupOut"},"title":"Response Update Group Api Platform V1 Organizations Current Device Groups  Group Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["devices"],"summary":"Delete Group","description":"Its devices go back to the organization's policy (or another group's MDM tag).","operationId":"delete_group_api_platform_v1_organizations_current_device_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/groups":{"get":{"tags":["groups"],"summary":"List Groups","description":"Directory groups, then SCIM groups, then device groups (in their order), by name within a\nkind; what targets each.","operationId":"list_groups_api_platform_v1_organizations_current_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupOut"},"title":"Response List Groups Api Platform V1 Organizations Current Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/agent-rollouts":{"get":{"tags":["devices"],"summary":"List Rollouts","operationId":"list_rollouts_api_platform_v1_organizations_current_agent_rollouts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRolloutsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/agent-rollouts/{ring}":{"put":{"tags":["devices"],"summary":"Start Rollout","description":"Roll `version` out to the ring, from 1% today to everyone on day 7. Starting another\nversion restarts the schedule; devices never go back to an older version (the agent refuses\na downgrade).","operationId":"start_rollout_api_platform_v1_organizations_current_agent_rollouts__ring__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ring","in":"path","required":true,"schema":{"enum":["canary","beta","stable"],"type":"string","title":"Ring"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRolloutStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRolloutsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["devices"],"summary":"Stop Rollout","description":"No release is offered to the ring any more; devices keep the version they run.","operationId":"stop_rollout_api_platform_v1_organizations_current_agent_rollouts__ring__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ring","in":"path","required":true,"schema":{"enum":["canary","beta","stable"],"type":"string","title":"Ring"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRolloutsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/agent-rollouts/{ring}/pause":{"post":{"tags":["devices"],"summary":"Pause Rollout","operationId":"pause_rollout_api_platform_v1_organizations_current_agent_rollouts__ring__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ring","in":"path","required":true,"schema":{"enum":["canary","beta","stable"],"type":"string","title":"Ring"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRolloutsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/agent-rollouts/{ring}/resume":{"post":{"tags":["devices"],"summary":"Resume Rollout","description":"Picks up where it paused: the paused time doesn't count toward the schedule.","operationId":"resume_rollout_api_platform_v1_organizations_current_agent_rollouts__ring__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ring","in":"path","required":true,"schema":{"enum":["canary","beta","stable"],"type":"string","title":"Ring"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRolloutsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices":{"get":{"tags":["devices"],"summary":"List Devices","description":"MF-434: every filter applies to the whole fleet before paging. `q` matches the hostname,\nserial number, display name or owner's email (an inactive owner's too), case-insensitive;\n`owner_person_id` is the owner's member id; `group_id` the group the device is in, by\nassignment or MDM tag; `unassigned` whether it has no owner; (MF-429) `ids` up to 100 devices\nby id, for the names a page of requests shows.","operationId":"list_devices_api_platform_v1_organizations_current_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DeviceState"},{"type":"null"}],"title":"State"}},{"name":"posture","in":"query","required":false,"schema":{"anyOf":[{"enum":["disk_unencrypted","firewall_off","unmanaged","no_screen_lock","no_edr"],"type":"string"},{"type":"null"}],"title":"Posture"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"owner_person_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Owner Person Id"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},{"name":"unassigned","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unassigned"}},{"name":"os","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DeviceOs"},{"type":"null"}],"title":"Os"}},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100},{"type":"null"}],"title":"Ids"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_DeviceOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/{device_id}/uninstall-code":{"post":{"tags":["devices"],"summary":"Issue Uninstall Code","description":"The device's current one-time uninstall code (MF-74), for an admin to read out to the\nperson removing the agent. Revoked devices too: the agent may still be installed. Audited;\nthe code itself is never recorded.","operationId":"issue_uninstall_code_api_platform_v1_organizations_current_devices__device_id__uninstall_code_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UninstallCodeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/{device_id}/pause-code":{"post":{"tags":["devices"],"summary":"Issue Pause Code","description":"A one-time code that pauses protection on the device for the policy's `pause_minutes`\n(MF-146), for support to rule Maskflare out - Zscaler's disable code. The device checks it\noffline (a separate purpose from uninstall codes) and asks its user for a reason. Only while\nthe agent policy allows pausing (409 `pause_not_allowed`). Audited; the code is never\nrecorded.","operationId":"issue_pause_code_api_platform_v1_organizations_current_devices__device_id__pause_code_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseCodeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/{device_id}/pause":{"post":{"tags":["devices"],"summary":"Pause Device","description":"Pauses protection on one device from the console, without a pause code: its AI traffic\ngoes direct until `minutes` pass or someone resumes it. The agent applies it from its next\nheartbeat - within seconds for agents that follow control events. Pausing again replaces the\nearlier pause. Audited with the device, the duration and the reason.","operationId":"pause_device_api_platform_v1_organizations_current_devices__device_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRemotePause"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/devices/{device_id}/resume":{"post":{"tags":["devices"],"summary":"Resume Device","description":"Ends an administrator's pause early: the device protects its AI traffic again from its\nnext heartbeat. Ends a pause the device's user took with a pause code too, since the agent\nresumes whatever pause it holds when told to. Audited.","operationId":"resume_device_api_platform_v1_organizations_current_devices__device_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/device-self-enrollment":{"get":{"tags":["devices"],"summary":"Get Self Enrollment","operationId":"get_self_enrollment_api_platform_v1_organizations_current_device_self_enrollment_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSelfEnrollmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["devices"],"summary":"Update Self Enrollment","description":"Whether members may enroll their own devices by signing in to the desktop app - always\ninto Workforce (MF-420). Turning it off stops new sign-in enrollments; enrolled devices keep\nworking.","operationId":"update_self_enrollment_api_platform_v1_organizations_current_device_self_enrollment_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSelfEnrollmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSelfEnrollmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/provider-connections/validate":{"post":{"tags":["provider connections"],"summary":"Validate Connection","operationId":"validate_connection_api_platform_v1_organizations_current_provider_connections_validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderConnectionValidation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderValidationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/provider-connections":{"get":{"tags":["provider connections"],"summary":"List Connections","description":"Deliberately not paginated (unlike every other list in this service): the result is\nat most `len(Provider) * len(EnvironmentKey)` rows - a fixed, small matrix, not a\ngrowing collection - and the console's environment tabs need the full set up front to\nfilter client-side, not a server-paged slice of it.","operationId":"list_connections_api_platform_v1_organizations_current_provider_connections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderConnectionOut"},"title":"Response List Connections Api Platform V1 Organizations Current Provider Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/provider-connections/{environment}/{provider}":{"put":{"tags":["provider connections"],"summary":"Upsert Connection","operationId":"upsert_connection_api_platform_v1_organizations_current_provider_connections__environment___provider__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderConnectionUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderConnectionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["provider connections"],"summary":"Delete Connection","operationId":"delete_connection_api_platform_v1_organizations_current_provider_connections__environment___provider__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/provider-passthrough":{"get":{"tags":["provider connections"],"summary":"List Provider Passthrough","description":"Per environment, whether a provider without a connection is allowed with the application's\nown key (a disabled connection still blocks it).","operationId":"list_provider_passthrough_api_platform_v1_organizations_current_provider_passthrough_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderPassthroughOut"},"title":"Response List Provider Passthrough Api Platform V1 Organizations Current Provider Passthrough Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/provider-passthrough":{"put":{"tags":["provider connections"],"summary":"Set Provider Passthrough","description":"Turns \"allow every supported provider with the application's own key\" on or off for one\nenvironment; audited and published like any connection change.","operationId":"set_provider_passthrough_api_platform_v1_organizations_current_environments__environment__provider_passthrough_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderPassthroughUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderPassthroughOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/rules":{"put":{"tags":["rules and audit"],"summary":"Update Rules","operationId":"update_rules_api_platform_v1_organizations_current_environments__environment__rules_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentRulesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/audit-events":{"get":{"tags":["rules and audit"],"summary":"List Audit Events","operationId":"list_audit_events_api_platform_v1_organizations_current_audit_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":20},{"type":"null"}],"description":"Exact action, repeatable","title":"Action"},"description":"Exact action, repeatable"},{"name":"action_prefix","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"description":"Actions starting with this, e.g. masking_rule","title":"Action Prefix"},"description":"Actions starting with this, e.g. masking_rule"},{"name":"actor_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}],"description":"Case-insensitive substring of the actor's email or label (e.g. \"API client ci-bot\", \"Device LAPTOP-01\", \"System\")","title":"Actor Email"},"description":"Case-insensitive substring of the actor's email or label (e.g. \"API client ci-bot\", \"Device LAPTOP-01\", \"System\")"},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"title":"Target Type"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":50},{"type":"null"}],"description":"Exact target id, repeatable","title":"Target Id"},"description":"Exact target id, repeatable"},{"name":"occurred_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred After"}},{"name":"occurred_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred Before"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AuditEventOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/audit-events/actions":{"get":{"tags":["rules and audit"],"summary":"List Audit Actions","description":"The distinct action names recorded for this organization, sorted - the audit log's\naction filter dropdown.","operationId":"list_audit_actions_api_platform_v1_organizations_current_audit_events_actions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Audit Actions Api Platform V1 Organizations Current Audit Events Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/audit-events/export":{"get":{"tags":["rules and audit"],"summary":"Export Audit Events","description":"Streams the org's audit trail for a date range, oldest first, as NDJSON (one event per\nline) or CSV - compliance evidence (an annual review, an incident lookback) without paging\nthrough the UI. Takes the list's filters too; here the range is required and span-capped.","operationId":"export_audit_events_api_platform_v1_organizations_current_audit_events_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"occurred_after","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Occurred After"}},{"name":"occurred_before","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Occurred Before"}},{"name":"format","in":"query","required":false,"schema":{"enum":["ndjson","csv"],"type":"string","default":"ndjson","title":"Format"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":20},{"type":"null"}],"description":"Exact action, repeatable","title":"Action"},"description":"Exact action, repeatable"},{"name":"action_prefix","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"description":"Actions starting with this, e.g. masking_rule","title":"Action Prefix"},"description":"Actions starting with this, e.g. masking_rule"},{"name":"actor_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}],"description":"Case-insensitive substring of the actor's email or label (e.g. \"API client ci-bot\", \"Device LAPTOP-01\", \"System\")","title":"Actor Email"},"description":"Case-insensitive substring of the actor's email or label (e.g. \"API client ci-bot\", \"Device LAPTOP-01\", \"System\")"},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"title":"Target Type"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":50},{"type":"null"}],"description":"Exact target id, repeatable","title":"Target Id"},"description":"Exact target id, repeatable"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rules":{"get":{"tags":["masking rules"],"summary":"List Masking Rules","operationId":"list_masking_rules_api_platform_v1_organizations_current_environments__environment__masking_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaskingRuleOut"},"title":"Response List Masking Rules Api Platform V1 Organizations Current Environments  Environment  Masking Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["masking rules"],"summary":"Propose Masking Rule Create","description":"Adds a custom rule. It applies at once (200), since a new detector only adds protection,\nunless its action reveals part of a value (`partial`, `generalize`): that is proposed (201) for\nanother owner, admin, or security member (see `approve_masking_rule_change`).","operationId":"propose_masking_rule_create_api_platform_v1_organizations_current_environments__environment__masking_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleCreate"}}}},"responses":{"201":{"description":"Proposed for another manager's approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"200":{"description":"Only adds protection: applied at once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingAppliedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rules/{rule_id}/terms":{"get":{"tags":["masking rules"],"summary":"Get Masking Rule Terms","description":"A dictionary rule's full term list (MF-17) - listings only carry its count.","operationId":"get_masking_rule_terms_api_platform_v1_organizations_current_environments__environment__masking_rules__rule_id__terms_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleTermsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-changes/{change_id}/terms":{"get":{"tags":["masking rules"],"summary":"Get Masking Rule Change Terms","description":"The full term list a create/update proposal would apply, so an approver reviews exactly\nwhat they approve (listings show only a count and a sample).","operationId":"get_masking_rule_change_terms_api_platform_v1_organizations_current_environments__environment__masking_rule_changes__change_id__terms_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleTermsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rules/{rule_id}":{"patch":{"tags":["masking rules"],"summary":"Propose Masking Rule Update","description":"Changes an existing rule (including a preset's `enabled` flag). Turning it on or strengthening\nits action applies at once (200, MF-415); anything else is proposed (201) and applies only once\napproved by someone other than the proposer.","operationId":"propose_masking_rule_update_api_platform_v1_organizations_current_environments__environment__masking_rules__rule_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleUpdate"}}}},"responses":{"201":{"description":"Proposed for another manager's approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"200":{"description":"Only adds protection: applied at once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingAppliedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["masking rules"],"summary":"Propose Masking Rule Delete","description":"Proposes deleting a custom rule. The rule keeps masking traffic until approved.","operationId":"propose_masking_rule_delete_api_platform_v1_organizations_current_environments__environment__masking_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-packs":{"get":{"tags":["masking rules"],"summary":"List Masking Rule Packs","description":"Every catalog pack (global first, then credentials, health and names, then countries by name)\nwith how many of its presets are enabled in this environment, and any pending pack toggle.","operationId":"list_masking_rule_packs_api_platform_v1_organizations_current_environments__environment__masking_rule_packs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaskingRulePackOut"},"title":"Response List Masking Rule Packs Api Platform V1 Organizations Current Environments  Environment  Masking Rule Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-packs/{pack}":{"post":{"tags":["masking rules"],"summary":"Propose Masking Rule Pack Toggle","description":"Enables a pack's recommended presets at once (200; MF-219: never its opt-in ones, MF-415: it\nonly adds protection), or proposes disabling every preset in it (201) - e.g. all of Germany's\ndetectors - which applies only once someone other than the proposer approves it. Individual\npresets can still be tuned afterwards.","operationId":"propose_masking_rule_pack_toggle_api_platform_v1_organizations_current_environments__environment__masking_rule_packs__pack__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"pack","in":"path","required":true,"schema":{"type":"string","title":"Pack"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRulePackToggle"}}}},"responses":{"201":{"description":"Proposed for another manager's approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"200":{"description":"Only adds protection: applied at once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingAppliedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-allowlist":{"get":{"tags":["masking rules"],"summary":"Get Masking Allowlist","description":"The environment-wide allowlist (MF-18) - values every rule's matches are left unmasked\nfor - and a proposed replacement awaiting review, if any.","operationId":"get_masking_allowlist_api_platform_v1_organizations_current_environments__environment__masking_allowlist_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingAllowlistOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["masking rules"],"summary":"Propose Masking Allowlist","description":"Proposes the environment-wide allowlist as a whole (MF-18). Invalid entries are refused\nhere (422 `masking_allowlist_invalid`); nothing changes until another owner, admin, or\nsecurity member approves it. An entry's `rule_key` must name one of the organization's\ncurrent EDM fields, unless the entry is carried over unchanged from the approved list.","operationId":"propose_masking_allowlist_api_platform_v1_organizations_current_environments__environment__masking_allowlist_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingAllowlistUpdate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-changes":{"get":{"tags":["masking rules"],"summary":"List Masking Rule Changes","operationId":"list_masking_rule_changes_api_platform_v1_organizations_current_environments__environment__masking_rule_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeStatus"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MaskingRuleChangeOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/masking-validators":{"get":{"tags":["masking rules"],"summary":"List Masking Validators","description":"Names a custom rule may use as its `validator` - the same checksum/structure checks the\nbuilt-in detectors use (IBAN mod-97, Luhn, national check digits, ...).","operationId":"list_masking_validators_api_platform_v1_organizations_current_masking_validators_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Masking Validators Api Platform V1 Organizations Current Masking Validators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rules/preview":{"post":{"tags":["masking rules"],"summary":"Preview Masking","description":"Runs the environment's enabled (approved) rules against admin-typed test text only -\nnever persists a vault token, so this is safe to call freely while authoring a rule. Rule\nactions apply as in traffic, except that a block rule's match is reported in\n`blocked` rather than refusing the preview, and hashes and fpe outputs use the preview's own\nkey; nothing is written to the vault. Rules in shadow are only counted (`shadowed`), as in\ntraffic. With `explain` (MF-30) it also returns every regex match and what became of it -\nmasked, observed, allowlisted, beaten in an overlap, rejected by a filter or skipped for a\nmissing keyword - as offsets into `text`, never values.","operationId":"preview_masking_api_platform_v1_organizations_current_environments__environment__masking_rules_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRulePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRulePreviewResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/masking-settings":{"get":{"tags":["masking rules"],"summary":"Get Masking Settings","description":"Organization-wide masking settings (MF-03, MF-119), with the number of active managers so\nthe console can say whether self-approval is available.","operationId":"get_masking_settings_api_platform_v1_organizations_current_masking_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/masking-rule-changes":{"get":{"tags":["masking rules"],"summary":"List Organization Masking Rule Changes","description":"Masking rule changes across every environment, newest first (the Approvals inbox, MF-119).\nEach carries its `environment` and, when it names a rule, `masking_rule_key`; with\n`standalone`, changes that belong to a change set are left out (decide those as a set).","operationId":"list_organization_masking_rule_changes_api_platform_v1_organizations_current_masking_rule_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeStatus"},{"type":"null"}],"title":"Status"}},{"name":"standalone","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Standalone"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MaskingRuleChangeOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-changes/batch":{"post":{"tags":["masking rules"],"summary":"Propose Masking Change Set","description":"Sends up to 200 operations - enable or disable a rule or a pack, change a rule's action or\nmove it between enforce and shadow. Every operation is checked before anything happens: the\nfirst bad one is refused (422 `masking_change_set_invalid`, or 409\n`masking_rule_change_pending` for a rule or pack with a change already pending) naming its\nindex, and nothing is applied or proposed. Operations on one rule merge into one change; the\nsame field twice is refused. MF-415: a rule or pack change that only adds protection applies\nat once, the rest become one change set (201, `applied` lists what applied); with nothing left\nto wait it answers 200 and there is no set. `change_ids` (MF-210) adds the caller's own pending\nproposals made just before (allowlists, scope, thresholds) to the set.","operationId":"propose_masking_change_set_api_platform_v1_organizations_current_environments__environment__masking_rule_changes_batch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingChangeSetCreate"}}}},"responses":{"201":{"description":"Something waits for approval as this set; `applied` lists what did not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingChangeSetDetailOut"}}}},"200":{"description":"Only added protection: all applied at once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingAppliedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/masking-change-sets":{"get":{"tags":["masking rules"],"summary":"List Masking Change Sets","description":"Change sets across every environment (or one), newest first - the Approvals inbox.","operationId":"list_masking_change_sets_api_platform_v1_organizations_current_masking_change_sets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeStatus"},{"type":"null"}],"title":"Status"}},{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MaskingChangeSetOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-change-sets/{change_set_id}":{"get":{"tags":["masking rules"],"summary":"Get Masking Change Set","operationId":"get_masking_change_set_api_platform_v1_organizations_current_environments__environment__masking_change_sets__change_set_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"change_set_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Set Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingChangeSetDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/approvals":{"get":{"tags":["approvals"],"summary":"List Approvals","description":"Every proposal of every kind that waits for a decision (or, `decided`, the history), newest\nfirst, in one shape; decide one through its `approve_path` / `reject_path`.","operationId":"list_approvals_api_platform_v1_organizations_current_approvals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["pending","decided"],"type":"string","default":"pending","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalInbox"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-diff":{"get":{"tags":["masking rules"],"summary":"Policy Diff","description":"What copying `source`'s detectors onto this scope would change, and the operations that do\nit; nothing is changed.","operationId":"policy_diff_api_platform_v1_organizations_current_environments__environment__policy_diff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"source","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","description":"The scope whose policy would be copied.","title":"Source"},"description":"The scope whose policy would be copied."},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyDiff"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/policy-versions":{"get":{"tags":["policy versions"],"summary":"List Policy Versions","description":"The organization's policy versions, the most recently served first.","operationId":"list_policy_versions_api_platform_v1_organizations_current_policy_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PolicyVersionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/policy-versions/{digest}":{"get":{"tags":["policy versions"],"summary":"Get Policy Version","operationId":"get_policy_version_api_platform_v1_organizations_current_policy_versions__digest__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Digest"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyVersionDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-lint":{"get":{"tags":["masking rules"],"summary":"Lint Masking Rules","description":"The identifier groups whose enabled detectors handle a match differently (MF-201).","operationId":"lint_masking_rules_api_platform_v1_organizations_current_environments__environment__masking_rule_lint_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingPolicyLintOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-change-sets/{change_set_id}/lint":{"get":{"tags":["masking rules"],"summary":"Lint Masking Change Set","description":"The groups a pending change set would make inconsistent (consistent today), as approving it\nwould leave them.","operationId":"lint_masking_change_set_api_platform_v1_organizations_current_environments__environment__masking_change_sets__change_set_id__lint_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"change_set_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Set Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingPolicyLintOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-rule-changes/{change_id}/lint":{"get":{"tags":["masking rules"],"summary":"Lint Masking Rule Change","description":"The groups one pending change would make inconsistent.","operationId":"lint_masking_rule_change_api_platform_v1_organizations_current_environments__environment__masking_rule_changes__change_id__lint_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingPolicyLintOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/masking-profiles":{"get":{"tags":["masking rules"],"summary":"List Masking Profiles","description":"The compliance profiles this deployment offers.","operationId":"list_masking_profiles_api_platform_v1_organizations_current_masking_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaskingProfileOut"},"title":"Response List Masking Profiles Api Platform V1 Organizations Current Masking Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-profiles":{"get":{"tags":["masking rules"],"summary":"Environment Masking Profiles","description":"Every profile's status for this environment and the one it was last brought up to;\n`modified` when that one is no longer met (a required rule turned off or weakened since).","operationId":"environment_masking_profiles_api_platform_v1_organizations_current_environments__environment__masking_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentMaskingProfilesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-profiles/{profile_id}/apply":{"post":{"tags":["masking rules"],"summary":"Apply Masking Profile","description":"Proposes what the environment lacks of the profile as one change set (201) for another\nmanager to approve, or answers 200 with no change set when it already satisfies the profile.\n409 `masking_rule_change_pending` when a change is already pending for a rule or pack it\nwould touch; 422 `masking_profile_invalid` for a bad country choice.","operationId":"apply_masking_profile_api_platform_v1_organizations_current_environments__environment__masking_profiles__profile_id__apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingProfileApply"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingProfileApplied"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-profiles/{profile_id}/upgrade":{"post":{"tags":["masking rules"],"summary":"Upgrade Masking Profile","description":"Proposes what the profile's versions since the applied one add - and only that, so what the\nenvironment changed since it applied the profile stays as it is - as one change set (201).\nApproving it records the new version. When the environment already has all of it, the new\nversion is recorded at once (200, no change set: nothing changes). 409\n`masking_profile_upgrade_unavailable` when the environment didn't apply this profile or\nalready met its current version; 422 `masking_profile_invalid` for a country the newer\nversions don't add.","operationId":"upgrade_masking_profile_api_platform_v1_organizations_current_environments__environment__masking_profiles__profile_id__upgrade_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingProfileUpgrade"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingProfileApplied"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/compliance-coverage":{"get":{"tags":["masking rules"],"summary":"Environment Compliance Coverage","description":"MF-176: each of the regulation's identifiers as covered / partial / not covered / out of\nscope for this environment, with the preset rules behind it (core `compliance_coverage`).","operationId":"environment_compliance_coverage_api_platform_v1_organizations_current_environments__environment__compliance_coverage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"regulation","in":"query","required":false,"schema":{"enum":["hipaa","gdpr"],"type":"string","default":"hipaa","title":"Regulation"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceCoverageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-scope":{"get":{"tags":["masking scope"],"summary":"Get Masking Scope","description":"The environment's masking scope - what masking reads in provider bodies: the provider\ndefaults (protocol fields skipped), its include and exclude paths, and a proposed list change.","operationId":"get_masking_scope_api_platform_v1_organizations_current_environments__environment__masking_scope_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingScopeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-scope/include":{"put":{"tags":["masking scope"],"summary":"Set Masking Scope Include","description":"Replaces the include list: paths masking scans although a provider default skips them.\nAdding paths applies at once; dropping any is proposed for another manager's approval.","operationId":"set_masking_scope_include_api_platform_v1_organizations_current_environments__environment__masking_scope_include_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingScopePaths"}}}},"responses":{"200":{"description":"Only adds scanning: applied, the scope as it is now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingScopeOut"}}}},"201":{"description":"Stops scanning something: proposed for approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-scope/exclude":{"put":{"tags":["masking scope"],"summary":"Set Masking Scope Exclude","description":"Replaces the exclude list: paths masking skips. Adding any is proposed for another manager's\napproval; only removing paths (which scans them again) applies at once.","operationId":"set_masking_scope_exclude_api_platform_v1_organizations_current_environments__environment__masking_scope_exclude_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingScopePaths"}}}},"responses":{"200":{"description":"Only adds scanning: applied, the scope as it is now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingScopeOut"}}}},"201":{"description":"Stops scanning something: proposed for approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-thresholds":{"get":{"tags":["masking thresholds"],"summary":"Get Masking Thresholds","description":"The environment's volume thresholds - how many detections of a category or rule one request\nmay carry - and the loosenings or removals awaiting approval.","operationId":"get_masking_thresholds_api_platform_v1_organizations_current_environments__environment__masking_thresholds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingThresholdsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/masking-thresholds/{scope}/{key}":{"put":{"tags":["masking thresholds"],"summary":"Set Masking Threshold","description":"Creates or changes the threshold for a category or rule key. Creating one, lowering its limit\nor switching it to block applies at once; raising the limit or switching to alert is proposed\nfor another manager's approval.","operationId":"set_masking_threshold_api_platform_v1_organizations_current_environments__environment__masking_thresholds__scope___key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"scope","in":"path","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingThresholdUpdate"}}}},"responses":{"200":{"description":"Adds protection: applied, the thresholds as they are now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingThresholdsOut"}}}},"201":{"description":"Reduces protection: proposed for approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["masking thresholds"],"summary":"Delete Masking Threshold","description":"Proposes removing the threshold for a category or rule key, for another manager's approval.","operationId":"delete_masking_threshold_api_platform_v1_organizations_current_environments__environment__masking_thresholds__scope___key__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"scope","in":"path","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskingRuleChangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/mcp-servers":{"get":{"tags":["mcp servers"],"summary":"List Mcp Servers","operationId":"list_mcp_servers_api_platform_v1_organizations_current_environments__environment__mcp_servers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/McpServerOut"},"title":"Response List Mcp Servers Api Platform V1 Organizations Current Environments  Environment  Mcp Servers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["mcp servers"],"summary":"Create Mcp Server","operationId":"create_mcp_server_api_platform_v1_organizations_current_environments__environment__mcp_servers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/mcp-servers/{server_id}":{"delete":{"tags":["mcp servers"],"summary":"Delete Mcp Server","operationId":"delete_mcp_server_api_platform_v1_organizations_current_environments__environment__mcp_servers__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/mcp-servers/{server_id}/access":{"get":{"tags":["mcp access"],"summary":"Get Mcp Server Access","operationId":"get_mcp_server_access_api_platform_v1_organizations_current_environments__environment__mcp_servers__server_id__access_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["mcp access"],"summary":"Update Mcp Server Access","description":"Changes a server's default for new tools, its destructive-tool template and whether denied\ntools are hidden. Denying more applies at once; letting more through is a proposal (202).\n409 `mcp_access_change_pending`.","operationId":"update_mcp_server_access_api_platform_v1_organizations_current_environments__environment__mcp_servers__server_id__access_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerAccessUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerAccessWriteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/mcp-servers/{server_id}/tools/{tool}":{"put":{"tags":["mcp access"],"summary":"Update Mcp Tool Access","description":"Sets one listed tool to allow, deny or the server's default (null). Allowing a tool that was\ndenied is a proposal (202). 404 `mcp_tool_not_found` for a tool the server never listed.","operationId":"update_mcp_tool_access_api_platform_v1_organizations_current_environments__environment__mcp_servers__server_id__tools__tool__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}},{"name":"tool","in":"path","required":true,"schema":{"type":"string","title":"Tool"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpToolAccessUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerAccessWriteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/mcp-access-changes":{"get":{"tags":["mcp access"],"summary":"List Mcp Access Changes","operationId":"list_mcp_access_changes_api_platform_v1_organizations_current_mcp_access_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(pending|approved|rejected)$"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/McpAccessChangeOut"},"title":"Response List Mcp Access Changes Api Platform V1 Organizations Current Mcp Access Changes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/mcp-access-requests":{"get":{"tags":["mcp access"],"summary":"List Mcp Access Requests","description":"Access requests, open ones first and then the newest; `status` (repeatable),\n`environment` and `server_id` filter.","operationId":"list_mcp_access_requests_api_platform_v1_organizations_current_mcp_access_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"}},{"name":"server_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Server Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpAccessRequestPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/browser-dlp":{"get":{"tags":["browser dlp"],"summary":"Get Browser Dlp","operationId":"get_browser_dlp_api_platform_v1_organizations_current_browser_dlp_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserDlpSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["browser dlp"],"summary":"Update Browser Dlp","description":"Sets exactly the apps to inspect (422 `browser_dlp_app_unknown` for a key not in the\ncatalog). Whether browser DLP runs at all stays the deployment's `BROWSER_DLP_ENABLED`.","operationId":"update_browser_dlp_api_platform_v1_organizations_current_browser_dlp_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserDlpSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserDlpSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/browser-dlp/response-inspection":{"put":{"tags":["browser dlp"],"summary":"Update Browser Response Inspection","description":"Whether forward-proxy searches the answers of ChatGPT and claude.ai (`alert`: what they hold\nis counted on the request, the answer itself unchanged) or leaves them unread (`off`).","operationId":"update_browser_response_inspection_api_platform_v1_organizations_current_browser_dlp_response_inspection_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserResponseInspectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserDlpSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/browser-dlp/apps/{key}":{"put":{"tags":["browser dlp"],"summary":"Update Browser Dlp App","description":"One app's uninspected WebSocket messages: `allow` (pass) or `block` (close the socket).\n404 `browser_dlp_app_not_found` for a key not in the catalog.","operationId":"update_browser_dlp_app_api_platform_v1_organizations_current_browser_dlp_apps__key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserDlpAppUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserDlpSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/browser-dlp/accounts":{"get":{"tags":["browser dlp"],"summary":"Get Browser Accounts","description":"MF-272: per app whose requests name an account, the organization's corporate accounts (by\nhash and label - an id is never kept) and what happens to personal and unknown accounts.","operationId":"get_browser_accounts_api_platform_v1_organizations_current_browser_dlp_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserAccountsSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/browser-dlp/apps/{key}/accounts":{"put":{"tags":["browser dlp"],"summary":"Update Browser Accounts","description":"One app's whole account policy. A corporate account is given by the id the app shows (a\nChatGPT workspace id, a Claude organization UUID), hashed here, or by a hash from the ledger's\nseen accounts. 404 `browser_dlp_app_not_found`, 422 `browser_accounts_unsupported` (an app\nwhose requests name no account) or `browser_accounts_invalid`.","operationId":"update_browser_accounts_api_platform_v1_organizations_current_browser_dlp_apps__key__accounts_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserAccountsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserAccountsSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/ai-app-access":{"get":{"tags":["ai app access"],"summary":"Get Ai App Access","operationId":"get_ai_app_access_api_platform_v1_organizations_current_ai_app_access_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAppAccessSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/ai-app-access/apps/{key}":{"put":{"tags":["ai app access"],"summary":"Update Ai App Policy","description":"One app's status (404 `ai_app_not_found` for a key not in the catalogue). Letting a blocked\napp through is proposed instead (`proposed`; 409 `ai_app_change_pending` while one waits).","operationId":"update_ai_app_policy_api_platform_v1_organizations_current_ai_app_access_apps__key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAppPolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAppAccessUpdateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/ai-app-access/apps/bulk":{"post":{"tags":["ai app access"],"summary":"Bulk Update Ai App Policies","description":"One status for several apps: what tightens or keeps access applies at once as one config\nchange, each app it would let through is proposed on its own. All or nothing on errors.","operationId":"bulk_update_ai_app_policies_api_platform_v1_organizations_current_ai_app_access_apps_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAppPolicyBulkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAppAccessUpdateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/ai-app-access/settings":{"put":{"tags":["ai app access"],"summary":"Update Unreviewed Ai Apps","description":"Whether unreviewed apps are allowed. Blocking them applies at once; allowing them again\nis proposed (409 `ai_app_change_pending` while one waits).","operationId":"update_unreviewed_ai_apps_api_platform_v1_organizations_current_ai_app_access_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreviewedAiAppsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAppAccessUpdateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/ai-app-access/changes":{"get":{"tags":["ai app access"],"summary":"List Ai App Policy Changes","description":"Proposals, newest first (`status` to filter).","operationId":"list_ai_app_policy_changes_api_platform_v1_organizations_current_ai_app_access_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(pending|approved|rejected)$"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AiAppPolicyChangeOut"},"title":"Response List Ai App Policy Changes Api Platform V1 Organizations Current Ai App Access Changes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-overrides":{"get":{"tags":["policy overrides"],"summary":"List Policy Overrides","description":"The environment's overrides in the order they are tried, and a waiting proposal's id.","operationId":"list_policy_overrides_api_platform_v1_organizations_current_environments__environment__policy_overrides_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverridesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["policy overrides"],"summary":"Create Policy Override","description":"Adds an override after the others (tried last). Applies at once when it tightens only,\nelse 202 with the proposal. 409 `policy_override_exists` (name), `policy_override_limit`;\n422 `policy_override_invalid`.","operationId":"create_policy_override_api_platform_v1_organizations_current_environments__environment__policy_overrides_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideWriteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-overrides/order":{"put":{"tags":["policy overrides"],"summary":"Reorder Policy Overrides","description":"Proposes a new order (every override once): whoever two overrides both cover gets the one\ntried first, so a new order can loosen anyone's policy and always needs a second manager.\nThe same order changes nothing. 422 `policy_override_invalid`.","operationId":"reorder_policy_overrides_api_platform_v1_organizations_current_environments__environment__policy_overrides_order_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideOrder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideWriteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-overrides/{override_id}":{"put":{"tags":["policy overrides"],"summary":"Update Policy Override","description":"Replaces an override's name, scope and partial policy. Applies at once when everyone it\ncovers before and after is protected at least as well, else 202 with the proposal.","operationId":"update_policy_override_api_platform_v1_organizations_current_environments__environment__policy_overrides__override_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"override_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Override Id"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideWriteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"delete":{"tags":["policy overrides"],"summary":"Delete Policy Override","description":"Removes an override (its scope goes back to the environment's policy). Applies at once\nwhen that protects no one less, else 202 with the proposal.","operationId":"delete_policy_override_api_platform_v1_organizations_current_environments__environment__policy_overrides__override_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"override_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Override Id"}},{"name":"note","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOverrideWriteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-override-changes":{"get":{"tags":["policy overrides"],"summary":"List Policy Override Changes","description":"Proposals, newest first (`status` to filter), each with what it loosens now.","operationId":"list_policy_override_changes_api_platform_v1_organizations_current_environments__environment__policy_override_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(pending|approved|rejected)$"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PolicyOverrideChangeOut"},"title":"Response List Policy Override Changes Api Platform V1 Organizations Current Environments  Environment  Policy Override Changes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-overrides/affected":{"post":{"tags":["policy overrides"],"summary":"Scope Affected","description":"How many people and devices a scope covers now - the exception editor's preview. A device\ngroup counts its devices as `device_groups.resolve` places them and their owners; a person\nscope counts its active people and the devices they own. Revoked devices don't count.","operationId":"scope_affected_api_platform_v1_organizations_current_environments__environment__policy_overrides_affected_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyScopeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyScopeAffectedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-overrides/effective":{"get":{"tags":["policy overrides"],"summary":"Effective Policy","description":"What a user (by email), a device, or a member of a device group, directory group or\ndepartment gets in this environment: the override they fall under first, and the effective\nrules, AI app statuses and account policy. A device brings its group and its signed-in user;\n`user` alone has no device group. 404 `device_not_found`.","operationId":"effective_policy_api_platform_v1_organizations_current_environments__environment__policy_overrides_effective_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"User"}},{"name":"device_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Id"}},{"name":"device_group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Group Id"}},{"name":"directory_group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Directory Group Id"}},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Department"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EffectivePolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/environments/{environment}/policy-scenarios":{"get":{"tags":["policy overrides"],"summary":"Policy Scenarios View","description":"The environment's policy as a default for everyone and ordered exceptions (its policy\noverrides, the first matching one applying), each listing only what it changes.","operationId":"policy_scenarios_view_api_platform_v1_organizations_current_environments__environment__policy_scenarios_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyScenariosOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/warn-settings":{"get":{"tags":["warn"],"summary":"Get Warn Settings","operationId":"get_warn_settings_api_platform_v1_organizations_current_warn_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarnSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["warn"],"summary":"Update Warn Settings","operationId":"update_warn_settings_api_platform_v1_organizations_current_warn_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarnSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarnSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/end-user-messages":{"get":{"tags":["end-user messages"],"summary":"Get End User Messages","description":"The organization's settings (empty fields: the defaults, listed per language).","operationId":"get_end_user_messages_api_platform_v1_organizations_current_end_user_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndUserMessagesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["end-user messages"],"summary":"Update End User Messages","description":"Replaces the settings (a field left out or blank goes back to its default). Texts are\nplain, at most 280 characters; links https.","operationId":"update_end_user_messages_api_platform_v1_organizations_current_end_user_messages_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndUserMessageSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndUserMessagesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/agent-policy":{"get":{"tags":["agent policy"],"summary":"Get Agent Policy","description":"The current policy (revision 0 and the defaults before anything is published), the hosts\ndevices steer, and the latest revisions.","operationId":"get_agent_policy_api_platform_v1_organizations_current_agent_policy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"tags":["agent policy"],"summary":"Publish Agent Policy","description":"Publishes these settings as the next revision; settings equal to the current ones publish\nnothing. Devices apply it within one heartbeat.","operationId":"publish_agent_policy_api_platform_v1_organizations_current_agent_policy_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPolicySettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/agent-policy/rollback":{"post":{"tags":["agent policy"],"summary":"Rollback Agent Policy","description":"Publishes an earlier revision's settings again, as the next revision (404\n`agent_policy_revision_not_found`).","operationId":"rollback_agent_policy_api_platform_v1_organizations_current_agent_policy_rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPolicyRollback"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/proxy-ca":{"get":{"tags":["proxy ca"],"summary":"Get Proxy Ca","operationId":"get_proxy_ca_api_platform_v1_organizations_current_proxy_ca_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"tags":["proxy ca"],"summary":"Provision Proxy Ca","operationId":"provision_proxy_ca_api_platform_v1_organizations_current_proxy_ca_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/proxy-ca/certificate":{"get":{"tags":["proxy ca"],"summary":"Download Proxy Ca Certificate","description":"The CA leaves come from now (`current`), or the one a rotation in progress is moving to\n(`next`: what to trust by hand before the switch; 404 `proxy_ca_rotation_not_found` without\na rotation in progress).","operationId":"download_proxy_ca_certificate_api_platform_v1_organizations_current_proxy_ca_certificate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"which","in":"query","required":false,"schema":{"enum":["current","next"],"type":"string","default":"current","title":"Which"}},{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/platform/v1/organizations/current/deployment-capabilities":{"get":{"tags":["organizations"],"summary":"Deployment Capabilities","operationId":"deployment_capabilities_api_platform_v1_organizations_current_deployment_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Maskflare-Organization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Maskflare-Organization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentCapabilitiesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}}},"components":{"schemas":{"AgentNotifications":{"properties":{"masked":{"type":"boolean","title":"Masked","default":true},"blocked":{"type":"boolean","title":"Blocked","default":true}},"additionalProperties":false,"type":"object","title":"AgentNotifications"},"AgentPolicyOut":{"properties":{"revision":{"type":"integer","title":"Revision","description":"0 until a policy is published: the defaults"},"settings":{"$ref":"#/components/schemas/AgentPolicySettings"},"hosts":{"items":{"type":"string"},"type":"array","title":"Hosts","description":"The covered AI hosts devices steer, derived by the platform"},"forward_proxy":{"type":"string","title":"Forward Proxy"},"signing_enabled":{"type":"boolean","title":"Signing Enabled","description":"False: devices keep the configuration they enrolled with"},"revisions":{"items":{"$ref":"#/components/schemas/AgentPolicyRevisionOut"},"type":"array","title":"Revisions","description":"Newest first, at most 20"}},"type":"object","required":["revision","settings","hosts","forward_proxy","signing_enabled","revisions"],"title":"AgentPolicyOut"},"AgentPolicyRevisionOut":{"properties":{"revision":{"type":"integer","title":"Revision"},"settings":{"$ref":"#/components/schemas/AgentPolicySettings"},"rolled_back_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rolled Back From"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["revision","settings","rolled_back_from","created_by_email","created_at"],"title":"AgentPolicyRevisionOut"},"AgentPolicyRollback":{"properties":{"revision":{"type":"integer","minimum":1.0,"title":"Revision","description":"The earlier revision whose settings to publish again"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"AgentPolicyRollback"},"AgentPolicySettings":{"properties":{"fail_mode":{"type":"string","enum":["closed","open"],"title":"Fail Mode","default":"closed"},"notifications":{"$ref":"#/components/schemas/AgentNotifications"},"allow_pause":{"type":"boolean","title":"Allow Pause","default":false},"pause_minutes":{"type":"integer","maximum":240.0,"minimum":5.0,"title":"Pause Minutes","default":60},"anti_tamper":{"type":"boolean","title":"Anti Tamper","default":true},"trusted_networks":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Trusted Networks"},"update_ring":{"type":"string","enum":["stable","beta","canary"],"title":"Update Ring","default":"stable"},"developer_tools":{"type":"boolean","title":"Developer Tools","default":false},"report_issue":{"type":"boolean","title":"Report Issue","default":true},"support_contact":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Support Contact"},"require_sign_in":{"type":"boolean","title":"Require Sign In","default":false},"trusted_network_action":{"type":"string","enum":["direct","steer"],"title":"Trusted Network Action","default":"direct"},"captive_portal_pause_minutes":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Captive Portal Pause Minutes","default":0},"language":{"type":"string","enum":["auto","en","de","fr","sq"],"title":"Language","default":"auto"},"org_display_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Org Display Name"},"help_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Help Url"},"coding_agent_hooks":{"$ref":"#/components/schemas/CodingAgentHooks"}},"additionalProperties":false,"type":"object","title":"AgentPolicySettings","description":"What a manager chooses. Hosts and the forward-proxy URL aren't here: the platform derives\nthem, so a device can never be steered somewhere the proxy doesn't inspect."},"AgentReleaseOut":{"properties":{"version":{"type":"string","title":"Version"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"platforms":{"items":{"type":"string"},"type":"array","title":"Platforms"}},"type":"object","required":["version","notes","created_at","platforms"],"title":"AgentReleaseOut"},"AgentRingOut":{"properties":{"ring":{"type":"string","enum":["canary","beta","stable"],"title":"Ring"},"policy_default":{"type":"boolean","title":"Policy Default"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"},"paused_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paused Reason"},"percent":{"type":"integer","title":"Percent","default":0},"devices":{"type":"integer","title":"Devices","default":0},"updated":{"type":"integer","title":"Updated","default":0},"unhealthy":{"type":"integer","title":"Unhealthy","default":0}},"type":"object","required":["ring","policy_default"],"title":"AgentRingOut"},"AgentRolloutStart":{"properties":{"version":{"type":"string","maxLength":32,"minLength":1,"title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"AgentRolloutStart"},"AgentRolloutsOut":{"properties":{"rings":{"items":{"$ref":"#/components/schemas/AgentRingOut"},"type":"array","title":"Rings"},"releases":{"items":{"$ref":"#/components/schemas/AgentReleaseOut"},"type":"array","title":"Releases"},"schedule":{"items":{"type":"integer"},"type":"array","title":"Schedule","description":"Percent offered on day 0, 1, ... of a rollout"}},"type":"object","required":["rings","releases","schedule"],"title":"AgentRolloutsOut"},"AiAppAccessOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"category":{"type":"string","title":"Category"},"inspected":{"type":"boolean","title":"Inspected"},"hosts":{"items":{"type":"string"},"type":"array","title":"Hosts"},"status":{"type":"string","enum":["unreviewed","approved","tolerated","blocked"],"title":"Status"},"blocked":{"type":"boolean","title":"Blocked"},"alternative_app_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternative App Key"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"updated_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Email"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"pending_change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pending Change Id"}},"type":"object","required":["key","name","vendor","category","inspected","hosts","status","blocked","alternative_app_key","note","updated_by_email","updated_at","pending_change_id"],"title":"AiAppAccessOut","description":"One catalogue app and the organization's status for it. `blocked` is whether\nforward-proxy refuses it now (a blocked app, or an unreviewed one while unreviewed apps are\nblocked); `pending_change_id` names a waiting proposal that would loosen it."},"AiAppAccessSettings":{"properties":{"unreviewed":{"type":"string","enum":["allow","block"],"title":"Unreviewed"},"pending_unreviewed_change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pending Unreviewed Change Id"},"apps":{"items":{"$ref":"#/components/schemas/AiAppAccessOut"},"type":"array","title":"Apps"}},"type":"object","required":["unreviewed","pending_unreviewed_change_id","apps"],"title":"AiAppAccessSettings","description":"`GET .../ai-app-access`: every catalogue app with the organization's status, and whether\nunreviewed apps are allowed."},"AiAppAccessUpdateOut":{"properties":{"unreviewed":{"type":"string","enum":["allow","block"],"title":"Unreviewed"},"applied":{"items":{"$ref":"#/components/schemas/AiAppAccessOut"},"type":"array","title":"Applied"},"proposed":{"items":{"$ref":"#/components/schemas/AiAppPolicyChangeOut"},"type":"array","title":"Proposed"}},"type":"object","required":["unreviewed","applied","proposed"],"title":"AiAppAccessUpdateOut","description":"What a change did: the apps whose status applied at once (`applied`, as they are now) and\nthe proposals made for the ones it would let through (`proposed`), plus the setting."},"AiAppPolicyBulkUpdate":{"properties":{"status":{"type":"string","enum":["unreviewed","approved","tolerated","blocked"],"title":"Status"},"alternative_app_key":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Alternative App Key"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"app_keys":{"items":{"type":"string"},"type":"array","maxItems":400,"minItems":1,"title":"App Keys"}},"additionalProperties":false,"type":"object","required":["status","app_keys"],"title":"AiAppPolicyBulkUpdate","description":"`POST .../ai-app-access/apps/bulk`: one status for several apps at once."},"AiAppPolicyChangeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["app","unreviewed"],"title":"Kind"},"app_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Key"},"app_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Name"},"status":{"type":"string","enum":["pending","approved","rejected"],"title":"Status"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"before":{"additionalProperties":true,"type":"object","title":"Before"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","app_key","app_name","status","payload","before","note","proposed_by_email","decided_by_email","decided_at","decision_note","created_at"],"title":"AiAppPolicyChangeOut","description":"A change loosening AI app access, waiting for (or decided by) a second manager. `kind`\n`app` changes one app (`app_key`, `app_name`); `unreviewed` the unreviewed-apps setting.\n`payload` is what it applies, `before` what was in force when it was proposed."},"AiAppPolicyUpdate":{"properties":{"status":{"type":"string","enum":["unreviewed","approved","tolerated","blocked"],"title":"Status"},"alternative_app_key":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Alternative App Key"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["status"],"title":"AiAppPolicyUpdate","description":"`PUT .../ai-app-access/apps/{key}`: the app's status. `alternative_app_key` and `note` are\nchanged only when sent (null clears them)."},"ApiKeyAttentionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"environment":{"type":"string","title":"Environment"},"prefix":{"type":"string","title":"Prefix"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"state":{"type":"string","enum":["expiring","expired"],"title":"State"},"days_left":{"type":"integer","title":"Days Left"}},"type":"object","required":["id","name","environment","prefix","expires_at","state","days_left"],"title":"ApiKeyAttentionOut","description":"A key on the console's \"needs attention\" feed."},"ApiKeyCreate":{"properties":{"environment":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"},"new_environment":{"anyOf":[{"$ref":"#/components/schemas/NewApiKeyEnvironment"},{"type":"null"}]},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"purpose":{"$ref":"#/components/schemas/ApiKeyPurpose","default":"gateway"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"},"rehydrate_responses":{"type":"boolean","title":"Rehydrate Responses","default":false}},"type":"object","required":["name"],"title":"ApiKeyCreate"},"ApiKeyCreated":{"properties":{"api_key":{"$ref":"#/components/schemas/ApiKeyOut"},"secret":{"type":"string","title":"Secret","description":"Shown only once"}},"type":"object","required":["api_key","secret"],"title":"ApiKeyCreated"},"ApiKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"environment":{"type":"string","title":"Environment"},"purpose":{"$ref":"#/components/schemas/ApiKeyPurpose"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"rehydrate_responses":{"type":"boolean","title":"Rehydrate Responses","default":false},"temporary":{"type":"boolean","title":"Temporary","default":false},"device_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Id"},"device_user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device User Email"},"can_manage":{"type":"boolean","title":"Can Manage","default":false},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"review_flagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Review Flagged At"},"replaces_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Replaces Key Id"},"replaced_by_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Replaced By Key Id"},"replaced_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced By Name"},"api_client_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Client Id"}},"type":"object","required":["id","name","environment","purpose","prefix","created_at","created_by_email","revoked_at"],"title":"ApiKeyOut"},"ApiKeyPurpose":{"type":"string","enum":["gateway","redaction","edm"],"title":"ApiKeyPurpose","description":"What an API key is allowed to do. `GATEWAY` keys forward AI-provider traffic (gateway/\nproxy mode) and may also call the direct masking endpoints, since masking already happens\non their traffic as a side effect. `REDACTION` keys are for direct SDK callers - text\nmask/unmask only - and are rejected on every provider-forwarding route, so a leaked\nredaction key can never be used to spend AI-provider budget."},"ApiKeyRotated":{"properties":{"api_key":{"$ref":"#/components/schemas/ApiKeyOut"},"secret":{"type":"string","title":"Secret","description":"Shown only once"},"replaced":{"$ref":"#/components/schemas/ApiKeyOut"}},"type":"object","required":["api_key","secret","replaced"],"title":"ApiKeyRotated","description":"The replacement (`api_key`, its secret shown once) and the replaced key, now in its grace."},"ApiKeyUpdate":{"properties":{"rehydrate_responses":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rehydrate Responses"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"}},"additionalProperties":false,"type":"object","title":"ApiKeyUpdate","description":"The settings of an existing key that may change: re-hydration, and its expiry - extended in\nplace, the secret unchanged. A field left out stays as it is; `expires_in_days: null` asks for\nno expiry, which only a policy without a maximum age allows."},"ApprovalInbox":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApprovalInboxItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"counts":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["masking","ai_apps","mcp","group_exceptions"]},"type":"object","title":"Counts"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","counts","limit","offset"],"title":"ApprovalInbox"},"ApprovalInboxItem":{"properties":{"kind":{"type":"string","enum":["masking_change","masking_change_set","ai_app_change","mcp_access_change","mcp_access_request","policy_override_change"],"title":"Kind"},"id":{"type":"string","format":"uuid","title":"Id"},"area":{"type":"string","enum":["masking","ai_apps","mcp","group_exceptions"],"title":"Area"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"proposed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"proposed_by_type":{"anyOf":[{"type":"string","enum":["user","api_client","device","api_key","system"]},{"type":"null"}],"title":"Proposed By Type"},"proposed_by_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Label"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"weakens":{"type":"boolean","title":"Weakens"},"link":{"type":"string","title":"Link"},"approve_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approve Path"},"reject_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Path"},"first_approved_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Approved By Email"},"change_count":{"type":"integer","title":"Change Count","default":1}},"type":"object","required":["kind","id","area","environment","title","status","created_at","proposed_by","proposed_by_email","weakens","link","approve_path","reject_path"],"title":"ApprovalInboxItem"},"AuditEventOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"actor_id":{"type":"string","title":"Actor Id"},"actor_type":{"type":"string","enum":["user","api_client","device","api_key","system"],"title":"Actor Type"},"actor_label":{"type":"string","title":"Actor Label"},"action":{"type":"string","title":"Action"},"target_type":{"type":"string","title":"Target Type"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"details":{"additionalProperties":true,"type":"object","title":"Details"},"target_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Name"},"summary":{"type":"string","title":"Summary","default":""}},"type":"object","required":["id","created_at","actor_email","actor_id","actor_type","actor_label","action","target_type","target_id","details"],"title":"AuditEventOut"},"BrowserAccountsAppOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"corporate_accounts":{"items":{"$ref":"#/components/schemas/CorporateAccountOut"},"type":"array","title":"Corporate Accounts"},"personal":{"type":"string","enum":["allow","block","strict","warn"],"title":"Personal","default":"allow"},"unknown":{"type":"string","enum":["allow","block","strict","warn"],"title":"Unknown","default":"allow"}},"type":"object","required":["key","name","corporate_accounts"],"title":"BrowserAccountsAppOut","description":"MF-272: one app's account policy - corporate accounts, and what happens to personal and\nunknown ones (a request naming no account)."},"BrowserAccountsSettings":{"properties":{"apps":{"items":{"$ref":"#/components/schemas/BrowserAccountsAppOut"},"type":"array","title":"Apps"}},"type":"object","required":["apps"],"title":"BrowserAccountsSettings","description":"`GET .../browser-dlp/accounts`: every browser AI app whose requests name the account they\nare made with."},"BrowserAccountsUpdate":{"properties":{"corporate_accounts":{"items":{"$ref":"#/components/schemas/CorporateAccountIn"},"type":"array","maxItems":100,"title":"Corporate Accounts"},"personal":{"type":"string","enum":["allow","block","strict","warn"],"title":"Personal","default":"allow"},"unknown":{"type":"string","enum":["allow","block","strict","warn"],"title":"Unknown","default":"allow"}},"additionalProperties":false,"type":"object","title":"BrowserAccountsUpdate","description":"`PUT .../browser-dlp/apps/{key}/accounts`: the app's whole account policy."},"BrowserDlpAppOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"hosts":{"items":{"type":"string"},"type":"array","title":"Hosts"},"uninspected_websocket":{"type":"string","enum":["allow","block"],"title":"Uninspected Websocket","default":"allow"}},"type":"object","required":["key","name","enabled"],"title":"BrowserDlpAppOut"},"BrowserDlpAppUpdate":{"properties":{"uninspected_websocket":{"type":"string","enum":["allow","block"],"title":"Uninspected Websocket"}},"additionalProperties":false,"type":"object","required":["uninspected_websocket"],"title":"BrowserDlpAppUpdate","description":"`PUT .../browser-dlp/apps/{key}`: one app's own settings."},"BrowserDlpSettings":{"properties":{"apps":{"items":{"$ref":"#/components/schemas/BrowserDlpAppOut"},"type":"array","title":"Apps"},"default":{"type":"boolean","title":"Default"},"available":{"type":"boolean","title":"Available","default":true},"unavailable_reason":{"anyOf":[{"type":"string","enum":["deployment_disabled","module_disabled"]},{"type":"null"}],"title":"Unavailable Reason"},"response_inspection":{"type":"string","enum":["off","alert"],"title":"Response Inspection","default":"alert"}},"type":"object","required":["apps","default"],"title":"BrowserDlpSettings","description":"`GET .../browser-dlp` (MF-34): every browser AI app forward-proxy has an adapter for, and\nwhether this organization inspects it. `default` is true while the organization never chose\n(every app is inspected, including ones added later)."},"BrowserDlpSettingsUpdate":{"properties":{"enabled":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Enabled"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"BrowserDlpSettingsUpdate","description":"`PUT .../browser-dlp`: exactly the apps to inspect. Once chosen, apps added to the catalog\nlater stay off until enabled."},"BrowserResponseInspectionUpdate":{"properties":{"mode":{"type":"string","enum":["off","alert"],"title":"Mode"}},"additionalProperties":false,"type":"object","required":["mode"],"title":"BrowserResponseInspectionUpdate","description":"`PUT .../browser-dlp/response-inspection`."},"CodingAgentHooks":{"properties":{"mode":{"type":"string","enum":["off","monitor","enforce"],"title":"Mode","default":"off"},"tools":{"items":{"type":"string","enum":["claude_code","codex","cursor","copilot"]},"type":"array","maxItems":4,"title":"Tools"}},"additionalProperties":false,"type":"object","title":"CodingAgentHooks","description":"MF-269: hooks the agent writes into each local user's coding agents (Claude Code's\n`settings.json`, Codex's and Cursor's `hooks.json`, GitHub Copilot's `hooks/maskflare.json`)\nand keeps there. `monitor` counts what the hooks see and changes nothing; `enforce` masks tool\ninputs and outputs and blocks prompts with the organization's rules; `off` removes the agent's\nentries again."},"ComplianceCoverageItemOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","enum":["covered","partial","not_covered","out_of_scope"],"title":"Status"},"note":{"type":"string","title":"Note"},"planned":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planned"},"rules":{"items":{"$ref":"#/components/schemas/ComplianceCoverageRuleOut"},"type":"array","title":"Rules"}},"type":"object","required":["id","label","status","note","planned","rules"],"title":"ComplianceCoverageItemOut"},"ComplianceCoverageOut":{"properties":{"regulation":{"type":"string","title":"Regulation"},"label":{"type":"string","title":"Label"},"reference":{"type":"string","title":"Reference"},"environment":{"type":"string","title":"Environment"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"},"summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Summary"},"items":{"items":{"$ref":"#/components/schemas/ComplianceCoverageItemOut"},"type":"array","title":"Items"}},"type":"object","required":["regulation","label","reference","environment","generated_at","profile","summary","items"],"title":"ComplianceCoverageOut","description":"MF-176: which of a regulation's identifiers an environment's masking policy covers, from\nthe same preset rule set (mode included) the traffic context ships."},"ComplianceCoverageRuleOut":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"pack":{"type":"string","title":"Pack"},"enabled":{"type":"boolean","title":"Enabled"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"shadow":{"type":"boolean","title":"Shadow"}},"type":"object","required":["key","label","pack","enabled","action","shadow"],"title":"ComplianceCoverageRuleOut"},"CorporateAccountIn":{"properties":{"account_id":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Account Id"},"hash":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Hash"},"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Label"}},"additionalProperties":false,"type":"object","title":"CorporateAccountIn","description":"A corporate account: the id as the app shows it (a ChatGPT workspace id, a Claude\norganization UUID) - hashed on save and never kept - or a hash from the ledger's seen\naccounts. Exactly one of them."},"CorporateAccountOut":{"properties":{"hash":{"type":"string","title":"Hash"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["hash"],"title":"CorporateAccountOut","description":"One of the organization's own accounts in an app: its hash (never the id) and label."},"CredentialMode":{"type":"string","enum":["stored","passthrough"],"title":"CredentialMode"},"CredentialPolicy":{"properties":{"api_key_max_age_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Api Key Max Age Days"},"rotation_grace_hours":{"type":"integer","maximum":720.0,"minimum":0.0,"title":"Rotation Grace Hours","default":168},"expiry_notice_days":{"items":{"type":"integer"},"type":"array","maxItems":3,"title":"Expiry Notice Days"}},"additionalProperties":false,"type":"object","title":"CredentialPolicy"},"DeploymentCapabilitiesOut":{"properties":{"capabilities":{"items":{"$ref":"#/components/schemas/DeploymentCapabilityOut"},"type":"array","title":"Capabilities"}},"type":"object","required":["capabilities"],"title":"DeploymentCapabilitiesOut"},"DeploymentCapabilityOut":{"properties":{"key":{"type":"string","enum":["browser_dlp","edm","detonation","image_ocr","email","billing","detector_authoring"],"title":"Key"},"enabled":{"type":"boolean","title":"Enabled"},"setting":{"type":"string","title":"Setting"}},"type":"object","required":["key","enabled","setting"],"title":"DeploymentCapabilityOut","description":"One feature the deployment's operator switches on or off - read-only for organizations."},"DetectorDiff":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"pack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack"},"source":{"$ref":"#/components/schemas/DetectorSide"},"target":{"$ref":"#/components/schemas/DetectorSide"},"change":{"type":"string","enum":["tightens","waits"],"title":"Change"},"pending":{"type":"boolean","title":"Pending","default":false}},"type":"object","required":["key","label","pack","source","target","change"],"title":"DetectorDiff"},"DetectorSide":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"action":{"type":"string","title":"Action"},"action_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Params"},"mode":{"type":"string","title":"Mode"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options"}},"type":"object","required":["enabled","action","mode"],"title":"DetectorSide"},"DeviceDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"hostname":{"type":"string","title":"Hostname"},"os":{"$ref":"#/components/schemas/DeviceOs"},"agent_version":{"type":"string","title":"Agent Version"},"environment":{"type":"string","title":"Environment"},"key_prefix":{"type":"string","title":"Key Prefix"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"state":{"type":"string","enum":["protected","unprotected","stale","revoked","paused"],"title":"State"},"protection_issues":{"items":{"type":"string"},"type":"array","title":"Protection Issues"},"system_proxy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Proxy"},"ca_trusted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ca Trusted"},"forward_proxy_reachable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Forward Proxy Reachable"},"fail_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fail Mode"},"tamper_events":{"type":"integer","title":"Tamper Events"},"policy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Version"},"policy_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Error"},"policy_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Policy Error At"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"owner_inactive_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Owner Inactive At"},"inactive_owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inactive Owner Email"},"owner_person_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Person Id"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"candidate_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate User"},"suggested_owner":{"anyOf":[{"$ref":"#/components/schemas/SuggestedOwnerOut"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"mdm_device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mdm Device Id"},"paused_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused Until"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"remote_pause_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Remote Pause Until"},"remote_pause_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Pause By"},"remote_pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Pause Reason"},"last_tamper_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Tamper At"},"last_tamper_types":{"items":{"type":"string"},"type":"array","title":"Last Tamper Types","default":[]},"posture":{"anyOf":[{"$ref":"#/components/schemas/DevicePosture"},{"type":"null"}]},"posture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posture At"},"coding_agent_hooks":{"anyOf":[{"additionalProperties":{"type":"string","enum":["off","installed","partial","failed","none"]},"propertyNames":{"enum":["claude_code","codex","cursor","copilot"]},"type":"object"},{"type":"null"}],"title":"Coding Agent Hooks"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Name"},"group_reason":{"anyOf":[{"type":"string","enum":["manual","enrollment_token","directory_group","mdm_tag"]},{"type":"null"}],"title":"Group Reason"},"update_ring_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Ring Override"},"enrollment_source":{"type":"string","enum":["token","self_service"],"title":"Enrollment Source","default":"token"},"update_ring":{"type":"string","title":"Update Ring"},"enrolled_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrolled By Email"}},"type":"object","required":["id","hostname","os","agent_version","environment","key_prefix","enrolled_at","last_seen_at","revoked_at","state","protection_issues","system_proxy","ca_trusted","forward_proxy_reachable","fail_mode","tamper_events","update_ring"],"title":"DeviceDetailOut","description":"One device for the console's device drawer (MF-140)."},"DeviceGroupIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"mdm_tag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Mdm Tag"},"directory_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Directory Group Id"},"overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Overrides"}},"additionalProperties":false,"type":"object","required":["name"],"title":"DeviceGroupIn","description":"MF-151: a device group. `overrides` are the agent policy settings it changes."},"DeviceGroupOrder":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"title":"Ids"}},"additionalProperties":false,"type":"object","required":["ids"],"title":"DeviceGroupOrder"},"DeviceGroupOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"mdm_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mdm Tag"},"directory_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Directory Group Id"},"directory_group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Directory Group Name"},"position":{"type":"integer","title":"Position"},"overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Overrides"},"devices":{"type":"integer","title":"Devices","description":"Devices in the group: put there, by directory rule or by MDM tag"}},"type":"object","required":["id","name","mdm_tag","position","overrides","devices"],"title":"DeviceGroupOut"},"DeviceLifecycle":{"properties":{"inactive_days":{"anyOf":[{"type":"integer","maximum":180.0,"minimum":30.0},{"type":"null"}],"title":"Inactive Days"},"purge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Purge Days"},"device_limit_per_user":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Device Limit Per User"}},"additionalProperties":false,"type":"object","title":"DeviceLifecycle","description":"The organization's device lifecycle (MF-140); every setting null - off - by default."},"DeviceLifecycleOut":{"properties":{"inactive_days":{"anyOf":[{"type":"integer","maximum":180.0,"minimum":30.0},{"type":"null"}],"title":"Inactive Days"},"purge_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Purge Days"},"device_limit_per_user":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Device Limit Per User"},"default_device_limit_per_user":{"type":"integer","title":"Default Device Limit Per User"}},"additionalProperties":false,"type":"object","required":["default_device_limit_per_user"],"title":"DeviceLifecycleOut"},"DeviceOs":{"type":"string","enum":["macos","windows","linux"],"title":"DeviceOs"},"DeviceOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"hostname":{"type":"string","title":"Hostname"},"os":{"$ref":"#/components/schemas/DeviceOs"},"agent_version":{"type":"string","title":"Agent Version"},"environment":{"type":"string","title":"Environment"},"key_prefix":{"type":"string","title":"Key Prefix"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"state":{"type":"string","enum":["protected","unprotected","stale","revoked","paused"],"title":"State"},"protection_issues":{"items":{"type":"string"},"type":"array","title":"Protection Issues"},"system_proxy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Proxy"},"ca_trusted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ca Trusted"},"forward_proxy_reachable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Forward Proxy Reachable"},"fail_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fail Mode"},"tamper_events":{"type":"integer","title":"Tamper Events"},"policy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Version"},"policy_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Error"},"policy_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Policy Error At"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"owner_inactive_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Owner Inactive At"},"inactive_owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inactive Owner Email"},"owner_person_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Person Id"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"candidate_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate User"},"suggested_owner":{"anyOf":[{"$ref":"#/components/schemas/SuggestedOwnerOut"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"mdm_device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mdm Device Id"},"paused_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused Until"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"remote_pause_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Remote Pause Until"},"remote_pause_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Pause By"},"remote_pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Pause Reason"},"last_tamper_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Tamper At"},"last_tamper_types":{"items":{"type":"string"},"type":"array","title":"Last Tamper Types","default":[]},"posture":{"anyOf":[{"$ref":"#/components/schemas/DevicePosture"},{"type":"null"}]},"posture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posture At"},"coding_agent_hooks":{"anyOf":[{"additionalProperties":{"type":"string","enum":["off","installed","partial","failed","none"]},"propertyNames":{"enum":["claude_code","codex","cursor","copilot"]},"type":"object"},{"type":"null"}],"title":"Coding Agent Hooks"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Name"},"group_reason":{"anyOf":[{"type":"string","enum":["manual","enrollment_token","directory_group","mdm_tag"]},{"type":"null"}],"title":"Group Reason"},"update_ring_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Ring Override"},"enrollment_source":{"type":"string","enum":["token","self_service"],"title":"Enrollment Source","default":"token"}},"type":"object","required":["id","hostname","os","agent_version","environment","key_prefix","enrolled_at","last_seen_at","revoked_at","state","protection_issues","system_proxy","ca_trusted","forward_proxy_reachable","fail_mode","tamper_events"],"title":"DeviceOut"},"DevicePosture":{"properties":{"os_version":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[ -~]*$"},{"type":"null"}],"title":"Os Version"},"disk_encrypted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disk Encrypted"},"firewall_on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Firewall On"},"mdm_managed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mdm Managed"},"screen_lock":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Screen Lock"},"edr":{"anyOf":[{"items":{"type":"string","maxLength":40,"pattern":"^[ -~]*$"},"type":"array","maxItems":10},{"type":"null"}],"title":"Edr"}},"type":"object","title":"DevicePosture","description":"MF-149: the device's security posture - product facts only, never personal data. None is\n\"couldn't tell\" (not supported on the OS, or the check failed)."},"DeviceRemotePause":{"properties":{"minutes":{"type":"integer","maximum":10080.0,"minimum":5.0,"title":"Minutes"},"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["minutes"],"title":"DeviceRemotePause","description":"An administrator pauses protection on one device from the console: how long (5 minutes to\n7 days) and, optionally, why - shown to the device's user."},"DeviceSelfEnrollmentOut":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"environment":{"type":"string","title":"Environment"},"allowed_domains":{"items":{"type":"string"},"type":"array","title":"Allowed Domains","default":[]}},"type":"object","required":["enabled","environment"],"title":"DeviceSelfEnrollmentOut"},"DeviceSelfEnrollmentUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"environment":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"},"allowed_domains":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Allowed Domains"}},"type":"object","required":["enabled"],"title":"DeviceSelfEnrollmentUpdate"},"DeviceState":{"type":"string","enum":["protected","unprotected","stale","revoked","paused"],"title":"DeviceState"},"DeviceTimelineEntry":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"kind":{"type":"string","enum":["event","report"],"title":"Kind"},"summary":{"type":"string","title":"Summary"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Report Id"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"}},"type":"object","required":["at","kind","summary"],"title":"DeviceTimelineEntry","description":"One thing that happened to a device: an audit event naming it (enrolled, tampering\nrepaired, policy refused, diagnostics, revoked, ...) or a support report sent from it."},"DeviceUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Display Name"},"owner_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Owner Email"},"update_ring":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Ring"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"}},"additionalProperties":false,"type":"object","title":"DeviceUpdate","description":"Rename a device or assign it to a member (MF-140). A field left out is unchanged; an\nempty or null `display_name` goes back to the hostname, an empty or null `owner_email`\nunassigns the device."},"EdmAllowlistTarget":{"properties":{"rule_key":{"type":"string","title":"Rule Key"},"dataset":{"type":"string","title":"Dataset"},"field":{"type":"string","title":"Field"},"label":{"type":"string","title":"Label"}},"type":"object","required":["rule_key","dataset","field","label"],"title":"EdmAllowlistTarget","description":"A field of an organization's active EDM datasets that allowlist entries can target."},"EffectiveAccountsOut":{"properties":{"app":{"type":"string","title":"App"},"personal":{"type":"string","title":"Personal"},"unknown":{"type":"string","title":"Unknown"},"source":{"type":"string","enum":["environment","override"],"title":"Source"}},"type":"object","required":["app","personal","unknown","source"],"title":"EffectiveAccountsOut"},"EffectiveAppOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"blocked":{"type":"boolean","title":"Blocked"},"source":{"type":"string","enum":["environment","override"],"title":"Source"}},"type":"object","required":["key","name","status","blocked","source"],"title":"EffectiveAppOut"},"EffectiveIdentityOut":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"device_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Id"},"device_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Group"},"directory_groups":{"items":{"type":"string"},"type":"array","title":"Directory Groups"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"}},"type":"object","required":["email","device_id","device_group","directory_groups","department"],"title":"EffectiveIdentityOut"},"EffectivePolicyOut":{"properties":{"environment":{"type":"string","title":"Environment"},"identity":{"$ref":"#/components/schemas/EffectiveIdentityOut"},"policy_scope":{"anyOf":[{"$ref":"#/components/schemas/PolicyScope"},{"type":"null"}]},"rules":{"items":{"$ref":"#/components/schemas/EffectiveRuleOut"},"type":"array","title":"Rules"},"apps":{"items":{"$ref":"#/components/schemas/EffectiveAppOut"},"type":"array","title":"Apps"},"accounts":{"items":{"$ref":"#/components/schemas/EffectiveAccountsOut"},"type":"array","title":"Accounts"}},"type":"object","required":["environment","identity","policy_scope","rules","apps","accounts"],"title":"EffectivePolicyOut","description":"The policy simulator: the override a user or device falls under and what it makes of the\nenvironment's rules, AI apps and account policy. Rules listed are those on, and those an\noverride turned off; apps those with a status other than unreviewed or set by the override."},"EffectiveRuleOut":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"category":{"type":"string","title":"Category"},"pack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"source":{"type":"string","enum":["environment","override"],"title":"Source"}},"type":"object","required":["key","label","category","pack","action","source"],"title":"EffectiveRuleOut"},"EndUserMessageSettings":{"properties":{"ai_policy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Ai Policy Url"},"support_contact":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Support Contact"},"block_message":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Block Message"},"mask_message":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Mask Message"},"approved_alternative_text":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Approved Alternative Text"},"language":{"type":"string","enum":["auto","en","de","fr","it","sq"],"title":"Language","default":"auto"}},"additionalProperties":false,"type":"object","title":"EndUserMessageSettings","description":"What a manager sets. Empty fields fall back to the defaults."},"EndUserMessagesOut":{"properties":{"ai_policy_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Ai Policy Url"},"support_contact":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Support Contact"},"block_message":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Block Message"},"mask_message":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Mask Message"},"approved_alternative_text":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Approved Alternative Text"},"language":{"type":"string","enum":["auto","en","de","fr","it","sq"],"title":"Language","default":"auto"},"org_name":{"type":"string","title":"Org Name"},"default_block_messages":{"additionalProperties":{"type":"string"},"type":"object","title":"Default Block Messages"},"default_mask_messages":{"additionalProperties":{"type":"string"},"type":"object","title":"Default Mask Messages"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages"}},"additionalProperties":false,"type":"object","required":["org_name"],"title":"EndUserMessagesOut"},"EnrollmentTokenCreate":{"properties":{"environment":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},{"type":"null"}],"title":"Environment"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"expires_in_hours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Expires In Hours","default":168},"max_uses":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Max Uses"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},"type":"object","required":["name"],"title":"EnrollmentTokenCreate"},"EnrollmentTokenCreated":{"properties":{"enrollment_token":{"$ref":"#/components/schemas/EnrollmentTokenOut"},"secret":{"type":"string","title":"Secret","description":"Shown only once"}},"type":"object","required":["enrollment_token","secret"],"title":"EnrollmentTokenCreated"},"EnrollmentTokenOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"environment":{"type":"string","title":"Environment"},"prefix":{"type":"string","title":"Prefix"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"uses":{"type":"integer","title":"Uses"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},"type":"object","required":["id","name","environment","prefix","expires_at","max_uses","uses","created_at","created_by_email","revoked_at"],"title":"EnrollmentTokenOut"},"EnvironmentMaskingProfilesOut":{"properties":{"applied":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Applied"},"modified":{"type":"boolean","title":"Modified"},"upgrade":{"anyOf":[{"$ref":"#/components/schemas/MaskingProfileUpgradeOut"},{"type":"null"}]},"profiles":{"items":{"$ref":"#/components/schemas/MaskingProfileStatusOut"},"type":"array","title":"Profiles"}},"type":"object","required":["applied","modified","profiles"],"title":"EnvironmentMaskingProfilesOut","description":"Per environment: the profile it was last brought up to (null for none), whether it still\nmeets it (`modified` when a rule it requires was turned off or weakened since), the upgrade to\nthat profile's current version when it was applied at an older one, and every profile's\nstatus."},"EnvironmentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"is_production":{"type":"boolean","title":"Is Production"},"requests_per_minute":{"type":"integer","title":"Requests Per Minute"},"max_request_bytes":{"type":"integer","title":"Max Request Bytes"}},"type":"object","required":["id","key","name","kind","is_production","requests_per_minute","max_request_bytes"],"title":"EnvironmentOut"},"EnvironmentRulesUpdate":{"properties":{"requests_per_minute":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Requests Per Minute"},"max_request_bytes":{"type":"integer","maximum":52428800.0,"minimum":1024.0,"title":"Max Request Bytes"}},"type":"object","required":["requests_per_minute","max_request_bytes"],"title":"EnvironmentRulesUpdate"},"GroupOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["directory","scim","device"],"title":"Kind"},"name":{"type":"string","title":"Name"},"members":{"type":"integer","title":"Members"},"directory_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Directory Group Id"},"mdm_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mdm Tag"},"targeted_by":{"items":{"$ref":"#/components/schemas/GroupTargetOut"},"type":"array","title":"Targeted By"}},"type":"object","required":["id","kind","name","members","targeted_by"],"title":"GroupOut"},"GroupTargetOut":{"properties":{"kind":{"type":"string","enum":["override","agent_settings","device_group"],"title":"Kind"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"}},"type":"object","required":["kind","id","name"],"title":"GroupTargetOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentifierGroupLintOut":{"properties":{"group":{"type":"string","title":"Group"},"label":{"type":"string","title":"Label"},"rules":{"items":{"$ref":"#/components/schemas/IdentifierGroupRuleOut"},"type":"array","title":"Rules"}},"type":"object","required":["group","label","rules"],"title":"IdentifierGroupLintOut","description":"MF-201: sibling detectors of one identifier whose enabled members disagree."},"IdentifierGroupRuleOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"action":{"type":"string","title":"Action"},"action_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Params"},"mode":{"type":"string","enum":["enforce","shadow"],"title":"Mode"}},"type":"object","required":["id","key","label","action","mode"],"title":"IdentifierGroupRuleOut","description":"One enabled member of an identifier group, as it handles a match."},"MaskingAllowlistEntry":{"properties":{"kind":{"type":"string","enum":["exact","pattern"],"title":"Kind"},"value":{"type":"string","maxLength":2000,"title":"Value"}},"type":"object","required":["kind","value"],"title":"MaskingAllowlistEntry","description":"MF-18: one allowlist entry - an `exact` value or a full-match RE2 `pattern` (see\n`maskflare_core.context.AllowlistEntry`). The length bound only caps the request size;\n`masking_catalog.clean_allowlist` enforces the real limits with a clear problem."},"MaskingAllowlistOut":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/MaskingEnvironmentAllowlistEntry"},"type":"array","title":"Entries"},"pending_change":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeOut"},{"type":"null"}]},"edm_targets":{"items":{"$ref":"#/components/schemas/EdmAllowlistTarget"},"type":"array","title":"Edm Targets","default":[]}},"type":"object","required":["entries"],"title":"MaskingAllowlistOut","description":"MF-18: the environment-wide allowlist as approved, and a proposal awaiting review.\n`edm_targets` are the EDM fields an entry can name now; an entry naming any other key\ntargets a deleted field and applies to nothing."},"MaskingAllowlistUpdate":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/MaskingEnvironmentAllowlistEntry"},"type":"array","maxItems":10000,"title":"Entries"}},"type":"object","required":["entries"],"title":"MaskingAllowlistUpdate","description":"MF-18: proposes the environment-wide allowlist as a whole ([] clears it)."},"MaskingAppliedChangeOut":{"properties":{"kind":{"$ref":"#/components/schemas/MaskingRuleChangeAction"},"target_id":{"type":"string","title":"Target Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"pack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack"},"keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keys"},"before":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"After"}},"type":"object","required":["kind","target_id"],"title":"MaskingAppliedChangeOut","description":"One masking change that only added protection and so applied at once (MF-415), as its audit\nevent records it: there is no `MaskingRuleChange` row behind it."},"MaskingAppliedOut":{"properties":{"environment":{"type":"string","title":"Environment"},"applied":{"items":{"$ref":"#/components/schemas/MaskingAppliedChangeOut"},"type":"array","title":"Applied"},"lint":{"$ref":"#/components/schemas/MaskingPolicyLintOut"}},"type":"object","required":["environment","applied","lint"],"title":"MaskingAppliedOut","description":"What a write that only added protection did: nothing waits for approval."},"MaskingChangeSetCreate":{"properties":{"operations":{"items":{"oneOf":[{"$ref":"#/components/schemas/SetRuleEnabledOperation"},{"$ref":"#/components/schemas/SetPackEnabledOperation"},{"$ref":"#/components/schemas/SetRuleActionOperation"},{"$ref":"#/components/schemas/SetRuleModeOperation"},{"$ref":"#/components/schemas/SetRuleOptionsOperation"}],"discriminator":{"propertyName":"op","mapping":{"set_pack_enabled":"#/components/schemas/SetPackEnabledOperation","set_rule_action":"#/components/schemas/SetRuleActionOperation","set_rule_enabled":"#/components/schemas/SetRuleEnabledOperation","set_rule_mode":"#/components/schemas/SetRuleModeOperation","set_rule_options":"#/components/schemas/SetRuleOptionsOperation"}}},"type":"array","maxItems":200,"title":"Operations"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"change_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"title":"Change Ids"}},"type":"object","title":"MaskingChangeSetCreate"},"MaskingChangeSetDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"status":{"$ref":"#/components/schemas/MaskingRuleChangeStatus"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"change_count":{"type":"integer","title":"Change Count"},"proposed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By"},"proposed_by_type":{"anyOf":[{"type":"string","enum":["user","api_client","device","api_key","system"]},{"type":"null"}],"title":"Proposed By Type"},"proposed_by_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Label"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"},"apply_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Apply After"},"delay_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delay State"},"changes":{"items":{"$ref":"#/components/schemas/MaskingRuleChangeOut"},"type":"array","title":"Changes"},"applied":{"items":{"$ref":"#/components/schemas/MaskingAppliedChangeOut"},"type":"array","title":"Applied"},"applied_lint":{"anyOf":[{"$ref":"#/components/schemas/MaskingPolicyLintOut"},{"type":"null"}]}},"type":"object","required":["id","environment","status","note","proposed_by_email","decided_by_email","decided_at","decision_note","created_at","change_count","changes"],"title":"MaskingChangeSetDetailOut"},"MaskingChangeSetOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"status":{"$ref":"#/components/schemas/MaskingRuleChangeStatus"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"change_count":{"type":"integer","title":"Change Count"},"proposed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By"},"proposed_by_type":{"anyOf":[{"type":"string","enum":["user","api_client","device","api_key","system"]},{"type":"null"}],"title":"Proposed By Type"},"proposed_by_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Label"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"},"apply_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Apply After"},"delay_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delay State"}},"type":"object","required":["id","environment","status","note","proposed_by_email","decided_by_email","decided_at","decision_note","created_at","change_count"],"title":"MaskingChangeSetOut"},"MaskingEnvironmentAllowlistEntry":{"properties":{"kind":{"type":"string","enum":["exact","pattern"],"title":"Kind"},"value":{"type":"string","maxLength":2000,"title":"Value"},"rule_key":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Rule Key"}},"type":"object","required":["kind","value"],"title":"MaskingEnvironmentAllowlistEntry","description":"An environment-wide entry, which may name one Exact Data Match field's `rule_key`: it\nthen applies to that field only - the only way an environment entry suppresses an EDM hit.\nOmitted when null, so an untargeted entry keeps the shape traffic services have always seen."},"MaskingPolicyLintOut":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/IdentifierGroupLintOut"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"MaskingPolicyLintOut"},"MaskingPreviewScope":{"properties":{"shape":{"$ref":"#/components/schemas/Shape"},"scoped":{"type":"boolean","title":"Scoped"},"values":{"items":{"$ref":"#/components/schemas/MaskingPreviewScopedValue"},"type":"array","title":"Values","default":[]},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["shape","scoped"],"title":"MaskingPreviewScope","description":"How the preview read its text as a provider body. `scoped` is false when the text isn't one\nJSON object: traffic scans such a body whole, and so did the preview."},"MaskingPreviewScopedValue":{"properties":{"path":{"type":"string","title":"Path"},"scanned":{"type":"boolean","title":"Scanned"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["path","scanned","reason"],"title":"MaskingPreviewScopedValue","description":"One value of a previewed body: its JSON path, whether masking scans it, and why -\n`content`, `protocol` (a provider default skips it), `unshaped` (a default names it but the\nvalue doesn't look like one, so it is scanned), `excluded` or `included` (the environment's paths)."},"MaskingPreviewSpan":{"properties":{"start":{"type":"integer","title":"Start"},"end":{"type":"integer","title":"End"},"rule_key":{"type":"string","title":"Rule Key"},"rule_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Label"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"action":{"type":"string","title":"Action"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"validator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validator"},"validator_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Validator Passed"},"context_keyword":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Keyword"},"won_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Won By"},"rule_options":{"items":{"type":"string"},"type":"array","title":"Rule Options","default":[]}},"type":"object","required":["start","end","rule_key","action","source","status"],"title":"MaskingPreviewSpan","description":"One regex match of the preview and what became of it (MF-30, `maskflare_core.explain`).\nOffsets only - never the matched text: the caller slices its own input."},"MaskingPreviewVolume":{"properties":{"scope":{"type":"string","enum":["category","rule"],"title":"Scope"},"key":{"type":"string","title":"Key"},"limit":{"type":"integer","title":"Limit"},"observed":{"type":"integer","title":"Observed"},"action":{"type":"string","enum":["block","alert"],"title":"Action"}},"type":"object","required":["scope","key","limit","observed","action"],"title":"MaskingPreviewVolume","description":"A volume threshold the previewed text goes past, with the detections it counted."},"MaskingProfileApplied":{"properties":{"change_set":{"anyOf":[{"$ref":"#/components/schemas/MaskingChangeSetDetailOut"},{"type":"null"}]},"plan":{"$ref":"#/components/schemas/MaskingProfilePlanOut"}},"type":"object","required":["change_set","plan"],"title":"MaskingProfileApplied","description":"`change_set` is the proposed change set, or null when the environment already satisfies the\nprofile (nothing to propose)."},"MaskingProfileApply":{"properties":{"countries":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":40},{"type":"null"}],"title":"Countries"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"MaskingProfileApply"},"MaskingProfileChangeOut":{"properties":{"version":{"type":"integer","title":"Version"},"summary":{"type":"string","title":"Summary"}},"type":"object","required":["version","summary"],"title":"MaskingProfileChangeOut","description":"One version of a profile and what it added, in a line."},"MaskingProfileOut":{"properties":{"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"label":{"type":"string","title":"Label"},"regulation":{"type":"string","title":"Regulation"},"description":{"type":"string","title":"Description"},"packs":{"items":{"type":"string"},"type":"array","title":"Packs"},"rules":{"items":{"$ref":"#/components/schemas/MaskingProfileRuleOut"},"type":"array","title":"Rules"},"country_packs":{"items":{"type":"string"},"type":"array","title":"Country Packs"}},"type":"object","required":["id","version","label","regulation","description","packs","rules","country_packs"],"title":"MaskingProfileOut","description":"A compliance profile (MF-175, core `compliance_profiles`): what it turns on, at least how\nstrictly, and - for GDPR - which country packs it can take."},"MaskingProfilePlanOut":{"properties":{"packs":{"items":{"type":"string"},"type":"array","title":"Packs"},"enable_rules":{"items":{"type":"string"},"type":"array","title":"Enable Rules"},"raise_actions":{"additionalProperties":{"type":"string"},"type":"object","title":"Raise Actions"},"spoken_forms":{"type":"boolean","title":"Spoken Forms","default":false}},"type":"object","required":["packs","enable_rules","raise_actions"],"title":"MaskingProfilePlanOut","description":"What applying a profile to an environment would change; empty lists when it is satisfied."},"MaskingProfileRuleOut":{"properties":{"key":{"type":"string","title":"Key"},"min_action":{"type":"string","title":"Min Action"}},"type":"object","required":["key","min_action"],"title":"MaskingProfileRuleOut"},"MaskingProfileStatusOut":{"properties":{"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"satisfied":{"type":"boolean","title":"Satisfied"},"plan":{"$ref":"#/components/schemas/MaskingProfilePlanOut"}},"type":"object","required":["id","version","satisfied","plan"],"title":"MaskingProfileStatusOut"},"MaskingProfileUpgrade":{"properties":{"countries":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":40},{"type":"null"}],"title":"Countries"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"MaskingProfileUpgrade"},"MaskingProfileUpgradeOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"from_version":{"type":"integer","title":"From Version"},"to_version":{"type":"integer","title":"To Version"},"changes":{"items":{"$ref":"#/components/schemas/MaskingProfileChangeOut"},"type":"array","title":"Changes"},"new_countries":{"items":{"type":"string"},"type":"array","title":"New Countries"},"plan":{"$ref":"#/components/schemas/MaskingProfilePlanOut"}},"type":"object","required":["id","label","from_version","to_version","changes","new_countries","plan"],"title":"MaskingProfileUpgradeOut","description":"A newer version of the environment's applied profile: what each version since added, the\ncountry packs it offers that the applied one didn't, and what proposing the upgrade would\nchange - only those additions, never what the environment changed since it applied it."},"MaskingRuleChangeAction":{"type":"string","enum":["create","update","delete","pack","allowlist","scope","threshold"],"title":"MaskingRuleChangeAction"},"MaskingRuleChangeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"action":{"$ref":"#/components/schemas/MaskingRuleChangeAction"},"masking_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Masking Rule Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"before":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Before"},"status":{"$ref":"#/components/schemas/MaskingRuleChangeStatus"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"proposed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By"},"proposed_by_type":{"anyOf":[{"type":"string","enum":["user","api_client","device","api_key","system"]},{"type":"null"}],"title":"Proposed By Type"},"proposed_by_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Label"},"change_set_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Change Set Id"},"apply_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Apply After"},"delay_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delay State"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"masking_rule_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Masking Rule Key"}},"type":"object","required":["id","action","masking_rule_id","payload","before","status","proposed_by_email","decided_by_email","decided_at","decision_note","created_at"],"title":"MaskingRuleChangeOut"},"MaskingRuleChangeStatus":{"type":"string","enum":["pending","approved","rejected"],"title":"MaskingRuleChangeStatus"},"MaskingRuleCreate":{"properties":{"key":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z0-9_-]+$","title":"Key"},"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label"},"pattern":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Pattern"},"terms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Terms"},"apply_to_request":{"type":"boolean","title":"Apply To Request","default":true},"apply_to_response":{"type":"boolean","title":"Apply To Response","default":true},"validator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validator"},"context":{"items":{"type":"string"},"type":"array","title":"Context","default":[]},"min_entropy":{"anyOf":[{"type":"number","maximum":8.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Min Entropy"},"action":{"type":"string","maxLength":32,"title":"Action","default":"mask"},"action_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Params"},"mode":{"type":"string","enum":["enforce","shadow"],"title":"Mode","default":"enforce"}},"type":"object","required":["key","label"],"title":"MaskingRuleCreate"},"MaskingRuleOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"source":{"$ref":"#/components/schemas/MaskingRuleSource"},"label":{"type":"string","title":"Label"},"pattern":{"type":"string","title":"Pattern"},"apply_to_request":{"type":"boolean","title":"Apply To Request"},"apply_to_response":{"type":"boolean","title":"Apply To Response"},"enabled":{"type":"boolean","title":"Enabled"},"pending_change":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeOut"},{"type":"null"}]},"pack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"validator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validator"},"context":{"items":{"type":"string"},"type":"array","title":"Context","default":[]},"min_entropy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Entropy"},"kind":{"type":"string","enum":["regex","dictionary"],"title":"Kind","default":"regex"},"terms_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Terms Count"},"allowlist":{"items":{"$ref":"#/components/schemas/MaskingAllowlistEntry"},"type":"array","title":"Allowlist","default":[]},"action":{"type":"string","title":"Action","default":"mask"},"action_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Params"},"mode":{"type":"string","enum":["enforce","shadow"],"title":"Mode","default":"enforce"},"options":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Options"},"available_options":{"items":{"type":"string"},"type":"array","title":"Available Options","default":[]},"identifier_groups":{"items":{"type":"string"},"type":"array","title":"Identifier Groups","default":[]},"opt_in":{"type":"boolean","title":"Opt In","default":false},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","key","source","label","pattern","apply_to_request","apply_to_response","enabled"],"title":"MaskingRuleOut"},"MaskingRulePackOut":{"properties":{"pack":{"type":"string","title":"Pack"},"name":{"type":"string","title":"Name"},"total":{"type":"integer","title":"Total"},"enabled":{"type":"integer","title":"Enabled"},"recommended":{"type":"integer","title":"Recommended","default":0},"recommended_enabled":{"type":"integer","title":"Recommended Enabled","default":0},"pending_change":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeOut"},{"type":"null"}]}},"type":"object","required":["pack","name","total","enabled"],"title":"MaskingRulePackOut"},"MaskingRulePackToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"MaskingRulePackToggle"},"MaskingRulePreviewRequest":{"properties":{"text":{"type":"string","maxLength":10000,"minLength":1,"title":"Text"},"explain":{"type":"boolean","title":"Explain","default":false},"shape":{"anyOf":[{"$ref":"#/components/schemas/Shape"},{"type":"null"}]},"identity":{"anyOf":[{"$ref":"#/components/schemas/PolicySubjectIn"},{"type":"null"}]}},"type":"object","required":["text"],"title":"MaskingRulePreviewRequest"},"MaskingRulePreviewResult":{"properties":{"masked_text":{"type":"string","title":"Masked Text"},"matched_rule_keys":{"items":{"type":"string"},"type":"array","title":"Matched Rule Keys"},"allowlisted":{"additionalProperties":{"type":"integer"},"type":"object","title":"Allowlisted","default":{}},"alerted":{"additionalProperties":{"type":"integer"},"type":"object","title":"Alerted","default":{}},"blocked":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked","default":{}},"shadowed":{"additionalProperties":{"type":"integer"},"type":"object","title":"Shadowed","default":{}},"failures":{"items":{"type":"string"},"type":"array","title":"Failures","default":[]},"hash_illustrative":{"type":"boolean","title":"Hash Illustrative","default":false},"fpe_illustrative":{"type":"boolean","title":"Fpe Illustrative","default":false},"tokens_illustrative":{"type":"boolean","title":"Tokens Illustrative","default":false},"explanation":{"anyOf":[{"items":{"$ref":"#/components/schemas/MaskingPreviewSpan"},"type":"array"},{"type":"null"}],"title":"Explanation"},"explanation_truncated":{"type":"boolean","title":"Explanation Truncated","default":false},"shadow_explanation":{"anyOf":[{"items":{"$ref":"#/components/schemas/MaskingPreviewSpan"},"type":"array"},{"type":"null"}],"title":"Shadow Explanation"},"shadow_explanation_truncated":{"type":"boolean","title":"Shadow Explanation Truncated","default":false},"scope":{"anyOf":[{"$ref":"#/components/schemas/MaskingPreviewScope"},{"type":"null"}]},"volume_exceeded":{"items":{"$ref":"#/components/schemas/MaskingPreviewVolume"},"type":"array","title":"Volume Exceeded","default":[]},"ner_used":{"type":"boolean","title":"Ner Used","default":false},"policy_scope":{"anyOf":[{"$ref":"#/components/schemas/PolicyScope"},{"type":"null"}]}},"type":"object","required":["masked_text","matched_rule_keys"],"title":"MaskingRulePreviewResult"},"MaskingRuleSource":{"type":"string","enum":["preset","custom"],"title":"MaskingRuleSource"},"MaskingRuleTermsOut":{"properties":{"terms":{"items":{"type":"string"},"type":"array","title":"Terms"}},"type":"object","required":["terms"],"title":"MaskingRuleTermsOut"},"MaskingRuleUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Label"},"pattern":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Pattern"},"terms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Terms"},"apply_to_request":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Apply To Request"},"apply_to_response":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Apply To Response"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"validator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validator"},"context":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Context"},"min_entropy":{"anyOf":[{"type":"number","maximum":8.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Min Entropy"},"allowlist":{"anyOf":[{"items":{"$ref":"#/components/schemas/MaskingAllowlistEntry"},"type":"array","maxItems":10000},{"type":"null"}],"title":"Allowlist"},"action":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Action"},"action_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Params"},"mode":{"anyOf":[{"type":"string","enum":["enforce","shadow"]},{"type":"null"}],"title":"Mode"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options"}},"type":"object","title":"MaskingRuleUpdate"},"MaskingScopeDefault":{"properties":{"path":{"type":"string","title":"Path"},"guard":{"type":"string","title":"Guard"}},"type":"object","required":["path","guard"],"title":"MaskingScopeDefault"},"MaskingScopeOut":{"properties":{"include":{"items":{"type":"string"},"type":"array","title":"Include"},"exclude":{"items":{"type":"string"},"type":"array","title":"Exclude"},"pending_change":{"anyOf":[{"$ref":"#/components/schemas/MaskingRuleChangeOut"},{"type":"null"}]},"defaults":{"items":{"$ref":"#/components/schemas/MaskingScopeShape"},"type":"array","title":"Defaults"}},"type":"object","required":["include","exclude","defaults"],"title":"MaskingScopeOut","description":"An environment's masking scope: paths scanned although a default skips them (`include`),\npaths skipped (`exclude`), a proposed list change awaiting review, and the provider defaults."},"MaskingScopePaths":{"properties":{"paths":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Paths"}},"type":"object","required":["paths"],"title":"MaskingScopePaths","description":"A masking scope list as a whole ([] clears it): JSON paths, validated and normalized."},"MaskingScopeShape":{"properties":{"shape":{"$ref":"#/components/schemas/Shape"},"label":{"type":"string","title":"Label"},"providers":{"items":{"type":"string"},"type":"array","title":"Providers"},"request":{"items":{"$ref":"#/components/schemas/MaskingScopeDefault"},"type":"array","title":"Request"},"response":{"items":{"$ref":"#/components/schemas/MaskingScopeDefault"},"type":"array","title":"Response"}},"type":"object","required":["shape","label","providers","request","response"],"title":"MaskingScopeShape","description":"A provider body shape and the protocol fields masking skips in it by default."},"MaskingSettings":{"properties":{"masking_failure_action":{"type":"string","enum":["forward","block"],"title":"Masking Failure Action"},"environment_failure_actions":{"additionalProperties":{"type":"string","enum":["forward","block"]},"type":"object","title":"Environment Failure Actions","default":{}},"safety_posture_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Safety Posture Confirmed At"},"require_second_approver":{"type":"boolean","title":"Require Second Approver","default":true},"approval_setting":{"type":"string","enum":["automatic","always","off"],"title":"Approval Setting","default":"automatic"},"approval_mode":{"type":"string","enum":["four_eyes","single_admin","unknown"],"title":"Approval Mode","default":"four_eyes"},"approval_delay_minutes":{"type":"integer","title":"Approval Delay Minutes","default":10},"manager_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Manager Count"},"self_approval_available":{"type":"boolean","title":"Self Approval Available","default":false},"ner_enabled":{"type":"boolean","title":"Ner Enabled","default":true},"ner_available":{"type":"boolean","title":"Ner Available","default":true},"ner_required":{"type":"boolean","title":"Ner Required","default":false},"masking_available":{"type":"boolean","title":"Masking Available","default":true},"primary_countries":{"items":{"type":"string"},"type":"array","title":"Primary Countries","default":[]},"country_packs_on":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Country Packs On","default":{}},"masking_token_ttl_days":{"type":"integer","title":"Masking Token Ttl Days","default":30}},"type":"object","required":["masking_failure_action"],"title":"MaskingSettings","description":"Organization-wide masking settings (Settings > Masking in the console)."},"MaskingThresholdOut":{"properties":{"scope":{"type":"string","enum":["category","rule"],"title":"Scope"},"key":{"type":"string","title":"Key"},"limit":{"type":"integer","title":"Limit"},"action":{"type":"string","enum":["block","alert"],"title":"Action"}},"type":"object","required":["scope","key","limit","action"],"title":"MaskingThresholdOut","description":"A volume threshold: past `limit` detections of `key` (a data category or rule key, as `scope`\nsays) in one request, `action` applies (maskflare_core.volume)."},"MaskingThresholdUpdate":{"properties":{"limit":{"type":"integer","maximum":1000000.0,"minimum":1.0,"title":"Limit"},"action":{"type":"string","enum":["block","alert"],"title":"Action"}},"type":"object","required":["limit","action"],"title":"MaskingThresholdUpdate","description":"A volume threshold's limit and action, set on its `{scope}/{key}`."},"MaskingThresholdsOut":{"properties":{"thresholds":{"items":{"$ref":"#/components/schemas/MaskingThresholdOut"},"type":"array","title":"Thresholds"},"pending_changes":{"items":{"$ref":"#/components/schemas/MaskingRuleChangeOut"},"type":"array","title":"Pending Changes"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"max_thresholds":{"type":"integer","title":"Max Thresholds"}},"type":"object","required":["thresholds","pending_changes","categories","max_thresholds"],"title":"MaskingThresholdsOut","description":"An environment's volume thresholds, the loosenings and removals awaiting approval, the\ncategories a threshold may name and how many thresholds an environment may hold."},"McpAccessChangeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"server_id":{"type":"string","format":"uuid","title":"Server Id"},"server_name":{"type":"string","title":"Server Name"},"kind":{"type":"string","enum":["settings","tool"],"title":"Kind"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"before":{"additionalProperties":true,"type":"object","title":"Before"},"status":{"type":"string","enum":["pending","approved","rejected"],"title":"Status"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","environment","server_id","server_name","kind","payload","before","status","proposed_by_email","created_at","decided_by_email","decided_at","note"],"title":"McpAccessChangeOut","description":"A change that lets more of a server's tools through, waiting for a second manager."},"McpAccessRequestOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"server_id":{"type":"string","format":"uuid","title":"Server Id"},"server_name":{"type":"string","title":"Server Name"},"tool":{"type":"string","title":"Tool"},"requester_type":{"type":"string","enum":["user","device","api_key"],"title":"Requester Type"},"requester":{"type":"string","title":"Requester"},"device_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Id"},"status":{"type":"string","enum":["pending","approval_pending","approved","denied","revoked"],"title":"Status"},"request_count":{"type":"integer","title":"Request Count"},"first_requested_at":{"type":"string","format":"date-time","title":"First Requested At"},"last_requested_at":{"type":"string","format":"date-time","title":"Last Requested At"},"first_approved_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Approved By Email"},"first_approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Approved At"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","environment","server_id","server_name","tool","requester_type","requester","device_id","status","request_count","first_requested_at","last_requested_at","first_approved_by_email","first_approved_at","decided_by_email","decided_at","note"],"title":"McpAccessRequestOut","description":"Someone's request to use a tool their access denies. The requester is a user (their email),\na device (no one signed in) or an application's key."},"McpAccessRequestPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/McpAccessRequestOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"McpAccessRequestPage"},"McpServerAccessOut":{"properties":{"server_id":{"type":"string","format":"uuid","title":"Server Id"},"name":{"type":"string","title":"Name"},"tool_access_default":{"type":"string","enum":["allow","deny"],"title":"Tool Access Default"},"deny_destructive":{"type":"boolean","title":"Deny Destructive"},"hide_denied_tools":{"type":"boolean","title":"Hide Denied Tools"},"tools":{"items":{"$ref":"#/components/schemas/McpToolOut"},"type":"array","title":"Tools"},"pending_change":{"anyOf":[{"$ref":"#/components/schemas/McpAccessChangeOut"},{"type":"null"}]}},"type":"object","required":["server_id","name","tool_access_default","deny_destructive","hide_denied_tools","tools","pending_change"],"title":"McpServerAccessOut","description":"A server's tool access: the default for tools nothing names, the destructive-tool\ntemplate, whether denied tools are hidden from `tools/list`, and its tools."},"McpServerAccessUpdate":{"properties":{"tool_access_default":{"anyOf":[{"type":"string","enum":["allow","deny"]},{"type":"null"}],"title":"Tool Access Default"},"deny_destructive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deny Destructive"},"hide_denied_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Denied Tools"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"McpServerAccessUpdate","description":"A server's access settings; a field left out is unchanged."},"McpServerAccessWriteOut":{"properties":{"access":{"$ref":"#/components/schemas/McpServerAccessOut"},"change":{"anyOf":[{"$ref":"#/components/schemas/McpAccessChangeOut"},{"type":"null"}]}},"type":"object","required":["access","change"],"title":"McpServerAccessWriteOut","description":"What a write did: applied (`change` null) or proposed for a second manager (202)."},"McpServerCreate":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"}},"type":"object","required":["name","url"],"title":"McpServerCreate"},"McpServerOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"proxy_inspected":{"type":"boolean","title":"Proxy Inspected","default":false}},"type":"object","required":["id","name","url","created_at"],"title":"McpServerOut"},"McpToolAccessUpdate":{"properties":{"access":{"anyOf":[{"type":"string","enum":["allow","deny"]},{"type":"null"}],"title":"Access"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["access"],"title":"McpToolAccessUpdate","description":"One tool's own setting: allow, deny, or null for the server's default and template."},"McpToolOut":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"destructive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Destructive"},"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"access":{"anyOf":[{"type":"string","enum":["allow","deny"]},{"type":"null"}],"title":"Access"},"effective":{"type":"string","enum":["allow","deny"],"title":"Effective"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["name","title","destructive","read_only","access","effective","first_seen_at","last_seen_at"],"title":"McpToolOut","description":"A tool the server listed: its name, title and annotations, the environment's own setting\nfor it (`access`, null: the server's default and template) and what that comes to\n(`effective`) for anyone no group override covers."},"MeOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"platform_roles":{"items":{"type":"string"},"type":"array","title":"Platform Roles"},"organizations":{"items":{"$ref":"#/components/schemas/MembershipOut"},"type":"array","title":"Organizations"}},"type":"object","required":["id","email","name","platform_roles","organizations"],"title":"MeOut"},"MembershipOut":{"properties":{"alias":{"type":"string","title":"Alias"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"roles":{"items":{"$ref":"#/components/schemas/OrgRole"},"type":"array","title":"Roles"}},"type":"object","required":["alias","name","roles"],"title":"MembershipOut"},"NewApiKeyEnvironment":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"pattern":"\\S","title":"Name"},"is_production":{"type":"boolean","title":"Is Production","default":false}},"additionalProperties":false,"type":"object","required":["name"],"title":"NewApiKeyEnvironment","description":"MF-423: the app environment to create with a key, in one step."},"OnlyInSource":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["key","label"],"title":"OnlyInSource"},"OrgRole":{"type":"string","enum":["owner","admin","security","developer","auditor"],"title":"OrgRole","description":"Roles a member holds inside one organization (tenant).\n\nEach role is a Keycloak *organization group* with the same name (e.g. group `/owner`\ninside organization `maskflare`)."},"OrganizationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"alias":{"type":"string","title":"Alias"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/OrganizationStatus"},"environments":{"items":{"$ref":"#/components/schemas/EnvironmentOut"},"type":"array","title":"Environments"},"my_roles":{"items":{"$ref":"#/components/schemas/OrgRole"},"type":"array","title":"My Roles"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"onboarding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Onboarding"}},"type":"object","required":["id","alias","name","status","environments","my_roles"],"title":"OrganizationOut"},"OrganizationStatus":{"type":"string","enum":["active","suspended"],"title":"OrganizationStatus"},"Page_ApiKeyAttentionOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApiKeyAttentionOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[ApiKeyAttentionOut]"},"Page_ApiKeyOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApiKeyOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[ApiKeyOut]"},"Page_AuditEventOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditEventOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[AuditEventOut]"},"Page_DeviceOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeviceOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[DeviceOut]"},"Page_EnrollmentTokenOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EnrollmentTokenOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[EnrollmentTokenOut]"},"Page_MaskingChangeSetOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MaskingChangeSetOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[MaskingChangeSetOut]"},"Page_MaskingRuleChangeOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MaskingRuleChangeOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[MaskingRuleChangeOut]"},"Page_PolicyVersionOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PolicyVersionOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"Page[PolicyVersionOut]"},"PauseCodeOut":{"properties":{"code":{"type":"string","title":"Code"},"valid_until":{"type":"string","format":"date-time","title":"Valid Until"},"minutes":{"type":"integer","title":"Minutes"}},"type":"object","required":["code","valid_until","minutes"],"title":"PauseCodeOut","description":"MF-146: a one-time code that pauses protection on one device for `minutes`."},"PolicyDiff":{"properties":{"source":{"type":"string","title":"Source"},"target":{"type":"string","title":"Target"},"detectors":{"items":{"$ref":"#/components/schemas/DetectorDiff"},"type":"array","title":"Detectors"},"operations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Operations"},"truncated":{"type":"boolean","title":"Truncated","default":false},"only_in_source":{"items":{"$ref":"#/components/schemas/OnlyInSource"},"type":"array","title":"Only In Source"},"tuning":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Tuning"},"overrides":{"additionalProperties":{"type":"integer"},"type":"object","title":"Overrides"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"}},"type":"object","required":["source","target","detectors","operations","only_in_source","tuning","overrides","profile"],"title":"PolicyDiff"},"PolicyOverrideChangeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"action":{"type":"string","enum":["create","update","delete","reorder"],"title":"Action"},"override_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Override Id"},"status":{"type":"string","enum":["pending","approved","rejected"],"title":"Status"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"before":{"additionalProperties":true,"type":"object","title":"Before"},"loosens":{"items":{"type":"string"},"type":"array","title":"Loosens"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"proposed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed By Email"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","environment","action","override_id","status","payload","before","loosens","note","proposed_by_email","decided_by_email","decided_at","decision_note","created_at"],"title":"PolicyOverrideChangeOut","description":"A change that could loosen someone's policy, waiting for (or decided by) a second manager:\n`payload` is what it applies, `before` the override (or order) when proposed, `loosens` what\nprotects less with it."},"PolicyOverrideIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"scope_type":{"type":"string","enum":["device_group","directory_group","department","users"],"title":"Scope Type"},"scope":{"additionalProperties":true,"type":"object","title":"Scope"},"overrides":{"additionalProperties":true,"type":"object","title":"Overrides"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["name","scope_type","scope"],"title":"PolicyOverrideIn","description":"MF-274: a group override - who it applies to (`scope_type` and `scope`: `{device_group_id}`,\n`{directory_group_id}`, `{department}` or `{emails}`) and the partial policy it applies\n(`overrides`: `rules` and `packs` -> action or `off`, `apps` -> status, `accounts` -> app ->\n`{personal, unknown}`)."},"PolicyOverrideOrder":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"title":"Ids"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["ids"],"title":"PolicyOverrideOrder"},"PolicyOverrideOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position"},"scope_type":{"type":"string","enum":["device_group","directory_group","department","users"],"title":"Scope Type"},"scope":{"additionalProperties":true,"type":"object","title":"Scope"},"scope_label":{"type":"string","title":"Scope Label"},"overrides":{"additionalProperties":true,"type":"object","title":"Overrides"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","environment","name","position","scope_type","scope","scope_label","overrides","created_by_email","created_at","updated_at"],"title":"PolicyOverrideOut"},"PolicyOverrideWriteOut":{"properties":{"override":{"anyOf":[{"$ref":"#/components/schemas/PolicyOverrideOut"},{"type":"null"}]},"change":{"anyOf":[{"$ref":"#/components/schemas/PolicyOverrideChangeOut"},{"type":"null"}]}},"type":"object","required":["override","change"],"title":"PolicyOverrideWriteOut","description":"What a write did: `override` when it applied at once (null after a delete), `change` when\nit was proposed instead."},"PolicyOverridesOut":{"properties":{"overrides":{"items":{"$ref":"#/components/schemas/PolicyOverrideOut"},"type":"array","title":"Overrides"},"pending_change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pending Change Id"},"max_overrides":{"type":"integer","title":"Max Overrides"}},"type":"object","required":["overrides","pending_change_id","max_overrides"],"title":"PolicyOverridesOut"},"PolicyScenariosOut":{"properties":{"environment":{"type":"string","title":"Environment"},"rules":{"items":{"$ref":"#/components/schemas/ScenarioRuleOut"},"type":"array","title":"Rules"},"unreviewed_apps":{"type":"string","enum":["allow","block"],"title":"Unreviewed Apps"},"apps":{"items":{"$ref":"#/components/schemas/ScenarioAppOut"},"type":"array","title":"Apps"},"accounts":{"items":{"$ref":"#/components/schemas/ScenarioAccountsOut"},"type":"array","title":"Accounts"},"mcp_servers":{"items":{"type":"string"},"type":"array","title":"Mcp Servers"},"exceptions":{"items":{"$ref":"#/components/schemas/ScenarioExceptionOut"},"type":"array","title":"Exceptions"}},"type":"object","required":["environment","rules","unreviewed_apps","apps","accounts","mcp_servers","exceptions"],"title":"PolicyScenariosOut","description":"The policy as scenarios, computed from what is in force (nothing is stored): the default\nfor everyone - every enabled rule with its action, the reviewed AI apps and what happens to\nunreviewed ones, the account policy, the MCP servers the gateway forwards to - and the\nenvironment's overrides in the order they are tried, each with what it changes. An exception's\nrules, apps and accounts are exactly those the policy simulator reports with source\n`override` for someone the override covers."},"PolicyScope":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"PolicyScope","description":"MF-274: the policy override a context was built under (`TrafficContext.policy_scope`) - its\nid, recorded on every traffic event, and its name for logs and the console."},"PolicyScopeAffectedOut":{"properties":{"people":{"type":"integer","title":"People"},"devices":{"type":"integer","title":"Devices"}},"type":"object","required":["people","devices"],"title":"PolicyScopeAffectedOut"},"PolicyScopeIn":{"properties":{"scope_type":{"type":"string","enum":["device_group","directory_group","department","users"],"title":"Scope Type"},"scope":{"additionalProperties":true,"type":"object","title":"Scope"}},"additionalProperties":false,"type":"object","required":["scope_type","scope"],"title":"PolicyScopeIn","description":"MF-432: a scope alone, for the editor's preview of who it covers."},"PolicySubjectIn":{"properties":{"user":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"User"},"device_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Id"},"device_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Device Group Id"},"directory_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Directory Group Id"},"department":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Department"}},"type":"object","title":"PolicySubjectIn","description":"Whose policy a preview runs (the policy simulator's question): a user by email, a device,\nor a member of a device group, directory group or department - any of them together."},"PolicyVersionDetailOut":{"properties":{"digest":{"type":"string","title":"Digest"},"environment":{"type":"string","title":"Environment"},"policy_scope_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Policy Scope Id"},"policy_scope_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Scope Name"},"first_served_at":{"type":"string","format":"date-time","title":"First Served At"},"last_served_at":{"type":"string","format":"date-time","title":"Last Served At"},"rule_count":{"type":"integer","title":"Rule Count"},"shadow_rule_count":{"type":"integer","title":"Shadow Rule Count"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"}},"type":"object","required":["digest","environment","policy_scope_id","first_served_at","last_served_at","rule_count","shadow_rule_count","snapshot"],"title":"PolicyVersionDetailOut","description":"The snapshot itself: an auditor recomputes the digest as SHA-256 of its canonical JSON."},"PolicyVersionOut":{"properties":{"digest":{"type":"string","title":"Digest"},"environment":{"type":"string","title":"Environment"},"policy_scope_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Policy Scope Id"},"policy_scope_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Scope Name"},"first_served_at":{"type":"string","format":"date-time","title":"First Served At"},"last_served_at":{"type":"string","format":"date-time","title":"Last Served At"},"rule_count":{"type":"integer","title":"Rule Count"},"shadow_rule_count":{"type":"integer","title":"Shadow Rule Count"}},"type":"object","required":["digest","environment","policy_scope_id","first_served_at","last_served_at","rule_count","shadow_rule_count"],"title":"PolicyVersionOut","description":"MF-332: a policy snapshot traffic was served with, by its digest."},"Provider":{"type":"string","enum":["openai","anthropic","gemini","mistral","xai","deepseek","groq","together","ollama"],"title":"Provider"},"ProviderConnectionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment":{"type":"string","title":"Environment"},"provider":{"$ref":"#/components/schemas/Provider"},"credential_mode":{"$ref":"#/components/schemas/CredentialMode"},"secret_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret Hint"},"allowed_models":{"items":{"type":"string"},"type":"array","title":"Allowed Models"},"enabled":{"type":"boolean","title":"Enabled"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"key_check":{"anyOf":[{"type":"string","enum":["passed","failed"]},{"type":"null"}],"title":"Key Check"},"key_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Key Checked At"},"key_status":{"anyOf":[{"type":"string","enum":["readable","unreadable","unknown"]},{"type":"null"}],"title":"Key Status"}},"type":"object","required":["id","environment","provider","credential_mode","secret_hint","allowed_models","enabled","updated_at"],"title":"ProviderConnectionOut"},"ProviderConnectionUpsert":{"properties":{"credential_mode":{"$ref":"#/components/schemas/CredentialMode"},"api_key":{"anyOf":[{"type":"string","maxLength":512,"minLength":8},{"type":"null"}],"title":"Api Key","description":"Required for a new stored key"},"allowed_models":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Allowed Models"},"enabled":{"type":"boolean","title":"Enabled","default":true},"verify":{"type":"boolean","title":"Verify","default":false}},"type":"object","required":["credential_mode"],"title":"ProviderConnectionUpsert"},"ProviderConnectionValidation":{"properties":{"environment":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","title":"Environment"},"provider":{"$ref":"#/components/schemas/Provider"},"api_key":{"anyOf":[{"type":"string","maxLength":512,"minLength":8},{"type":"null"}],"title":"Api Key"}},"type":"object","required":["environment","provider"],"title":"ProviderConnectionValidation"},"ProviderPassthroughOut":{"properties":{"environment":{"type":"string","title":"Environment"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["environment","enabled"],"title":"ProviderPassthroughOut","description":"MF-217: whether an environment allows every supported provider with the application's own\nkey (a provider without a connection is then \"application sends key\")."},"ProviderPassthroughUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"ProviderPassthroughUpdate"},"ProviderValidationResult":{"properties":{"valid":{"type":"boolean","title":"Valid"},"reachable":{"type":"boolean","title":"Reachable"},"message":{"type":"string","title":"Message"},"models_checked":{"type":"integer","title":"Models Checked","default":0}},"type":"object","required":["valid","reachable","message"],"title":"ProviderValidationResult"},"ProxyCaOut":{"properties":{"provisioned":{"type":"boolean","title":"Provisioned"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mount Path"},"root_serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Serial"},"provisioned_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provisioned By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"mount_missing":{"type":"boolean","title":"Mount Missing","default":false},"rotation":{"anyOf":[{"$ref":"#/components/schemas/ProxyCaRotationOut"},{"type":"null"}]}},"type":"object","required":["provisioned"],"title":"ProxyCaOut"},"ProxyCaRotationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"state":{"type":"string","enum":["staged","switched","retired","cancelled","aborted"],"title":"State"},"old_serial":{"type":"string","title":"Old Serial"},"old_fingerprint":{"type":"string","title":"Old Fingerprint"},"new_serial":{"type":"string","title":"New Serial"},"new_fingerprint":{"type":"string","title":"New Fingerprint"},"started_by":{"type":"string","title":"Started By"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"overlap_ends_at":{"type":"string","format":"date-time","title":"Overlap Ends At"},"switched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Switched At"},"switch_reason":{"anyOf":[{"type":"string","enum":["all_devices","overlap_expired"]},{"type":"null"}],"title":"Switch Reason"},"retire_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retire After"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"devices_active":{"type":"integer","title":"Devices Active"},"devices_with_new_ca":{"type":"integer","title":"Devices With New Ca"}},"type":"object","required":["id","state","old_serial","old_fingerprint","new_serial","new_fingerprint","started_by","started_at","overlap_ends_at","switched_at","switch_reason","retire_after","ended_at","devices_active","devices_with_new_ca"],"title":"ProxyCaRotationOut","description":"A rotation of the organization's proxy CA (`proxy_ca_rotation.py`); fingerprints are the\nSHA-256 of each certificate, as devices report them."},"RotationRequest":{"properties":{"grace_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":0.0},{"type":"null"}],"title":"Grace Hours"}},"additionalProperties":false,"type":"object","title":"RotationRequest","description":"The optional body of every rotate operation."},"ScenarioAccountsOut":{"properties":{"app":{"type":"string","title":"App"},"personal":{"type":"string","title":"Personal"},"unknown":{"type":"string","title":"Unknown"}},"type":"object","required":["app","personal","unknown"],"title":"ScenarioAccountsOut"},"ScenarioAppOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"}},"type":"object","required":["key","name","status"],"title":"ScenarioAppOut"},"ScenarioExceptionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position"},"scope_type":{"type":"string","enum":["device_group","directory_group","department","users"],"title":"Scope Type"},"scope":{"additionalProperties":true,"type":"object","title":"Scope"},"scope_label":{"type":"string","title":"Scope Label"},"rules":{"items":{"$ref":"#/components/schemas/ScenarioRuleOut"},"type":"array","title":"Rules"},"apps":{"items":{"$ref":"#/components/schemas/ScenarioAppOut"},"type":"array","title":"Apps"},"accounts":{"items":{"$ref":"#/components/schemas/ScenarioAccountsOut"},"type":"array","title":"Accounts"}},"type":"object","required":["id","name","position","scope_type","scope","scope_label","rules","apps","accounts"],"title":"ScenarioExceptionOut","description":"One policy override as the scenario view states it: who it covers, and only what it\nchanges - the rules whose action differs from the environment's (a pack entry expanded to its\nrules), and the AI apps and account policies it sets."},"ScenarioRuleOut":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"category":{"type":"string","title":"Category"},"pack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack"},"pack_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack Name"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"shadow":{"type":"boolean","title":"Shadow"}},"type":"object","required":["key","label","category","pack","pack_name","action","shadow"],"title":"ScenarioRuleOut"},"SetPackEnabledOperation":{"properties":{"op":{"type":"string","const":"set_pack_enabled","title":"Op"},"pack":{"type":"string","maxLength":64,"minLength":1,"title":"Pack"},"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["op","pack","enabled"],"title":"SetPackEnabledOperation","description":"Enables or disables every preset of one catalog pack."},"SetRuleActionOperation":{"properties":{"op":{"type":"string","const":"set_rule_action","title":"Op"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"action":{"type":"string","maxLength":32,"title":"Action"},"action_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Params"}},"additionalProperties":false,"type":"object","required":["op","rule_id","action"],"title":"SetRuleActionOperation","description":"Changes one rule's action (`masking_catalog.clean_action` checks it, as on a single update)."},"SetRuleEnabledOperation":{"properties":{"op":{"type":"string","const":"set_rule_enabled","title":"Op"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["op","rule_id","enabled"],"title":"SetRuleEnabledOperation","description":"Enables or disables one rule (preset or custom)."},"SetRuleModeOperation":{"properties":{"op":{"type":"string","const":"set_rule_mode","title":"Op"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"mode":{"type":"string","enum":["enforce","shadow"],"title":"Mode"}},"additionalProperties":false,"type":"object","required":["op","rule_id","mode"],"title":"SetRuleModeOperation","description":"Promotes one rule to `enforce` or moves it to `shadow`."},"SetRuleOptionsOperation":{"properties":{"op":{"type":"string","const":"set_rule_options","title":"Op"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options"}},"additionalProperties":false,"type":"object","required":["op","rule_id"],"title":"SetRuleOptionsOperation","description":"MF-199: replaces a built-in detector's options (`masking_catalog.clean_options` checks them,\nas on a single update); null or {} clears them."},"Shape":{"type":"string","enum":["openai_chat","openai_responses","openai_completions","anthropic_messages","gemini_generate","ollama_chat","ollama_generate"],"title":"Shape"},"SuggestedOwnerOut":{"properties":{"person_id":{"type":"string","format":"uuid","title":"Person Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["person_id","email","name"],"title":"SuggestedOwnerOut","description":"MF-427: the person a device's console user matches."},"UninstallCodeOut":{"properties":{"code":{"type":"string","title":"Code"},"valid_until":{"type":"string","format":"date-time","title":"Valid Until","description":"The agent accepts it until one step after this"}},"type":"object","required":["code","valid_until"],"title":"UninstallCodeOut"},"UnreviewedAiAppsUpdate":{"properties":{"unreviewed":{"type":"string","enum":["allow","block"],"title":"Unreviewed"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["unreviewed"],"title":"UnreviewedAiAppsUpdate","description":"`PUT .../ai-app-access/settings`: whether apps nobody reviewed are allowed or blocked."},"UsageOut":{"properties":{"days":{"type":"integer","title":"Days"},"total":{"type":"integer","title":"Total"},"success_rate":{"type":"number","title":"Success Rate"},"failed":{"type":"integer","title":"Failed"},"blocked":{"type":"integer","title":"Blocked"},"p95_latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P95 Latency Ms"},"total_tokens":{"type":"integer","title":"Total Tokens"}},"type":"object","required":["days","total","success_rate","failed","blocked","p95_latency_ms","total_tokens"],"title":"UsageOut","description":"The organization's own traffic over the trailing `days`-day window: the aggregate\n`ledger_service` computes (`/internal/v1/usage-summary`), for API clients - MCP servers,\ndashboards - that can't read the ledger themselves."},"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"},"WarnSettings":{"properties":{"justification_required":{"type":"boolean","title":"Justification Required","default":true},"ttl_minutes":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Ttl Minutes","default":10},"allow_mask":{"type":"boolean","title":"Allow Mask","default":true}},"additionalProperties":false,"type":"object","title":"WarnSettings","description":"`GET`/`PUT .../warn-settings`: whether \"Send anyway\" needs a reason (at least 10\ncharacters), how many minutes a warning waits and an acknowledgement lasts, and whether\n\"Mask and send\" is offered."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"apiClient":{"type":"oauth2","description":"An API client's client-credentials access token.","flows":{"clientCredentials":{"tokenUrl":"https://id.maskflare.com/realms/maskflare/protocol/openid-connect/token","scopes":{}}}}},"responses":{"RateLimited":{"description":"Rate limit exceeded (`rate_limited`): wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the client's window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per one-minute window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this window (0).","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"type":"object"}}}}}},"security":[{"apiClient":[]}]}