{"openapi":"3.1.0","info":{"title":"Altid Ny Storefront API","version":"1.0.0","description":"Public API for the Altid Ny experience subscription in Copenhagen.\n\n## Quick Start\n\n1. **Authenticate** — `POST /api/auth/sign-in/email` with `{ email, password }` to get a session cookie, or browse as a guest\n2. **Browse products** — `GET /api/products` to list products, `GET /api/products/{id}` for details\n3. **Search** — `GET /api/search?q=keyword` for full-text search\n4. **Add to cart** — Use the cart endpoints to manage items\n5. **Apply discount** — `POST /api/cart/apply-discount` with a discount code\n6. **Checkout** — `POST /api/payment-amount` to calculate the final total, then complete payment via Stripe\n7. **View orders** — `GET /api/orders` to see order history\n\n## Authentication\n\nTwo authentication methods are supported:\n\n**Session Cookie** — Sign in via `POST /api/auth/sign-in/email` with `{ email, password }`. The `better-auth.session_token` cookie is set automatically.\n\n**API Key** — Pass an `x-api-key` header with a scoped API key. Create keys at `/account/developer` or via `POST /api/auth/api-key/create`. Keys are scoped to specific resources (products, cart, orders, reviews, wishlist).\n\n## Error Format\n\nAll errors return `{ error: string }`. Validation errors additionally include `{ details: { fieldErrors, formErrors } }` with per-field messages.","contact":{"name":"API Support","email":"support@yourdomain.com"},"license":{"name":"MIT"}},"servers":[{"url":"https://altidny.dk","description":"API Server"}],"externalDocs":{"description":"Human-readable API reference (Markdown)","url":"https://altidny.dk/to-humans.md"},"tags":[{"name":"Newsletter","description":"Email newsletter subscriptions."},{"name":"Reviews","description":"Product reviews and ratings."},{"name":"Wishlist","description":"Customer product wishlists."},{"name":"Cart","description":"Shopping cart discount management."},{"name":"Discounts","description":"Discount code validation."},{"name":"Payments","description":"Payment amount calculation."},{"name":"Orders","description":"Customer order history."},{"name":"Search","description":"Product search and autocomplete."},{"name":"Recommendations","description":"Product recommendations and tracking."}],"paths":{"/api/media":{"get":{"operationId":"listMedia","summary":"Retrieve a list of Media","tags":["Media"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["alt","-alt","updatedAt","-updatedAt","createdAt","-createdAt","url","-url","thumbnailURL","-thumbnailURL","filename","-filename","mimeType","-mimeType","filesize","-filesize","width","-width","height","-height"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"Media query operations","type":"object","properties":{"alt":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},{"title":"Media query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"Media query operations","type":"object","properties":{"alt":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},{"$ref":"#/components/schemas/MediaQueryOperationsAnd"},{"title":"Media query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"Media query operations","type":"object","properties":{"alt":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},{"$ref":"#/components/schemas/MediaQueryOperationsAnd"},{"$ref":"#/components/schemas/MediaQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"Media query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"Media query operations","type":"object","properties":{"alt":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},{"title":"Media query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"Media query operations","type":"object","properties":{"alt":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},{"$ref":"#/components/schemas/MediaQueryOperationsAnd"},{"$ref":"#/components/schemas/MediaQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/MediaQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of Media","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[]}},"/api/media/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Media","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findMediaById","summary":"Find a Media by ID","tags":["Media"],"responses":{"200":{"description":"Media object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}}}},"404":{"description":"Media not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[]}},"/api/reviews":{"get":{"summary":"List product reviews","description":"Returns a paginated list of approved reviews for a given product, along with aggregate statistics (average rating, star-rating breakdown).","tags":["Reviews"],"responses":{"200":{"description":"Paginated reviews with aggregate statistics","content":{"application/json":{"schema":{"type":"object","properties":{"reviews":{"type":"array","maxItems":50,"items":{"type":"object"},"description":"Array of approved review documents"},"totalPages":{"type":"integer","minimum":0,"description":"Total number of pages","example":3},"page":{"type":"integer","minimum":1,"description":"Current page number","example":1},"totalDocs":{"type":"integer","minimum":0,"description":"Total number of approved reviews","example":28},"averageRating":{"type":"number","minimum":0,"maximum":5,"description":"Average rating rounded to one decimal place","example":4.3},"breakdown":{"type":"object","description":"Count of reviews per star rating","properties":{"1":{"type":"integer","minimum":0,"example":1},"2":{"type":"integer","minimum":0,"example":2},"3":{"type":"integer","minimum":0,"example":5},"4":{"type":"integer","minimum":0,"example":10},"5":{"type":"integer","minimum":0,"example":10}}}}}}}},"400":{"description":"Validation error — missing productId","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[],"parameters":[{"name":"productId","in":"query","required":true,"description":"Numeric ID of the product to fetch reviews for","schema":{"type":"string","minLength":1,"maxLength":20,"example":"42"}},{"name":"page","in":"query","required":false,"description":"Page number for pagination (defaults to 1)","schema":{"type":"string","minLength":1,"maxLength":10,"example":"1"}},{"name":"limit","in":"query","required":false,"description":"Number of reviews per page (max 50, defaults to 10)","schema":{"type":"string","minLength":1,"maxLength":3,"example":"10"}},{"name":"sort","in":"query","required":false,"description":"Sort order for reviews","schema":{"type":"string","enum":["-createdAt","helpful","highest","lowest"],"example":"-createdAt"}}]},"post":{"summary":"Create a product review","description":"Creates a new review for a product. Requires authentication. The review is created with `pending` status and must be approved by an admin before it appears publicly. Duplicate reviews per user per product are rejected (409). Verified purchase status is automatically detected from order history.","tags":["Reviews"],"responses":{"201":{"description":"Review created successfully (status: pending)","content":{"application/json":{"schema":{"type":"object","properties":{"review":{"type":"object","description":"The newly created review document"}}}}}},"400":{"description":"Validation error — missing or invalid fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"Unauthorized — authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Authenticated user not found in Payload users collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict — user has already reviewed this product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productId","rating","title","body"],"properties":{"productId":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Numeric ID of the product being reviewed","example":42},"rating":{"type":"integer","minimum":1,"maximum":5,"description":"Star rating from 1 to 5","example":4},"title":{"type":"string","minLength":1,"maxLength":200,"description":"Short title for the review","example":"Great quality product"},"body":{"type":"string","minLength":1,"maxLength":5000,"description":"Full text of the review","example":"I have been using this for a month and the build quality is excellent. Highly recommended."}}}}}}}},"/api/reviews/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Review","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findReviewById","summary":"Find a Review by ID","tags":["Reviews"],"responses":{"200":{"description":"Review object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Review","properties":{"id":{"type":"string"},"product":{"description":"The product this review is associated with.","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"customer":{"description":"The user who authored this review.","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"rating":{"description":"Star rating from 1 (lowest) to 5 (highest).","type":"number"},"title":{"description":"Short headline summarizing the review.","type":"string"},"body":{"description":"Detailed review text from the customer.","type":"string"},"status":{"description":"Moderation status controlling public visibility of the review.","type":"string","enum":["pending","approved","rejected"]},"verifiedPurchase":{"description":"Whether this reviewer has purchased the product","type":["boolean","null"]},"helpfulCount":{"description":"Number of users who found this review helpful","type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","product","customer","rating","title","body","status","updatedAt","createdAt"],"description":"Customer product reviews and ratings."}}}},"404":{"description":"Review not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[]}},"/api/addresses":{"get":{"operationId":"listAddresses","summary":"Retrieve a list of addresses","tags":["addresses"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["title","-title","firstName","-firstName","lastName","-lastName","company","-company","addressLine1","-addressLine1","addressLine2","-addressLine2","city","-city","state","-state","postalCode","-postalCode","phone","-phone","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"addresses query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"company":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine1":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine2":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"city":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"postalCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"country":{"type":"object","properties":{"equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"not_equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"phone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"addresses query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"addresses query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"company":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine1":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine2":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"city":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"postalCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"country":{"type":"object","properties":{"equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"not_equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"phone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/AddressesQueryOperationsAnd"},{"title":"addresses query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"addresses query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"company":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine1":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine2":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"city":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"postalCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"country":{"type":"object","properties":{"equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"not_equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"phone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/AddressesQueryOperationsAnd"},{"$ref":"#/components/schemas/AddressesQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"addresses query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"addresses query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"company":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine1":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine2":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"city":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"postalCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"country":{"type":"object","properties":{"equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"not_equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"phone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"addresses query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"addresses query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"company":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine1":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine2":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"city":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"postalCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"country":{"type":"object","properties":{"equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"not_equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"phone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/AddressesQueryOperationsAnd"},{"$ref":"#/components/schemas/AddressesQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/AddressesQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of addresses","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"addresses","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","country","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createAddresses","summary":"Create a new addresses","tags":["addresses"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"description":"addresses","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Address","properties":{"customer":{"type":"string","description":"ID of the users"},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]}},"required":["country"]}}}},"responses":{"201":{"description":"addresses object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"type":"object","additionalProperties":false,"title":"addresses","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","country","updatedAt","createdAt"]},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}}},"security":[{"ApiKey":[]}]}},"/api/addresses/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the addresses","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findAddressesById","summary":"Find a addresses by ID","tags":["addresses"],"responses":{"200":{"description":"addresses object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"addresses","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","country","updatedAt","createdAt"]}}}},"404":{"description":"addresses not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]},"patch":{"operationId":"updateAddresses","summary":"Update a addresses","tags":["addresses"],"requestBody":{"description":"addresses","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Address","properties":{"customer":{"type":"string","description":"ID of the users"},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]}},"required":[]}}}},"responses":{"200":{"description":"addresses object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"addresses","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","country","updatedAt","createdAt"]}}}},"404":{"description":"addresses not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteAddresses","summary":"Delete a addresses","tags":["addresses"],"responses":{"200":{"description":"addresses object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"addresses","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","country","updatedAt","createdAt"]}}}},"404":{"description":"addresses not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]}},"/api/variants":{"get":{"operationId":"listVariants","summary":"Retrieve a list of variants","tags":["variants"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["title","-title","inventory","-inventory","updatedAt","-updatedAt","createdAt","-createdAt","deletedAt","-deletedAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"variants query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"title":"variants query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"variants query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"$ref":"#/components/schemas/VariantsQueryOperationsAnd"},{"title":"variants query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"variants query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"$ref":"#/components/schemas/VariantsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantsQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"variants query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"variants query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"title":"variants query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"variants query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"$ref":"#/components/schemas/VariantsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantsQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/VariantsQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of variants","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[]}},"/api/variants/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the variants","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findVariantsById","summary":"Find a variants by ID","tags":["variants"],"responses":{"200":{"description":"variants object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}}}},"404":{"description":"variants not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[]}},"/api/variantTypes":{"get":{"operationId":"listVariantTypes","summary":"Retrieve a list of variantTypes","tags":["variantTypes"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["label","-label","name","-name","updatedAt","-updatedAt","createdAt","-createdAt","deletedAt","-deletedAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"variantTypes query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"variantTypes query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"variantTypes query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/VariantTypesQueryOperationsAnd"},{"title":"variantTypes query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"variantTypes query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/VariantTypesQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantTypesQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"variantTypes query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"variantTypes query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"variantTypes query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"variantTypes query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/VariantTypesQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantTypesQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/VariantTypesQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of variantTypes","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[]}},"/api/variantTypes/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the variantTypes","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findVariantTypesById","summary":"Find a variantTypes by ID","tags":["variantTypes"],"responses":{"200":{"description":"variantTypes object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}}}},"404":{"description":"variantTypes not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[]}},"/api/variantOptions":{"get":{"operationId":"listVariantOptions","summary":"Retrieve a list of variantOptions","tags":["variantOptions"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["_variantOptions_options_order","-_variantOptions_options_order","label","-label","value","-value","updatedAt","-updatedAt","createdAt","-createdAt","deletedAt","-deletedAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"variantOptions query operations","type":"object","properties":{"_variantOptions_options_order":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"variantOptions query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"variantOptions query operations","type":"object","properties":{"_variantOptions_options_order":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsAnd"},{"title":"variantOptions query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"variantOptions query operations","type":"object","properties":{"_variantOptions_options_order":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"variantOptions query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"variantOptions query operations","type":"object","properties":{"_variantOptions_options_order":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"variantOptions query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"variantOptions query operations","type":"object","properties":{"_variantOptions_options_order":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of variantOptions","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[]}},"/api/variantOptions/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the variantOptions","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findVariantOptionsById","summary":"Find a variantOptions by ID","tags":["variantOptions"],"responses":{"200":{"description":"variantOptions object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}}}},"404":{"description":"variantOptions not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[]}},"/api/products":{"get":{"operationId":"listProducts","summary":"Retrieve a list of products","tags":["products"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","slug","-slug","inventory","-inventory","updatedAt","-updatedAt","createdAt","-createdAt","deletedAt","-deletedAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"products query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"enableVariants":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"title":"products query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"products query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"enableVariants":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"$ref":"#/components/schemas/ProductsQueryOperationsAnd"},{"title":"products query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"products query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"enableVariants":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"$ref":"#/components/schemas/ProductsQueryOperationsAnd"},{"$ref":"#/components/schemas/ProductsQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"products query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"products query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"enableVariants":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"title":"products query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"products query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"enableVariants":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},{"$ref":"#/components/schemas/ProductsQueryOperationsAnd"},{"$ref":"#/components/schemas/ProductsQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/ProductsQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of products","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[]}},"/api/products/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the products","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findProductsById","summary":"Find a products by ID","tags":["products"],"responses":{"200":{"description":"products object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}}}},"404":{"description":"products not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[]}},"/api/carts":{"get":{"operationId":"listCarts","summary":"Retrieve a list of carts","tags":["carts"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["secret","-secret","purchasedAt","-purchasedAt","discountCode","-discountCode","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"anyOf":[{"title":"carts query operations","type":"object","properties":{"secret":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purchasedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","purchased","abandoned"]},"not_equals":{"type":"string","enum":["active","purchased","abandoned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"carts query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"carts query operations","type":"object","properties":{"secret":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purchasedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","purchased","abandoned"]},"not_equals":{"type":"string","enum":["active","purchased","abandoned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/CartsQueryOperationsAnd"},{"title":"carts query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"carts query operations","type":"object","properties":{"secret":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purchasedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","purchased","abandoned"]},"not_equals":{"type":"string","enum":["active","purchased","abandoned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/CartsQueryOperationsAnd"},{"$ref":"#/components/schemas/CartsQueryOperationsOr"}]}}},"required":["or"]}]}}},"required":["and"]},{"title":"carts query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"title":"carts query operations","type":"object","properties":{"secret":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purchasedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","purchased","abandoned"]},"not_equals":{"type":"string","enum":["active","purchased","abandoned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"title":"carts query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"title":"carts query operations","type":"object","properties":{"secret":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purchasedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","purchased","abandoned"]},"not_equals":{"type":"string","enum":["active","purchased","abandoned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},{"$ref":"#/components/schemas/CartsQueryOperationsAnd"},{"$ref":"#/components/schemas/CartsQueryOperationsOr"}]}}},"required":["and"]},{"$ref":"#/components/schemas/CartsQueryOperationsOr"}]}}},"required":["or"]}]}}],"responses":{"200":{"description":"List of carts","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createCarts","summary":"Create a new carts","tags":["carts"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"description":"carts","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Cart","properties":{"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"type":"string","description":"ID of the users"},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]}},"required":[]}}}},"responses":{"201":{"description":"carts object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}}},"security":[{"ApiKey":[]}]}},"/api/carts/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the carts","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findCartsById","summary":"Find a carts by ID","tags":["carts"],"responses":{"200":{"description":"carts object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]}}}},"404":{"description":"carts not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]},"patch":{"operationId":"updateCarts","summary":"Update a carts","tags":["carts"],"requestBody":{"description":"carts","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Cart","properties":{"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"type":"string","description":"ID of the users"},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]}},"required":[]}}}},"responses":{"200":{"description":"carts object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]}}}},"404":{"description":"carts not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteCarts","summary":"Delete a carts","tags":["carts"],"responses":{"200":{"description":"carts object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]}}}},"404":{"description":"carts not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]}},"/api/orders":{"get":{"summary":"List the authenticated user's orders","description":"Returns a paginated list of orders belonging to the authenticated user. Orders are matched by the internal user ID or the user's email and are sorted by creation date (newest first).","tags":["Orders"],"responses":{"200":{"description":"Paginated order list","content":{"application/json":{"schema":{"type":"object","required":["orders","totalPages","page"],"properties":{"orders":{"type":"array","maxItems":50,"items":{"type":"object","description":"Order object with depth-2 relations (customer, products, etc.)"},"description":"Array of order objects"},"totalPages":{"type":"integer","minimum":0,"description":"Total number of pages","example":3},"page":{"type":"integer","minimum":1,"description":"Current page number","example":1},"totalDocs":{"type":"integer","minimum":0,"description":"Total number of orders","example":27}}},"example":{"orders":[],"totalPages":3,"page":1,"totalDocs":27}}}},"401":{"description":"Not authenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Failed to load orders"}}}}},"security":[{"cookieAuth":[]}],"parameters":[{"name":"page","in":"query","required":false,"description":"Page number for pagination (defaults to 1)","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1,"example":1}},{"name":"limit","in":"query","required":false,"description":"Number of orders per page (defaults to 10, max 50)","schema":{"type":"integer","minimum":1,"maximum":50,"default":10,"example":10}}]}},"/api/orders/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the orders","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findOrdersById","summary":"Find a orders by ID","tags":["orders"],"responses":{"200":{"description":"orders object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"orders","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"shippingAddress":{"type":"object","additionalProperties":false,"properties":{"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]},"phone":{"type":["string","null"]}},"required":[]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"customerEmail":{"type":["string","null"]},"transactions":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"transactions","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"paymentMethod":{"type":["string","null"],"enum":["stripe"]},"stripe":{"type":"object","additionalProperties":false,"properties":{"customerID":{"type":["string","null"]},"paymentIntentID":{"type":["string","null"]}},"required":[]},"billingAddress":{"type":"object","additionalProperties":false,"properties":{"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]},"phone":{"type":["string","null"]}},"required":[]},"status":{"type":"string","enum":["pending","succeeded","failed","cancelled","expired","refunded"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"customerEmail":{"type":["string","null"]},"order":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Orders"}]},"cart":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"variant":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]}]},"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","status","updatedAt","createdAt"]}]}},"status":{"type":["string","null"],"enum":["processing","completed","cancelled","refunded"]},"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"fulfillmentStatus":{"description":"Current fulfillment status of this order","type":["string","null"],"enum":["pending","processing","shipped","delivered","cancelled"]},"discountCode":{"description":"Discount code applied to this order","type":["string","null"]},"discountAmount":{"description":"Discount amount in cents that was applied","type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]}}}},"404":{"description":"orders not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}},"security":[{"ApiKey":[]}]}},"/api/newsletter":{"post":{"summary":"Subscribe to newsletter","description":"Subscribes an email address to the newsletter. The address is stored in the Payload CMS `newsletter-subscribers` collection and optionally synced to a Resend audience when `RESEND_API_KEY` and `RESEND_AUDIENCE_ID` are configured. Duplicate emails are silently ignored.","tags":["Newsletter"],"responses":{"200":{"description":"Successfully subscribed (or already subscribed)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"description":"Indicates the subscription was recorded"}}}}}},"400":{"description":"Validation error — invalid email address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","minLength":5,"maxLength":320,"description":"Email address to subscribe to the newsletter","example":"subscriber@example.com"}}}}}},"x-dashboard-trigger":"Payload Admin > Newsletter Subscribers"}},"/api/reviews/{reviewId}/helpful":{"post":{"summary":"Mark a review as helpful","description":"Increments the helpful vote count on a review. Requires authentication. The review must exist; otherwise a 404 is returned.","tags":["Reviews"],"responses":{"200":{"description":"Helpful count incremented successfully","content":{"application/json":{"schema":{"type":"object","properties":{"helpfulCount":{"type":"integer","minimum":0,"description":"Updated helpful vote count","example":5}}}}}},"401":{"description":"Unauthorized — authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"cookieAuth":[]}],"parameters":[{"name":"reviewId","in":"path","required":true,"description":"Numeric ID of the review to mark as helpful","schema":{"type":"string","minLength":1,"maxLength":20,"example":"17"}}]}},"/api/wishlist":{"get":{"summary":"Get user wishlist","description":"Returns all wishlist items for the authenticated user, sorted by most recently added. Each item includes full product and variant relations (depth 2). Limited to 50 items.","tags":["Wishlist"],"responses":{"200":{"description":"Wishlist items retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","maxItems":50,"items":{"type":"object"},"description":"Array of wishlist item documents with populated product/variant relations"}}}}}},"401":{"description":"Unauthorized — authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"cookieAuth":[]}]},"post":{"summary":"Add item to wishlist","description":"Adds a product (and optionally a specific variant) to the authenticated user's wishlist. Returns 409 if the product is already in the wishlist.","tags":["Wishlist"],"responses":{"201":{"description":"Item added to wishlist","content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"object","description":"The newly created wishlist item document"}}}}}},"400":{"description":"Validation error — missing productId","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"Unauthorized — authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Authenticated user not found in Payload users collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict — product is already in the wishlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productId"],"properties":{"productId":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Numeric ID of the product to add to the wishlist","example":42},"variantId":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Optional numeric ID of a specific product variant","example":7}}}}}}}},"/api/wishlist/{itemId}":{"delete":{"summary":"Remove item from wishlist","description":"Deletes a specific wishlist item by its ID. Requires authentication and ownership verification — users can only remove their own wishlist items. Returns 403 if the item belongs to another user.","tags":["Wishlist"],"responses":{"200":{"description":"Wishlist item removed successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"description":"Indicates the item was removed"}}}}}},"401":{"description":"Unauthorized — authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden — wishlist item belongs to another user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Authenticated user not found in Payload users collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"cookieAuth":[]}],"parameters":[{"name":"itemId","in":"path","required":true,"description":"Numeric ID of the wishlist item to remove","schema":{"type":"string","minLength":1,"maxLength":20,"example":"123"}}]}},"/api/wishlist/check/{productId}":{"get":{"summary":"Check if product is in wishlist","description":"Checks whether a specific product is in the authenticated user's wishlist. If the user is not authenticated or not found, returns `{ inWishlist: false }` without an error. When the product is found in the wishlist, the response includes the `itemId` for convenient removal.","tags":["Wishlist"],"responses":{"200":{"description":"Wishlist check result","content":{"application/json":{"schema":{"type":"object","properties":{"inWishlist":{"type":"boolean","description":"Whether the product is in the user's wishlist","example":true},"itemId":{"oneOf":[{"type":"integer","minimum":1,"description":"ID of the matching wishlist item","example":123},{"type":"null"}],"description":"ID of the matching wishlist item, or null if not in the wishlist"}}}}}}},"security":[{"cookieAuth":[]}],"parameters":[{"name":"productId","in":"path","required":true,"description":"Numeric ID of the product to check","schema":{"type":"string","minLength":1,"maxLength":20,"example":"42"}}]}},"/api/cart/apply-discount":{"post":{"summary":"Apply a discount code to a cart","description":"Validates and applies a discount code to the specified cart. The caller must own the cart (via session) or provide the cart secret. The discount is validated against the `/api/discount/validate` endpoint before being persisted.","tags":["Cart"],"responses":{"200":{"description":"Discount applied successfully","content":{"application/json":{"schema":{"type":"object","required":["success","discount"],"properties":{"success":{"type":"boolean","enum":[true],"example":true},"discount":{"type":"object","required":["discountId","code","discountType","discountValue","maxDiscountAmount","discountAmount"],"properties":{"discountId":{"type":"integer","minimum":1,"description":"The internal ID of the discount code record","example":7},"code":{"type":"string","description":"The normalised discount code","example":"SAVE20"},"discountType":{"type":"string","enum":["percentage","flat"],"description":"Whether the discount is a percentage or flat amount","example":"percentage"},"discountValue":{"type":"number","minimum":0,"description":"The discount value (percentage points or cents)","example":20},"maxDiscountAmount":{"type":["number","null"],"minimum":0,"description":"Maximum discount cap in cents (percentage type only)","example":5000},"discountAmount":{"type":"number","minimum":0,"description":"Calculated discount amount in cents for the current cart","example":2000}}}}},"example":{"success":true,"discount":{"discountId":7,"code":"SAVE20","discountType":"percentage","discountValue":20,"maxDiscountAmount":5000,"discountAmount":2000}}}}},"400":{"description":"Validation error or invalid discount code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"},"example":{"success":false,"error":"Discount code is required"}}}},"403":{"description":"Not authorised to modify this cart","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":"Not authorized"}}}},"404":{"description":"Cart not found or already purchased","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":"Cart not found"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":"Failed to apply discount"}}}}},"security":[{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code","cartId"],"properties":{"code":{"type":"string","minLength":1,"maxLength":50,"description":"The discount code to apply to the cart","example":"SAVE20"},"cartId":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The ID of the cart to apply the discount to","example":42},"secret":{"type":"string","minLength":1,"maxLength":255,"description":"Cart secret for guest users who are not authenticated but own the cart","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}},"example":{"code":"SAVE20","cartId":42}}}},"x-dashboard-trigger":"Use from the cart page by entering a discount code and clicking Apply."}},"/api/cart/remove-discount":{"post":{"summary":"Remove a discount code from a cart","description":"Removes any previously applied discount code from the specified cart. The caller must own the cart (via session) or provide the cart secret.","tags":["Cart"],"responses":{"200":{"description":"Discount removed successfully","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean","enum":[true],"example":true}}},"example":{"success":true}}}},"400":{"description":"Missing or invalid cart ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"},"example":{"success":false,"error":"Cart ID is required"}}}},"403":{"description":"Not authorised to modify this cart","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":"Not authorized"}}}},"404":{"description":"Cart not found or already purchased","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":"Cart not found"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":"Failed to remove discount"}}}}},"security":[{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["cartId"],"properties":{"cartId":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The ID of the cart to remove the discount from","example":42},"secret":{"type":"string","minLength":1,"maxLength":255,"description":"Cart secret for guest users who are not authenticated but own the cart","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}},"example":{"cartId":42}}}},"x-dashboard-trigger":"Use from the cart page by clicking the remove discount button next to the applied code."}},"/api/discount/validate":{"post":{"summary":"Validate a discount code","description":"Validates a discount code by checking whether it exists, is active, is within its valid date range, has not exceeded its usage limits, and meets minimum order requirements. Optionally calculates the discount amount when a subtotal is provided. Rate limited to 10 requests per IP per minute.","tags":["Discounts"],"responses":{"200":{"description":"Validation result. Both valid and invalid codes return 200; check the `valid` field.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["valid","discountId","code","discountType","discountValue","maxDiscountAmount","discountAmount"],"properties":{"valid":{"type":"boolean","enum":[true]},"discountId":{"type":"integer","minimum":1,"description":"Internal ID of the discount code record","example":3},"code":{"type":"string","description":"The normalised discount code","example":"WELCOME10"},"discountType":{"type":"string","enum":["percentage","flat"],"example":"percentage"},"discountValue":{"type":"number","minimum":0,"description":"Discount value (percentage or cents)","example":10},"maxDiscountAmount":{"type":["number","null"],"minimum":0,"description":"Maximum discount cap in cents","example":null},"discountAmount":{"type":"number","minimum":0,"description":"Calculated discount amount in cents","example":1500}}},{"type":"object","required":["valid","error"],"properties":{"valid":{"type":"boolean","enum":[false]},"error":{"type":"string","description":"Human-readable error message","example":"Invalid discount code"}}}]},"examples":{"valid":{"summary":"Valid discount code","value":{"valid":true,"discountId":3,"code":"WELCOME10","discountType":"percentage","discountValue":10,"maxDiscountAmount":null,"discountAmount":1500}},"invalid":{"summary":"Invalid discount code","value":{"valid":false,"error":"Invalid discount code"}},"expired":{"summary":"Expired discount code","value":{"valid":false,"error":"This discount code has expired"}}}}}},"400":{"description":"Missing or invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"},"example":{"valid":false,"error":"Discount code is required"}}}},"429":{"description":"Rate limit exceeded (10 requests per minute per IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"valid":false,"error":"Too many attempts. Please try again later."}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"valid":false,"error":"Failed to validate discount code"}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string","minLength":1,"maxLength":50,"description":"The discount code to validate","example":"WELCOME10"},"customerEmail":{"type":"string","format":"email","minLength":3,"maxLength":320,"description":"Customer email for per-customer usage limit checks","example":"jane@example.com"},"subtotal":{"type":"integer","minimum":0,"maximum":99999999,"description":"Cart subtotal in cents for minimum order and discount calculation","example":15000}}},"example":{"code":"WELCOME10","customerEmail":"jane@example.com","subtotal":15000}}}},"x-rate-limit":{"window":"60s","max":10}}},"/api/payment-amount":{"post":{"summary":"Calculate final payment amount with optional discount","description":"Retrieves the current amount of a Stripe PaymentIntent and optionally applies a discount code. The PaymentIntent must still be in the `requires_payment_method` status. For authenticated users, ownership is verified via the Stripe customer. For guests, the PaymentIntent ID acts as authorization. Rate limited to 20 requests per IP per minute.","tags":["Payments"],"responses":{"200":{"description":"Payment amount calculated successfully","content":{"application/json":{"schema":{"type":"object","required":["amount","currency","discountAmount"],"properties":{"amount":{"type":"integer","minimum":0,"description":"Final payment amount in cents after any discount","example":8000},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"Three-letter ISO currency code","example":"usd"},"discountAmount":{"type":"integer","minimum":0,"description":"Discount amount in cents","example":2000}}},"example":{"amount":8000,"currency":"usd","discountAmount":2000}}}},"400":{"description":"Missing paymentIntentId, invalid payment state, or discount error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"},"examples":{"missingId":{"summary":"Missing payment intent ID","value":{"error":"paymentIntentId is required"}},"alreadyInitiated":{"summary":"Payment already in progress","value":{"error":"Cannot modify payment amount after payment has been initiated","amount":10000,"currency":"usd"}}}}}},"403":{"description":"PaymentIntent does not belong to the authenticated user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Not authorized"}}}},"429":{"description":"Rate limit exceeded (20 requests per minute per IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Too many requests. Please try again later."}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Failed to retrieve payment amount"}}}}},"security":[{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["paymentIntentId"],"properties":{"paymentIntentId":{"type":"string","minLength":1,"maxLength":255,"description":"The Stripe PaymentIntent ID","example":"pi_3Oc0X2Abc123def456"},"discountCode":{"type":"string","minLength":1,"maxLength":50,"description":"Optional discount code to apply to the payment","example":"SAVE20"}}},"example":{"paymentIntentId":"pi_3Oc0X2Abc123def456","discountCode":"SAVE20"}}}},"x-rate-limit":{"window":"60s","max":20}}},"/api/search":{"get":{"summary":"Full-text search across products and blogs","description":"Searches for products using the SaaSignal search index and for blog posts using Payload CMS. Returns results from both collections. If no query is provided, returns empty arrays.","tags":["Search"],"responses":{"200":{"description":"Search results containing matched products and blog posts","content":{"application/json":{"schema":{"type":"object","properties":{"hits":{"type":"array","maxItems":20,"description":"Product search results (alias for products)","items":{"type":"object","properties":{"id":{"type":"string","example":"42"},"score":{"type":"number","example":0.95},"document":{"type":"object","properties":{"name":{"type":"string","example":"Wireless Noise-Cancelling Headphones"},"slug":{"type":"string","example":"wireless-noise-cancelling-headphones"},"description":{"type":"string","example":"Premium over-ear headphones with ANC"},"priceInUSD":{"type":"number","example":299.99},"category":{"type":"string","example":"electronics"},"imageUrl":{"type":"string","example":"https://example.com/images/headphones.jpg"}}}}}},"products":{"type":"array","maxItems":20,"description":"Product search results","items":{"$ref":"#/components/schemas/ProductHit"}},"blogs":{"type":"array","maxItems":5,"description":"Blog post search results","items":{"type":"object","properties":{"id":{"type":"string","example":"7"},"title":{"type":"string","example":"Top 10 Wireless Headphones of 2026"},"slug":{"type":"string","example":"top-10-wireless-headphones-2026"},"excerpt":{"type":"string","example":"Discover the best wireless headphones..."},"category":{"type":"string","example":"reviews"},"coverImageUrl":{"type":"string","example":"https://example.com/images/blog-cover.jpg"}}}}}},"example":{"hits":[{"id":"42","score":0.95,"document":{"name":"Wireless Noise-Cancelling Headphones","slug":"wireless-noise-cancelling-headphones","priceInUSD":299.99,"category":"electronics"}}],"products":[{"id":"42","score":0.95,"document":{"name":"Wireless Noise-Cancelling Headphones","slug":"wireless-noise-cancelling-headphones","priceInUSD":299.99,"category":"electronics"}}],"blogs":[{"id":"7","title":"Top 10 Wireless Headphones of 2026","slug":"top-10-wireless-headphones-2026","excerpt":"Discover the best wireless headphones...","category":"reviews"}]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Search failed"}}}}},"security":[],"parameters":[{"name":"q","in":"query","required":true,"description":"Full-text search query","schema":{"type":"string","minLength":1,"maxLength":200,"example":"wireless headphones"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results per category (default 10, max 20)","schema":{"type":"integer","minimum":1,"maximum":20,"default":10,"example":10}},{"name":"locale","in":"query","required":false,"description":"Locale for blog content localization","schema":{"type":"string","enum":["da","en"],"default":"da","example":"da"}}]}},"/api/search/suggest":{"get":{"summary":"Autocomplete search suggestions","description":"Returns prefix-based autocomplete suggestions from the SaaSignal search index. Use this to power a search-as-you-type UI. Returns an empty array when no prefix is provided.","tags":["Search"],"responses":{"200":{"description":"Autocomplete suggestions","content":{"application/json":{"schema":{"type":"object","properties":{"suggestions":{"type":"array","maxItems":10,"description":"Autocomplete suggestion results","items":{"type":"object","properties":{"text":{"type":"string","description":"Suggested search completion text","example":"wireless headphones"},"score":{"type":"number","description":"Relevance score","example":0.92}}}}}},"example":{"suggestions":[{"text":"wireless headphones","score":0.92},{"text":"wireless charger","score":0.87},{"text":"wireless mouse","score":0.81}]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Suggest failed"}}}}},"security":[],"parameters":[{"name":"q","in":"query","required":true,"description":"Prefix text for autocomplete suggestions","schema":{"type":"string","minLength":1,"maxLength":200,"example":"wire"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of suggestions (default 5, max 10)","schema":{"type":"integer","minimum":1,"maximum":10,"default":5,"example":5}}]}},"/api/recommendations/related/{productId}":{"get":{"summary":"Get related products","description":"Returns products related to the specified product using the SaaSignal ranking engine. Falls back to same-category products sorted by creation date if no ranking data is available yet.","tags":["Recommendations"],"responses":{"200":{"description":"Related products list","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","maxItems":12,"description":"List of related products","items":{"type":"object","properties":{"id":{"type":"integer","description":"Unique product identifier","example":15},"name":{"type":"string","description":"Product display name","example":"Bluetooth Speaker"},"slug":{"type":"string","description":"URL-safe product slug","example":"bluetooth-speaker"},"priceInUSD":{"type":"number","description":"Price in US dollars","example":79.99},"category":{"type":"string","description":"Product category","example":"electronics"}}}}}},"example":{"products":[{"id":15,"name":"Bluetooth Speaker","slug":"bluetooth-speaker","priceInUSD":79.99,"category":"electronics"},{"id":23,"name":"USB-C Audio Adapter","slug":"usb-c-audio-adapter","priceInUSD":19.99,"category":"electronics"}]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Failed to fetch related products"}}}}},"security":[],"parameters":[{"name":"productId","in":"path","required":true,"description":"The numeric ID of the product to find related products for","schema":{"type":"string","minLength":1,"maxLength":20,"example":"42"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of related products (default 6, max 12)","schema":{"type":"integer","minimum":1,"maximum":12,"default":6,"example":6}},{"name":"locale","in":"query","required":false,"description":"Locale for product content localization","schema":{"type":"string","enum":["da","en"],"default":"da","example":"da"}}]}},"/api/openapi.json":{"get":{"summary":"OpenAPI 3.1 specification (JSON)","description":"Returns this API's full OpenAPI 3.1 specification as JSON. Use this to generate client SDKs, import into API tools (Postman, Insomnia), or power interactive documentation UIs.","tags":["Documentation"],"security":[],"responses":{"200":{"description":"OpenAPI 3.1 JSON specification","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/llms.txt":{"get":{"summary":"LLM-friendly API reference (plain text)","description":"Returns the full API reference as structured plain text optimized for LLM context windows. Use this to feed API documentation into AI assistants, chatbots, or code generators.","tags":["Documentation"],"security":[],"responses":{"200":{"description":"Plain-text API reference","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/to-humans.md":{"get":{"summary":"Human-readable API reference (Markdown)","description":"Returns the full API reference as a Markdown document with table of contents, request/response tables, cURL examples, and error reference. Suitable for rendering in documentation sites or reading directly.","tags":["Documentation"],"security":[],"responses":{"200":{"description":"Markdown API reference","content":{"text/markdown":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"supportedTimezones":{"type":"string","example":"Europe/Prague"},"User":{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"name":{"description":"Users chosen display name","type":"string"},"email":{"description":"The email of the user","type":"string"},"emailVerified":{"description":"Whether the email of the user has been verified","type":"boolean"},"image":{"description":"The image of the user","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"role":{"description":"The role/ roles of the user","type":["array","null"],"items":{"type":"string","enum":["admin","user"]}},"account":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Account"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"session":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Session"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stripeCustomerId":{"type":["string","null"]},"collection":{"type":"string","enum":["users"]}},"required":["id","name","email","emailVerified","createdAt","updatedAt","collection"]},"Session":{"type":"object","additionalProperties":false,"title":"Session","properties":{"id":{"type":"string"},"expiresAt":{"description":"The date and time when the session will expire","type":"string"},"token":{"description":"The unique session token","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"ipAddress":{"description":"The IP address of the device","type":["string","null"]},"userAgent":{"description":"The user agent information of the device","type":["string","null"]},"user":{"description":"The user that the session belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["id","expiresAt","token","createdAt","updatedAt","user"],"description":"Sessions are active sessions for users. They are used to authenticate users with a session token"},"Account":{"type":"object","additionalProperties":false,"title":"Account","properties":{"id":{"type":"string"},"accountId":{"description":"The id of the account as provided by the SSO or equal to userId for credential accounts","type":"string"},"providerId":{"description":"The id of the provider as provided by the SSO","type":"string"},"user":{"description":"The user that the account belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"accessToken":{"description":"The access token of the account. Returned by the provider","type":["string","null"]},"refreshToken":{"description":"The refresh token of the account. Returned by the provider","type":["string","null"]},"idToken":{"description":"The id token for the account. Returned by the provider","type":["string","null"]},"accessTokenExpiresAt":{"description":"The date and time when the access token will expire","type":["string","null"]},"refreshTokenExpiresAt":{"description":"The date and time when the refresh token will expire","type":["string","null"]},"scope":{"description":"The scope of the account. Returned by the provider","type":["string","null"]},"password":{"description":"The hashed password of the account. Mainly used for email and password authentication","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","providerId","user","createdAt","updatedAt"],"description":"Accounts are used to store user accounts for authentication providers"},"Verification":{"type":"object","additionalProperties":false,"title":"Verification","properties":{"id":{"type":"string"},"identifier":{"description":"The identifier of the verification request","type":"string"},"value":{"description":"The value to be verified","type":"string"},"expiresAt":{"description":"The date and time when the verification request will expire","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","identifier","value","expiresAt","createdAt","updatedAt"],"description":"Verifications are used to verify authentication requests"},"Passkey":{"type":"object","additionalProperties":false,"title":"Passkey","properties":{"id":{"type":"string"},"name":{"description":"The name of the passkey","type":["string","null"]},"publicKey":{"description":"The public key of the passkey","type":"string"},"user":{"description":"The user that the passkey belongs to","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"credentialId":{"description":"The unique identifier of the registered credential","type":"string"},"counter":{"description":"The counter of the passkey","type":"number"},"deviceType":{"description":"The type of device used to register the passkey","type":"string"},"backedUp":{"description":"Whether the passkey is backed up","type":"boolean"},"transports":{"description":"The transports used to register the passkey","type":"string"},"createdAt":{"type":"string"},"aaguid":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","publicKey","user","credentialId","counter","deviceType","backedUp","transports","createdAt","updatedAt"],"description":"Passkeys are used to authenticate users"},"ApiKey":{"type":"object","additionalProperties":false,"title":"Api Key","properties":{"id":{"type":"string"},"name":{"description":"The name of the API key.","type":["string","null"]},"start":{"description":"The starting characters of the API key.","type":["string","null"]},"prefix":{"description":"The API Key prefix. Stored as plain text.","type":["string","null"]},"key":{"description":"The hashed API key itself.","type":"string"},"user":{"description":"The user associated with the API key.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"refillInterval":{"description":"The interval to refill the key in milliseconds.","type":["number","null"]},"refillAmount":{"description":"The amount to refill the remaining count of the key.","type":["number","null"]},"lastRefillAt":{"description":"The date and time when the key was last refilled.","type":["string","null"]},"enabled":{"description":"Whether the API key is enabled.","type":["boolean","null"]},"rateLimitEnabled":{"description":"Whether the API key has rate limiting enabled.","type":["boolean","null"]},"rateLimitTimeWindow":{"description":"The time window in milliseconds for the rate limit.","type":["number","null"]},"rateLimitMax":{"description":"The maximum number of requests allowed within the rate limit time window.","type":["number","null"]},"requestCount":{"description":"The number of requests made within the rate limit time window.","type":["number","null"]},"remaining":{"description":"The number of requests remaining.","type":["number","null"]},"lastRequest":{"description":"The date and time of the last request made to the key.","type":["string","null"]},"expiresAt":{"description":"The date and time of when the API key will expire.","type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"permissions":{"description":"The permissions for the API key.","type":["string","null"]},"metadata":{"description":"Any additional metadata you want to store with the key.","type":["string","null"]}},"required":["id","key","user","createdAt","updatedAt"],"description":"API keys are used to authenticate requests to the API."},"AdminInvitation":{"type":"object","additionalProperties":false,"title":"Admin Invitation","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["admin","user"]},"token":{"type":"string"},"url":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","role","token","updatedAt","createdAt"]},"DiscountCode":{"type":"object","additionalProperties":false,"title":"Discount Code","properties":{"id":{"type":"string"},"code":{"description":"The code customers enter at checkout (case-insensitive)","type":"string"},"description":{"description":"Internal note about this discount (not shown to customers)","type":["string","null"]},"discountType":{"type":"string","enum":["percentage","flat"]},"discountValue":{"description":"For percentage: enter 10 for 10%. For flat: enter amount in cents (e.g., 500 = $5.00)","type":"number"},"maxDiscountAmount":{"description":"Maximum discount in cents (e.g., 5000 = $50.00). Only applies to percentage discounts. Leave blank for no cap.","type":["number","null"]},"minimumOrderAmount":{"description":"Minimum order subtotal in cents required to use this code (e.g., 1000 = $10.00). Leave blank for no minimum.","type":["number","null"]},"maxUses":{"description":"Maximum total uses across all customers. Leave blank for unlimited.","type":["number","null"]},"currentUses":{"description":"Number of times this code has been used.","type":["number","null"]},"maxUsesPerCustomer":{"description":"Maximum uses per customer email. Leave blank for unlimited per customer.","type":["number","null"]},"validFrom":{"description":"Start date. Leave blank for immediately active.","type":["string","null"]},"validUntil":{"description":"Expiration date. Leave blank for no expiration.","type":["string","null"]},"isActive":{"description":"Only active codes can be applied at checkout.","type":["boolean","null"]},"appliesToProducts":{"description":"Restrict this code to specific products. Leave empty to apply to all products.","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]}},"appliesToCategories":{"description":"Restrict this code to specific product categories. Leave empty to apply to all categories.","type":["array","null"],"items":{"type":"string","enum":["software","templates","courses","services","other"]}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","code","discountType","discountValue","updatedAt","createdAt"],"description":"Manage discount and promo codes for the store."},"Media":{"type":"object","additionalProperties":false,"title":"Media","properties":{"id":{"type":"string"},"alt":{"description":"Accessible alternative text describing the image for screen readers and SEO.","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":["string","null"]},"thumbnailURL":{"type":["string","null"]},"filename":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"filesize":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]}},"required":["id","alt","updatedAt","createdAt"]},"Review":{"type":"object","additionalProperties":false,"title":"Review","properties":{"id":{"type":"string"},"product":{"description":"The product this review is associated with.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"customer":{"description":"The user who authored this review.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"rating":{"description":"Star rating from 1 (lowest) to 5 (highest).","type":"number"},"title":{"description":"Short headline summarizing the review.","type":"string"},"body":{"description":"Detailed review text from the customer.","type":"string"},"status":{"description":"Moderation status controlling public visibility of the review.","type":"string","enum":["pending","approved","rejected"]},"verifiedPurchase":{"description":"Whether this reviewer has purchased the product","type":["boolean","null"]},"helpfulCount":{"description":"Number of users who found this review helpful","type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","product","customer","rating","title","body","status","updatedAt","createdAt"],"description":"Customer product reviews and ratings."},"WishlistItem":{"type":"object","additionalProperties":false,"title":"Wishlist Item","properties":{"id":{"type":"string"},"customer":{"description":"The user who added this item to their wishlist.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"product":{"description":"The product saved to the wishlist.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"variant":{"description":"Optional specific product variant saved to the wishlist.","oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Variants"}]},"addedAt":{"description":"Timestamp when the item was added to the wishlist.","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","customer","product","updatedAt","createdAt"],"description":"Customer wishlists / saved products."},"NewsletterSubscriber":{"type":"object","additionalProperties":false,"title":"Newsletter Subscriber","properties":{"id":{"type":"string"},"email":{"description":"Subscriber email address collected from the newsletter signup form.","type":"string"},"subscribedAt":{"description":"Date and time when the user subscribed to the newsletter.","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","email","updatedAt","createdAt"],"description":"Email addresses collected from the newsletter signup form."},"Partner":{"type":"object","additionalProperties":false,"title":"Partner","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly identifier (e.g. 'maroosh-shawarma').","type":"string"},"category":{"type":"string","enum":["table","studio","moves","nights","goods","stage","flow"]},"fulfillmentMode":{"description":"How redemptions are handled. ddrop routes to a ddrop kitchen. pickup_code just issues a short code. voucher emails a one-time code.","type":"string","enum":["ddrop","pickup_code","voucher"]},"ddropRestaurantId":{"description":"Restaurant id on ddropdanmark.dk. Required only when fulfillmentMode = ddrop.","type":["number","null"]},"ddropBranchId":{"description":"Primary branch id on ddrop. Required only when fulfillmentMode = ddrop.","type":["number","null"]},"description":{"type":["string","null"]},"tags":{"description":"Free-form tags (cuisine for food, treatment type for studios, genre for stage, etc.). Shown as pills on the partner page.","type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"tag":{"type":"string"},"id":{"type":["string","null"]}},"required":["tag"]}},"neighborhood":{"type":["string","null"],"enum":["indre-by","norrebro","vesterbro","osterbro","frederiksberg","amager","christianshavn","valby","other"]},"address":{"type":"object","additionalProperties":false,"properties":{"street":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"city":{"type":["string","null"]}},"required":[]},"coverImage":{"description":"Hero image shown on partner page and offer cards.","oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Media"}]},"logo":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Media"}]},"isActive":{"type":["boolean","null"]},"featured":{"description":"Show on landing page partner grid.","type":["boolean","null"]},"meta":{"type":"object","additionalProperties":false,"properties":{"title":{"type":["string","null"]},"description":{"type":["string","null"]},"image":{"description":"Maximum upload file size: 12MB. Recommended file size for images is <500KB.","oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Media"}]}},"required":[]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","slug","category","fulfillmentMode","updatedAt","createdAt"],"description":"Places subscribers can redeem experiences, goods, or meals — cafes, salons, studios, shops, galleries. Restaurant-style partners also mirror ddrop Danmark."},"Plan":{"type":"object","additionalProperties":false,"title":"Plan","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"description":"credit = N redemptions / month · pass = up to N / day · box = curated items shipped/held for pickup each cycle.","type":"string","enum":["credit","pass","box"]},"description":{"type":["string","null"]},"tagline":{"description":"Short punchy line for the pricing card.","type":["string","null"]},"priceInOre":{"description":"Monthly price in øre. 19900 = 199.00 DKK.","type":"number"},"billingInterval":{"type":["string","null"],"enum":["month","year"]},"stripePriceId":{"description":"Stripe recurring Price id (price_...). Must be set before users can subscribe.","type":"string"},"stripeProductId":{"description":"Stripe Product id (prod_...) — for reference.","type":["string","null"]},"creditsPerPeriod":{"description":"Credit plans only — how many redemptions refresh each billing period.","type":["number","null"]},"dailyRedemptionCap":{"description":"Pass plans only — max redemptions per calendar day.","type":["number","null"]},"boxItemsPerPeriod":{"description":"Box plans only — how many curated items the subscriber receives per period.","type":["number","null"]},"sortOrder":{"type":["number","null"]},"isActive":{"type":["boolean","null"]},"isHighlighted":{"description":"Mark as \"Most popular\" on pricing page.","type":["boolean","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","slug","type","priceInOre","stripePriceId","updatedAt","createdAt"],"description":"Altid Ny subscription plans. All prices are stored in øre (1 DKK = 100 øre) to match the ddrop convention."},"Subscription":{"type":"object","additionalProperties":false,"title":"Subscription","properties":{"id":{"type":"string"},"user":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"plan":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Plan"}]},"stripeCustomerId":{"type":"string"},"stripeSubscriptionId":{"type":"string"},"status":{"type":"string","enum":["trialing","active","past_due","paused","canceled","incomplete","incomplete_expired","unpaid"]},"currentPeriodStart":{"type":["string","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":["boolean","null"]},"creditsRemaining":{"description":"Credit plans only — decremented on each redemption, refilled each billing period.","type":["number","null"]},"redemptionsThisCycle":{"description":"Counter reset each billing period — used for reporting and pass enforcement.","type":["number","null"]},"lastRedemptionAt":{"description":"Used to enforce daily cap for pass plans.","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","user","plan","stripeCustomerId","stripeSubscriptionId","status","updatedAt","createdAt"],"description":"Active and historical Altid Ny subscriptions. Source of truth is Stripe — these rows are synced via webhook."},"Offer":{"type":"object","additionalProperties":false,"title":"Offer","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"coverImage":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Media"}]},"partnerRestaurant":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Partner"}]},"category":{"type":"string","enum":["table","studio","moves","nights","goods","stage","flow"]},"ddropFoodItemIds":{"description":"ddrop food item ids sent as redemption line items. Required only when the partner uses the ddrop fulfillment mode.","type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"foodItemId":{"type":"number"},"quantity":{"type":"number"},"variantIds":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"variantId":{"type":"number"},"id":{"type":["string","null"]}},"required":["variantId"]}},"id":{"type":["string","null"]}},"required":["foodItemId","quantity"]}},"eligibility":{"type":"object","additionalProperties":false,"properties":{"creditPlans":{"description":"Redeemable by credit-plan subscribers.","type":["boolean","null"]},"passPlans":{"description":"Redeemable by pass-plan subscribers.","type":["boolean","null"]},"boxPlans":{"description":"Eligible for curated-box selection (admin assigns to boxes).","type":["boolean","null"]}},"required":[]},"costInCredits":{"description":"Credit plans only — how many credits this redemption consumes. Ignored for pass/box plans.","type":["number","null"]},"copayInOre":{"description":"Optional copay the customer pays at pickup (in øre). 0 = covered entirely by subscription.","type":["number","null"]},"platformPayoutInOre":{"description":"What Altid Ny settles with the restaurant for each redemption (øre). Used for monthly reconciliation.","type":["number","null"]},"activeFrom":{"type":["string","null"]},"activeUntil":{"type":["string","null"]},"sortOrder":{"type":["number","null"]},"isActive":{"type":["boolean","null"]},"isFeatured":{"description":"Highlight on offers catalog and landing page.","type":["boolean","null"]},"meta":{"type":"object","additionalProperties":false,"properties":{"title":{"type":["string","null"]},"description":{"type":["string","null"]},"image":{"description":"Maximum upload file size: 12MB. Recommended file size for images is <500KB.","oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Media"}]}},"required":[]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","title","slug","coverImage","partnerRestaurant","category","updatedAt","createdAt"],"description":"Redeemable items at partner restaurants. References ddrop food items by id."},"Redemption":{"type":"object","additionalProperties":false,"title":"Redemption","properties":{"id":{"type":"string"},"pickupCode":{"description":"Short human-readable code the customer shows at pickup.","type":"string"},"user":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"subscription":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Subscription"}]},"offer":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Offer"}]},"partnerRestaurant":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Partner"}]},"ddropOrderId":{"description":"Set once the redemption is accepted by ddrop. Null means creation is still in-flight.","type":["number","null"]},"ddropOrderNumber":{"description":"Human-readable order number from ddrop, e.g. \"ORD-MNHU3V71-T5WX\".","type":["string","null"]},"status":{"type":"string","enum":["pending","accepted","preparing","ready","completed","cancelled","rejected","refunded"]},"rejectionReason":{"type":["string","null"]},"estimatedReadyAt":{"type":["string","null"]},"redeemedAt":{"type":"string"},"completedAt":{"type":["string","null"]},"creditsSpent":{"description":"Credits deducted from the subscription (credit plans only).","type":["number","null"]},"copayPaidInOre":{"description":"Amount the customer paid at pickup (øre).","type":["number","null"]},"platformPayoutInOre":{"description":"What Altid Ny owes the restaurant for this redemption (øre). Aggregated for settlement.","type":["number","null"]},"notes":{"description":"Customer note forwarded to the restaurant.","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","pickupCode","user","subscription","offer","partnerRestaurant","status","redeemedAt","updatedAt","createdAt"],"description":"Each row is a single Altid Ny redemption. Mirrors the corresponding ddrop order via ddropOrderId."},"Addresses":{"type":"object","additionalProperties":false,"title":"addresses","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/User"}]},"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"phone":{"type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","country","updatedAt","createdAt"]},"Variants":{"type":"object","additionalProperties":false,"title":"variants","properties":{"id":{"type":"string"},"images":{"description":"Variant images","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Media"}]}},"title":{"description":"Used for administrative purposes, not shown to customers. This is populated by default.","type":["string","null"]},"product":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"inventory":{"type":["number","null"]},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","product","options","updatedAt","createdAt"]},"VariantTypes":{"type":"object","additionalProperties":false,"title":"variantTypes","properties":{"id":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","label","name","updatedAt","createdAt"]},"VariantOptions":{"type":"object","additionalProperties":false,"title":"variantOptions","properties":{"id":{"type":"string"},"_variantOptions_options_order":{"type":["string","null"]},"variantType":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]},"label":{"type":"string"},"value":{"description":"should be defaulted or dynamic based on label","type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]}},"required":["id","variantType","label","value","updatedAt","createdAt"]},"Products":{"type":"object","additionalProperties":false,"title":"products","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"description":"URL-friendly version of the name","type":"string"},"description":{"description":"Brief description shown in product listings","type":"string"},"longDescription":{"description":"Detailed product description","type":["object","null"],"properties":{"root":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string"},"children":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","tsType":"any"},"version":{"type":"integer"}},"required":["type","version"]}},"direction":{"oneOf":[{"enum":["ltr","rtl"]},{"type":"null"}]},"format":{"type":"string","enum":["left","start","center","right","end","justify",""]},"indent":{"type":"integer"},"version":{"type":"integer"}},"required":["children","direction","format","indent","type","version"]}},"required":["root"]},"images":{"description":"Product images (first image is the main image)","type":["array","null"],"items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Media"}]}},"category":{"type":"string","enum":["software","templates","courses","services","other"]},"featured":{"description":"Show this product in featured sections","type":["boolean","null"]},"inventory":{"type":["number","null"]},"enableVariants":{"type":["boolean","null"]},"variantTypes":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]}},"variants":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"priceInUSDEnabled":{"type":["boolean","null"]},"priceInUSD":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"deletedAt":{"type":["string","null"]},"_status":{"type":["string","null"],"enum":["draft","published"]}},"required":["id","name","slug","description","category","updatedAt","createdAt"]},"Carts":{"type":"object","additionalProperties":false,"title":"carts","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Products"}]},"variant":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Variants"}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"secret":{"type":["string","null"]},"customer":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/User"}]},"purchasedAt":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["active","purchased","abandoned"]},"subtotal":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"discountCode":{"description":"Applied discount code for this cart","type":["string","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]},"Orders":{"type":"object","additionalProperties":false,"title":"orders","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Products"}]},"variant":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Variants"}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"shippingAddress":{"type":"object","additionalProperties":false,"properties":{"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]},"phone":{"type":["string","null"]}},"required":[]},"customer":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/User"}]},"customerEmail":{"type":["string","null"]},"transactions":{"type":["array","null"],"items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Transactions"}]}},"status":{"type":["string","null"],"enum":["processing","completed","cancelled","refunded"]},"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"fulfillmentStatus":{"description":"Current fulfillment status of this order","type":["string","null"],"enum":["pending","processing","shipped","delivered","cancelled"]},"discountCode":{"description":"Discount code applied to this order","type":["string","null"]},"discountAmount":{"description":"Discount amount in cents that was applied","type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]},"Transactions":{"type":"object","additionalProperties":false,"title":"transactions","properties":{"id":{"type":"string"},"items":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"properties":{"product":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Products"}]},"variant":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Variants"}]},"quantity":{"type":"number"},"id":{"type":["string","null"]}},"required":["quantity"]}},"paymentMethod":{"type":["string","null"],"enum":["stripe"]},"stripe":{"type":"object","additionalProperties":false,"properties":{"customerID":{"type":["string","null"]},"paymentIntentID":{"type":["string","null"]}},"required":[]},"billingAddress":{"type":"object","additionalProperties":false,"properties":{"title":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]},"phone":{"type":["string","null"]}},"required":[]},"status":{"type":"string","enum":["pending","succeeded","failed","cancelled","expired","refunded"]},"customer":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/User"}]},"customerEmail":{"type":["string","null"]},"order":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Orders"}]},"cart":{"oneOf":[{"type":["string","null"]},{"$ref":"#/components/schemas/Carts"}]},"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"enum":["USD"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","status","updatedAt","createdAt"]},"PayloadKv":{"type":"object","additionalProperties":false,"title":"Payload Kv","properties":{"id":{"type":"string"},"key":{"type":"string"},"data":{"type":["object","array","string","number","boolean","null"]}},"required":["id","key","data"]},"PayloadLockedDocument":{"type":"object","additionalProperties":false,"title":"Payload Locked Document","properties":{"id":{"type":"string"},"document":{"oneOf":[{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"users"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"sessions"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Session"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"accounts"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Account"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"verifications"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Verification"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"passkeys"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Passkey"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"apiKeys"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ApiKey"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"admin-invitations"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/AdminInvitation"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"discount-codes"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/DiscountCode"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"media"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Media"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"reviews"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Review"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"wishlists"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/WishlistItem"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"newsletter-subscribers"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/NewsletterSubscriber"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"partnerRestaurants"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Partner"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"plans"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Plan"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"subscriptions"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Subscription"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"offers"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Offer"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"redemptions"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Redemption"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"addresses"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Addresses"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"variants"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variants"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"variantTypes"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantTypes"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"variantOptions"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/VariantOptions"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"products"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Products"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"carts"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Carts"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"orders"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Orders"}]}},"required":["value","relationTo"]},{"type":["object","null"],"additionalProperties":false,"properties":{"relationTo":{"const":"transactions"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Transactions"}]}},"required":["value","relationTo"]}]},"globalSlug":{"type":["string","null"]},"user":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"const":"users"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]}]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","user","updatedAt","createdAt"]},"PayloadPreference":{"type":"object","additionalProperties":false,"title":"Payload Preference","properties":{"id":{"type":"string"},"user":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"const":"users"},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]}]},"key":{"type":["string","null"]},"value":{"type":["object","array","string","number","boolean","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","user","updatedAt","createdAt"]},"PayloadMigration":{"type":"object","additionalProperties":false,"title":"Payload Migration","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"batch":{"type":["number","null"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]},"UserQueryOperations":{"title":"User query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"email":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"emailVerified":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"image":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"role":{"type":"object","properties":{"equals":{"type":"string","enum":["admin","user"]},"not_equals":{"type":"string","enum":["admin","user"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"stripeCustomerId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}}}},"UserQueryOperationsAnd":{"title":"User query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/UserQueryOperations"},{"$ref":"#/components/schemas/UserQueryOperationsAnd"},{"$ref":"#/components/schemas/UserQueryOperationsOr"}]}}},"required":["and"]},"UserQueryOperationsOr":{"title":"User query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/UserQueryOperations"},{"$ref":"#/components/schemas/UserQueryOperationsAnd"},{"$ref":"#/components/schemas/UserQueryOperationsOr"}]}}},"required":["or"]},"SessionQueryOperations":{"title":"Session query operations","type":"object","properties":{"expiresAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"token":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"ipAddress":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"userAgent":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}}}},"SessionQueryOperationsAnd":{"title":"Session query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/SessionQueryOperations"},{"$ref":"#/components/schemas/SessionQueryOperationsAnd"},{"$ref":"#/components/schemas/SessionQueryOperationsOr"}]}}},"required":["and"]},"SessionQueryOperationsOr":{"title":"Session query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/SessionQueryOperations"},{"$ref":"#/components/schemas/SessionQueryOperationsAnd"},{"$ref":"#/components/schemas/SessionQueryOperationsOr"}]}}},"required":["or"]},"AccountQueryOperations":{"title":"Account query operations","type":"object","properties":{"accountId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"providerId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"accessToken":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"refreshToken":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"idToken":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"accessTokenExpiresAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"refreshTokenExpiresAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"scope":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"password":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"AccountQueryOperationsAnd":{"title":"Account query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AccountQueryOperations"},{"$ref":"#/components/schemas/AccountQueryOperationsAnd"},{"$ref":"#/components/schemas/AccountQueryOperationsOr"}]}}},"required":["and"]},"AccountQueryOperationsOr":{"title":"Account query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AccountQueryOperations"},{"$ref":"#/components/schemas/AccountQueryOperationsAnd"},{"$ref":"#/components/schemas/AccountQueryOperationsOr"}]}}},"required":["or"]},"VerificationQueryOperations":{"title":"Verification query operations","type":"object","properties":{"identifier":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"expiresAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"VerificationQueryOperationsAnd":{"title":"Verification query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VerificationQueryOperations"},{"$ref":"#/components/schemas/VerificationQueryOperationsAnd"},{"$ref":"#/components/schemas/VerificationQueryOperationsOr"}]}}},"required":["and"]},"VerificationQueryOperationsOr":{"title":"Verification query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VerificationQueryOperations"},{"$ref":"#/components/schemas/VerificationQueryOperationsAnd"},{"$ref":"#/components/schemas/VerificationQueryOperationsOr"}]}}},"required":["or"]},"PasskeyQueryOperations":{"title":"Passkey query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"publicKey":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"credentialId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"counter":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"deviceType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"backedUp":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"transports":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"aaguid":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PasskeyQueryOperationsAnd":{"title":"Passkey query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PasskeyQueryOperations"},{"$ref":"#/components/schemas/PasskeyQueryOperationsAnd"},{"$ref":"#/components/schemas/PasskeyQueryOperationsOr"}]}}},"required":["and"]},"PasskeyQueryOperationsOr":{"title":"Passkey query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PasskeyQueryOperations"},{"$ref":"#/components/schemas/PasskeyQueryOperationsAnd"},{"$ref":"#/components/schemas/PasskeyQueryOperationsOr"}]}}},"required":["or"]},"ApiKeyQueryOperations":{"title":"Api Key query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"start":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"prefix":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"key":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"refillInterval":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"refillAmount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"lastRefillAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"enabled":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"rateLimitEnabled":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"rateLimitTimeWindow":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"rateLimitMax":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"requestCount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"remaining":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"lastRequest":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"expiresAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"permissions":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"metadata":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}}}},"ApiKeyQueryOperationsAnd":{"title":"Api Key query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyQueryOperations"},{"$ref":"#/components/schemas/ApiKeyQueryOperationsAnd"},{"$ref":"#/components/schemas/ApiKeyQueryOperationsOr"}]}}},"required":["and"]},"ApiKeyQueryOperationsOr":{"title":"Api Key query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyQueryOperations"},{"$ref":"#/components/schemas/ApiKeyQueryOperationsAnd"},{"$ref":"#/components/schemas/ApiKeyQueryOperationsOr"}]}}},"required":["or"]},"AdminInvitationQueryOperations":{"title":"Admin Invitation query operations","type":"object","properties":{"role":{"type":"object","properties":{"equals":{"type":"string","enum":["admin","user"]},"not_equals":{"type":"string","enum":["admin","user"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"token":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"AdminInvitationQueryOperationsAnd":{"title":"Admin Invitation query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AdminInvitationQueryOperations"},{"$ref":"#/components/schemas/AdminInvitationQueryOperationsAnd"},{"$ref":"#/components/schemas/AdminInvitationQueryOperationsOr"}]}}},"required":["and"]},"AdminInvitationQueryOperationsOr":{"title":"Admin Invitation query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AdminInvitationQueryOperations"},{"$ref":"#/components/schemas/AdminInvitationQueryOperationsAnd"},{"$ref":"#/components/schemas/AdminInvitationQueryOperationsOr"}]}}},"required":["or"]},"DiscountCodeQueryOperations":{"title":"Discount Code query operations","type":"object","properties":{"code":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"maxDiscountAmount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"minimumOrderAmount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"maxUsesPerCustomer":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"isActive":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"appliesToCategories":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"DiscountCodeQueryOperationsAnd":{"title":"Discount Code query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/DiscountCodeQueryOperations"},{"$ref":"#/components/schemas/DiscountCodeQueryOperationsAnd"},{"$ref":"#/components/schemas/DiscountCodeQueryOperationsOr"}]}}},"required":["and"]},"DiscountCodeQueryOperationsOr":{"title":"Discount Code query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/DiscountCodeQueryOperations"},{"$ref":"#/components/schemas/DiscountCodeQueryOperationsAnd"},{"$ref":"#/components/schemas/DiscountCodeQueryOperationsOr"}]}}},"required":["or"]},"MediaQueryOperations":{"title":"Media query operations","type":"object","properties":{"alt":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},"MediaQueryOperationsAnd":{"title":"Media query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/MediaQueryOperations"},{"$ref":"#/components/schemas/MediaQueryOperationsAnd"},{"$ref":"#/components/schemas/MediaQueryOperationsOr"}]}}},"required":["and"]},"MediaQueryOperationsOr":{"title":"Media query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/MediaQueryOperations"},{"$ref":"#/components/schemas/MediaQueryOperationsAnd"},{"$ref":"#/components/schemas/MediaQueryOperationsOr"}]}}},"required":["or"]},"ReviewQueryOperations":{"title":"Review query operations","type":"object","properties":{"rating":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","approved","rejected"]},"not_equals":{"type":"string","enum":["pending","approved","rejected"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"verifiedPurchase":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"helpfulCount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"ReviewQueryOperationsAnd":{"title":"Review query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ReviewQueryOperations"},{"$ref":"#/components/schemas/ReviewQueryOperationsAnd"},{"$ref":"#/components/schemas/ReviewQueryOperationsOr"}]}}},"required":["and"]},"ReviewQueryOperationsOr":{"title":"Review query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ReviewQueryOperations"},{"$ref":"#/components/schemas/ReviewQueryOperationsAnd"},{"$ref":"#/components/schemas/ReviewQueryOperationsOr"}]}}},"required":["or"]},"WishlistItemQueryOperations":{"title":"Wishlist Item query operations","type":"object","properties":{"addedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"WishlistItemQueryOperationsAnd":{"title":"Wishlist Item query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/WishlistItemQueryOperations"},{"$ref":"#/components/schemas/WishlistItemQueryOperationsAnd"},{"$ref":"#/components/schemas/WishlistItemQueryOperationsOr"}]}}},"required":["and"]},"WishlistItemQueryOperationsOr":{"title":"Wishlist Item query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/WishlistItemQueryOperations"},{"$ref":"#/components/schemas/WishlistItemQueryOperationsAnd"},{"$ref":"#/components/schemas/WishlistItemQueryOperationsOr"}]}}},"required":["or"]},"NewsletterSubscriberQueryOperations":{"title":"Newsletter Subscriber query operations","type":"object","properties":{"email":{"type":"object","properties":{"equals":{"type":"string","format":"email"},"not_equals":{"type":"string","format":"email"},"in":{"type":"string"},"not_in":{"type":"string"},"contains":{"type":"string","format":"email"}}},"subscribedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"NewsletterSubscriberQueryOperationsAnd":{"title":"Newsletter Subscriber query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/NewsletterSubscriberQueryOperations"},{"$ref":"#/components/schemas/NewsletterSubscriberQueryOperationsAnd"},{"$ref":"#/components/schemas/NewsletterSubscriberQueryOperationsOr"}]}}},"required":["and"]},"NewsletterSubscriberQueryOperationsOr":{"title":"Newsletter Subscriber query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/NewsletterSubscriberQueryOperations"},{"$ref":"#/components/schemas/NewsletterSubscriberQueryOperationsAnd"},{"$ref":"#/components/schemas/NewsletterSubscriberQueryOperationsOr"}]}}},"required":["or"]},"PartnerQueryOperations":{"title":"Partner query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["table","studio","moves","nights","goods","stage","flow"]},"not_equals":{"type":"string","enum":["table","studio","moves","nights","goods","stage","flow"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"fulfillmentMode":{"type":"object","properties":{"equals":{"type":"string","enum":["ddrop","pickup_code","voucher"]},"not_equals":{"type":"string","enum":["ddrop","pickup_code","voucher"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"ddropRestaurantId":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"ddropBranchId":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"neighborhood":{"type":"object","properties":{"equals":{"type":"string","enum":["indre-by","norrebro","vesterbro","osterbro","frederiksberg","amager","christianshavn","valby","other"]},"not_equals":{"type":"string","enum":["indre-by","norrebro","vesterbro","osterbro","frederiksberg","amager","christianshavn","valby","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"isActive":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PartnerQueryOperationsAnd":{"title":"Partner query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PartnerQueryOperations"},{"$ref":"#/components/schemas/PartnerQueryOperationsAnd"},{"$ref":"#/components/schemas/PartnerQueryOperationsOr"}]}}},"required":["and"]},"PartnerQueryOperationsOr":{"title":"Partner query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PartnerQueryOperations"},{"$ref":"#/components/schemas/PartnerQueryOperationsAnd"},{"$ref":"#/components/schemas/PartnerQueryOperationsOr"}]}}},"required":["or"]},"PlanQueryOperations":{"title":"Plan query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"type":{"type":"object","properties":{"equals":{"type":"string","enum":["credit","pass","box"]},"not_equals":{"type":"string","enum":["credit","pass","box"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"tagline":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"priceInOre":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"billingInterval":{"type":"object","properties":{"equals":{"type":"string","enum":["month","year"]},"not_equals":{"type":"string","enum":["month","year"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"stripePriceId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"stripeProductId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"creditsPerPeriod":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"dailyRedemptionCap":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"boxItemsPerPeriod":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"sortOrder":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"isActive":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"isHighlighted":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PlanQueryOperationsAnd":{"title":"Plan query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlanQueryOperations"},{"$ref":"#/components/schemas/PlanQueryOperationsAnd"},{"$ref":"#/components/schemas/PlanQueryOperationsOr"}]}}},"required":["and"]},"PlanQueryOperationsOr":{"title":"Plan query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlanQueryOperations"},{"$ref":"#/components/schemas/PlanQueryOperationsAnd"},{"$ref":"#/components/schemas/PlanQueryOperationsOr"}]}}},"required":["or"]},"SubscriptionQueryOperations":{"title":"Subscription query operations","type":"object","properties":{"stripeCustomerId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"stripeSubscriptionId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["trialing","active","past_due","paused","canceled","incomplete","incomplete_expired","unpaid"]},"not_equals":{"type":"string","enum":["trialing","active","past_due","paused","canceled","incomplete","incomplete_expired","unpaid"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"currentPeriodStart":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"currentPeriodEnd":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"cancelAtPeriodEnd":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"creditsRemaining":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"redemptionsThisCycle":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"lastRedemptionAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"SubscriptionQueryOperationsAnd":{"title":"Subscription query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionQueryOperations"},{"$ref":"#/components/schemas/SubscriptionQueryOperationsAnd"},{"$ref":"#/components/schemas/SubscriptionQueryOperationsOr"}]}}},"required":["and"]},"SubscriptionQueryOperationsOr":{"title":"Subscription query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionQueryOperations"},{"$ref":"#/components/schemas/SubscriptionQueryOperationsAnd"},{"$ref":"#/components/schemas/SubscriptionQueryOperationsOr"}]}}},"required":["or"]},"OfferQueryOperations":{"title":"Offer query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["table","studio","moves","nights","goods","stage","flow"]},"not_equals":{"type":"string","enum":["table","studio","moves","nights","goods","stage","flow"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"costInCredits":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"copayInOre":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"platformPayoutInOre":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"activeFrom":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"activeUntil":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"sortOrder":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"isActive":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"isFeatured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"OfferQueryOperationsAnd":{"title":"Offer query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/OfferQueryOperations"},{"$ref":"#/components/schemas/OfferQueryOperationsAnd"},{"$ref":"#/components/schemas/OfferQueryOperationsOr"}]}}},"required":["and"]},"OfferQueryOperationsOr":{"title":"Offer query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/OfferQueryOperations"},{"$ref":"#/components/schemas/OfferQueryOperationsAnd"},{"$ref":"#/components/schemas/OfferQueryOperationsOr"}]}}},"required":["or"]},"RedemptionQueryOperations":{"title":"Redemption query operations","type":"object","properties":{"pickupCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"ddropOrderId":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"ddropOrderNumber":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","accepted","preparing","ready","completed","cancelled","rejected","refunded"]},"not_equals":{"type":"string","enum":["pending","accepted","preparing","ready","completed","cancelled","rejected","refunded"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"rejectionReason":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"estimatedReadyAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"redeemedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"completedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"creditsSpent":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"copayPaidInOre":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"platformPayoutInOre":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"RedemptionQueryOperationsAnd":{"title":"Redemption query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/RedemptionQueryOperations"},{"$ref":"#/components/schemas/RedemptionQueryOperationsAnd"},{"$ref":"#/components/schemas/RedemptionQueryOperationsOr"}]}}},"required":["and"]},"RedemptionQueryOperationsOr":{"title":"Redemption query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/RedemptionQueryOperations"},{"$ref":"#/components/schemas/RedemptionQueryOperationsAnd"},{"$ref":"#/components/schemas/RedemptionQueryOperationsOr"}]}}},"required":["or"]},"AddressesQueryOperations":{"title":"addresses query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"company":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine1":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"addressLine2":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"city":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"postalCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"country":{"type":"object","properties":{"equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"not_equals":{"type":"string","enum":["US","GB","CA","AU","AT","BE","BR","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HK","HU","IN","IE","IT","JP","LV","LT","LU","MY","MT","MX","NL","NZ","NO","PL","PT","RO","SG","SK","SI","ES","SE","CH"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"phone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"AddressesQueryOperationsAnd":{"title":"addresses query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AddressesQueryOperations"},{"$ref":"#/components/schemas/AddressesQueryOperationsAnd"},{"$ref":"#/components/schemas/AddressesQueryOperationsOr"}]}}},"required":["and"]},"AddressesQueryOperationsOr":{"title":"addresses query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AddressesQueryOperations"},{"$ref":"#/components/schemas/AddressesQueryOperationsAnd"},{"$ref":"#/components/schemas/AddressesQueryOperationsOr"}]}}},"required":["or"]},"VariantsQueryOperations":{"title":"variants query operations","type":"object","properties":{"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},"VariantsQueryOperationsAnd":{"title":"variants query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariantsQueryOperations"},{"$ref":"#/components/schemas/VariantsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantsQueryOperationsOr"}]}}},"required":["and"]},"VariantsQueryOperationsOr":{"title":"variants query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariantsQueryOperations"},{"$ref":"#/components/schemas/VariantsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantsQueryOperationsOr"}]}}},"required":["or"]},"VariantTypesQueryOperations":{"title":"variantTypes query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"VariantTypesQueryOperationsAnd":{"title":"variantTypes query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariantTypesQueryOperations"},{"$ref":"#/components/schemas/VariantTypesQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantTypesQueryOperationsOr"}]}}},"required":["and"]},"VariantTypesQueryOperationsOr":{"title":"variantTypes query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariantTypesQueryOperations"},{"$ref":"#/components/schemas/VariantTypesQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantTypesQueryOperationsOr"}]}}},"required":["or"]},"VariantOptionsQueryOperations":{"title":"variantOptions query operations","type":"object","properties":{"_variantOptions_options_order":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"value":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"VariantOptionsQueryOperationsAnd":{"title":"variantOptions query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariantOptionsQueryOperations"},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsOr"}]}}},"required":["and"]},"VariantOptionsQueryOperationsOr":{"title":"variantOptions query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariantOptionsQueryOperations"},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsAnd"},{"$ref":"#/components/schemas/VariantOptionsQueryOperationsOr"}]}}},"required":["or"]},"ProductsQueryOperations":{"title":"products query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"category":{"type":"object","properties":{"equals":{"type":"string","enum":["software","templates","courses","services","other"]},"not_equals":{"type":"string","enum":["software","templates","courses","services","other"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"featured":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"inventory":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"enableVariants":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deletedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"_status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","published"]},"not_equals":{"type":"string","enum":["draft","published"]},"in":{"type":"string"},"not_in":{"type":"string"}}}}},"ProductsQueryOperationsAnd":{"title":"products query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ProductsQueryOperations"},{"$ref":"#/components/schemas/ProductsQueryOperationsAnd"},{"$ref":"#/components/schemas/ProductsQueryOperationsOr"}]}}},"required":["and"]},"ProductsQueryOperationsOr":{"title":"products query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ProductsQueryOperations"},{"$ref":"#/components/schemas/ProductsQueryOperationsAnd"},{"$ref":"#/components/schemas/ProductsQueryOperationsOr"}]}}},"required":["or"]},"CartsQueryOperations":{"title":"carts query operations","type":"object","properties":{"secret":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purchasedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","purchased","abandoned"]},"not_equals":{"type":"string","enum":["active","purchased","abandoned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"CartsQueryOperationsAnd":{"title":"carts query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CartsQueryOperations"},{"$ref":"#/components/schemas/CartsQueryOperationsAnd"},{"$ref":"#/components/schemas/CartsQueryOperationsOr"}]}}},"required":["and"]},"CartsQueryOperationsOr":{"title":"carts query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CartsQueryOperations"},{"$ref":"#/components/schemas/CartsQueryOperationsAnd"},{"$ref":"#/components/schemas/CartsQueryOperationsOr"}]}}},"required":["or"]},"OrdersQueryOperations":{"title":"orders query operations","type":"object","properties":{"customerEmail":{"type":"object","properties":{"equals":{"type":"string","format":"email"},"not_equals":{"type":"string","format":"email"},"in":{"type":"string"},"not_in":{"type":"string"},"contains":{"type":"string","format":"email"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["processing","completed","cancelled","refunded"]},"not_equals":{"type":"string","enum":["processing","completed","cancelled","refunded"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"fulfillmentStatus":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","processing","shipped","delivered","cancelled"]},"not_equals":{"type":"string","enum":["pending","processing","shipped","delivered","cancelled"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"discountCode":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"discountAmount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"OrdersQueryOperationsAnd":{"title":"orders query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/OrdersQueryOperations"},{"$ref":"#/components/schemas/OrdersQueryOperationsAnd"},{"$ref":"#/components/schemas/OrdersQueryOperationsOr"}]}}},"required":["and"]},"OrdersQueryOperationsOr":{"title":"orders query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/OrdersQueryOperations"},{"$ref":"#/components/schemas/OrdersQueryOperationsAnd"},{"$ref":"#/components/schemas/OrdersQueryOperationsOr"}]}}},"required":["or"]},"TransactionsQueryOperations":{"title":"transactions query operations","type":"object","properties":{"status":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","succeeded","failed","cancelled","expired","refunded"]},"not_equals":{"type":"string","enum":["pending","succeeded","failed","cancelled","expired","refunded"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"customerEmail":{"type":"object","properties":{"equals":{"type":"string","format":"email"},"not_equals":{"type":"string","format":"email"},"in":{"type":"string"},"not_in":{"type":"string"},"contains":{"type":"string","format":"email"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"TransactionsQueryOperationsAnd":{"title":"transactions query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TransactionsQueryOperations"},{"$ref":"#/components/schemas/TransactionsQueryOperationsAnd"},{"$ref":"#/components/schemas/TransactionsQueryOperationsOr"}]}}},"required":["and"]},"TransactionsQueryOperationsOr":{"title":"transactions query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TransactionsQueryOperations"},{"$ref":"#/components/schemas/TransactionsQueryOperationsAnd"},{"$ref":"#/components/schemas/TransactionsQueryOperationsOr"}]}}},"required":["or"]},"PayloadKvQueryOperations":{"title":"Payload Kv query operations","type":"object","properties":{"key":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}}}},"PayloadKvQueryOperationsAnd":{"title":"Payload Kv query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadKvQueryOperations"},{"$ref":"#/components/schemas/PayloadKvQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadKvQueryOperationsOr"}]}}},"required":["and"]},"PayloadKvQueryOperationsOr":{"title":"Payload Kv query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadKvQueryOperations"},{"$ref":"#/components/schemas/PayloadKvQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadKvQueryOperationsOr"}]}}},"required":["or"]},"PayloadLockedDocumentQueryOperations":{"title":"Payload Locked Document query operations","type":"object","properties":{"globalSlug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PayloadLockedDocumentQueryOperationsAnd":{"title":"Payload Locked Document query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadLockedDocumentQueryOperations"},{"$ref":"#/components/schemas/PayloadLockedDocumentQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadLockedDocumentQueryOperationsOr"}]}}},"required":["and"]},"PayloadLockedDocumentQueryOperationsOr":{"title":"Payload Locked Document query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadLockedDocumentQueryOperations"},{"$ref":"#/components/schemas/PayloadLockedDocumentQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadLockedDocumentQueryOperationsOr"}]}}},"required":["or"]},"PayloadPreferenceQueryOperations":{"title":"Payload Preference query operations","type":"object","properties":{"key":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PayloadPreferenceQueryOperationsAnd":{"title":"Payload Preference query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadPreferenceQueryOperations"},{"$ref":"#/components/schemas/PayloadPreferenceQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadPreferenceQueryOperationsOr"}]}}},"required":["and"]},"PayloadPreferenceQueryOperationsOr":{"title":"Payload Preference query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadPreferenceQueryOperations"},{"$ref":"#/components/schemas/PayloadPreferenceQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadPreferenceQueryOperationsOr"}]}}},"required":["or"]},"PayloadMigrationQueryOperations":{"title":"Payload Migration query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"batch":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PayloadMigrationQueryOperationsAnd":{"title":"Payload Migration query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadMigrationQueryOperations"},{"$ref":"#/components/schemas/PayloadMigrationQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadMigrationQueryOperationsOr"}]}}},"required":["and"]},"PayloadMigrationQueryOperationsOr":{"title":"Payload Migration query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PayloadMigrationQueryOperations"},{"$ref":"#/components/schemas/PayloadMigrationQueryOperationsAnd"},{"$ref":"#/components/schemas/PayloadMigrationQueryOperationsOr"}]}}},"required":["or"]},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable error message.","example":"Internal server error"}}},"ValidationError":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Summary of the validation failure.","example":"Validation failed"},"details":{"type":"object","description":"Structured validation error details from Zod.","properties":{"fieldErrors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Per-field error messages.","example":{"email":["Invalid email address"]}},"formErrors":{"type":"array","items":{"type":"string"},"description":"Form-level error messages.","example":[]}}}}},"SuccessResponse":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean","example":true}}},"ProductHit":{"type":"object","properties":{"id":{"type":"string","description":"Unique product identifier from the search index"},"score":{"type":"number","description":"Relevance score from the search engine"},"document":{"type":"object","properties":{"name":{"type":"string","description":"Product display name"},"slug":{"type":"string","description":"URL-safe product slug"},"description":{"type":"string","description":"Product description"},"priceInUSD":{"type":"number","description":"Product price in US dollars"},"category":{"type":"string","description":"Product category slug"},"imageUrl":{"type":"string","description":"URL of the product thumbnail image"}}}}},"PaginatedResponse":{"type":"object","properties":{"docs":{"type":"array","items":{},"description":"Array of documents for the current page."},"totalDocs":{"type":"integer","description":"Total number of matching documents.","example":42},"totalPages":{"type":"integer","description":"Total number of pages.","example":5},"page":{"type":"integer","description":"Current page number (1-indexed).","example":1},"limit":{"type":"integer","description":"Maximum documents per page.","example":10},"hasNextPage":{"type":"boolean","example":true},"hasPrevPage":{"type":"boolean","example":false}}}},"securitySchemes":{"ApiKey":{"type":"oauth2","flows":{"password":{"tokenUrl":"/api//openapi-auth","scopes":{}}}},"cookieAuth":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"Session cookie set by Better-Auth after login. Authenticate via POST /api/auth/sign-in/email or OAuth flow."},"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for programmatic access. Create keys at /account/developer or via POST /api/auth/api-key/create. Keys are scoped — only endpoints matching the key's permissions are accessible."}}},"security":[{"cookieAuth":[]},{"apiKeyAuth":[]}]}