{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/license/assign-seat":{"post":{"summary":"Assign Seat","operationId":"assign_seat_license_assign_seat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignSeatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trial/activate":{"post":{"summary":"Activate Trial","operationId":"activate_trial_trial_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckTrialPeriodRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trial/status":{"post":{"summary":"Get Trial Status","operationId":"get_trial_status_trial_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckMachineTrialStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/license/release-seat":{"post":{"summary":"Release Seat","operationId":"release_seat_license_release_seat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseSeatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/license/validate":{"post":{"summary":"Validate Seat","operationId":"validate_seat_license_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateSeatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/paddle":{"post":{"summary":"Handle Paddle Webhook","operationId":"handle_paddle_webhook_webhooks_paddle_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/links/haystack/bug-report":{"get":{"summary":"Haystack Bug Report","operationId":"haystack_bug_report_links_haystack_bug_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/links/haystack/manual":{"get":{"summary":"Haystack Manual","operationId":"haystack_manual_links_haystack_manual_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AssignSeatRequest":{"properties":{"license_key":{"type":"string","title":"License Key"},"app_id":{"type":"string","title":"App Id"},"machine_id_hash":{"type":"string","title":"Machine Id Hash"},"machine_name":{"type":"string","title":"Machine Name"}},"type":"object","required":["license_key","app_id","machine_id_hash","machine_name"],"title":"AssignSeatRequest","description":"Request to assign a seat to a machine for a given license.\n\nA seat assignment is idempotent: if the machine is already registered\nunder this license, the existing seat is returned rather than a new one\nbeing created.\n\nAttributes:\n    license_key: The user-facing license key string (e.g. \"A3F9-BE21-7C04-D812\").\n    app_id: Unique short string identifying the application requesting to be activated.\n    machine_id_hash: A stable, client-generated hash derived from hardware\n        identifiers (e.g. CPU ID, motherboard serial). Used to uniquely\n        identify a machine across sessions. Should be hashed before\n        transmission — raw hardware identifiers should never leave the client.\n    machine_name: A human-readable label for the machine, as reported by the\n        OS (e.g. \"Julie's Mac Studio\"). Unstable — may change between requests\n        and is used for display purposes only, not identity."},"CheckMachineTrialStatusRequest":{"properties":{"app_id":{"type":"string","title":"App Id"},"machine_id_hash":{"type":"string","title":"Machine Id Hash"}},"type":"object","required":["app_id","machine_id_hash"],"title":"CheckMachineTrialStatusRequest"},"CheckTrialPeriodRequest":{"properties":{"app_id":{"type":"string","title":"App Id"},"machine_id_hash":{"type":"string","title":"Machine Id Hash"},"email":{"type":"string","title":"Email"},"machine_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Machine Name"}},"type":"object","required":["app_id","machine_id_hash","email"],"title":"CheckTrialPeriodRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ReleaseSeatRequest":{"properties":{"license_key":{"type":"string","title":"License Key"},"seat_id":{"type":"string","title":"Seat Id"}},"type":"object","required":["license_key","seat_id"],"title":"ReleaseSeatRequest","description":"Request to release a previously assigned seat, freeing it for use on another machine.\n\nThe instance_id is issued by the server at assignment time and should be\npersisted by the client. Using a server-generated ID (rather than machine_id_hash)\nas the release key ensures the client cannot spoof or accidentally target\nanother machine's seat.\n\nAttributes:\n    license_key: The user-facing license key string. Combined with instance_id\n        as a two-factor check — neither alone is sufficient to release a seat.\n    seat_id: The server-generated UUID for the seat, returned at assignment\n        time. The client is responsible for persisting this locally."},"ValidateSeatRequest":{"properties":{"seat_id":{"type":"string","title":"Seat Id"},"machine_id_hash":{"type":"string","title":"Machine Id Hash"}},"type":"object","required":["seat_id","machine_id_hash"],"title":"ValidateSeatRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}