{"openapi":"3.1.0","info":{"title":"Public API","description":"Public API for You.com services","version":"0.1.0"},"paths":{"/canary/v1/billing-analytics/usage":{"get":{"tags":["Billing Analytics"],"summary":"Get Usage Breakdown","description":"Fetch usage breakdown grouped by API key for the usage dashboard.\n\nUses Orb's evaluate_price API to get accurate usage and cost data.\nReturns usage data grouped by key_id and product with rates and\nOrb-calculated costs.\nOptionally filter to specific key_ids using filter[key_ids]=key1,key2.\nMaximum 10 key_ids per request.\nResults are cached in Redis for 5 minutes to reduce Orb API calls.","operationId":"get_usage_breakdown_canary_v1_billing_analytics_usage_get","parameters":[{"name":"filter[key_ids]","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated API key IDs to filter by","title":"Filter[Key Ids]"},"description":"Comma-separated API key IDs to filter by"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Start Date"}},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End Date"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["user","organization"],"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"granularity","in":"query","required":false,"schema":{"enum":["day","hour"],"type":"string","default":"day","title":"Granularity"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Usage Breakdown Canary V1 Billing Analytics Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/entitlements/users/{descope_user_id}/pair-info":{"get":{"tags":["Entitlements"],"summary":"Get PAIR User Info","description":"Get comprehensive user information including subscription and organization details","operationId":"get_pair_user_info_canary_v1_entitlements_users__descope_user_id__pair_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"descope_user_id","in":"path","required":true,"schema":{"type":"string","title":"Descope User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairUserInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/entitlements/{entitlement}/access":{"get":{"tags":["Entitlements"],"summary":"Check Entitlement Access","description":"Check if the authenticated user has access to a specific entitlement","operationId":"get_entitlement_access_canary_v1_entitlements__entitlement__access_get","parameters":[{"name":"entitlement","in":"path","required":true,"schema":{"type":"string","title":"Entitlement"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/entitlements/{entitlement}":{"get":{"tags":["Entitlements"],"summary":"Get Entitlement Info","description":"Get entitlement information and usage for the authenticated user","operationId":"get_entitlement_info_canary_v1_entitlements__entitlement__get","parameters":[{"name":"entitlement","in":"path","required":true,"schema":{"type":"string","title":"Entitlement"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Entitlements"],"summary":"Add Entitlement Use","description":"Add usage credits to an entitlement for the authenticated user","operationId":"add_entitlement_use_canary_v1_entitlements__entitlement__post","parameters":[{"name":"entitlement","in":"path","required":true,"schema":{"type":"string","title":"Entitlement"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddEntitlementUseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/entitlements/users/me":{"get":{"tags":["Entitlements"],"summary":"Get User Entitlements","description":"Get all entitlements for the authenticated user","operationId":"get_user_entitlements_canary_v1_entitlements_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEntitlementsResponse"}}}}}}},"/canary/v1/entitlements/rules/users/me":{"get":{"tags":["Entitlements"],"summary":"Get User Entitlement Rules","description":"Get all entitlement rules for the authenticated user","operationId":"get_user_entitlement_rules_canary_v1_entitlements_rules_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRulesResponse"}}}}}}},"/canary/v1/entitlements/{entitlement}/users/{user_id}":{"delete":{"tags":["Entitlements"],"summary":"Reset Entitlement Use","description":"Reset entitlement usage for a specific user (internal use only, requires @you.com email)","operationId":"reset_entitlement_use_canary_v1_entitlements__entitlement__users__user_id__delete","parameters":[{"name":"entitlement","in":"path","required":true,"schema":{"type":"string","title":"Entitlement"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/entitlements/{entitlement}/rules":{"post":{"tags":["Entitlements"],"summary":"Add Entitlement Rule","description":"Add a custom entitlement rule (requires @you.com email)","operationId":"add_entitlement_rule_canary_v1_entitlements__entitlement__rules_post","parameters":[{"name":"entitlement","in":"path","required":true,"schema":{"type":"string","title":"Entitlement"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementRuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/api_keys":{"post":{"tags":["API Keys"],"summary":"Create API Key","description":"Create a new API key for the authenticated user","operationId":"create_key_canary_v1_api_keys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["API Keys"],"summary":"List API Keys","description":"List all API keys for the authenticated user","operationId":"list_keys_canary_v1_api_keys_get","parameters":[{"name":"user_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"User Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/api_keys/{api_key_id}":{"get":{"tags":["API Keys"],"summary":"Get API Key","description":"Get a specific API key by ID","operationId":"get_key_canary_v1_api_keys__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["API Keys"],"summary":"Update API Key","description":"Update a specific API key by ID","operationId":"patch_key_canary_v1_api_keys__api_key_id__patch","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["API Keys"],"summary":"Delete API Key","description":"Delete a specific API key by ID","operationId":"delete_key_canary_v1_api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/api_keys/demo":{"post":{"tags":["API Keys"],"summary":"Get or create Demo API Key","description":"Get or createthe demo API key for the authenticated user","operationId":"create_demo_key_canary_v1_api_keys_demo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestBase"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/api-analytics/dashboards/{metric_type}":{"get":{"tags":["API Analytics"],"summary":"Get Dashboard Url","operationId":"get_dashboard_url_canary_v1_api_analytics_dashboards__metric_type__get","parameters":[{"name":"metric_type","in":"path","required":true,"schema":{"enum":["usage","latency","success_rate"],"type":"string","title":"Metric Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/api-analytics/query":{"post":{"tags":["API Analytics"],"summary":"Query Analytics","operationId":"query_analytics_canary_v1_api_analytics_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/enterprise_analytics/dashboards":{"get":{"tags":["Enterprise Analytics"],"summary":"Get Tableau Dashboard URL","description":"Get the Tableau Cloud dashboard URL for enterprise analytics. Requires admin or owner role. User will be provisioned on first access.","operationId":"get_tableau_dashboard_url_canary_v1_enterprise_analytics_dashboards_get","parameters":[{"name":"dashboard_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tableau dashboard name to access. If not provided, the default dashboard will be used.","title":"Dashboard Name"},"description":"Tableau dashboard name to access. If not provided, the default dashboard will be used."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableauDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/snapshots":{"get":{"tags":["Snapshots"],"summary":"Get Snapshots","description":"Get all snapshots for the authenticated user, optionally filtered by thread_id","operationId":"get_snapshots_canary_v1_snapshots_get","parameters":[{"name":"filter[threads.id]","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter[Threads.Id]"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Snapshots"],"summary":"Create Snapshot","description":"Create a new snapshot from a thread","operationId":"create_snapshot_canary_v1_snapshots_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/snapshots/threads/{thread_id}":{"get":{"tags":["Snapshots"],"summary":"Get Snapshots by Thread","description":"Get all snapshots for a specific thread","operationId":"get_snapshots_by_thread_canary_v1_snapshots_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/snapshots/projects/{project_id}/{snapshot_id}/clone":{"get":{"tags":["Snapshots"],"summary":"Clone Snapshot to Project","description":"Clone a snapshot to create a new thread in a specific project","operationId":"clone_snapshot_to_project_canary_v1_snapshots_projects__project_id___snapshot_id__clone_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotCloneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/snapshots/{snapshot_id}":{"get":{"tags":["Snapshots"],"summary":"Get Snapshot","description":"Get a snapshot by id","operationId":"get_snapshot_canary_v1_snapshots__snapshot_id__get","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Snapshots"],"summary":"Delete Snapshot","description":"Delete a snapshot","operationId":"delete_snapshot_canary_v1_snapshots__snapshot_id__delete","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/snapshots/{snapshot_id}/clone":{"get":{"tags":["Snapshots"],"summary":"Clone Snapshot","description":"Clone a snapshot to create a new thread","operationId":"clone_snapshot_canary_v1_snapshots__snapshot_id__clone_get","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotCloneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/models":{"get":{"tags":["AI Models"],"summary":"Get AI Models","description":"Retrieve available AI models grouped by provider with New & Popular section in JSON:API format","operationId":"retrieve_ai_models_canary_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiModelsResponse"}}}}}}},"/canary/v1/organization/{tenant_id}/scim-groups":{"get":{"tags":["Organization"],"summary":"Get Organization SCIM Groups","description":"Get SCIM groups for the authenticated user's organization. Requires owner role.","operationId":"get_organization_scim_groups_canary_v1_organization__tenant_id__scim_groups_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the tenant","title":"Tenant Id"},"description":"The ID of the tenant"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JSONAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/organization/{tenant_id}/users/{user_id}/roles":{"post":{"tags":["Organization"],"summary":"Add User Roles","description":"Add roles to a user in the tenant. Caller must be an admin or owner.","operationId":"add_user_roles_canary_v1_organization__tenant_id__users__user_id__roles_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the tenant","title":"Tenant Id"},"description":"The ID of the tenant"},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","description":"The login ID of the user to update","title":"User Id"},"description":"The login ID of the user to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRolesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JSONAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Organization"],"summary":"Replace User Roles","description":"Replace all roles for a user in the tenant. Caller must be an admin or owner.","operationId":"replace_user_roles_canary_v1_organization__tenant_id__users__user_id__roles_put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the tenant","title":"Tenant Id"},"description":"The ID of the tenant"},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","description":"The login ID of the user to update","title":"User Id"},"description":"The login ID of the user to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRolesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JSONAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Organization"],"summary":"Remove User Roles","description":"Remove specific roles from a user in the tenant. Caller must be an admin or owner. Note: DELETE with a JSON body is non-standard; some clients omit bodies—ensure yours sends it.","operationId":"remove_user_roles_canary_v1_organization__tenant_id__users__user_id__roles_delete","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the tenant","title":"Tenant Id"},"description":"The ID of the tenant"},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","description":"The login ID of the user to update","title":"User Id"},"description":"The login ID of the user to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRolesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JSONAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/organization/{tenant_id}/users/export":{"get":{"tags":["Organization"],"summary":"Export Organization Users","description":"Export organization members as a CSV file. Requires tenant membership.","operationId":"export_organization_users_canary_v1_organization__tenant_id__users_export_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the tenant","title":"Tenant Id"},"description":"The ID of the tenant"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/users/jwt":{"get":{"tags":["Users"],"summary":"Get user JWT (internal)","description":"Get all JWT for the authenticated user","operationId":"get_me_jwt_canary_v1_users_jwt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Me Jwt Canary V1 Users Jwt Get"}}}}}}},"/canary/v1/users/ydc_user":{"get":{"tags":["Users"],"summary":"Get YDC User (internal)","operationId":"get_me_ydc_user_canary_v1_users_ydc_user_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YdcUser"}}}}}}},"/canary/v1/onboarding_profile":{"get":{"tags":["Onboarding Profile"],"summary":"Get Onboarding Profile","operationId":"get_onboarding_profile_canary_v1_onboarding_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingProfileResponse"}}}}}},"post":{"tags":["Onboarding Profile"],"summary":"Upsert Onboarding Profile","operationId":"upsert_onboarding_profile_canary_v1_onboarding_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOnboardingProfileRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canary/v1/onboarding_profile/verify":{"post":{"tags":["Onboarding Profile"],"summary":"Verify Work Email","description":"Called by Descope to mark a user's work email as verified","operationId":"verify_work_email_canary_v1_onboarding_profile_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyWorkEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/payments/v1/checkout":{"post":{"tags":["Payments","Checkout"],"summary":"Create Checkout","operationId":"create_checkout_payments_v1_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/webhooks/stripe":{"post":{"tags":["Payments","Webhooks"],"summary":"Process Stripe Webhook","operationId":"process_stripe_webhook_payments_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/payments/v1/webhooks/orb":{"post":{"tags":["Payments","Webhooks"],"summary":"Process Orb Webhook","description":"Orb webhook endpoint with signature verification.\n\nReturns:\n    JSONResponse with 200 on success, 400 on bad request, 500 on server error","operationId":"process_orb_webhook_payments_v1_webhooks_orb_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/payments/v1/subscriptions/me":{"get":{"tags":["Payments","Subscriptions"],"summary":"Get User Subscriptions","operationId":"get_user_subscriptions_payments_v1_subscriptions_me_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"product_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Path"}},{"name":"has_api_access","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Api Access"}},{"name":"has_core_access","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Core Access"}},{"name":"ydc_id","in":"query","required":false,"schema":{"anyOf":[{"enum":["user_id","tenant_id"],"type":"string"},{"type":"null"}],"title":"Ydc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/customers/me":{"get":{"tags":["Payments","Customers"],"summary":"Get Customer By Ydc Id","operationId":"get_customer_by_ydc_id_payments_v1_customers_me_get","parameters":[{"name":"ydc_id_type","in":"query","required":false,"schema":{"enum":["user_id","tenant_id"],"type":"string","default":"tenant_id","title":"Ydc Id Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/customers":{"get":{"tags":["Payments","Customers"],"summary":"Get Customer By Provider Query","operationId":"get_customer_by_provider_query_payments_v1_customers_get","parameters":[{"name":"provider","in":"query","required":true,"schema":{"const":"stripe","type":"string","title":"Provider"}},{"name":"provider_id","in":"query","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"X-Internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal"}},{"name":"X-YDC-Support-Request","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ydc-Support-Request"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/customers/{customer_id}":{"get":{"tags":["Payments","Customers"],"summary":"Get Customer By Db Id","operationId":"get_customer_by_db_id_payments_v1_customers__customer_id__get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Customer Id"}},{"name":"X-Internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal"}},{"name":"X-YDC-Support-Request","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ydc-Support-Request"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/customers/me/payment_methods":{"get":{"tags":["Payments","Customers"],"summary":"List User Payment Methods","operationId":"list_user_payment_methods_payments_v1_customers_me_payment_methods_get","parameters":[{"name":"ydc_id_type","in":"query","required":false,"schema":{"enum":["user_id","tenant_id"],"type":"string","default":"tenant_id","title":"Ydc Id Type"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"starting_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starting After"}},{"name":"ending_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ending Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/customer-portal":{"post":{"tags":["Payments","Customer Portal"],"summary":"Get Customer Portal","operationId":"get_customer_portal_payments_v1_customer_portal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPortalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/apibilling":{"get":{"tags":["Payments","API Billing"],"summary":"Get Api Subscription","operationId":"get_api_subscription_payments_v1_apibilling_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Payments","API Billing"],"summary":"Create Usage Api Subscription","operationId":"create_usage_api_subscription_payments_v1_apibilling_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/payments/v1/apibilling/credit_grants":{"get":{"tags":["Payments","API Billing"],"summary":"List Credit Grants","operationId":"list_credit_grants_payments_v1_apibilling_credit_grants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/payments/v1/apibilling/account_balance":{"get":{"tags":["Payments","API Billing"],"summary":"Get Account Balance","operationId":"get_account_balance_payments_v1_apibilling_account_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBalanceResponse"}}}}}}},"/payments/v1/apibilling/credit_balance":{"get":{"tags":["Payments","API Billing"],"summary":"Get Credit Balance Summary","operationId":"get_credit_balance_summary_payments_v1_apibilling_credit_balance_get","parameters":[{"name":"filter_type","in":"query","required":false,"schema":{"enum":["applicability_scope","credit_grant"],"type":"string","default":"applicability_scope","title":"Filter Type"}},{"name":"credit_grant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Grant"}},{"name":"price_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"metered","title":"Price Type"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"object","additionalProperties":true}},{"type":"null"}],"title":"Prices"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditBalanceSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/v1/credits/topup/settings":{"get":{"tags":["Payments","Credits, Auto-Topup"],"summary":"Get Auto Topup Settings","description":"Get auto-topup settings for the authenticated user's tenant","operationId":"get_auto_topup_settings_payments_v1_credits_topup_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopupSettingsResponse"}}}}}},"post":{"tags":["Payments","Credits, Auto-Topup"],"summary":"Set Auto Topup Settings","description":"Create or update auto-topup settings for the authenticated user's tenant.\n\nThis endpoint is idempotent - it creates settings if they don't exist,\nor updates them if they do exist.\n\nRequires tenant admin/owner role.","operationId":"set_auto_topup_settings_payments_v1_credits_topup_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopupSettingsInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopupSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/account_balance":{"get":{"tags":["Billing"],"summary":"Get Account Balance Api Key","description":"Remaining account balance for the authenticated API key (X-API-Key).\nUses a dedicated JSON:API resource type (`account`) under /v1; see\nGET /payments/v1/apibilling/account_balance for the legacy `account_balance` shape.","operationId":"get_account_balance_api_key_v1_billing_account_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BillingAccountBalanceResponse"}}}}}}},"/internal/v1/api_keys/verify":{"post":{"tags":["Internal API Key Validation"],"summary":"Verify Api Key","description":"Endpoint to verify an API key.\nThis is used to verify an API key without requiring Descope authentication.\nThis should only be called by internal services like our Index API, for example.\nVerifies the API key and returns the key object as a dictionary.","operationId":"verify_api_key_internal_v1_api_keys_verify_post","parameters":[{"name":"X-Internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal"}},{"name":"X-YDC-Support-Request","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ydc-Support-Request"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/test":{"get":{"summary":"Test","operationId":"test_v1_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthcheck":{"get":{"summary":"Healthcheck","operationId":"healthcheck_healthcheck_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/_/apps/public-api":{"get":{"summary":"Whoami","operationId":"whoami___apps_public_api_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AccountBalanceAttributes":{"properties":{"available_balance":{"type":"number","title":"Available Balance"},"pending_activity":{"type":"number","title":"Pending Activity"},"current_balance":{"type":"number","title":"Current Balance"}},"type":"object","required":["available_balance","pending_activity","current_balance"],"title":"AccountBalanceAttributes"},"AccountBalanceData":{"properties":{"type":{"type":"string","title":"Type","default":"account_balance"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/AccountBalanceAttributes"}},"type":"object","required":["id","attributes"],"title":"AccountBalanceData"},"AccountBalanceResponse":{"properties":{"data":{"$ref":"#/components/schemas/AccountBalanceData"}},"type":"object","required":["data"],"title":"AccountBalanceResponse"},"AccountResourceAttributes":{"properties":{"balance":{"type":"number","title":"Balance"}},"type":"object","required":["balance"],"title":"AccountResourceAttributes","description":"V1 billing GET /v1/billing/account_balance: single balance (after usage)."},"AddEntitlementUseRequest":{"properties":{"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["credits"],"title":"AddEntitlementUseRequest","description":"Request model for adding entitlement use."},"AiModelGroupAttributes":{"properties":{"group_name":{"type":"string","title":"Group Name"},"ai_models":{"items":{"$ref":"#/components/schemas/UserFacingAiModel"},"type":"array","title":"Ai Models"}},"type":"object","required":["group_name","ai_models"],"title":"AiModelGroupAttributes","description":"Attributes for an AI model group resource."},"AiModelGroupData":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type","default":"ai_model_group"},"attributes":{"$ref":"#/components/schemas/AiModelGroupAttributes"}},"type":"object","required":["id","attributes"],"title":"AiModelGroupData","description":"JSON:API resource for an AI model group."},"AiModelsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AiModelGroupData"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"AiModelsResponse","description":"Response model for AI models endpoint in JSON:API format."},"AnalyticsQueryFilters":{"properties":{"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint","description":"Restrict metrics to this endpoint (matches uri_route)."},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id","description":"Select organization scope. Must equal the caller's own tenant; otherwise the request is rejected with 403."},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"Restrict metrics to a single user within the caller's tenant. Requires `tenant_id` to also be set. When different from the caller's own user_id, the caller must be a tenant admin or owner."}},"additionalProperties":false,"type":"object","title":"AnalyticsQueryFilters","description":"Optional dimensions for the ClickHouse aggregates.\n\n- `endpoint` — maps to `uri_route`.\n- `tenant_id` — selects organization scope; must equal the caller's\n  own tenant. Omit for the caller's individual traffic.\n- `user_id` — drill-down target within tenant scope. Requires\n  `tenant_id`. Targeting another user requires admin or owner role."},"AnalyticsQueryRequest":{"properties":{"metrics":{"items":{"type":"string","enum":["request_count","success_count","client_error_count","server_error_count","avg_latency_ms","p50_latency_ms","p95_latency_ms","p99_latency_ms","min_latency_ms","max_latency_ms","success_rate"]},"type":"array","title":"Metrics"},"granularity":{"type":"string","enum":["1m","1h","1d"],"title":"Granularity"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"filter":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsQueryFilters"},{"type":"null"}]}},"type":"object","required":["metrics","granularity","start","end"],"title":"AnalyticsQueryRequest"},"AnalyticsQueryResponse":{"properties":{"metrics":{"items":{"type":"string"},"type":"array","title":"Metrics"},"granularity":{"type":"string","title":"Granularity"},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data"}},"type":"object","required":["metrics","granularity","start","end","data"],"title":"AnalyticsQueryResponse"},"ApiKeyAttributes":{"properties":{"key_id":{"type":"string","title":"Key Id","description":"Unique identifier for the API key"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key","description":"The secret API key - only shown once during creation"},"name":{"type":"string","title":"Name","description":"Human-readable name for the API key"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"List of scopes/permissions for this API key"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the API key is active"},"is_demo":{"type":"boolean","title":"Is Demo","description":"Whether the API key is a demo key"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Expiry timestamp. NULL means never expires"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"The timestamp when the API key was created"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the API key was last updated"}},"type":"object","required":["key_id","name","scopes","enabled","is_demo"],"title":"ApiKeyAttributes"},"ApiKeyListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ApiKeyResource"},"type":"array","title":"Data","description":"List of API keys"},"included":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserResource"},"type":"array"},{"type":"null"}],"title":"Included","description":"List of API key's users"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}],"description":"Pagination metadata"}},"type":"object","title":"ApiKeyListResponse"},"ApiKeyResource":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","const":"api_key","title":"Type","default":"api_key"},"attributes":{"$ref":"#/components/schemas/ApiKeyAttributes"},"relationships":{"anyOf":[{"$ref":"#/components/schemas/KeyRelationship"},{"type":"null"}]}},"type":"object","required":["id","attributes"],"title":"ApiKeyResource"},"ApiKeyResponse":{"properties":{"data":{"$ref":"#/components/schemas/ApiKeyResource"},"included":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserResource"},"type":"array"},{"type":"null"}],"title":"Included","description":"API key's user"}},"type":"object","required":["data","included"],"title":"ApiKeyResponse"},"ApiRequestBase":{"properties":{"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"List of scopes/permissions for this API key, can either be a list of routes             or a list of predefined scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Expiry timestamp. NULL means never expires"}},"type":"object","title":"ApiRequestBase"},"AutoTopupSettingsAttributes":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"threshold_amount_cents":{"type":"integer","title":"Threshold Amount Cents"},"topup_amount_cents":{"type":"integer","title":"Topup Amount Cents"},"safety_limits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Safety Limits"},"last_topup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Topup At"},"orb_alert_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orb Alert Config Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["enabled","threshold_amount_cents","topup_amount_cents","created_at","updated_at"],"title":"AutoTopupSettingsAttributes"},"AutoTopupSettingsData":{"properties":{"type":{"type":"string","title":"Type","default":"auto_topup_settings"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/AutoTopupSettingsAttributes"}},"type":"object","required":["id","attributes"],"title":"AutoTopupSettingsData"},"AutoTopupSettingsInput":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether auto-topup is enabled"},"threshold_amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Threshold Amount Cents","description":"Threshold amount in cents"},"topup_amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Topup Amount Cents","description":"Amount to topup in cents"},"safety_limits":{"anyOf":[{"$ref":"#/components/schemas/SafetyLimits"},{"type":"null"}],"description":"Safety limits to prevent runaway charges"}},"type":"object","required":["enabled","threshold_amount_cents","topup_amount_cents"],"title":"AutoTopupSettingsInput"},"AutoTopupSettingsResponse":{"properties":{"data":{"$ref":"#/components/schemas/AutoTopupSettingsData"}},"type":"object","required":["data"],"title":"AutoTopupSettingsResponse"},"CheckoutAttributes":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"return_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Url"}},"type":"object","title":"CheckoutAttributes"},"CheckoutData":{"properties":{"type":{"type":"string","title":"Type","default":"checkout"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/CheckoutAttributes"}},"type":"object","required":["id","attributes"],"title":"CheckoutData"},"CheckoutItem":{"properties":{"quantity":{"type":"integer","title":"Quantity"},"lookup_key":{"type":"string","title":"Lookup Key"},"unit_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Amount"}},"type":"object","required":["quantity","lookup_key"],"title":"CheckoutItem"},"CheckoutRequest":{"properties":{"promo_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promo Code"},"items":{"items":{"$ref":"#/components/schemas/CheckoutItem"},"type":"array","title":"Items"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"return_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Url"},"mode":{"type":"string","enum":["payment","subscription"],"title":"Mode","default":"subscription"},"ui_mode":{"type":"string","enum":["custom","embedded","hosted"],"title":"Ui Mode","default":"hosted"}},"type":"object","required":["items"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"data":{"$ref":"#/components/schemas/CheckoutData"}},"type":"object","required":["data"],"title":"CheckoutResponse"},"CreateApiKeyRequest":{"properties":{"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"List of scopes/permissions for this API key, can either be a list of routes             or a list of predefined scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Expiry timestamp. NULL means never expires"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Human-readable name for the API key"}},"type":"object","required":["name"],"title":"CreateApiKeyRequest"},"CreateOnboardingProfileRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"work_email":{"type":"string","title":"Work Email"},"role":{"type":"string","title":"Role"},"plan_description":{"type":"string","title":"Plan Description"}},"type":"object","required":["first_name","last_name","work_email","role","plan_description"],"title":"CreateOnboardingProfileRequest"},"CreditBalanceSummary":{"properties":{"type":{"type":"string","title":"Type","default":"credit_balance"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/CreditBalanceSummaryAttributes"}},"type":"object","required":["id","attributes"],"title":"CreditBalanceSummary"},"CreditBalanceSummaryAttributes":{"properties":{"available_balance":{"$ref":"#/components/schemas/MonetaryBalance"},"ledger_balance":{"$ref":"#/components/schemas/MonetaryBalance"}},"type":"object","required":["available_balance","ledger_balance"],"title":"CreditBalanceSummaryAttributes"},"CreditBalanceSummaryResponse":{"properties":{"data":{"$ref":"#/components/schemas/CreditBalanceSummary"}},"type":"object","required":["data"],"title":"CreditBalanceSummaryResponse"},"CustomerAttributes":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"google_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Customer Id"},"apple_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apple Customer Id"}},"type":"object","required":["created_at","updated_at"],"title":"CustomerAttributes"},"CustomerData":{"properties":{"type":{"type":"string","title":"Type","default":"customer"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/CustomerAttributes"}},"type":"object","required":["id","attributes"],"title":"CustomerData"},"CustomerPortalAttributes":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CustomerPortalAttributes"},"CustomerPortalData":{"properties":{"type":{"type":"string","title":"Type","default":"customer_portal"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/CustomerPortalAttributes"}},"type":"object","required":["id","attributes"],"title":"CustomerPortalData"},"CustomerPortalRequest":{"properties":{"product":{"anyOf":[{"type":"string","enum":["api","chat"]},{"type":"null"}],"title":"Product"},"portal_type":{"anyOf":[{"type":"string","enum":["default","invoices","payment_method_update","payment_methods"]},{"type":"null"}],"title":"Portal Type"},"return_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Url"}},"type":"object","title":"CustomerPortalRequest"},"CustomerPortalResponse":{"properties":{"data":{"$ref":"#/components/schemas/CustomerPortalData"}},"type":"object","required":["data"],"title":"CustomerPortalResponse"},"CustomerResponse":{"properties":{"data":{"$ref":"#/components/schemas/CustomerData"}},"type":"object","required":["data"],"title":"CustomerResponse"},"EntitlementAccessResponse":{"properties":{"data":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Data"}},"type":"object","required":["data"],"title":"EntitlementAccessResponse","description":"Response model for entitlement access check."},"EntitlementInfo":{"properties":{"primary_lookup_key":{"type":"string","title":"Primary Lookup Key"},"has_access":{"type":"boolean","title":"Has Access"},"can_use":{"type":"boolean","title":"Can Use"},"decisive_rule_name":{"type":"string","title":"Decisive Rule Name"},"used_credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Used Credits"},"max_credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Credits"},"period_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Type"},"period":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"next_refill":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Refill"},"is_legacy_streaming_event":{"type":"boolean","title":"Is Legacy Streaming Event","default":false},"refresh_interval_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Interval Label"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["primary_lookup_key","has_access","can_use","decisive_rule_name"],"title":"EntitlementInfo"},"EntitlementInfoData":{"properties":{"type":{"type":"string","title":"Type"},"attributes":{"additionalProperties":true,"type":"object","title":"Attributes"}},"type":"object","required":["type","attributes"],"title":"EntitlementInfoData","description":"Data for entitlement info response."},"EntitlementInfoResponse":{"properties":{"data":{"$ref":"#/components/schemas/EntitlementInfoData"}},"type":"object","required":["data"],"title":"EntitlementInfoResponse","description":"Response model for entitlement info."},"EntitlementRuleRequest":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"},"relationships":{"additionalProperties":true,"type":"object","title":"Relationships","default":{}}},"type":"object","required":["data"],"title":"EntitlementRuleRequest","description":"Request model for adding entitlement rule."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JSONAPIErrorLink":{"properties":{"about":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href"}},"type":"object","title":"JSONAPIErrorLink"},"JSONAPIErrorResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"source":{"anyOf":[{"$ref":"#/components/schemas/JSONAPIErrorSource"},{"type":"null"}]},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"links":{"anyOf":[{"$ref":"#/components/schemas/JSONAPIErrorLink"},{"type":"null"}]}},"type":"object","title":"JSONAPIErrorResponse","description":"https://jsonapi.org/format/#errors"},"JSONAPIErrorSource":{"properties":{"pointer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pointer"},"parameter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parameter"},"header":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header"}},"type":"object","title":"JSONAPIErrorSource"},"JSONAPIResource":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{}],"title":"Attributes"},"relationships":{"anyOf":[{"additionalProperties":true,"type":"object"},{},{"type":"null"}],"title":"Relationships"}},"type":"object","required":["id","type","attributes"],"title":"JSONAPIResource"},"JSONAPIResourceMixin":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{}],"title":"Attributes"},"relationships":{"anyOf":[{"additionalProperties":true,"type":"object"},{},{"type":"null"}],"title":"Relationships"}},"type":"object","required":["id","type","attributes"],"title":"JSONAPIResourceMixin"},"JSONAPIResponse":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/JSONAPIResource"},{"items":{"$ref":"#/components/schemas/JSONAPIResource"},"type":"array"},{"type":"null"}],"title":"Data"},"errors":{"anyOf":[{"items":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/JSONAPIErrorResponse"}]},"type":"array"},{"type":"null"}],"title":"Errors"}},"type":"object","title":"JSONAPIResponse"},"KeyRelationship":{"properties":{"user":{"$ref":"#/components/schemas/UserRelationship"}},"type":"object","required":["user"],"title":"KeyRelationship"},"MessageResponse":{"properties":{"data":{"additionalProperties":{"type":"string"},"type":"object","title":"Data"}},"type":"object","required":["data"],"title":"MessageResponse","description":"Generic message response."},"MonetaryBalance":{"properties":{"currency":{"type":"string","title":"Currency"},"value":{"type":"integer","title":"Value"}},"type":"object","required":["currency","value"],"title":"MonetaryBalance"},"OnboardingProfileAttributes":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"work_email":{"type":"string","title":"Work Email"},"role":{"type":"string","title":"Role"},"plan_description":{"type":"string","title":"Plan Description"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["first_name","last_name","work_email","role","plan_description","status","created_at","updated_at"],"title":"OnboardingProfileAttributes"},"OnboardingProfileResource":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","const":"onboarding_profile","title":"Type","default":"onboarding_profile"},"attributes":{"$ref":"#/components/schemas/OnboardingProfileAttributes"},"relationships":{"anyOf":[{"additionalProperties":true,"type":"object"},{},{"type":"null"}],"title":"Relationships"}},"type":"object","required":["id","attributes"],"title":"OnboardingProfileResource"},"OnboardingProfileResponse":{"properties":{"data":{"$ref":"#/components/schemas/OnboardingProfileResource"},"included":{"anyOf":[{"items":{"$ref":"#/components/schemas/JSONAPIResourceMixin"},"type":"array"},{"items":{},"type":"array"},{"type":"null"}],"title":"Included"}},"type":"object","required":["data"],"title":"OnboardingProfileResponse"},"PaginationMeta":{"properties":{"total":{"type":"integer","title":"Total","description":"Total number of items across all pages"},"limit":{"type":"integer","title":"Limit","description":"Maximum number of items per page"},"offset":{"type":"integer","title":"Offset","description":"Number of items skipped"},"has_more":{"type":"boolean","title":"Has More","description":"Whether there are more items available"}},"type":"object","required":["total","limit","offset","has_more"],"title":"PaginationMeta"},"PairUserInfo":{"properties":{"type":{"type":"string","title":"Type","default":"user_info"},"attributes":{"$ref":"#/components/schemas/PairUserInfoAttributes"}},"type":"object","required":["attributes"],"title":"PairUserInfo"},"PairUserInfoAttributes":{"properties":{"user":{"$ref":"#/components/schemas/PairYdcUser"},"tenant":{"anyOf":[{"$ref":"#/components/schemas/UserTenant"},{"type":"null"}]},"subscription":{"$ref":"#/components/schemas/PairUserInfoSubscription"},"entitlement_info":{"$ref":"#/components/schemas/EntitlementInfo"}},"type":"object","required":["user","subscription","entitlement_info"],"title":"PairUserInfoAttributes"},"PairUserInfoResponse":{"properties":{"data":{"$ref":"#/components/schemas/PairUserInfo"}},"type":"object","required":["data"],"title":"PairUserInfoResponse","description":"Response model for user info endpoint."},"PairUserInfoSubscription":{"properties":{"plan_names":{"anyOf":[{"items":{"type":"string"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Plan Names"},"interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interval"},"subscription_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Start"},"subscription_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription End"},"trial_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Start"},"trial_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial End"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"current_period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period Start"},"next_renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Renewal Date"}},"type":"object","title":"PairUserInfoSubscription"},"PairYdcUser":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status","default":"active"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","default":""},"seat_activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seat Activated At"},"seat_type":{"anyOf":[{"type":"string","enum":["B2B","Individual"]},{"type":"null"}],"title":"Seat Type"}},"type":"object","required":["user_id","email"],"title":"PairYdcUser"},"PaymentMethodAttributes":{"properties":{"brand":{"type":"string","title":"Brand"},"last4":{"type":"string","title":"Last4"},"exp_month":{"type":"integer","title":"Exp Month"},"exp_year":{"type":"integer","title":"Exp Year"},"type":{"type":"string","title":"Type"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["brand","last4","exp_month","exp_year","type"],"title":"PaymentMethodAttributes"},"PaymentMethodData":{"properties":{"type":{"type":"string","title":"Type","default":"payment_method"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/PaymentMethodAttributes"}},"type":"object","required":["id","attributes"],"title":"PaymentMethodData"},"PaymentMethodListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PaymentMethodData"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"PaymentMethodListResponse"},"SafetyLimits":{"properties":{},"type":"object","title":"SafetyLimits","description":"Safety limits for auto-topup"},"SnapshotAttributes":{"properties":{"user_id":{"type":"string","title":"User Id"},"thread_id":{"type":"string","title":"Thread Id"},"chat_node":{"type":"string","title":"Chat Node"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"is_public":{"type":"boolean","title":"Is Public","default":false},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["user_id","thread_id","chat_node","created_at","updated_at"],"title":"SnapshotAttributes"},"SnapshotCloneResponse":{"properties":{"data":{"$ref":"#/components/schemas/ThreadData"}},"type":"object","required":["data"],"title":"SnapshotCloneResponse"},"SnapshotCreateAttributes":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"chat_node":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Node"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"},"permissions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Permissions"}},"type":"object","required":["thread_id"],"title":"SnapshotCreateAttributes"},"SnapshotCreateData":{"properties":{"type":{"type":"string","title":"Type","default":"snapshots"},"attributes":{"$ref":"#/components/schemas/SnapshotCreateAttributes"}},"type":"object","required":["attributes"],"title":"SnapshotCreateData"},"SnapshotCreateRequest":{"properties":{"data":{"$ref":"#/components/schemas/SnapshotCreateData"},"should_generate_preview":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Should Generate Preview","default":false}},"type":"object","required":["data"],"title":"SnapshotCreateRequest"},"SnapshotCreateResponse":{"properties":{"data":{"$ref":"#/components/schemas/SnapshotData"}},"type":"object","required":["data"],"title":"SnapshotCreateResponse"},"SnapshotData":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type","default":"snapshots"},"attributes":{"$ref":"#/components/schemas/SnapshotAttributes"}},"type":"object","required":["id","attributes"],"title":"SnapshotData"},"SnapshotDeleteResponse":{"properties":{"data":{"additionalProperties":{"type":"string"},"type":"object","title":"Data"}},"type":"object","title":"SnapshotDeleteResponse"},"SnapshotGetResponse":{"properties":{"data":{"$ref":"#/components/schemas/SnapshotData"}},"type":"object","required":["data"],"title":"SnapshotGetResponse"},"SnapshotResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SnapshotData"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"SnapshotResponse"},"SubscriptionAttributes":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"provider_name":{"type":"string","title":"Provider Name"},"provider_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Subscription Id"},"items":{"items":{"$ref":"#/components/schemas/SubscriptionItemAttributes"},"type":"array","title":"Items"},"status":{"type":"string","title":"Status"},"interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interval"},"current_period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period Start"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"cancel_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel At"},"canceled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Canceled At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"trial_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial End"},"trial_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Start"}},"type":"object","required":["subscription_id","provider_name","items","status"],"title":"SubscriptionAttributes"},"SubscriptionData":{"properties":{"type":{"type":"string","title":"Type","default":"subscription"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"attributes":{"$ref":"#/components/schemas/SubscriptionAttributes"}},"type":"object","required":["attributes"],"title":"SubscriptionData"},"SubscriptionItemAttributes":{"properties":{"quantity":{"type":"integer","title":"Quantity"},"lookup_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lookup Key"},"price_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Name"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"ydc_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ydc Name"},"service":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service"},"interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interval"},"current_period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period Start"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"}},"type":"object","required":["quantity"],"title":"SubscriptionItemAttributes"},"SubscriptionsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SubscriptionData"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"SubscriptionsListResponse"},"TableauDashboardAttributes":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"TableauDashboardAttributes"},"TableauDashboardData":{"properties":{"type":{"type":"string","title":"Type"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/TableauDashboardAttributes"}},"type":"object","required":["type","id","attributes"],"title":"TableauDashboardData"},"TableauDashboardResponse":{"properties":{"data":{"$ref":"#/components/schemas/TableauDashboardData"}},"type":"object","required":["data"],"title":"TableauDashboardResponse"},"ThreadData":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type","default":"threads"},"attributes":{"additionalProperties":true,"type":"object","title":"Attributes"}},"type":"object","required":["id","attributes"],"title":"ThreadData"},"UpdateApiKeyRequest":{"properties":{"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"List of scopes/permissions for this API key, can either be a list of routes             or a list of predefined scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Expiry timestamp. NULL means never expires"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"Human-readable name for the API key"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Whether the API key is active"}},"type":"object","title":"UpdateApiKeyRequest"},"UserAttributes":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"User's display name"},"email":{"type":"string","title":"Email","description":"User's email address"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture","description":"User's profile picture URL"}},"type":"object","required":["email"],"title":"UserAttributes"},"UserEntitlementsResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"UserEntitlementsResponse","description":"Response model for user entitlements."},"UserFacingAiModel":{"properties":{"id":{"type":"string","title":"Id"},"imageUrl":{"type":"string","title":"Imageurl"},"name":{"type":"string","title":"Name"},"company":{"type":"string","title":"Company"},"isUncensoredModel":{"type":"boolean","title":"Isuncensoredmodel"},"isAllowedForUserChatModes":{"type":"boolean","title":"Isallowedforuserchatmodes"},"isProOnly":{"type":"boolean","title":"Isproonly"},"availableForFreeTrial":{"type":"boolean","title":"Availableforfreetrial"},"dateTimeReleased":{"type":"string","title":"Datetimereleased"},"contextLimit":{"type":"integer","title":"Contextlimit"}},"type":"object","required":["id","imageUrl","name","company","isUncensoredModel","isAllowedForUserChatModes","isProOnly","availableForFreeTrial","dateTimeReleased","contextLimit"],"title":"UserFacingAiModel","description":"User-facing AI model schema matching to_user_facing_dict output."},"UserRelationship":{"properties":{"data":{"$ref":"#/components/schemas/UserRelationshipData"}},"type":"object","required":["data"],"title":"UserRelationship"},"UserRelationshipData":{"properties":{"type":{"type":"string","const":"user","title":"Type"},"id":{"type":"string","title":"Id"}},"type":"object","required":["type","id"],"title":"UserRelationshipData"},"UserResource":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","const":"user","title":"Type","default":"user"},"attributes":{"$ref":"#/components/schemas/UserAttributes"},"relationships":{"anyOf":[{"additionalProperties":true,"type":"object"},{},{"type":"null"}],"title":"Relationships"}},"type":"object","required":["id","attributes"],"title":"UserResource"},"UserRolesAttributes":{"properties":{"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["roles"],"title":"UserRolesAttributes"},"UserRolesData":{"properties":{"type":{"type":"string","const":"organization_member_roles","title":"Type","default":"organization_member_roles"},"attributes":{"$ref":"#/components/schemas/UserRolesAttributes"}},"type":"object","required":["attributes"],"title":"UserRolesData"},"UserRolesRequest":{"properties":{"data":{"$ref":"#/components/schemas/UserRolesData"}},"type":"object","required":["data"],"title":"UserRolesRequest"},"UserRulesResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"UserRulesResponse","description":"Response model for user entitlement rules."},"UserTenant":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Role Names"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"}},"type":"object","required":["id"],"title":"UserTenant"},"V1BillingAccountBalanceData":{"properties":{"type":{"type":"string","title":"Type","default":"account"},"id":{"type":"string","title":"Id"},"attributes":{"$ref":"#/components/schemas/AccountResourceAttributes"}},"type":"object","required":["id","attributes"],"title":"V1BillingAccountBalanceData"},"V1BillingAccountBalanceResponse":{"properties":{"data":{"$ref":"#/components/schemas/V1BillingAccountBalanceData"}},"type":"object","required":["data"],"title":"V1BillingAccountBalanceResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyWorkEmailRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"work_email":{"type":"string","title":"Work Email"}},"type":"object","required":["user_id","work_email"],"title":"VerifyWorkEmailRequest"},"YdcUser":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status","default":"active"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name","default":""},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name","default":""},"family_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Name","default":""},"login_ids":{"items":{"type":"string"},"type":"array","title":"Login Ids","default":[]},"descope_user_id":{"type":"string","title":"Descope User Id","default":""},"phone":{"type":"string","title":"Phone","default":""},"verified_email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified Email","default":false},"verified_phone":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified Phone","default":false},"role_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Role Names","default":[]},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions","default":[]},"user_tenants":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserTenant"},"type":"array"},{"type":"null"}],"title":"User Tenants","default":[]},"external_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"External Ids","default":[]},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"test":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Test","default":false},"user_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"User Created At"},"descope_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Descope Created At"},"totp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Totp","default":false},"saml":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Saml","default":false},"oauth":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Oauth","default":false},"webauthn":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webauthn","default":false},"password":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Password","default":false},"sso_app_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sso App Ids","default":[]},"auth0_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth0 Id"},"stytch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stytch Id"},"stytch_creation_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stytch Creation Time"},"tenant_invitation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Invitation"},"tenant_inviter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Inviter Id"},"subscription_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Tier"}},"type":"object","required":["user_id","email"],"title":"YdcUser"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}