{"openapi":"3.1.0","info":{"title":"NORYX Public API","version":"1.0.0","description":"The public NORYX API (v1). Authenticate with an API key from Settings (`Authorization: Bearer nrx_…`). Each key is scoped (records:read, records:write, intelligence:run, team_insights:read), acts with at most the permissions of the member who created it, is rate limited per minute (429 with Retry-After) and is audited on every call."},"servers":[{"url":"/"}],"x-noryx-scopes":[{"scope":"records:read","label":"Read accounts, people, deals, activity, signals, evidence, decisions and memory"},{"scope":"records:write","label":"Create and update accounts, people, deals, interactions and evidence"},{"scope":"intelligence:run","label":"Start intelligence runs (research, briefs, next best actions)"},{"scope":"team_insights:read","label":"Read the forecast and the Command Center"}],"tags":[{"name":"accounts","description":"Companies"},{"name":"people","description":"Contacts"},{"name":"deals","description":"Opportunities and buying committees"},{"name":"interactions","description":"Calls, emails, meetings, messages and notes"},{"name":"signals","description":"Something changed: internal and external signals"},{"name":"evidence","description":"Sourced claims behind every insight"},{"name":"search","description":"Hybrid search"},{"name":"knowledge","description":"ICP profiles and Company Memory"},{"name":"prospecting","description":"Discovery, scoring and today’s priority accounts"},{"name":"insights","description":"Command Center, forecast and Ask NORYX"}],"paths":{"/v1/accounts":{"get":{"operationId":"listAccounts","tags":["accounts"],"summary":"List accounts (filter, sort, keyset pagination)","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Name or domain contains"},"required":false,"description":"Name or domain contains","name":"q","in":"query"},{"schema":{"type":"string","maxLength":120},"required":false,"name":"industry","in":"query"},{"schema":{"type":"string","enum":["prospect","customer","partner","churned","other"]},"required":false,"name":"lifecycleStage","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"ownerUserId","in":"query"},{"schema":{"type":"string"},"required":false,"name":"hasOpenDeals","in":"query"},{"schema":{"type":"string","enum":["name","updatedAt","createdAt","employeeCount"],"default":"name"},"required":false,"name":"sort","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"required":false,"name":"direction","in":"query"}],"responses":{"200":{"description":"Accounts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"post":{"operationId":"createAccount","tags":["accounts"],"summary":"Create an account (409 when identity resolution finds it already exists)","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDetail"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/accounts/{id}":{"get":{"operationId":"getAccount","tags":["accounts"],"summary":"One account with its metrics and domains","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDetail"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"patch":{"operationId":"updateAccount","tags":["accounts"],"summary":"Update an account","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountInput"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDetail"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/people":{"get":{"operationId":"listPeople","tags":["people"],"summary":"List people (filter, sort, keyset pagination)","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Name, email or title contains"},"required":false,"description":"Name, email or title contains","name":"q","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"accountId","in":"query"},{"schema":{"type":"string","maxLength":120},"required":false,"name":"department","in":"query"},{"schema":{"type":"string","enum":["fullName","updatedAt","createdAt"],"default":"fullName"},"required":false,"name":"sort","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"required":false,"name":"direction","in":"query"}],"responses":{"200":{"description":"People","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonPage"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"post":{"operationId":"createPerson","tags":["people"],"summary":"Create a person (409 when identity resolution finds them already)","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/people/{id}":{"get":{"operationId":"getPerson","tags":["people"],"summary":"One person","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The person","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"patch":{"operationId":"updatePerson","tags":["people"],"summary":"Update a person","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePersonInput"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/deals":{"get":{"operationId":"listDeals","tags":["deals"],"summary":"List deals (filter, sort, keyset pagination)","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"deals","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Deal or account name contains"},"required":false,"description":"Deal or account name contains","name":"q","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"accountId","in":"query"},{"schema":{"type":"string","maxLength":63},"required":false,"name":"stage","in":"query"},{"schema":{"type":"string","enum":["open","won","lost"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"ownerUserId","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"closeFrom","in":"query"},{"schema":{"type":"string","format":"date"},"required":false,"name":"closeTo","in":"query"},{"schema":{"type":"string","enum":["name","amount","closeDate","updatedAt","createdAt"],"default":"closeDate"},"required":false,"name":"sort","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"required":false,"name":"direction","in":"query"}],"responses":{"200":{"description":"Deals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPage"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"post":{"operationId":"createDeal","tags":["deals"],"summary":"Create a deal (sellers: owned by themselves)","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":"deals","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDealInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/deals/{id}":{"get":{"operationId":"getDeal","tags":["deals"],"summary":"One deal","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"deals","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The deal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"patch":{"operationId":"updateDeal","tags":["deals"],"summary":"Update a deal (sellers: only their own)","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":"deals","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDealInput"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/deals/{id}/stakeholders":{"get":{"operationId":"listStakeholders","tags":["deals"],"summary":"A deal's buying committee","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"deals","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Stakeholders","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Stakeholder"}}},"required":["items"]}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"post":{"operationId":"addStakeholder","tags":["deals"],"summary":"Add a person to the buying committee with a role","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":"deals","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddStakeholderInput"}}}},"responses":{"201":{"description":"Added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stakeholder"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/interactions":{"get":{"operationId":"listInteractions","tags":["interactions"],"summary":"Calls, emails, meetings, messages and notes, newest first","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"accountId","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"dealId","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"personId","in":"query"},{"schema":{"type":"string","enum":["call","email","meeting","message","note","ticket"]},"required":false,"name":"type","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"Interactions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionPage"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"post":{"operationId":"createInteraction","tags":["interactions"],"summary":"Log an interaction (manual entry; connectors arrive in Week 2)","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInteractionInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/interactions/{id}":{"get":{"operationId":"getInteraction","tags":["interactions"],"summary":"One interaction with participants","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The interaction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/signals":{"get":{"operationId":"listSignals","tags":["signals"],"summary":"Signals, newest first (internal and external)","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"accountId","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"dealId","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"personId","in":"query"},{"schema":{"type":"string","enum":["funding","hiring","leadership_change","expansion","product_launch","website_change","website_activity","news","partnership","stakeholder_inactivity","stalled_deal","close_date_slip","competitor_mention","champion_engagement","deal_velocity","renewal","payment_issue","churn_risk","support_volume","support_escalation","support_satisfaction","deal_risk","buying_signal","other"]},"required":false,"name":"category","in":"query"},{"schema":{"type":"string","enum":["new","acknowledged","dismissed","actioned","expired"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","enum":["internal","external"]},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"Signals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalPage"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/signals/{id}":{"get":{"operationId":"getSignal","tags":["signals"],"summary":"One signal","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The signal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/evidence":{"get":{"operationId":"listEvidence","tags":["evidence"],"summary":"Evidence, newest first; filter by the record it supports","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":512},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","enum":["account","person","deal","interaction","signal","evidence","decision","action","outcome","user","organization"]},"required":false,"name":"targetType","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"targetId","in":"query"},{"schema":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"required":false,"name":"claimType","in":"query"},{"schema":{"type":"string","maxLength":40},"required":false,"name":"sourceType","in":"query"}],"responses":{"200":{"description":"Evidence","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidencePage"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"},"post":{"operationId":"createEvidence","tags":["evidence"],"summary":"Record a claim through the evidence rules","description":"A claim is stored as a fact only with a cited page or conversation and a quoted excerpt (checked against the conversation); otherwise it is downgraded to interpretation or hypothesis and the reason is returned. Confidence is calibrated from the sources.","security":[{"apiKey":["records:write"]}],"x-noryx-access":"records:write","x-noryx-public":true,"x-noryx-module":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEvidenceInput"}}}},"responses":{"201":{"description":"Recorded (possibly downgraded)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:write"}},"/v1/evidence/{id}":{"get":{"operationId":"getEvidence","tags":["evidence"],"summary":"One piece of evidence with the records it supports","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The evidence","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceListItem"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/intelligence-runs":{"post":{"operationId":"requestIntelligenceRun","tags":["intelligence"],"summary":"Start research, a brief, a diagnosis or another intelligence run","description":"Queues the run and starts its workflow. If the same run is already queued or running it is returned instead (created: false). Poll GET /v1/intelligence-runs/{id} for progress; the result is a decision.","security":[{"apiKey":["intelligence:run"]}],"x-noryx-access":"intelligence:run","x-noryx-public":true,"x-noryx-module":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestIntelligenceRunInput"}}}},"responses":{"202":{"description":"Queued (or already running)","content":{"application/json":{"schema":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/IntelligenceRun"},"created":{"type":"boolean"}},"required":["run","created"]}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"intelligence:run"},"get":{"operationId":"listIntelligenceRuns","tags":["intelligence"],"summary":"Recent intelligence runs, optionally for one record or kind","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"subjectId","in":"query"},{"schema":{"type":"string","enum":["research","signal_scan","signal_interpretation","buyer_map","pre_call_brief","deal_diagnosis","next_best_action","validation","call_analysis","call_updates","business_case","seller_profile_suggestions"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Runs","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/IntelligenceRun"}}},"required":["items"]}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/intelligence-runs/{id}":{"get":{"operationId":"getIntelligenceRun","tags":["intelligence"],"summary":"One intelligence run: status, progress, mode and result","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntelligenceRun"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/decisions":{"get":{"operationId":"listDecisions","tags":["decisions"],"summary":"Decisions (research reports, diagnoses, next best actions, ...), newest first","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"subjectId","in":"query"},{"schema":{"type":"string","maxLength":4000},"required":false,"name":"subjectIds","in":"query"},{"schema":{"type":"string","maxLength":40},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["proposed","accepted","rejected","superseded","expired"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"current","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"blind","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Decisions","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Decision"}}},"required":["items"]}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/decisions/{id}":{"get":{"operationId":"getDecision","tags":["decisions"],"summary":"One decision with the evidence behind it","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The decision","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionDetail"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/decisions/{id}/trace":{"get":{"operationId":"getDecisionTrace","tags":["decisions"],"summary":"Why NORYX concluded this: evidence, confidence, gaps, AI runs, review history","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The trace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionTrace"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/memory":{"get":{"operationId":"listMemory","tags":["knowledge"],"summary":"Company Memory: entries by kind, proposals waiting for approval first","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"memory","parameters":[{"schema":{"type":"string","enum":["icp","persona","messaging","positioning","objection","win_pattern","loss_pattern","discovery_question","buying_committee","business_case_template"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["active","proposed","rejected","archived"]},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"Company Memory","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryList"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/memory/search":{"get":{"operationId":"searchMemory","tags":["knowledge"],"summary":"What Company Memory a prompt about this text would retrieve, and why","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"memory","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":500},"required":true,"name":"q","in":"query"},{"schema":{"type":"string","enum":["icp","persona","messaging","positioning","objection","win_pattern","loss_pattern","discovery_question","buying_committee","business_case_template"]},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"Retrieved entries","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MemoryHit"}},"retrieval":{"$ref":"#/components/schemas/MemoryRetrieval"}},"required":["items","retrieval"]}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/memory/{id}":{"get":{"operationId":"getMemoryEntry","tags":["knowledge"],"summary":"One Company Memory entry","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"memory","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryEntry"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/priority-accounts":{"get":{"operationId":"listPriorityAccounts","tags":["prospecting"],"summary":"Today’s priority accounts: rank, score, why now, persona, pain, evidence, angle, channel, message, next action","description":"The latest list the Prospecting agent built (every morning, or on request).","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"prospecting","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":20,"default":10},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Today’s list","content":{"application/json":{"schema":{"type":"object","properties":{"day":{"type":["string","null"]},"items":{"type":"array","items":{"$ref":"#/components/schemas/PriorityAccount"}}},"required":["day","items"]}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/command-center":{"get":{"operationId":"getCommandCenter","tags":["insights"],"summary":"The 10 deals to care about today, pipeline, risks, gaps, threats, activity and reps","description":"Limited to your reach: managers see their team, sellers themselves, admins and RevOps everyone. The top ten are ranked on risk × value × change × urgency (command-1), each part shown.","security":[{"apiKey":["team_insights:read"]}],"x-noryx-access":"team_insights:read","x-noryx-public":true,"x-noryx-module":"command_center","responses":{"200":{"description":"The Command Center","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandCenter"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"team_insights:read"}},"/v1/forecast":{"get":{"operationId":"getForecast","tags":["insights"],"summary":"NORYX’s forecast by rep and quarter against the CRM, and next quarter’s sources","description":"Every open deal in your reach with its likelihood (stage conversion from history × fixed factors, forecast-1), rolled up by rep and quarter (each row exactly the sum of its deals), the gap to the CRM with its reasons, and where next quarter’s revenue is expected to come from.","security":[{"apiKey":["team_insights:read"]}],"x-noryx-access":"team_insights:read","x-noryx-public":true,"x-noryx-module":"forecast","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-Q[1-4]$"},"required":false,"name":"quarter","in":"query"}],"responses":{"200":{"description":"The forecast","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forecast"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"team_insights:read"}},"/v1/deals/{id}/forecast":{"get":{"operationId":"getDealForecast","tags":["deals"],"summary":"An open deal’s likelihood to close, every part shown, against the CRM","description":"The stage base (from history, or the default when history is thin), each factor with its value, multiplier and evidence, and the formula. 404 for a closed deal.","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":"forecast","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The deal’s forecast","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealForecast"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}},"/v1/search":{"get":{"operationId":"search","tags":["search"],"summary":"Hybrid search across accounts, people, deals and evidence","description":"Keyword (full-text), name similarity (trigram) and meaning (vector) results fused with Reciprocal Rank Fusion. `semantic.enabled` is false when no embeddings key is configured (keyword and name matching only).","security":[{"apiKey":["records:read"]}],"x-noryx-access":"records:read","x-noryx-public":true,"x-noryx-module":null,"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":500},"required":true,"name":"q","in":"query"},{"schema":{"type":"string","description":"Comma-separated subset of: account, person, deal, evidence"},"required":false,"description":"Comma-separated subset of: account, person, deal, evidence","name":"types","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Ranked results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Invalid request (code `bad_request` or `validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No valid session (code `unauthenticated`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not permitted for this role (code `forbidden`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (code `not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (code `conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the API key’s per-minute limit (code `rate_limited`; see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-noryx-scope":"records:read"}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A NORYX API key (`nrx_<prefix>_<secret>`) created in Settings → API keys."}},"schemas":{"AccountDetail":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1},"domain":{"type":["string","null"]},"websiteUrl":{"type":["string","null"]},"industry":{"type":["string","null"]},"employeeCount":{"type":["integer","null"],"minimum":0},"annualRevenue":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"countryCode":{"type":["string","null"],"minLength":2,"maxLength":2},"city":{"type":["string","null"]},"lifecycleStage":{"type":["string","null"]},"parentAccountId":{"type":["string","null"],"format":"uuid"},"ownerUserId":{"type":["string","null"],"format":"uuid"},"source":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ownerName":{"type":["string","null"]},"metrics":{"type":"object","properties":{"openDealCount":{"type":"integer","minimum":0},"openPipeline":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]}},"peopleCount":{"type":"integer","minimum":0},"lastActivityAt":{"type":["string","null"],"format":"date-time"},"recentSignalCount":{"type":"integer","minimum":0}},"required":["openDealCount","openPipeline","peopleCount","lastActivityAt","recentSignalCount"]},"description":{"type":["string","null"]},"linkedinUrl":{"type":["string","null"]},"region":{"type":["string","null"]},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isPrimary":{"type":"boolean"},"isVerified":{"type":"boolean"}},"required":["domain","isPrimary","isVerified"]}}},"required":["id","orgId","name","domain","websiteUrl","industry","employeeCount","annualRevenue","countryCode","city","lifecycleStage","parentAccountId","ownerUserId","source","createdAt","updatedAt","ownerName","metrics","description","linkedinUrl","region","domains"]},"AccountListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1},"domain":{"type":["string","null"]},"websiteUrl":{"type":["string","null"]},"industry":{"type":["string","null"]},"employeeCount":{"type":["integer","null"],"minimum":0},"annualRevenue":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"countryCode":{"type":["string","null"],"minLength":2,"maxLength":2},"city":{"type":["string","null"]},"lifecycleStage":{"type":["string","null"]},"parentAccountId":{"type":["string","null"],"format":"uuid"},"ownerUserId":{"type":["string","null"],"format":"uuid"},"source":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ownerName":{"type":["string","null"]},"metrics":{"type":"object","properties":{"openDealCount":{"type":"integer","minimum":0},"openPipeline":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]}},"peopleCount":{"type":"integer","minimum":0},"lastActivityAt":{"type":["string","null"],"format":"date-time"},"recentSignalCount":{"type":"integer","minimum":0}},"required":["openDealCount","openPipeline","peopleCount","lastActivityAt","recentSignalCount"]}},"required":["id","orgId","name","domain","websiteUrl","industry","employeeCount","annualRevenue","countryCode","city","lifecycleStage","parentAccountId","ownerUserId","source","createdAt","updatedAt","ownerName","metrics"]},"AccountPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AccountListItem"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]},"Action":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","approved","executing","executed","failed","rejected","cancelled","outcome_unknown","expired","proposed","scheduled"]},"title":{"type":"string"},"reason":{"type":["string","null"]},"subject":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"dealId":{"type":["string","null"],"format":"uuid"}},"required":["type","id","name","dealId"]},"decisionId":{"type":["string","null"],"format":"uuid"},"agent":{"type":["string","null"]},"params":{"type":"object","additionalProperties":{}},"requiresApproval":{"type":"boolean"},"assignee":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]}},"required":["id","name"]},"submittedAt":{"type":["string","null"],"format":"date-time"},"approvedBy":{"type":["string","null"]},"approvedVia":{"type":["string","null"],"enum":["person","policy",null]},"approvedAt":{"type":["string","null"],"format":"date-time"},"autonomyLevel":{"type":["integer","null"]},"rejectedBy":{"type":["string","null"]},"rejectedAt":{"type":["string","null"],"format":"date-time"},"rejectionReason":{"type":["string","null"]},"executedAt":{"type":["string","null"],"format":"date-time"},"resultSummary":{"type":["string","null"]},"failureReason":{"type":["string","null"]},"outbox":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"channel":{"type":"string"},"status":{"type":"string","enum":["captured","sent","failed"]},"reason":{"type":["string","null"]}},"required":["id","channel","status","reason"]},"dueAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"connectionId":{"type":["string","null"],"format":"uuid"},"requestedFields":{"type":"array","items":{"type":"string"}},"payloadVersion":{"type":"integer"},"approvalExpiresAt":{"type":["string","null"],"format":"date-time"},"resultDeadlineAt":{"type":["string","null"],"format":"date-time"},"providerRequestId":{"type":["string","null"]},"recovery":{"type":["object","null"],"properties":{"decision":{"type":"string","enum":["succeeded","failed","reapprove"]},"by":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"note":{"type":["string","null"]}},"required":["decision","by","at","note"]}},"required":["id","type","status","title","reason","subject","decisionId","agent","params","requiresApproval","assignee","submittedAt","approvedBy","approvedVia","approvedAt","autonomyLevel","rejectedBy","rejectedAt","rejectionReason","executedAt","resultSummary","failureReason","outbox","dueAt","createdAt","connectionId","requestedFields","payloadVersion","approvalExpiresAt","resultDeadlineAt","providerRequestId","recovery"]},"AddStakeholderInput":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"buyingRole":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"influence":{"type":["integer","null"],"minimum":1,"maximum":5},"sentiment":{"type":["string","null"],"enum":["positive","neutral","negative","unknown",null]},"isPrimaryContact":{"type":"boolean","default":false},"notes":{"type":["string","null"],"maxLength":2000}},"required":["personId","buyingRole"]},"AgentProposal":{"type":"object","properties":{"type":{"type":"string","enum":["send_email","update_crm","create_task","send_slack","request_meeting"]},"subjectType":{"type":"string","enum":["deal","account","person","interaction"]},"subjectId":{"type":"string","format":"uuid"},"title":{"type":"string"},"reason":{"type":"string"},"personIds":{"type":"array","items":{"type":"string","format":"uuid"}},"recipients":{"type":"array","items":{"type":"string"}},"subjectLine":{"type":["string","null"]},"body":{"type":["string","null"]},"fields":{"type":"object","properties":{"nextStep":{"type":"string"},"closeDate":{"type":"string"},"stage":{"type":"string"},"amount":{"type":"number"}}}},"required":["type","subjectType","subjectId","title","reason","personIds","recipients","subjectLine","body"]},"AgentReportPayload":{"type":"object","properties":{"type":{"type":"string","enum":["agent_report"]},"agent":{"type":"string"},"taskType":{"type":"string"},"summary":{"type":"string"},"findings":{"type":"array","items":{"type":"object","properties":{"statement":{"type":"string"},"citations":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"label":{"type":"string"}},"required":["type","id"]}}},"required":["statement","citations"]}},"recommendations":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"why":{"type":"string"},"priority":{"type":"string","enum":["high","medium","low"]}},"required":["title","why","priority"]}},"proposals":{"type":"array","items":{"$ref":"#/components/schemas/AgentProposal"}},"stopped":{"type":["string","null"]},"injectionFlags":{"type":"integer"}},"required":["type","agent","taskType","summary","findings","recommendations","proposals","stopped","injectionFlags"]},"AiRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"task":{"type":"string"},"promptKey":{"type":"string"},"promptHash":{"type":"string"},"provider":{"type":"string"},"model":{"type":"string"},"servedModel":{"type":["string","null"]},"mode":{"type":"string","enum":["live","reduced"]},"status":{"type":"string","enum":["succeeded","reduced","failed"]},"reason":{"type":["string","null"]},"usage":{"type":"object","properties":{"inputTokens":{"type":"integer"},"outputTokens":{"type":"integer"},"cacheReadTokens":{"type":"integer"},"cacheWriteTokens":{"type":"integer"},"webSearchRequests":{"type":"integer"},"webFetchRequests":{"type":"integer"}},"required":["inputTokens","outputTokens","cacheReadTokens","cacheWriteTokens","webSearchRequests","webFetchRequests"]},"costUsd":{"type":"number"},"latencyMs":{"type":"integer"},"attempts":{"type":"integer"},"fallbackUsed":{"type":"boolean"},"inputHash":{"type":"string"},"outputHash":{"type":["string","null"]},"subject":{"type":["object","null"],"properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"}},"required":["type","id"]},"error":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time"},"piiRedactions":{"type":"integer"},"effort":{"type":["string","null"]},"inferenceGeo":{"type":["string","null"]},"governance":{"type":["string","null"]}},"required":["id","task","promptKey","promptHash","provider","model","servedModel","mode","status","reason","usage","costUsd","latencyMs","attempts","fallbackUsed","inputHash","outputHash","subject","error","startedAt","piiRedactions","effort","inferenceGeo","governance"],"description":"One AI gateway run: prompt version, model, tokens, cost, outcome"},"AssistantProposalPayload":{"type":"object","properties":{"type":{"type":"string","enum":["assistant_proposal"]},"source":{"type":"string","enum":["mcp"]},"apiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"prefix":{"type":"string"},"name":{"type":"string"}},"required":["id","prefix","name"]},"requestedByUserId":{"type":"string","format":"uuid"},"proposals":{"type":"array","items":{"$ref":"#/components/schemas/AgentProposal"}}},"required":["type","source","apiKey","requestedByUserId","proposals"]},"BusinessCasePayload":{"type":"object","properties":{"type":{"type":"string","enum":["business_case"]},"deal":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accountName":{"type":"string"},"amount":{"type":["string","null"]},"currency":{"type":["string","null"]},"stage":{"type":"string"},"closeDate":{"type":["string","null"]}},"required":["id","name","accountName","amount","currency","stage","closeDate"]},"inputs":{"type":"object","properties":{"currency":{"type":"string"},"years":{"type":"integer"},"investment":{"type":"object","properties":{"annual":{"type":"number"},"oneTime":{"type":"number"}},"required":["annual","oneTime"]},"drivers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["rate_reduction","loss_recovery","time_saved","cost_avoided"]},"formula":{"type":"string"},"volume":{"type":["number","null"]},"lossRatePct":{"type":["number","null"]},"marginPct":{"type":["number","null"]},"hourlyCost":{"type":["number","null"]},"perScenario":{"type":"object","properties":{"conservative":{"type":"number"},"base":{"type":"number"},"upside":{"type":"number"}},"required":["conservative","base","upside"]}},"required":["key","label","kind","formula","volume","lossRatePct","marginPct","hourlyCost","perScenario"]}}},"required":["currency","years","investment","drivers"]},"provenance":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"number"},"unit":{"type":"string","enum":["currency","percent","bps","hours","years"]},"source":{"type":"object","properties":{"kind":{"type":"string","enum":["assumption","quoted","deal","default"]},"quote":{"type":["string","null"]},"interactionId":{"type":["string","null"]},"where":{"type":["string","null"]},"note":{"type":["string","null"]}},"required":["kind","quote","interactionId","where","note"]}},"required":["key","label","value","unit","source"]}},"results":{"type":"object","properties":{"conservative":{"type":"object","properties":{"drivers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["key","label","value"]}},"annualBenefit":{"type":"number"},"annualCost":{"type":"number"},"netAnnual":{"type":"number"},"totalBenefit":{"type":"number"},"totalCost":{"type":"number"},"netValue":{"type":"number"},"roiPct":{"type":["number","null"]},"paybackMonths":{"type":["number","null"]}},"required":["drivers","annualBenefit","annualCost","netAnnual","totalBenefit","totalCost","netValue","roiPct","paybackMonths"]},"base":{"type":"object","properties":{"drivers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["key","label","value"]}},"annualBenefit":{"type":"number"},"annualCost":{"type":"number"},"netAnnual":{"type":"number"},"totalBenefit":{"type":"number"},"totalCost":{"type":"number"},"netValue":{"type":"number"},"roiPct":{"type":["number","null"]},"paybackMonths":{"type":["number","null"]}},"required":["drivers","annualBenefit","annualCost","netAnnual","totalBenefit","totalCost","netValue","roiPct","paybackMonths"]},"upside":{"type":"object","properties":{"drivers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["key","label","value"]}},"annualBenefit":{"type":"number"},"annualCost":{"type":"number"},"netAnnual":{"type":"number"},"totalBenefit":{"type":"number"},"totalCost":{"type":"number"},"netValue":{"type":"number"},"roiPct":{"type":["number","null"]},"paybackMonths":{"type":["number","null"]}},"required":["drivers","annualBenefit","annualCost","netAnnual","totalBenefit","totalCost","netValue","roiPct","paybackMonths"]}},"required":["conservative","base","upside"]},"narrative":{"type":"object","properties":{"headline":{"type":"string"},"executiveSummary":{"type":"string"},"pains":{"type":"array","items":{"type":"object","properties":{"pain":{"type":"string"},"impact":{"type":"string"},"quote":{"type":["string","null"]},"evidenceId":{"type":["string","null"]}},"required":["pain","impact","quote","evidenceId"]}},"capabilities":{"type":"array","items":{"type":"object","properties":{"capability":{"type":"string"},"addresses":{"type":"string"},"proof":{"type":["string","null"]}},"required":["capability","addresses","proof"]}},"discoveryQuestions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"why":{"type":"string"}},"required":["question","why"]}},"objections":{"type":"array","items":{"type":"object","properties":{"objection":{"type":"string"},"response":{"type":"string"},"evidenceId":{"type":["string","null"]}},"required":["objection","response","evidenceId"]}}},"required":["headline","executiveSummary","pains","capabilities","discoveryQuestions","objections"]},"dealBrief":{"type":"object","properties":{"situation":{"type":"string"},"health":{"type":["object","null"],"properties":{"score":{"type":"number"},"grade":{"type":"string"}},"required":["score","grade"]},"buyingCommittee":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"sentiment":{"type":["string","null"]}},"required":["name","role","sentiment"]}},"meddpicc":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"status":{"type":"string"}},"required":["label","status"]}},"risks":{"type":"array","items":{"type":"string"}},"competition":{"type":"array","items":{"type":"string"}},"nextSteps":{"type":"array","items":{"type":"string"}}},"required":["situation","health","buyingCommittee","meddpicc","risks","competition","nextSteps"]}},"required":["type","deal","inputs","provenance","results","narrative","dealBrief"]},"BuyerMapPayload":{"type":"object","properties":{"type":{"type":"string","enum":["buyer_map"]},"deal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"summary":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"label":{"type":"string"},"status":{"type":"string","enum":["covered","at_risk","missing"]},"holders":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["personId","name"]}},"candidates":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"name":{"type":"string"},"why":{"type":"string"}},"required":["personId","name","why"]}},"reasons":{"type":"array","items":{"type":"string"}},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["role","label","status","holders","candidates","reasons","evidenceIds"]}},"people":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"name":{"type":"string"},"title":{"type":["string","null"]},"role":{"type":["string","null"]},"onDeal":{"type":"boolean"},"influence":{"type":["number","null"]},"stance":{"type":"string","enum":["supporter","neutral","skeptic","unknown"]},"contactsLast30":{"type":"integer"},"lastContactAt":{"type":["string","null"]},"flags":{"type":"array","items":{"type":"string"}},"read":{"type":["string","null"]},"caresAbout":{"type":["string","null"]},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["personId","name","title","role","onDeal","influence","stance","contactsLast30","lastContactAt","flags","read","caresAbout","evidenceIds"]}},"edges":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"uuid"},"to":{"type":"string","format":"uuid"},"relation":{"type":"string","enum":["reports_to","influences"]}},"required":["from","to","relation"]}},"champion":{"type":["object","null"],"properties":{"personId":{"type":"string","format":"uuid"},"name":{"type":"string"},"strength":{"type":"number"},"tests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"pass":{"type":"boolean"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["name","label","pass","why","evidenceIds"]}}},"required":["personId","name","strength","tests"]},"moves":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"personId":{"type":["string","null"],"format":"uuid"},"why":{"type":"string"}},"required":["action","personId","why"]}},"claims":{"type":"array","items":{"$ref":"#/components/schemas/LinkedClaim"}}},"required":["type","deal","summary","roles","people","edges","champion","moves","claims"]},"CallAnalysisPayload":{"type":"object","properties":{"type":{"type":"string","enum":["call_analysis"]},"call":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"occurredAt":{"type":"string"},"accountId":{"type":["string","null"]},"dealId":{"type":["string","null"]}},"required":["id","title","occurredAt","accountId","dealId"]},"summary":{"type":"string"},"sentiment":{"type":"string","enum":["positive","neutral","mixed","negative"]},"findings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"string","enum":["pain","intent","objection","competitor","pricing","timeline","decision_process","stakeholder","commitment","question","buying_signal","risk"]},"statement":{"type":"string"},"quote":{"type":"string"},"speaker":{"type":"string"},"speakerPersonId":{"type":["string","null"]},"speakerUserId":{"type":["string","null"]},"side":{"type":"string","enum":["buyer","seller","unknown"]},"startMs":{"type":"integer"},"at":{"type":"string"},"importance":{"type":"string","enum":["high","medium","low"]},"competitor":{"type":["string","null"]},"amount":{"type":["string","null"]},"date":{"type":["string","null"]},"owner":{"type":["string","null"],"enum":["seller","buyer",null]},"personName":{"type":["string","null"]},"evidenceId":{"type":["string","null"]}},"required":["id","category","statement","quote","speaker","speakerPersonId","speakerUserId","side","startMs","at","importance","competitor","amount","date","owner","personName","evidenceId"]}},"dropped":{"type":"integer"}},"required":["type","call","summary","sentiment","findings","dropped"]},"CallUpdatesPayload":{"type":"object","properties":{"type":{"type":"string","enum":["call_updates"]},"call":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"occurredAt":{"type":"string"},"accountId":{"type":["string","null"]},"dealId":{"type":["string","null"]}},"required":["id","title","occurredAt","accountId","dealId"]},"analysisDecisionId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"graphChangeId":{"type":["string","null"]},"kind":{"type":"string","enum":["person.create","stakeholder.add","stakeholder.update","deal.update","evidence.topics","signal.create"]},"summary":{"type":"string"},"applied":{"type":"boolean"},"reason":{"type":["string","null"]},"findingIds":{"type":"array","items":{"type":"string"}},"evidenceId":{"type":["string","null"]}},"required":["graphChangeId","kind","summary","applied","reason","findingIds","evidenceId"]}},"followUp":{"type":["object","null"],"properties":{"subject":{"type":"string"},"body":{"type":"string"},"from":{"type":"object","properties":{"userId":{"type":["string","null"]},"name":{"type":"string"}},"required":["userId","name"]},"to":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string"},"name":{"type":"string"},"email":{"type":["string","null"]}},"required":["personId","name","email"]}},"cc":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string"},"name":{"type":"string"},"email":{"type":["string","null"]}},"required":["personId","name","email"]}},"findingIds":{"type":"array","items":{"type":"string"}},"evidenceIds":{"type":"array","items":{"type":"string"}}},"required":["subject","body","from","to","cc","findingIds","evidenceIds"]},"businessCase":{"type":"object","properties":{"pains":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"quote":{"type":"string"},"evidenceId":{"type":["string","null"]}},"required":["text","quote","evidenceId"]}},"figures":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"quote":{"type":"string"},"evidenceId":{"type":["string","null"]}},"required":["label","value","quote","evidenceId"]}},"criteria":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"quote":{"type":"string"},"evidenceId":{"type":["string","null"]}},"required":["text","quote","evidenceId"]}},"objections":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"quote":{"type":"string"},"evidenceId":{"type":["string","null"]}},"required":["text","quote","evidenceId"]}},"competitors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"quote":{"type":"string"},"evidenceId":{"type":["string","null"]}},"required":["name","quote","evidenceId"]}}},"required":["pains","figures","criteria","objections","competitors"]},"queued":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"subjectId":{"type":"string"}},"required":["kind","subjectId"]}}},"required":["type","call","analysisDecisionId","changes","followUp","businessCase","queued"]},"CommandCenter":{"type":"object","properties":{"scope":{"type":"object","properties":{"kind":{"type":"string","enum":["all","team","own"]},"members":{"type":"array","items":{"type":"string"}}},"required":["kind","members"]},"rulesVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"care":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer"},"dealId":{"type":"string","format":"uuid"},"dealName":{"type":"string"},"accountName":{"type":"string"},"owner":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]}},"required":["id","name"]},"stage":{"type":"string"},"amountUsd":{"type":"number"},"closeDate":{"type":["string","null"]},"likelihood":{"type":"number"},"score":{"type":"number"},"parts":{"type":"object","properties":{"risk":{"type":"number"},"value":{"type":"number"},"change":{"type":"number"},"urgency":{"type":"number"}},"required":["risk","value","change","urgency"]},"explain":{"type":"object","properties":{"risk":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"urgency":{"type":"string"}},"required":["risk","value","change","urgency"]},"reason":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["deal","account","person","interaction","evidence","signal"]},"id":{"type":"string","format":"uuid"},"label":{"type":"string"}},"required":["type","id","label"]}},"recommendedAction":{"type":"object","properties":{"text":{"type":"string"},"decisionId":{"type":["string","null"],"format":"uuid"}},"required":["text","decisionId"]}},"required":["rank","dealId","dealName","accountName","owner","stage","amountUsd","closeDate","likelihood","score","parts","explain","reason","evidence","recommendedAction"]}},"pipeline":{"type":"object","properties":{"deals":{"type":"integer"},"amountUsd":{"type":"number"},"weightedUsd":{"type":"number"},"byStage":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string"},"deals":{"type":"integer"},"amountUsd":{"type":"number"}},"required":["stage","deals","amountUsd"]}},"byRep":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"deals":{"type":"integer"},"amountUsd":{"type":"number"},"weightedUsd":{"type":"number"}},"required":["name","deals","amountUsd","weightedUsd"]}}},"required":["deals","amountUsd","weightedUsd","byStage","byRep"]},"atRisk":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"owner":{"type":["string","null"]},"amountUsd":{"type":"number"},"detail":{"type":"string"}},"required":["dealId","name","owner","amountUsd","detail"]}},"stalled":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"owner":{"type":["string","null"]},"amountUsd":{"type":"number"},"detail":{"type":"string"}},"required":["dealId","name","owner","amountUsd","detail"]}},"missingStakeholders":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"owner":{"type":["string","null"]},"amountUsd":{"type":"number"},"detail":{"type":"string"}},"required":["dealId","name","owner","amountUsd","detail"]}},"weakChampions":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"owner":{"type":["string","null"]},"amountUsd":{"type":"number"},"detail":{"type":"string"}},"required":["dealId","name","owner","amountUsd","detail"]}},"competitorThreats":{"type":"array","items":{"type":"object","properties":{"competitorId":{"type":"string","format":"uuid"},"name":{"type":"string"},"openDeals":{"type":"integer"},"amountUsd":{"type":"number"},"record":{"type":"string"},"deals":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["dealId","name"]}}},"required":["competitorId","name","openDeals","amountUsd","record","deals"]}},"activity":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"openDeals":{"type":"integer"},"conversations14d":{"type":"integer"},"perDeal":{"type":"number"},"dealsWithMeeting30d":{"type":"number"},"multiThreaded":{"type":"number"}},"required":["name","openDeals","conversations14d","perDeal","dealsWithMeeting30d","multiThreaded"]}},"reps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"closed":{"type":"integer"},"winRate":{"type":"string"},"wonAmount":{"type":"number"},"medianCycleDays":{"type":["number","null"]}},"required":["name","closed","winRate","wonAmount","medianCycleDays"]}},"patterns":{"type":"array","items":{"type":"string"}}},"required":["scope","rulesVersion","generatedAt","care","pipeline","atRisk","stalled","missingStakeholders","weakChampions","competitorThreats","activity","reps","patterns"]},"CreateAccountInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"domain":{"type":["string","null"],"minLength":1,"maxLength":253},"websiteUrl":{"type":["string","null"],"maxLength":2048,"format":"uri"},"linkedinUrl":{"type":["string","null"],"maxLength":2048,"format":"uri"},"industry":{"type":["string","null"],"minLength":1,"maxLength":120},"description":{"type":["string","null"],"minLength":1,"maxLength":4000},"employeeCount":{"type":["integer","null"],"minimum":0},"annualRevenue":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"countryCode":{"type":["string","null"],"pattern":"^[A-Za-z]{2}$"},"region":{"type":["string","null"],"minLength":1,"maxLength":120},"city":{"type":["string","null"],"minLength":1,"maxLength":120},"lifecycleStage":{"type":["string","null"],"enum":["prospect","customer","partner","churned","other",null]},"parentAccountId":{"type":["string","null"],"format":"uuid"},"ownerUserId":{"type":["string","null"],"format":"uuid"}},"required":["name"]},"CreateDealInput":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":300},"stage":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"amount":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"closeDate":{"type":["string","null"],"format":"date"},"probability":{"type":["integer","null"],"minimum":0,"maximum":100},"forecastCategory":{"type":["string","null"],"enum":["pipeline","best_case","commit","closed","omitted",null]},"ownerUserId":{"type":["string","null"],"format":"uuid"}},"required":["accountId","name","stage"]},"CreateEvidenceInput":{"type":"object","properties":{"claim":{"type":"string","minLength":3,"maxLength":2000},"claimType":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"sources":{"type":"array","items":{"type":"object","properties":{"sourceType":{"type":"string","enum":["crm","email","call","meeting","message","website","news","linkedin","enrichment","billing","support","document","user_input","ai_inference","other"]},"url":{"type":["string","null"],"maxLength":2048,"format":"uri"},"title":{"type":["string","null"],"maxLength":500},"excerpt":{"type":["string","null"],"maxLength":2000},"interactionId":{"type":["string","null"],"format":"uuid"},"observedAt":{"type":["string","null"],"format":"date-time"},"publishedOn":{"$ref":"#/components/schemas/PartialDate"},"retrievedAt":{"type":["string","null"],"format":"date-time"}},"required":["sourceType"]},"maxItems":10,"default":[]},"reasoning":{"type":["string","null"],"maxLength":4000},"suggestedConfidence":{"type":["number","null"],"minimum":0,"maximum":1},"observedAt":{"type":["string","null"],"format":"date-time"},"eventDate":{"$ref":"#/components/schemas/PartialDate"},"publishedOn":{"$ref":"#/components/schemas/PartialDate"},"retrievedAt":{"type":["string","null"],"format":"date-time"},"rights":{"$ref":"#/components/schemas/EvidenceRights"},"accessUserId":{"type":["string","null"],"format":"uuid"},"topics":{"type":"array","items":{"type":"string","enum":["pain","metrics","economic_buyer","decision_criteria","decision_process","paper_process","champion","competition","timeline","next_step","objection","priority","risk","budget","implementation","strategy","leadership","financials","technology","hiring"]},"maxItems":10,"default":[]},"links":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["account","person","deal","interaction","signal","evidence","decision","action","outcome","user","organization"]},"id":{"type":"string","format":"uuid"},"relation":{"type":"string","enum":["supports","contradicts","context"],"default":"supports"}},"required":["type","id"]},"minItems":1,"maxItems":20}},"required":["claim","claimType","links"]},"CreateInteractionInput":{"type":"object","properties":{"type":{"type":"string","enum":["call","email","meeting","message","note","ticket"]},"direction":{"type":["string","null"],"enum":["inbound","outbound","internal",null]},"subject":{"type":["string","null"],"maxLength":500},"summary":{"type":["string","null"],"maxLength":4000},"body":{"type":["string","null"],"maxLength":100000},"occurredAt":{"type":"string","format":"date-time"},"durationSeconds":{"type":["integer","null"],"minimum":0},"accountId":{"type":["string","null"],"format":"uuid"},"dealId":{"type":["string","null"],"format":"uuid"},"channel":{"type":["string","null"],"maxLength":60},"participants":{"type":"array","items":{"type":"object","properties":{"personId":{"type":["string","null"],"format":"uuid"},"userId":{"type":["string","null"],"format":"uuid"},"role":{"type":"string","enum":["from","to","cc","bcc","organizer","attendee","speaker","mentioned"]},"address":{"type":["string","null"],"maxLength":320},"displayName":{"type":["string","null"],"maxLength":200}},"required":["role"]},"maxItems":100,"default":[]}},"required":["type","occurredAt"]},"CreatePersonInput":{"type":"object","properties":{"fullName":{"type":"string","minLength":1,"maxLength":300},"emails":{"type":"array","items":{"type":"string","format":"email"},"maxItems":10,"default":[]},"phones":{"type":"array","items":{"type":"string","minLength":3,"maxLength":40},"maxItems":10,"default":[]},"firstName":{"type":["string","null"],"minLength":1,"maxLength":120},"lastName":{"type":["string","null"],"minLength":1,"maxLength":120},"title":{"type":["string","null"],"minLength":1,"maxLength":200},"seniority":{"type":["string","null"],"minLength":1,"maxLength":60},"department":{"type":["string","null"],"minLength":1,"maxLength":120},"accountId":{"type":["string","null"],"format":"uuid"},"linkedinUrl":{"type":["string","null"],"maxLength":2048,"format":"uri"},"countryCode":{"type":["string","null"],"pattern":"^[A-Za-z]{2}$"},"city":{"type":["string","null"],"minLength":1,"maxLength":120},"ownerUserId":{"type":["string","null"],"format":"uuid"}},"required":["fullName"]},"DealDiagnosisPayload":{"type":"object","properties":{"type":{"type":"string","enum":["deal_diagnosis"]},"deal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"rulesVersion":{"type":"string"},"score":{"type":"integer"},"grade":{"type":"string","enum":["healthy","needs_attention","at_risk"]},"meddpiccScore":{"type":"number"},"meddpicc":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"score":{"type":"number"},"status":{"type":"string","enum":["confirmed","partial","missing"]},"reasons":{"type":"array","items":{"type":"string"}},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}},"action":{"type":"string"}},"required":["key","label","score","status","reasons","evidenceIds","action"]}},"dimensions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"score":{"type":"number"},"status":{"type":"string","enum":["confirmed","partial","missing"]},"reasons":{"type":"array","items":{"type":"string"}},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}},"action":{"type":"string"}},"required":["key","label","score","status","reasons","evidenceIds","action"]}},"weights":{"type":"object","additionalProperties":{"type":"number"}},"gaps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"action":{"type":"string"}},"required":["key","label","action"]}},"summary":{"type":"string"},"actions":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["action","why","evidenceIds"]}},"claims":{"type":"array","items":{"$ref":"#/components/schemas/LinkedClaim"}},"previousScore":{"type":["integer","null"]}},"required":["type","deal","rulesVersion","score","grade","meddpiccScore","meddpicc","dimensions","weights","gaps","summary","actions","claims","previousScore"]},"DealForecast":{"type":"object","properties":{"comparison":{"$ref":"#/components/schemas/ForecastComparison"},"likelihood":{"$ref":"#/components/schemas/DealLikelihood"},"formula":{"type":"string"}},"required":["comparison","likelihood","formula"]},"DealLikelihood":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"likelihood":{"type":"number"},"base":{"type":"object","properties":{"rate":{"type":"number"},"source":{"type":"string","enum":["history","default"]},"basis":{"type":"string"}},"required":["rate","source","basis"]},"factors":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"multiplier":{"type":"number"},"value":{"type":"string"},"reason":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["deal","person","interaction","evidence","account"]},"id":{"type":"string","format":"uuid"}},"required":["type","id"]}},"learned":{"type":["object","null"],"properties":{"multiplier":{"type":"number"},"outcomes":{"type":"integer"},"basis":{"type":"string"}},"required":["multiplier","outcomes"]}},"required":["key","label","multiplier","value","reason","evidence","learned"]}},"rulesVersion":{"type":"string"}},"required":["dealId","likelihood","base","factors","rulesVersion"]},"DealListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1},"stage":{"type":"string"},"status":{"type":"string","enum":["open","won","lost"]},"amount":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"closeDate":{"type":["string","null"]},"probability":{"type":["integer","null"],"minimum":0,"maximum":100},"ownerUserId":{"type":["string","null"],"format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"accountName":{"type":"string"},"ownerName":{"type":["string","null"]},"stakeholderCount":{"type":"integer","minimum":0},"lastActivityAt":{"type":["string","null"],"format":"date-time"},"forecastCategory":{"type":["string","null"]},"closedAt":{"type":["string","null"],"format":"date-time"},"lostReason":{"type":["string","null"]},"nextStep":{"type":["string","null"]}},"required":["id","orgId","accountId","name","stage","status","amount","closeDate","probability","ownerUserId","createdAt","updatedAt","accountName","ownerName","stakeholderCount","lastActivityAt","forecastCategory","closedAt","lostReason","nextStep"]},"DealPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DealListItem"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]},"Decision":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["account","deal","signal","person","interaction","user","organization"]},"subjectId":{"type":"string","format":"uuid"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":["string","null"]},"whyItMatters":{"type":["string","null"]},"rationale":{"type":["string","null"]},"confidence":{"type":["object","null"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"type":"string","enum":["low","medium","high"]}},"required":["score","level"]},"status":{"type":"string","enum":["proposed","accepted","rejected","superseded","expired"]},"producedBy":{"type":"string"},"mode":{"type":["string","null"],"enum":["live","reduced","mixed",null]},"reasons":{"type":"array","items":{"type":"string"}},"blind":{"type":"boolean"},"payload":{"oneOf":[{"$ref":"#/components/schemas/AgentReportPayload"},{"$ref":"#/components/schemas/AssistantProposalPayload"},{"$ref":"#/components/schemas/ProspectPayload"},{"$ref":"#/components/schemas/WorkflowRecommendationPayload"},{"$ref":"#/components/schemas/ResearchPayload"},{"$ref":"#/components/schemas/ResearchBriefPayload"},{"$ref":"#/components/schemas/SignalInterpretationPayload"},{"$ref":"#/components/schemas/BuyerMapPayload"},{"$ref":"#/components/schemas/PreCallBriefPayload"},{"$ref":"#/components/schemas/DealDiagnosisPayload"},{"$ref":"#/components/schemas/NextBestActionPayload"},{"$ref":"#/components/schemas/CallAnalysisPayload"},{"$ref":"#/components/schemas/CallUpdatesPayload"},{"$ref":"#/components/schemas/BusinessCasePayload"},{"type":"null"}]},"provenance":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string","format":"uuid"},"promptKey":{"type":"string"},"promptHash":{"type":"string"},"model":{"type":"string"},"servedModel":{"type":["string","null"]},"mode":{"type":"string","enum":["live","reduced"]},"reason":{"type":["string","null"]},"costUsd":{"type":"number"},"inputHash":{"type":"string"}},"required":["runId","promptKey","promptHash","model","servedModel","mode","reason","costUsd","inputHash"]}},"runId":{"type":["string","null"],"format":"uuid"},"agent":{"type":["object","null"],"properties":{"runId":{"type":"string","format":"uuid"},"key":{"type":"string"},"proposals":{"type":"array","items":{"$ref":"#/components/schemas/AgentProposal"}}},"required":["runId","key","proposals"]},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}},"review":{"type":"object","properties":{"edited":{"type":"boolean"},"edits":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"byUserId":{"type":"string","format":"uuid"},"fields":{"type":"array","items":{"type":"string"}}},"required":["at","byUserId","fields"]}},"approvalNote":{"type":["string","null"]},"actionId":{"type":["string","null"],"format":"uuid"},"dismissal":{"type":["object","null"],"properties":{"reason":{"type":"string"},"note":{"type":["string","null"]}},"required":["reason","note"]}},"required":["edited","edits","approvalNote","actionId","dismissal"]},"supersedesDecisionId":{"type":["string","null"],"format":"uuid"},"decidedByUserId":{"type":["string","null"],"format":"uuid"},"decidedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","subjectType","subjectId","kind","title","summary","whyItMatters","rationale","confidence","status","producedBy","mode","reasons","blind","payload","provenance","runId","agent","evidenceIds","review","supersedesDecisionId","decidedByUserId","decidedAt","createdAt","updatedAt"],"description":"A conclusion NORYX reached, with evidence and provenance"},"DecisionClaim":{"type":"object","properties":{"statement":{"type":"string"},"claimType":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"requestedClaimType":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"downgradeReason":{"type":["string","null"]},"confidence":{"type":"object","properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"type":"string","enum":["low","medium","high"]}},"required":["score","level"]},"reasoning":{"type":["string","null"]},"evidenceId":{"type":"string","format":"uuid"},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":["string","null"]},"title":{"type":["string","null"]},"excerpt":{"type":["string","null"]},"sourceType":{"type":"string"}},"required":["url","title","excerpt","sourceType"]}}},"required":["statement","claimType","requestedClaimType","downgradeReason","confidence","reasoning","evidenceId","sources"]},"DecisionDetail":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["account","deal","signal","person","interaction","user","organization"]},"subjectId":{"type":"string","format":"uuid"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":["string","null"]},"whyItMatters":{"type":["string","null"]},"rationale":{"type":["string","null"]},"confidence":{"type":["object","null"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"type":"string","enum":["low","medium","high"]}},"required":["score","level"]},"status":{"type":"string","enum":["proposed","accepted","rejected","superseded","expired"]},"producedBy":{"type":"string"},"mode":{"type":["string","null"],"enum":["live","reduced","mixed",null]},"reasons":{"type":"array","items":{"type":"string"}},"blind":{"type":"boolean"},"payload":{"oneOf":[{"$ref":"#/components/schemas/AgentReportPayload"},{"$ref":"#/components/schemas/AssistantProposalPayload"},{"$ref":"#/components/schemas/ProspectPayload"},{"$ref":"#/components/schemas/WorkflowRecommendationPayload"},{"$ref":"#/components/schemas/ResearchPayload"},{"$ref":"#/components/schemas/ResearchBriefPayload"},{"$ref":"#/components/schemas/SignalInterpretationPayload"},{"$ref":"#/components/schemas/BuyerMapPayload"},{"$ref":"#/components/schemas/PreCallBriefPayload"},{"$ref":"#/components/schemas/DealDiagnosisPayload"},{"$ref":"#/components/schemas/NextBestActionPayload"},{"$ref":"#/components/schemas/CallAnalysisPayload"},{"$ref":"#/components/schemas/CallUpdatesPayload"},{"$ref":"#/components/schemas/BusinessCasePayload"},{"type":"null"}]},"provenance":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string","format":"uuid"},"promptKey":{"type":"string"},"promptHash":{"type":"string"},"model":{"type":"string"},"servedModel":{"type":["string","null"]},"mode":{"type":"string","enum":["live","reduced"]},"reason":{"type":["string","null"]},"costUsd":{"type":"number"},"inputHash":{"type":"string"}},"required":["runId","promptKey","promptHash","model","servedModel","mode","reason","costUsd","inputHash"]}},"runId":{"type":["string","null"],"format":"uuid"},"agent":{"type":["object","null"],"properties":{"runId":{"type":"string","format":"uuid"},"key":{"type":"string"},"proposals":{"type":"array","items":{"$ref":"#/components/schemas/AgentProposal"}}},"required":["runId","key","proposals"]},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}},"review":{"type":"object","properties":{"edited":{"type":"boolean"},"edits":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"byUserId":{"type":"string","format":"uuid"},"fields":{"type":"array","items":{"type":"string"}}},"required":["at","byUserId","fields"]}},"approvalNote":{"type":["string","null"]},"actionId":{"type":["string","null"],"format":"uuid"},"dismissal":{"type":["object","null"],"properties":{"reason":{"type":"string"},"note":{"type":["string","null"]}},"required":["reason","note"]}},"required":["edited","edits","approvalNote","actionId","dismissal"]},"supersedesDecisionId":{"type":["string","null"],"format":"uuid"},"decidedByUserId":{"type":["string","null"],"format":"uuid"},"decidedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/EvidenceListItem"}}},"required":["id","subjectType","subjectId","kind","title","summary","whyItMatters","rationale","confidence","status","producedBy","mode","reasons","blind","payload","provenance","runId","agent","evidenceIds","review","supersedesDecisionId","decidedByUserId","decidedAt","createdAt","updatedAt","evidence"],"description":"A decision with the evidence behind it"},"DecisionTrace":{"type":"object","properties":{"decision":{"$ref":"#/components/schemas/Decision"},"answers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["observed","sources","changed","evidence","assumptions","uncertain","prioritised","alternatives","after"]},"question":{"type":"string"},"answer":{"type":"string"},"items":{"type":"array","items":{"type":"string"}}},"required":["key","question","answer","items"]}},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/EvidenceListItem"}},"aiRuns":{"type":"array","items":{"$ref":"#/components/schemas/AiRun"}},"run":{"anyOf":[{"$ref":"#/components/schemas/IntelligenceRun"},{"type":"null"}]},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"actor":{"type":"string"},"action":{"type":"string"}},"required":["at","actor","action"]}},"memory":{"type":"array","items":{"$ref":"#/components/schemas/MemoryUse"}},"actions":{"type":"array","items":{"$ref":"#/components/schemas/Action"}},"outcomes":{"type":"array","items":{"$ref":"#/components/schemas/Outcome"}},"agentRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"agent":{"type":"string"},"status":{"type":"string"},"mode":{"type":["string","null"]},"stopReason":{"type":["string","null"]},"principal":{"type":"string"},"costUsd":{"type":"number"},"tokens":{"type":"integer"},"injectionFlags":{"type":"integer"},"steps":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"costUsd":{"type":"number"},"latencyMs":{"type":["integer","null"]},"flags":{"type":"array","items":{"type":"string"}},"error":{"type":["string","null"]}},"required":["seq","kind","name","status","costUsd","latencyMs","flags","error"]}}},"required":["id","agent","status","mode","stopReason","principal","costUsd","tokens","injectionFlags","steps"]},{"type":"null"}]},"previous":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","title","status","createdAt"]}}},"required":["decision","answers","evidence","aiRuns","run","events","memory","actions","outcomes","agentRun","previous"],"description":"Why NORYX concluded what it did, and what it rests on"},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","rate_limited","allowance_exhausted","payload_too_large","dependency_unavailable","internal_error"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}},"requestId":{"type":"string"},"traceId":{"type":"string"}},"required":["code","message"]}},"required":["error"],"description":"The single error format of the NORYX API"},"EvidenceListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"claim":{"type":"string","minLength":1},"claimType":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"sourceType":{"type":"string"},"sourceUrl":{"type":["string","null"]},"sourceTitle":{"type":["string","null"]},"excerpt":{"type":["string","null"]},"confidence":{"type":"object","properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"type":"string","enum":["low","medium","high"]}},"required":["score","level"]},"reasoning":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"},"producedBy":{"type":"string"},"supports":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["account","person","deal","interaction","signal","evidence","decision","action","outcome","user","organization"]},"id":{"type":"string","format":"uuid"}},"required":["type","id"]}},"eventDate":{"$ref":"#/components/schemas/PartialDate"},"publishedOn":{"$ref":"#/components/schemas/PartialDate"},"retrievedAt":{"type":["string","null"],"format":"date-time"},"dateLabel":{"type":"string"},"rights":{"$ref":"#/components/schemas/EvidenceRights"},"accessScope":{"type":"string","enum":["workspace","member"]},"freshnessNote":{"type":["string","null"]},"excerptWithheld":{"type":"boolean"},"sourceInteractionId":{"type":["string","null"],"format":"uuid"},"downgradeReason":{"type":["string","null"]},"requestedClaimType":{"type":["string","null"],"enum":["fact","interpretation","hypothesis","unknown",null]},"topics":{"type":"array","items":{"type":"string"}},"sourceCount":{"type":"integer"}},"required":["id","claim","claimType","sourceType","sourceUrl","sourceTitle","excerpt","confidence","reasoning","observedAt","producedBy","supports","eventDate","publishedOn","retrievedAt","dateLabel","rights","accessScope","freshnessNote","excerptWithheld","sourceInteractionId","downgradeReason","requestedClaimType","topics","sourceCount"]},"EvidencePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EvidenceListItem"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]},"EvidenceRights":{"type":"object","properties":{"basis":{"type":"string","enum":["public_web","customer_data","provider_terms","user_input","derived"]},"mayDisplay":{"type":"boolean"},"mayQuote":{"type":"boolean"},"note":{"type":["string","null"]}},"required":["basis","mayDisplay","mayQuote","note"]},"Forecast":{"type":"object","properties":{"scope":{"type":"object","properties":{"kind":{"type":"string","enum":["all","team","own"]},"members":{"type":"array","items":{"type":"string"}}},"required":["kind","members"]},"rulesVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"quarter":{"type":["string","null"]},"total":{"type":"object","properties":{"deals":{"type":"integer"},"pipelineUsd":{"type":"number"},"noryxUsd":{"type":"number"},"crmUsd":{"type":"number"},"gapUsd":{"type":"number"}},"required":["deals","pipelineUsd","noryxUsd","crmUsd","gapUsd"]},"byRep":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"deals":{"type":"integer"},"pipelineUsd":{"type":"number"},"noryxUsd":{"type":"number"},"crmUsd":{"type":"number"},"gapUsd":{"type":"number"},"drivers":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"gapUsd":{"type":"number"},"reason":{"type":"string"}},"required":["dealId","name","gapUsd","reason"]}}},"required":["key","label","deals","pipelineUsd","noryxUsd","crmUsd","gapUsd","drivers"]}},"byQuarter":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"deals":{"type":"integer"},"pipelineUsd":{"type":"number"},"noryxUsd":{"type":"number"},"crmUsd":{"type":"number"},"gapUsd":{"type":"number"},"drivers":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"gapUsd":{"type":"number"},"reason":{"type":"string"}},"required":["dealId","name","gapUsd","reason"]}}},"required":["key","label","deals","pipelineUsd","noryxUsd","crmUsd","gapUsd","drivers"]}},"deals":{"type":"array","items":{"$ref":"#/components/schemas/ForecastComparison"}},"history":{"type":"object","properties":{"months":{"type":"integer"},"closed":{"type":"integer"},"excluded":{"type":"integer"},"stages":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string"},"reached":{"type":"integer"},"won":{"type":"integer"},"observed":{"type":"string"},"base":{"type":"object","properties":{"rate":{"type":"number"},"source":{"type":"string","enum":["history","default"]},"basis":{"type":"string"}},"required":["rate","source","basis"]}},"required":["stage","reached","won","observed","base"]}}},"required":["months","closed","excluded","stages"]},"nextQuarter":{"$ref":"#/components/schemas/RevenueOutlook"}},"required":["scope","rulesVersion","generatedAt","quarter","total","byRep","byQuarter","deals","history","nextQuarter"]},"ForecastComparison":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"accountName":{"type":"string"},"owner":{"type":["string","null"]},"stage":{"type":"string"},"quarter":{"type":["string","null"]},"forecastCategory":{"type":["string","null"]},"amountUsd":{"type":"number"},"noryx":{"type":"number"},"crm":{"type":["number","null"]},"noryxUsd":{"type":"number"},"crmUsd":{"type":"number"},"gapUsd":{"type":"number"},"direction":{"type":"string","enum":["below","above","aligned","no_crm"]},"reasons":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["deal","person","interaction","evidence","account"]},"id":{"type":"string","format":"uuid"}},"required":["type","id"]}}},"required":["text","evidence"]}}},"required":["dealId","name","accountName","owner","stage","quarter","forecastCategory","amountUsd","noryx","crm","noryxUsd","crmUsd","gapUsd","direction","reasons"]},"IntelligenceRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["research","signal_scan","signal_interpretation","buyer_map","pre_call_brief","deal_diagnosis","next_best_action","validation","call_analysis","call_updates","business_case","seller_profile_suggestions"]},"subjectType":{"type":"string","enum":["account","deal","signal","interaction","organization"]},"subjectId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"]},"progress":{"type":"integer","minimum":0,"maximum":100},"stage":{"type":"string"},"mode":{"type":["string","null"],"enum":["live","reduced","mixed",null]},"reason":{"type":["string","null"]},"blind":{"type":"boolean"},"resultDecisionId":{"type":["string","null"],"format":"uuid"},"aiCostUsd":{"type":"number"},"error":{"type":["string","null"]},"requestedByUserId":{"type":["string","null"],"format":"uuid"},"pipeline":{"type":["string","null"]},"resumedFromRunId":{"type":["string","null"],"format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"finishedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","subjectType","subjectId","status","progress","stage","mode","reason","blind","resultDecisionId","aiCostUsd","error","requestedByUserId","pipeline","resumedFromRunId","createdAt","startedAt","finishedAt"],"description":"An asynchronous intelligence job and its progress"},"InteractionListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["call","email","meeting","message","note","ticket"]},"direction":{"type":["string","null"],"enum":["inbound","outbound","internal",null]},"subject":{"type":["string","null"]},"summary":{"type":["string","null"]},"occurredAt":{"type":"string","format":"date-time"},"accountId":{"type":["string","null"],"format":"uuid"},"dealId":{"type":["string","null"],"format":"uuid"},"channel":{"type":["string","null"]},"body":{"type":["string","null"]},"durationSeconds":{"type":["integer","null"]},"source":{"type":"string"},"participants":{"type":"array","items":{"type":"object","properties":{"personId":{"type":["string","null"],"format":"uuid"},"userId":{"type":["string","null"],"format":"uuid"},"role":{"type":"string","enum":["from","to","cc","bcc","organizer","attendee","speaker","mentioned"]},"address":{"type":["string","null"]},"displayName":{"type":["string","null"]}},"required":["personId","userId","role","address","displayName"]}}},"required":["id","type","direction","subject","summary","occurredAt","accountId","dealId","channel","body","durationSeconds","source","participants"]},"InteractionPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InteractionListItem"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]},"LinkedClaim":{"type":"object","properties":{"statement":{"type":"string"},"claimType":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"requestedClaimType":{"type":"string","enum":["fact","interpretation","hypothesis","unknown"]},"downgradeReason":{"type":["string","null"]},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["statement","claimType","requestedClaimType","downgradeReason","evidenceIds"]},"MemoryEntry":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["icp","persona","messaging","positioning","objection","win_pattern","loss_pattern","discovery_question","buying_committee","business_case_template"]},"title":{"type":"string"},"body":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","proposed","rejected","archived"]},"source":{"type":"string","enum":["manual","learned","seed"]},"sourceLabel":{"type":["string","null"]},"version":{"type":"integer"},"embeddingModel":{"type":["string","null"]},"reviewedBy":{"type":["string","null"]},"reviewedAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","kind","title","body","tags","status","source","sourceLabel","version","embeddingModel","reviewedBy","reviewedAt","updatedBy","updatedAt"]},"MemoryHit":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["icp","persona","messaging","positioning","objection","win_pattern","loss_pattern","discovery_question","buying_committee","business_case_template"]},"title":{"type":"string"},"version":{"type":"integer"},"source":{"type":"string"},"body":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"score":{"type":"number"},"match":{"type":"string"}},"required":["id","kind","title","version","source","body","tags","score","match"]},"MemoryList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MemoryEntry"}},"kinds":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["icp","persona","messaging","positioning","objection","win_pattern","loss_pattern","discovery_question","buying_committee","business_case_template"]},"label":{"type":"string"}},"required":["kind","label"]}},"retrieval":{"$ref":"#/components/schemas/MemoryRetrieval"}},"required":["items","kinds","retrieval"]},"MemoryRetrieval":{"type":"object","properties":{"model":{"type":"string"},"reduced":{"type":"boolean"},"label":{"type":"string"}},"required":["model","reduced","label"]},"MemoryUse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["icp","persona","messaging","positioning","objection","win_pattern","loss_pattern","discovery_question","buying_committee","business_case_template"]},"title":{"type":"string"},"version":{"type":"integer"},"source":{"type":"string"}},"required":["id","kind","title","version","source"]},"NextBestActionPayload":{"type":"object","properties":{"type":{"type":"string","enum":["next_best_action"]},"deal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"action":{"type":"string"},"channel":{"type":"string","enum":["email","call","meeting","task","linkedin"]},"person":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"whyNow":{"type":"string"},"expectedOutcome":{"type":"string"},"dueBy":{"type":"string"},"draft":{"type":["object","null"],"properties":{"subject":{"type":["string","null"]},"body":{"type":"string"}},"required":["subject","body"]},"closes":{"type":"array","items":{"type":"string"}},"expectedGain":{"type":"number"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}},"alternatives":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string"},"closes":{"type":"array","items":{"type":"string"}},"gain":{"type":"number"},"why":{"type":"string"},"learned":{"type":["object","null"],"properties":{"multiplier":{"type":"number"},"outcomes":{"type":"integer"},"basis":{"type":"string"}},"required":["multiplier","outcomes","basis"]}},"required":["action","closes","gain","why"]}},"basis":{"type":"object","properties":{"healthScore":{"type":"integer"},"rulesVersion":{"type":"string"},"candidates":{"type":"integer"},"learned":{"type":["object","null"],"properties":{"multiplier":{"type":"number"},"outcomes":{"type":"integer"},"basis":{"type":"string"}},"required":["multiplier","outcomes","basis"]}},"required":["healthScore","rulesVersion","candidates"]}},"required":["type","deal","action","channel","person","whyNow","expectedOutcome","dueBy","draft","closes","expectedGain","evidenceIds","alternatives","basis"]},"Outcome":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["reply_received","meeting_booked","deal_advanced","deal_won","deal_lost","no_response","other"]},"label":{"type":"string"},"result":{"type":["string","null"],"enum":["positive","neutral","negative",null]},"source":{"type":"string","enum":["manual","detected"]},"occurredAt":{"type":"string","format":"date-time"},"notes":{"type":["string","null"]},"actionId":{"type":["string","null"],"format":"uuid"},"decisionId":{"type":["string","null"],"format":"uuid"},"details":{"type":["object","null"],"additionalProperties":{}},"recordedBy":{"type":["string","null"]}},"required":["id","type","label","result","source","occurredAt","notes","actionId","decisionId","details","recordedBy"]},"PartialDate":{"type":"object","properties":{"date":{"type":["string","null"],"format":"date"},"precision":{"type":"string","enum":["day","month","year","unknown"]}},"required":["date","precision"],"description":"A date with its precision (day, month, year, unknown)"},"PersonListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"accountId":{"type":["string","null"],"format":"uuid"},"fullName":{"type":"string","minLength":1},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"title":{"type":["string","null"]},"seniority":{"type":["string","null"]},"department":{"type":["string","null"]},"linkedinUrl":{"type":["string","null"]},"primaryEmail":{"type":["string","null"]},"countryCode":{"type":["string","null"],"minLength":2,"maxLength":2},"source":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"accountName":{"type":["string","null"]},"ownerUserId":{"type":["string","null"],"format":"uuid"},"lastInteractionAt":{"type":["string","null"],"format":"date-time"},"interactionCount":{"type":"integer","minimum":0},"buyingRoles":{"type":"array","items":{"type":"string"}}},"required":["id","orgId","accountId","fullName","firstName","lastName","title","seniority","department","linkedinUrl","primaryEmail","countryCode","source","createdAt","updatedAt","accountName","ownerUserId","lastInteractionAt","interactionCount","buyingRoles"]},"PersonPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PersonListItem"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]},"PreCallBriefPayload":{"type":"object","properties":{"type":{"type":"string","enum":["pre_call_brief"]},"deal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"meeting":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"subject":{"type":["string","null"]},"occurredAt":{"type":"string"}},"required":["subject","occurredAt"]},"headline":{"type":"string"},"objective":{"type":"string"},"situation":{"type":"string"},"attendees":{"type":"array","items":{"type":"object","properties":{"personId":{"type":["string","null"],"format":"uuid"},"name":{"type":"string"},"role":{"type":"string"},"stance":{"type":"string"},"caresAbout":{"type":"string"},"howToEngage":{"type":"string"}},"required":["personId","name","role","stance","caresAbout","howToEngage"]}},"talkingPoints":{"type":"array","items":{"type":"object","properties":{"point":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["point","evidenceIds"]}},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"why":{"type":"string"}},"required":["question","why"]}},"risks":{"type":"array","items":{"type":"object","properties":{"risk":{"type":"string"},"mitigation":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["risk","mitigation","evidenceIds"]}},"competition":{"type":["object","null"],"properties":{"competitor":{"type":"string"},"positioning":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["competitor","positioning","evidenceIds"]},"nextStep":{"type":"string"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/LinkedClaim"}},"inputs":{"type":"object","properties":{"research":{"type":"boolean"},"buyerMap":{"type":"boolean"},"diagnosis":{"type":"boolean"},"interpretations":{"type":"integer"},"evidence":{"type":"integer"}},"required":["research","buyerMap","diagnosis","interpretations","evidence"]},"memory":{"type":"array","items":{"$ref":"#/components/schemas/MemoryUse"}}},"required":["type","deal","meeting","headline","objective","situation","attendees","talkingPoints","questions","risks","competition","nextStep","claims","inputs"]},"PriorityAccount":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"day":{"type":"string"},"rank":{"type":"integer"},"accountId":{"type":"string","format":"uuid"},"accountName":{"type":"string"},"ownerName":{"type":["string","null"]},"priority":{"type":"number"},"breakdown":{"$ref":"#/components/schemas/ProspectScore"},"brief":{"$ref":"#/components/schemas/ProspectBrief"},"writtenBy":{"type":"string","enum":["rules","claude"]},"agentRunId":{"type":["string","null"],"format":"uuid"},"decisionId":{"type":["string","null"],"format":"uuid"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","day","rank","accountId","accountName","ownerName","priority","breakdown","brief","writtenBy","agentRunId","decisionId","createdAt"]},"ProspectBrief":{"type":"object","properties":{"whyNow":{"type":"string"},"persona":{"type":["object","null"],"properties":{"personId":{"type":"string","format":"uuid"},"name":{"type":"string"},"title":{"type":["string","null"]},"hasEmail":{"type":"boolean"}},"required":["personId","name","title","hasEmail"]},"likelyPain":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["account","person","signal","deal","evidence"]},"id":{"type":"string","format":"uuid"},"label":{"type":"string"}},"required":["type","id","label"]}},"angle":{"type":"string"},"channel":{"type":"string","enum":["email","call","linkedin","task"]},"message":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"}},"required":["subject","body"]},"nextAction":{"type":"string"}},"required":["whyNow","persona","likelyPain","evidence","angle","channel","message","nextAction"]},"ProspectPayload":{"type":"object","properties":{"type":{"type":"string","enum":["prospect"]},"day":{"type":"string"},"rank":{"type":"integer"},"score":{"$ref":"#/components/schemas/ProspectScore"},"brief":{"$ref":"#/components/schemas/ProspectBrief"}},"required":["type","day","rank","score","brief"]},"ProspectScore":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"number"},"fit":{"type":"object","properties":{"score":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"score":{"type":"number"},"weight":{"type":"number"},"contribution":{"type":"number"},"reasons":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["account","person","signal","deal"]},"id":{"type":"string","format":"uuid"}},"required":["type","id"]}}},"required":["key","label","score","weight","contribution","reasons","evidence"]}}},"required":["score","parts"]},"signal":{"type":"object","properties":{"score":{"type":"number"},"top":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"category":{"type":"string"},"title":{"type":"string"},"strength":{"type":["number","null"]},"occurredAt":{"type":"string","format":"date-time"}},"required":["id","category","title","strength","occurredAt"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["score","top","reasons"]},"context":{"type":"object","properties":{"score":{"type":"number"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["score","reasons"]},"weights":{"type":"object","properties":{"fit":{"type":"number"},"signal":{"type":"number"},"context":{"type":"number"}},"required":["fit","signal","context"]},"learned":{"type":["object","null"],"properties":{"multiplier":{"type":"number"},"outcomes":{"type":"integer"},"basis":{"type":"string"}},"required":["multiplier","outcomes"]},"icp":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"name":{"type":"string"},"version":{"type":"integer"},"source":{"type":"string","enum":["profile","derived"]}},"required":["id","name","version","source"]},"scoringVersion":{"type":"string"}},"required":["accountId","name","priority","fit","signal","context","weights","learned","icp","scoringVersion"],"description":"A prospect priority with every part of the score"},"RequestIntelligenceRunInput":{"type":"object","properties":{"kind":{"type":"string","enum":["research","signal_scan","signal_interpretation","buyer_map","pre_call_brief","deal_diagnosis","next_best_action","validation","call_analysis","call_updates","business_case","seller_profile_suggestions"]},"subjectId":{"type":"string","format":"uuid"},"blind":{"type":"boolean"}},"required":["kind","subjectId"]},"ResearchBriefPayload":{"type":"object","properties":{"type":{"type":"string","enum":["research_brief"]},"summary":{"type":"string"},"incomplete":{"type":"boolean"},"missingSources":{"type":"array","items":{"type":"string"}},"sourcesRead":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":["string","null"]},"kind":{"type":"string","enum":["website","web","news"]},"published":{"type":"string"}},"required":["url","title","kind","published"]}},"signals":{"type":"array","items":{"type":"object","properties":{"signalId":{"type":"string","format":"uuid"},"priority":{"type":"string","enum":["act_now","monitor","background"]},"observedFact":{"type":"string"},"whyItMatters":{"type":["string","null"]},"angle":{"type":["string","null"]},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["signalId","priority","observedFact","whyItMatters","angle","evidenceIds"]}},"recommendationIds":{"type":"array","items":{"type":"string","format":"uuid"}},"noQualifyingSignal":{"type":"boolean"},"setAside":{"type":"array","items":{"type":"object","properties":{"statement":{"type":"string"},"reason":{"type":"string"}},"required":["statement","reason"]}},"limitations":{"type":"array","items":{"type":"string"}},"openQuestions":{"type":"array","items":{"type":"string"}},"sellerProfileVersion":{"type":"integer"},"rubricVersion":{"type":"string"},"about":{"type":["object","null"],"properties":{"text":{"type":"string"},"url":{"type":"string"}},"required":["text","url"]}},"required":["type","summary","incomplete","missingSources","sourcesRead","signals","recommendationIds","noQualifyingSignal","setAside","limitations","openQuestions","sellerProfileVersion","rubricVersion"]},"ResearchPayload":{"type":"object","properties":{"type":{"type":"string","enum":["research"]},"summary":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["company_and_industry","strategy","leadership","financial_context","recent_events","technology","hiring","competitors","positioning","challenges","likely_initiatives"]},"label":{"type":"string"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/DecisionClaim"}},"gaps":{"type":"array","items":{"type":"string"}}},"required":["key","label","claims","gaps"]}},"unknowns":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"whyItMatters":{"type":"string"}},"required":["question","whyItMatters"]}},"openQuestions":{"type":"array","items":{"type":"string"}},"pagesRead":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":["string","null"]}},"required":["url","title"]}},"webSourcesConsulted":{"type":"integer"}},"required":["type","summary","sections","unknowns","openQuestions","pagesRead","webSourcesConsulted"]},"RevenueOutlook":{"type":"object","properties":{"quarter":{"type":"string"},"deals":{"type":"integer"},"pipelineUsd":{"type":"number"},"noryxUsd":{"type":"number"},"crmUsd":{"type":"number"},"byStage":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string"},"deals":{"type":"integer"},"noryxUsd":{"type":"number"}},"required":["stage","deals","noryxUsd"]}},"byRep":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"deals":{"type":"integer"},"noryxUsd":{"type":"number"}},"required":["name","deals","noryxUsd"]}},"bySource":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["expansion","new_business"]},"deals":{"type":"integer"},"noryxUsd":{"type":"number"}},"required":["source","deals","noryxUsd"]}},"top":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"owner":{"type":["string","null"]},"stage":{"type":"string"},"likelihood":{"type":"number"},"noryxUsd":{"type":"number"},"share":{"type":"number"}},"required":["dealId","name","owner","stage","likelihood","noryxUsd","share"]}},"concentration":{"type":"number"},"atRisk":{"type":"array","items":{"type":"object","properties":{"dealId":{"type":"string","format":"uuid"},"name":{"type":"string"},"amountUsd":{"type":"number"},"likelihood":{"type":"number"},"reason":{"type":"string"}},"required":["dealId","name","amountUsd","likelihood","reason"]}},"summary":{"type":"string"}},"required":["quarter","deals","pipelineUsd","noryxUsd","crmUsd","byStage","byRep","bySource","top","concentration","atRisk","summary"]},"SearchResponse":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"entityType":{"type":"string","enum":["account","person","deal","evidence"]},"entityId":{"type":"string","format":"uuid"},"documentId":{"type":"string","format":"uuid"},"title":{"type":"string"},"highlights":{"type":"object","properties":{"title":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"match":{"type":"boolean"}},"required":["text","match"]}},"body":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"match":{"type":"boolean"}},"required":["text","match"]}}},"required":["title","body"]},"score":{"type":"number"},"ranks":{"type":"object","properties":{"fulltext":{"type":["number","null"]},"trigram":{"type":["number","null"]},"semantic":{"type":["number","null"]}},"required":["fulltext","trigram","semantic"]},"exactTitle":{"type":"boolean"}},"required":["entityType","entityId","documentId","title","highlights","score","ranks","exactTitle"]}},"semantic":{"type":"object","properties":{"enabled":{"type":"boolean"},"used":{"type":"boolean"}},"required":["enabled","used"]},"tookMs":{"type":"number"}},"required":["query","results","semantic","tookMs"]},"SignalInterpretationPayload":{"type":"object","properties":{"type":{"type":"string","enum":["signal_interpretation"]},"signal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"category":{"type":"string"},"title":{"type":"string"},"occurredAt":{"type":"string"}},"required":["id","category","title","occurredAt"]},"meaning":{"type":"string"},"whyItMatters":{"type":"string"},"implication":{"type":"string","enum":["opportunity","risk","neutral"]},"urgency":{"type":"string","enum":["now","this_week","this_month","monitor"]},"affectedDealIds":{"type":"array","items":{"type":"string","format":"uuid"}},"recommendedResponse":{"type":"string"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/LinkedClaim"}},"openQuestions":{"type":"array","items":{"type":"string"}}},"required":["type","signal","meaning","whyItMatters","implication","urgency","affectedDealIds","recommendedResponse","claims","openQuestions"]},"SignalListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"category":{"type":"string","enum":["funding","hiring","leadership_change","expansion","product_launch","website_change","website_activity","news","partnership","stakeholder_inactivity","stalled_deal","close_date_slip","competitor_mention","champion_engagement","deal_velocity","renewal","payment_issue","churn_risk","support_volume","support_escalation","support_satisfaction","deal_risk","buying_signal","other"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"accountId":{"type":["string","null"],"format":"uuid"},"personId":{"type":["string","null"],"format":"uuid"},"dealId":{"type":["string","null"],"format":"uuid"},"occurredAt":{"type":"string","format":"date-time"},"strength":{"type":["number","null"],"minimum":0,"maximum":1},"confidence":{"type":["object","null"],"properties":{"score":{"type":"number","minimum":0,"maximum":1},"level":{"type":"string","enum":["low","medium","high"]}},"required":["score","level"]},"sourceUrl":{"type":["string","null"]},"status":{"type":"string"},"accountName":{"type":["string","null"]},"dealName":{"type":["string","null"]},"personName":{"type":["string","null"]},"source":{"type":"string"},"detectedAt":{"type":"string","format":"date-time"},"qualification":{"$ref":"#/components/schemas/SignalQualification"}},"required":["id","category","title","summary","accountId","personId","dealId","occurredAt","strength","confidence","sourceUrl","status","accountName","dealName","personName","source","detectedAt","qualification"]},"SignalPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SignalListItem"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]},"SignalQualification":{"type":["object","null"],"properties":{"eventType":{"type":["string","null"],"enum":["funding","acquisition","leadership_change","hiring","expansion","product_launch","partnership","regulatory","restructuring","technology_change","financial_results","contract_win",null]},"eventDate":{"$ref":"#/components/schemas/PartialDate"},"dateLabel":{"type":"string"},"observedFact":{"type":"string"},"inference":{"type":["string","null"]},"factConfidence":{"type":["string","null"],"enum":["low","medium","high",null]},"relevance":{"type":"string","enum":["high","medium","low","none"]},"relevanceReason":{"type":"string"},"priority":{"type":"string","enum":["act_now","monitor","background"]},"priorityLabel":{"type":"string"},"priorityReason":{"type":"string"},"contradictions":{"type":"array","items":{"type":"string"}},"missingInfo":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":["string","null"],"format":"date-time"},"expired":{"type":"boolean"},"sellerProfileVersion":{"type":"integer"},"rubricVersion":{"type":"string"},"sourceCount":{"type":"integer"},"evidenceIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["eventType","eventDate","dateLabel","observedFact","inference","factConfidence","relevance","relevanceReason","priority","priorityLabel","priorityReason","contradictions","missingInfo","expiresAt","expired","sellerProfileVersion","rubricVersion","sourceCount","evidenceIds"],"description":"How NORYX judged a signal, and why"},"Stakeholder":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"dealId":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"fullName":{"type":"string"},"title":{"type":["string","null"]},"buyingRole":{"type":"string"},"influence":{"type":["integer","null"]},"sentiment":{"type":["string","null"]},"isPrimaryContact":{"type":"boolean"},"notes":{"type":["string","null"]}},"required":["id","dealId","personId","fullName","title","buyingRole","influence","sentiment","isPrimaryContact","notes"]},"UpdateAccountInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"domain":{"type":["string","null"],"minLength":1,"maxLength":253},"websiteUrl":{"type":["string","null"],"maxLength":2048,"format":"uri"},"linkedinUrl":{"type":["string","null"],"maxLength":2048,"format":"uri"},"industry":{"type":["string","null"],"minLength":1,"maxLength":120},"description":{"type":["string","null"],"minLength":1,"maxLength":4000},"employeeCount":{"type":["integer","null"],"minimum":0},"annualRevenue":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"countryCode":{"type":["string","null"],"pattern":"^[A-Za-z]{2}$"},"region":{"type":["string","null"],"minLength":1,"maxLength":120},"city":{"type":["string","null"],"minLength":1,"maxLength":120},"lifecycleStage":{"type":["string","null"],"enum":["prospect","customer","partner","churned","other",null]},"parentAccountId":{"type":["string","null"],"format":"uuid"},"ownerUserId":{"type":["string","null"],"format":"uuid"}}},"UpdateDealInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"stage":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"amount":{"type":["object","null"],"properties":{"amount":{"type":"string","pattern":"^-?\\d{1,16}(\\.\\d{1,2})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"closeDate":{"type":["string","null"],"format":"date"},"probability":{"type":["integer","null"],"minimum":0,"maximum":100},"forecastCategory":{"type":["string","null"],"enum":["pipeline","best_case","commit","closed","omitted",null]},"ownerUserId":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["open","won","lost"]},"lostReason":{"type":["string","null"],"minLength":1,"maxLength":2000}}},"UpdatePersonInput":{"type":"object","properties":{"fullName":{"type":"string","minLength":1,"maxLength":300},"firstName":{"type":["string","null"],"minLength":1,"maxLength":120},"lastName":{"type":["string","null"],"minLength":1,"maxLength":120},"title":{"type":["string","null"],"minLength":1,"maxLength":200},"seniority":{"type":["string","null"],"minLength":1,"maxLength":60},"department":{"type":["string","null"],"minLength":1,"maxLength":120},"accountId":{"type":["string","null"],"format":"uuid"},"linkedinUrl":{"type":["string","null"],"maxLength":2048,"format":"uri"},"countryCode":{"type":["string","null"],"pattern":"^[A-Za-z]{2}$"},"city":{"type":["string","null"],"minLength":1,"maxLength":120},"ownerUserId":{"type":["string","null"],"format":"uuid"}}},"WorkflowRecommendationPayload":{"type":"object","properties":{"type":{"type":"string","enum":["workflow_recommendation"]},"workflow":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"integer"}},"required":["id","name","version"]},"runId":{"type":"string","format":"uuid"},"dryRun":{"type":"boolean"},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"trigger":{"type":"object","properties":{"label":{"type":"string"},"signalId":{"type":["string","null"],"format":"uuid"}},"required":["label","signalId"]},"findings":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"statement":{"type":"string"},"citations":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"label":{"type":"string"}},"required":["type","id"]}}},"required":["step","statement","citations"]}},"priorities":{"type":"array","items":{"type":"string"}},"score":{"type":["object","null"],"properties":{"priority":{"type":"number"},"fit":{"type":"number"},"rulesVersion":{"type":"string"}},"required":["priority","fit","rulesVersion"]},"proposals":{"type":"array","items":{"$ref":"#/components/schemas/AgentProposal"}},"memory":{"type":"array","items":{"$ref":"#/components/schemas/MemoryUse"}}},"required":["type","workflow","runId","dryRun","account","trigger","findings","priorities","score","proposals"]}}}}