{"openapi":"3.1.0","info":{"title":"inventory","version":"0.1.0"},"paths":{"/api/products/":{"get":{"tags":["products"],"summary":"List Products","description":"List products with filtering options","operationId":"list_products_api_products__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProductType"},{"type":"null"}],"title":"Product Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProductCategory"},{"type":"null"}],"title":"Category"}},{"name":"rarity","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProductRarity"},{"type":"null"}],"title":"Rarity"}},{"name":"acquisition_method","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AcquisitionMethod"},{"type":"null"}],"title":"Acquisition Method"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProductStatus"},{"type":"null"}],"default":"active","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductResponse"},"title":"Response List Products Api Products  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["products"],"summary":"Create Product","description":"Create a new product (admin only)","operationId":"create_product_api_products__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/{product_id}":{"get":{"tags":["products"],"summary":"Get Product","description":"Get a specific product by ID","operationId":"get_product_api_products__product_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["products"],"summary":"Update Product","description":"Update a product (admin only)","operationId":"update_product_api_products__product_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["products"],"summary":"Delete Product","description":"Delete a product (admin only)","operationId":"delete_product_api_products__product_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/categories/list":{"get":{"tags":["products"],"summary":"List Categories","description":"List all available product categories","operationId":"list_categories_api_products_categories_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inventory/":{"get":{"tags":["inventory"],"summary":"List User Inventory","description":"List user's inventory with filtering options","operationId":"list_user_inventory_api_inventory__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"is_equipped","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Equipped"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserInventoryResponse"},"title":"Response List User Inventory Api Inventory  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inventory"],"summary":"Add To Inventory","description":"Add a product to user's inventory (admin/system use)","operationId":"add_to_inventory_api_inventory__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInventoryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInventoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/{inventory_id}":{"get":{"tags":["inventory"],"summary":"Get Inventory Item","description":"Get a specific inventory item","operationId":"get_inventory_item_api_inventory__inventory_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inventory_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Inventory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInventoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inventory"],"summary":"Update Inventory Item","description":"Update an inventory item (e.g., equip/unequip)","operationId":"update_inventory_item_api_inventory__inventory_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inventory_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Inventory Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInventoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInventoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inventory"],"summary":"Remove From Inventory","description":"Remove an item from user's inventory (admin only)","operationId":"remove_from_inventory_api_inventory__inventory_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inventory_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Inventory Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/grant/{user_id}/{product_id}":{"post":{"tags":["inventory"],"summary":"Grant Product To User","description":"Grant a product to a user (admin only)","operationId":"grant_product_to_user_api_inventory_grant__user_id___product_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"acquisition_method","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AcquisitionMethod","default":"gift"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInventoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/":{"get":{"tags":["bundles"],"summary":"List Bundles","description":"List available product bundles","operationId":"list_bundles_api_bundles__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProductStatus"},{"type":"null"}],"default":"active","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductBundleResponse"},"title":"Response List Bundles Api Bundles  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["bundles"],"summary":"Create Bundle","description":"Create a new product bundle (admin only)","operationId":"create_bundle_api_bundles__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBundleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBundleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/{bundle_id}":{"get":{"tags":["bundles"],"summary":"Get Bundle","description":"Get a specific bundle by ID","operationId":"get_bundle_api_bundles__bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBundleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["bundles"],"summary":"Update Bundle","description":"Update a bundle (admin only)","operationId":"update_bundle_api_bundles__bundle_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBundleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bundles"],"summary":"Delete Bundle","description":"Delete a bundle (admin only)","operationId":"delete_bundle_api_bundles__bundle_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/purchases/":{"get":{"tags":["purchases"],"summary":"List User Purchases","description":"List user's purchase history","operationId":"list_user_purchases_api_purchases__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchase Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserPurchaseResponse"},"title":"Response List User Purchases Api Purchases  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/purchases/{purchase_id}":{"get":{"tags":["purchases"],"summary":"Get Purchase","description":"Get a specific purchase","operationId":"get_purchase_api_purchases__purchase_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/purchases/product/{product_id}":{"post":{"tags":["purchases"],"summary":"Purchase Product","description":"Purchase a single product","operationId":"purchase_product_api_purchases_product__product_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Product Id"}},{"name":"payment_method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"stripe","title":"Payment Method"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/purchases/bundle/{bundle_id}":{"post":{"tags":["purchases"],"summary":"Purchase Bundle","description":"Purchase a product bundle","operationId":"purchase_bundle_api_purchases_bundle__bundle_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}},{"name":"payment_method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"stripe","title":"Payment Method"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/purchases/{purchase_id}/refund":{"post":{"tags":["purchases"],"summary":"Refund Purchase","description":"Request a refund for a purchase (admin approval required)","operationId":"refund_purchase_api_purchases__purchase_id__refund_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/inventory/health":{"get":{"summary":"Health","operationId":"health_inventory_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/inventory/sentry-debug":{"get":{"summary":"Trigger Error","description":"Sentry debug endpoint - triggers an error for testing","operationId":"trigger_error_inventory_sentry_debug_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AcquisitionMethod":{"type":"string","enum":["free","purchase","earn","gift","random_drop"],"title":"AcquisitionMethod"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProductBundleCreate":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_usd":{"type":"number","minimum":0.0,"title":"Price Usd"},"discount_percentage":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percentage"},"image_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Image Url"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"status":{"$ref":"#/components/schemas/ProductStatus","default":"active"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available Until"},"product_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Product Ids"}},"type":"object","required":["name","price_usd","product_ids"],"title":"ProductBundleCreate"},"ProductBundleResponse":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_usd":{"type":"number","minimum":0.0,"title":"Price Usd"},"discount_percentage":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percentage"},"image_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Image Url"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"status":{"$ref":"#/components/schemas/ProductStatus","default":"active"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available Until"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"bundle_items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Bundle Items","default":[]}},"type":"object","required":["name","price_usd","id","created_at","updated_at"],"title":"ProductBundleResponse"},"ProductCategory":{"type":"string","enum":["hair_color","skin_tone","eye_color","body_shape","face_shape","tops","bottoms","dresses","shoes","underwear","outerwear","piercings","tattoos","jewelry","makeup","single_trait","trait_pack","personality_preset","gift_box","boost_pack"],"title":"ProductCategory"},"ProductCreate":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"product_type":{"$ref":"#/components/schemas/ProductType"},"category":{"$ref":"#/components/schemas/ProductCategory"},"rarity":{"$ref":"#/components/schemas/ProductRarity"},"price_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Usd"},"acquisition_method":{"$ref":"#/components/schemas/AcquisitionMethod"},"status":{"$ref":"#/components/schemas/ProductStatus","default":"active"},"attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attributes"},"image_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Image Url"},"preview_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Preview Url"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available Until"}},"type":"object","required":["name","product_type","category","rarity","acquisition_method"],"title":"ProductCreate"},"ProductRarity":{"type":"string","enum":["common","uncommon","rare","epic","legendary"],"title":"ProductRarity"},"ProductResponse":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"product_type":{"$ref":"#/components/schemas/ProductType"},"category":{"$ref":"#/components/schemas/ProductCategory"},"rarity":{"$ref":"#/components/schemas/ProductRarity"},"price_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Usd"},"acquisition_method":{"$ref":"#/components/schemas/AcquisitionMethod"},"status":{"$ref":"#/components/schemas/ProductStatus","default":"active"},"attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attributes"},"image_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Image Url"},"preview_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Preview Url"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available Until"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","product_type","category","rarity","acquisition_method","id","created_at","updated_at"],"title":"ProductResponse"},"ProductStatus":{"type":"string","enum":["active","disabled","seasonal","limited"],"title":"ProductStatus"},"ProductType":{"type":"string","enum":["appearance","clothing","accessories","personality","consumable"],"title":"ProductType"},"ProductUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Usd"},"status":{"anyOf":[{"$ref":"#/components/schemas/ProductStatus"},{"type":"null"}]},"attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attributes"},"image_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Image Url"},"preview_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Preview Url"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available Until"}},"type":"object","title":"ProductUpdate"},"UserInventoryCreate":{"properties":{"acquired_via":{"$ref":"#/components/schemas/AcquisitionMethod"},"is_equipped":{"type":"boolean","title":"Is Equipped","default":false},"item_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Item Metadata"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"product_id":{"type":"string","format":"uuid","title":"Product Id"}},"type":"object","required":["acquired_via","user_id","product_id"],"title":"UserInventoryCreate"},"UserInventoryResponse":{"properties":{"acquired_via":{"$ref":"#/components/schemas/AcquisitionMethod"},"is_equipped":{"type":"boolean","title":"Is Equipped","default":false},"item_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Item Metadata"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"product_id":{"type":"string","format":"uuid","title":"Product Id"},"acquired_at":{"type":"string","format":"date-time","title":"Acquired At"},"usage_count":{"type":"integer","title":"Usage Count"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"product":{"$ref":"#/components/schemas/ProductResponse"}},"type":"object","required":["acquired_via","id","user_id","product_id","acquired_at","usage_count","last_used_at","product"],"title":"UserInventoryResponse"},"UserInventoryUpdate":{"properties":{"is_equipped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Equipped"},"item_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Item Metadata"}},"type":"object","title":"UserInventoryUpdate"},"UserPurchaseResponse":{"properties":{"amount_usd":{"type":"number","minimum":0.0,"title":"Amount Usd"},"currency":{"type":"string","maxLength":8,"title":"Currency","default":"USD"},"payment_method":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Payment Method"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Product Id"},"bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Bundle Id"},"transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Id"},"status":{"type":"string","title":"Status"},"purchased_at":{"type":"string","format":"date-time","title":"Purchased At"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"}},"type":"object","required":["amount_usd","id","user_id","product_id","bundle_id","transaction_id","status","purchased_at","processed_at"],"title":"UserPurchaseResponse"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}