{"openapi":"3.1.0","info":{"title":"MUToday v4 API","version":"1.0.0","description":"Auto-generated from the `@mu/api-contract` zod registry — the single source of truth every client and codegen consumes. Endpoints shown as bare objects are not yet field-pinned in the contract (`serviceShaped`). Paths carry no version prefix — the API is versioned by the `x-mu-api-version` request header (current: `1`; absent = current)."},"servers":[{"url":"https://api.mutoday.pro","description":"staging"}],"tags":[{"name":"activityLog"},{"name":"adminAllowlist"},{"name":"adminPartners"},{"name":"ai"},{"name":"announcements"},{"name":"artifacts"},{"name":"astroEvents"},{"name":"astrology"},{"name":"auth"},{"name":"banners"},{"name":"birdeyeOracle"},{"name":"calendarV3"},{"name":"chat"},{"name":"consent"},{"name":"contextPrices"},{"name":"creators"},{"name":"decks"},{"name":"divination"},{"name":"entitlements"},{"name":"event"},{"name":"eventBanner"},{"name":"eventBanners"},{"name":"faceReading"},{"name":"faq"},{"name":"featureFlags"},{"name":"feed"},{"name":"health"},{"name":"home"},{"name":"homeV3"},{"name":"i18n"},{"name":"iceCoworker"},{"name":"iceSompong"},{"name":"iceSoulmate"},{"name":"iceThoughts"},{"name":"interest"},{"name":"lifeGraph"},{"name":"luckyColor"},{"name":"luckyDraw"},{"name":"luckyNumberV3"},{"name":"matchingPartner"},{"name":"membership"},{"name":"muQuestionV3"},{"name":"notifications"},{"name":"numerology"},{"name":"partner"},{"name":"partners"},{"name":"payment"},{"name":"paymentProviders"},{"name":"permissions"},{"name":"personalization"},{"name":"pimfahLuckyColor"},{"name":"pimfahTarot"},{"name":"platform"},{"name":"points"},{"name":"post"},{"name":"posts"},{"name":"preRegister"},{"name":"prediction"},{"name":"products"},{"name":"profile"},{"name":"promoCodes"},{"name":"quotaOps"},{"name":"readings"},{"name":"receipts"},{"name":"referral"},{"name":"report"},{"name":"reports"},{"name":"reviews"},{"name":"reward"},{"name":"ritual"},{"name":"rune"},{"name":"saengsukOracle"},{"name":"services"},{"name":"shipments"},{"name":"shortLinks"},{"name":"staffAudit"},{"name":"staffMembers"},{"name":"staffRoles"},{"name":"starMovementV3"},{"name":"syamsi"},{"name":"tarot"},{"name":"termAndPdpa"},{"name":"uploads"},{"name":"usage"},{"name":"user"},{"name":"users"},{"name":"verify"},{"name":"vision"},{"name":"vows"},{"name":"wallpaper"},{"name":"webArticles"},{"name":"webhooks"},{"name":"widget"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ErrorEnvelope":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL","VALIDATION","NOT_FOUND","BAD_REQUEST","CONFLICT","RATE_LIMITED","SERVICE_UNAVAILABLE","UNAUTHORIZED","FORBIDDEN","TOKEN_EXPIRED","TOKEN_INVALID","SOCIAL_TOKEN_INVALID","IDEMPOTENCY_CONFLICT","PAYMENT_FAILED","PAYMENT_WEBHOOK_INVALID","ORDER_STATE_INVALID","PAYOUT_STATE_INVALID","VOW_STATE_INVALID","ENTITLEMENT_REQUIRED","QUOTA_EXCEEDED","SUBSCRIPTION_INACTIVE","PROMO_CODE_NOT_FOUND","PROMO_CODE_INACTIVE","PROMO_CODE_EXHAUSTED","PROMO_CODE_ALREADY_REDEEMED","PROMO_CODE_NOT_APPLICABLE","REPORT_ALREADY_EXISTS","REPORT_NOT_AVAILABLE","EVENT_REGISTER_ALREADY_CONFIRMED","EVENT_CONFIRM_LIMIT_REACHED","SERIAL_NOT_FOUND","CREATOR_INACTIVE","AI_UNAVAILABLE","VISION_UNAVAILABLE","AI_CONSENT_REQUIRED","AI_CONTEXT_OVERFLOW"]},"message":{"type":"string"},"errorType":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/admin-activity-log":{"get":{"operationId":"activityLog.list","tags":["activityLog"],"summary":"activityLog.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"action":{"anyOf":[{"type":"string"},{"type":"null"}]},"targetId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"oldValue":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"newValue":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"ipAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","userId","userName","action","targetId","oldValue","newValue","status","errorMessage","ipAddress","createdAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalItems":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"},"hasPreviousPage":{"type":"boolean"}},"required":["totalItems","totalPages","currentPage","pageSize","hasNextPage","hasPreviousPage"],"additionalProperties":false}},"required":["items","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":100}},{"name":"userId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"action","in":"query","required":false,"schema":{"type":"string"}},{"name":"targetId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"fromDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"toDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"activityLog.create","tags":["activityLog"],"summary":"activityLog.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"action":{"anyOf":[{"type":"string"},{"type":"null"}]},"targetId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"oldValue":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"newValue":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"ipAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","userId","userName","action","targetId","oldValue","newValue","status","errorMessage","ipAddress","createdAt"],"additionalProperties":false}},"required":["item"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string"},"targetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"oldValue":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"newValue":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"status":{"type":"string"},"errorMessage":{"type":"string"},"userName":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/admin-activity-log/facets":{"get":{"operationId":"activityLog.facets","tags":["activityLog"],"summary":"activityLog.facets","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"actors":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","userName"],"additionalProperties":false}},"actions":{"type":"array","items":{"type":"string"}}},"required":["actors","actions"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/admin-allowlist":{"get":{"operationId":"adminAllowlist.list","tags":["adminAllowlist"],"summary":"adminAllowlist.list","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"admins":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"staffRole":{"anyOf":[{"type":"string","enum":["finance","support","marketing"]},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","role","staffRole","active","createdAt"],"additionalProperties":false}}},"required":["admins"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"adminAllowlist.create","tags":["adminAllowlist"],"summary":"adminAllowlist.create","description":"Auth: requires role super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"admin":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"staffRole":{"anyOf":[{"type":"string","enum":["finance","support","marketing"]},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","role","staffRole","active","createdAt"],"additionalProperties":false}},"required":["admin"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["admin","super_admin"]},"staffRole":{"anyOf":[{"type":"string","enum":["finance","support","marketing"]},{"type":"null"}]}},"required":["email","role"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-allowlist/{id}":{"patch":{"operationId":"adminAllowlist.update","tags":["adminAllowlist"],"summary":"adminAllowlist.update","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"admin":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"staffRole":{"anyOf":[{"type":"string","enum":["finance","support","marketing"]},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","role","staffRole","active","createdAt"],"additionalProperties":false}},"required":["admin"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"string","enum":["finance","support","marketing"]},{"type":"null"}]}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"adminAllowlist.delete","tags":["adminAllowlist"],"summary":"adminAllowlist.delete","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/announcements":{"get":{"operationId":"announcements.listActive","tags":["announcements"],"summary":"announcements.listActive","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"announcements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"showScrim":{"type":"boolean"}},"required":["id","title","body","imageUrl","linkUrl","linkLabel","showScrim"],"additionalProperties":false}}},"required":["announcements"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/admin-announcements":{"get":{"operationId":"announcements.adminList","tags":["announcements"],"summary":"announcements.adminList","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"announcements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"showScrim":{"type":"boolean"},"active":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","body","imageUrl","linkUrl","linkLabel","showScrim","active","startsAt","endsAt","sortOrder","createdAt","updatedAt"],"additionalProperties":false}}},"required":["announcements"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"announcements.create","tags":["announcements"],"summary":"announcements.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"announcement":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"showScrim":{"type":"boolean"},"active":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","body","imageUrl","linkUrl","linkLabel","showScrim","active","startsAt","endsAt","sortOrder","createdAt","updatedAt"],"additionalProperties":false}},"required":["announcement"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":4000},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"showScrim":{"type":"boolean"},"active":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}}}}},"security":[{"bearerAuth":[]}]}},"/admin-announcements/{id}":{"patch":{"operationId":"announcements.update","tags":["announcements"],"summary":"announcements.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"announcement":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"showScrim":{"type":"boolean"},"active":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","body","imageUrl","linkUrl","linkLabel","showScrim","active","startsAt","endsAt","sortOrder","createdAt","updatedAt"],"additionalProperties":false}},"required":["announcement"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":4000},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"showScrim":{"type":"boolean"},"active":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"announcements.delete","tags":["announcements"],"summary":"announcements.delete","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/user/login":{"post":{"operationId":"user.login","tags":["user"],"summary":"user.login","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"refreshToken":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"active":{"type":"boolean"},"nickname":{"type":"string"},"email":{"type":"string"},"userName":{"type":"string"},"note":{"type":"string"},"birthDate":{"type":"string"},"birthPlace":{"type":"string"},"birthPlaceFullText":{"type":"string"},"birthTime":{"type":"string"},"birthDateText":{"type":"string"},"birthDateFullText":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"chineseZodiac":{"type":"string"},"displayName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"sex":{"type":"string"},"blood":{"type":"string"},"isAppleConnected":{"type":"boolean"},"isGoogleConnected":{"type":"boolean"},"isLineConnected":{"type":"boolean"},"imgProfile":{"type":"string"},"flagNotBirthPlace":{"type":"boolean"},"flagNotBirthTime":{"type":"boolean"},"flagWritter":{"type":"boolean"},"interest":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"select":{"type":"boolean"},"img":{"type":"string"}},"required":["id","name","select","img"],"additionalProperties":false}}},"required":["id","name","list"],"additionalProperties":false}}},"required":["id","createdAt","updatedAt","active","nickname","email","userName","note","birthDate","birthPlace","birthPlaceFullText","birthTime","birthDateText","birthDateFullText","zodiac","ascendant","chineseZodiac","displayName","firstName","lastName","sex","blood","isAppleConnected","isGoogleConnected","isLineConnected","imgProfile","flagNotBirthPlace","flagNotBirthTime","flagWritter","interest"],"additionalProperties":false},"pdpa":{"type":"boolean"},"term":{"type":"boolean"},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"isNewUser":{"type":"boolean"},"signupKind":{"anyOf":[{"type":"string","enum":["first","returning"]},{"type":"null"}]},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["token","refreshToken","user","pdpa","term","canChangeUsername","canChangeDisplayName"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"social":{"type":"string"},"provider":{"type":"string"},"idToken":{"type":"string"},"accessToken":{"type":"string"},"nonce":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorizationCode":{"type":"string"},"fullName":{"type":"string"}},"required":["social"]}}}}}},"/auth/social":{"post":{"operationId":"auth.adminSocial","tags":["auth"],"summary":"auth.adminSocial","description":"Auth: public (no token).","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","role","email","displayName"],"additionalProperties":false},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"tokenType":{"type":"string"}},"required":["user","accessToken","refreshToken","expiresIn","tokenType"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["google","apple","line"]},"idToken":{"type":"string","minLength":1}},"required":["provider","idToken"]}}}}}},"/auth/line/exchange":{"post":{"operationId":"auth.lineExchange","tags":["auth"],"summary":"auth.lineExchange","description":"Auth: public (no token).","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","role","email","displayName"],"additionalProperties":false},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"tokenType":{"type":"string"},"isNewUser":{"type":"boolean"},"signupKind":{"anyOf":[{"type":"string","enum":["first","returning"]},{"type":"null"}]},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["user","accessToken","refreshToken","expiresIn","tokenType"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1},"redirectUri":{"type":"string","minLength":1},"codeVerifier":{"type":"string","minLength":43,"maxLength":128}},"required":["code","redirectUri"]}}}}}},"/auth/dev":{"post":{"operationId":"auth.devLogin","tags":["auth"],"summary":"auth.devLogin","description":"Auth: public (no token).","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","role","email","displayName"],"additionalProperties":false},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"tokenType":{"type":"string"},"isNewUser":{"type":"boolean"},"signupKind":{"anyOf":[{"type":"string","enum":["first","returning"]},{"type":"null"}]},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["user","accessToken","refreshToken","expiresIn","tokenType"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","maxLength":120}}}}}}}},"/user/refresh":{"post":{"operationId":"user.refresh","tags":["user"],"summary":"user.refresh","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"refreshToken":{"type":"string"}},"required":["token","refreshToken"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","minLength":1}},"required":["refreshToken"]}}}}}},"/auth/refresh":{"post":{"operationId":"auth.refreshV1","tags":["auth"],"summary":"auth.refreshV1","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"tokenType":{"type":"string"}},"required":["accessToken","refreshToken","expiresIn","tokenType"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","minLength":1}},"required":["refreshToken"]}}}}}},"/auth/logout":{"post":{"operationId":"auth.logout","tags":["auth"],"summary":"auth.logout","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","minLength":1}},"required":["refreshToken"]}}}}}},"/auth/link":{"post":{"operationId":"auth.link","tags":["auth"],"summary":"auth.link","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}}},"required":["providers"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["google","apple","line"]},"idToken":{"type":"string","minLength":1}},"required":["provider","idToken"]}}}},"security":[{"bearerAuth":[]}]}},"/auth/line/link":{"post":{"operationId":"auth.lineLink","tags":["auth"],"summary":"auth.lineLink","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}}},"required":["providers"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1},"redirectUri":{"type":"string","minLength":1},"codeVerifier":{"type":"string","minLength":43,"maxLength":128}},"required":["code","redirectUri"]}}}},"security":[{"bearerAuth":[]}]}},"/auth/unlink":{"post":{"operationId":"auth.unlink","tags":["auth"],"summary":"auth.unlink","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}}},"required":["providers"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["google","apple","line"]}},"required":["provider"]}}}},"security":[{"bearerAuth":[]}]}},"/banners":{"get":{"operationId":"banners.listPublic","tags":["banners"],"summary":"banners.listPublic","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"banners":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"slot":{"type":"string","enum":["home","predict","advisors","boost"]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isPreRegister":{"type":"boolean"}},"required":["id","img","link","detail","slot","sortOrder"],"additionalProperties":false}}},"required":["banners"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slot","in":"query","required":true,"schema":{"type":"string","enum":["home","predict","advisors","boost"]}}]}},"/event-banners":{"get":{"operationId":"eventBanners.list","tags":["eventBanners"],"summary":"eventBanners.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"banners":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"slot":{"type":"string","enum":["home","predict","advisors","boost"]},"pages":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","img","link","detail","slot","sortOrder","active","createdAt","updatedAt"],"additionalProperties":false}}},"required":["banners"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"eventBanners.create","tags":["eventBanners"],"summary":"eventBanners.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"banner":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"slot":{"type":"string","enum":["home","predict","advisors","boost"]},"pages":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","img","link","detail","slot","sortOrder","active","createdAt","updatedAt"],"additionalProperties":false}},"required":["banner"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"img":{"type":"string","minLength":1},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"slot":{"type":"string","enum":["home","predict","advisors","boost"]},"pages":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["img"]}}}},"security":[{"bearerAuth":[]}]}},"/event-banners/{id}":{"patch":{"operationId":"eventBanners.update","tags":["eventBanners"],"summary":"eventBanners.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"banner":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"slot":{"type":"string","enum":["home","predict","advisors","boost"]},"pages":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","img","link","detail","slot","sortOrder","active","createdAt","updatedAt"],"additionalProperties":false}},"required":["banner"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"img":{"type":"string","minLength":1},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"slot":{"type":"string","enum":["home","predict","advisors","boost"]},"pages":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"eventBanners.delete","tags":["eventBanners"],"summary":"eventBanners.delete","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/uploads/image":{"post":{"operationId":"uploads.image","tags":["uploads"],"summary":"uploads.image","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"displayUrl":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"folder":{"type":"string","enum":["event-banners","announcements","posts","creators","feature-banner","landing","stage-card","web-articles"]}}}}}},"security":[{"bearerAuth":[]}]}},"/event-pre-register/events":{"get":{"operationId":"preRegister.listEvents","tags":["preRegister"],"summary":"preRegister.listEvents","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"detail":{"type":"string"},"skuCode":{"type":"string"},"img":{"type":"string"},"link":{"type":"string"},"active":{"type":"boolean"},"countLimitRegister":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"countLimitConfirm":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"registeredCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"confirmedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","detail","skuCode","img","link","active","countLimitRegister","countLimitConfirm","registeredCount","confirmedCount","createdAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["events","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":100}}],"security":[{"bearerAuth":[]}]}},"/event-pre-register/tickets":{"get":{"operationId":"preRegister.listTickets","tags":["preRegister"],"summary":"preRegister.listTickets","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"tickets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"phoneNumber":{"type":"string"},"orderCode":{"type":"string"},"qrCodeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"confirmedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"code":{"type":"string"},"codeNumber":{"type":"string"}},"required":["id","name","phoneNumber","orderCode","qrCodeUrl","status","confirmedAt","createdAt","code","codeNumber"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["tickets","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":100}},{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/event-pre-register/ticket":{"get":{"operationId":"preRegister.ticketDetail","tags":["preRegister"],"summary":"preRegister.ticketDetail","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"phoneNumber":{"type":"string"},"orderCode":{"type":"string"},"qrCodeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"confirmedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"confirmedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"type":"string"}},"required":["id","name","phoneNumber","orderCode","qrCodeUrl","status","confirmedAt","createdAt","confirmedBy","updatedAt"],"additionalProperties":false}},"required":["ticket"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"orderCode","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9A-Fa-f]{6}$"}}],"security":[{"bearerAuth":[]}]}},"/event-pre-register/confirm":{"patch":{"operationId":"preRegister.confirm","tags":["preRegister"],"summary":"preRegister.confirm","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"orderCode":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"confirmedAt":{"type":"string"}},"required":["orderCode","name","status","confirmedAt"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderCode":{"type":"string","pattern":"^[0-9A-Fa-f]{6}$"}},"required":["eventId","orderCode"]}}}},"security":[{"bearerAuth":[]}]}},"/chat/personas":{"get":{"operationId":"chat.personas","tags":["chat"],"summary":"chat.personas","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"personas":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","enum":["thai","tarot","chinese","western","saju"]},"name":{"type":"string"},"domain":{"type":"string"}},"required":["slug","name","domain"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["personas","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/chat/sessions":{"post":{"operationId":"chat.start","tags":["chat"],"summary":"chat.start","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"persona":{"type":"object","properties":{"slug":{"type":"string","enum":["thai","tarot","chinese","western","saju"]},"name":{"type":"string"},"domain":{"type":"string"}},"required":["slug","name","domain"],"additionalProperties":false},"followUp":{"type":"object","properties":{"canContinue":{"type":"boolean"}},"required":["canContinue"],"additionalProperties":false}},"required":["sessionId","persona"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"persona":{"type":"string","enum":["thai","tarot","chinese","western","saju"]},"sourceRefType":{"type":"string","maxLength":40},"sourceRefId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["persona"]}}}},"security":[{"bearerAuth":[]}]},"get":{"operationId":"chat.history","tags":["chat"],"summary":"chat.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"persona":{"type":"object","properties":{"slug":{"type":"string","enum":["thai","tarot","chinese","western","saju"]},"name":{"type":"string"},"domain":{"type":"string"}},"required":["slug","name","domain"],"additionalProperties":false},"lastMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","persona","lastMessage","createdAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sessions","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/chat/messages":{"post":{"operationId":"chat.send","tags":["chat"],"summary":"chat.send","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"userMessage":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string"},"flagged":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","role","content","flagged","createdAt"],"additionalProperties":false},"reply":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string"},"flagged":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","role","content","flagged","createdAt"],"additionalProperties":false},"quota":{"type":"object","properties":{"state":{"type":"string","enum":["ok","low","exhausted","grace"]},"remainingUses":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"canSendImage":{"type":"boolean"}},"required":["state","resetAt","canSendImage"],"additionalProperties":false},"followUp":{"type":"object","properties":{"canContinue":{"type":"boolean"}},"required":["canContinue"],"additionalProperties":false}},"required":["userMessage","reply"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"type":"string","minLength":1,"maxLength":1000}},"required":["sessionId","message"]}}}},"security":[{"bearerAuth":[]}]}},"/chat/sessions/{id}":{"get":{"operationId":"chat.transcript","tags":["chat"],"summary":"chat.transcript","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"persona":{"type":"object","properties":{"slug":{"type":"string","enum":["thai","tarot","chinese","western","saju"]},"name":{"type":"string"},"domain":{"type":"string"}},"required":["slug","name","domain"],"additionalProperties":false},"lastMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","persona","lastMessage","createdAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string"},"flagged":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","role","content","flagged","createdAt"],"additionalProperties":false}},"followUp":{"type":"object","properties":{"canContinue":{"type":"boolean"}},"required":["canContinue"],"additionalProperties":false}},"required":["session","messages"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"chat.delete","tags":["chat"],"summary":"chat.delete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/chat/messages/{messageId}/report":{"post":{"operationId":"chat.report","tags":["chat"],"summary":"chat.report","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}}}}}},"security":[{"bearerAuth":[]}]}},"/consent/latest":{"get":{"operationId":"consent.latest","tags":["consent"],"summary":"consent.latest","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"termAndCondition":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string"},"description":{"type":"string"}},"required":["id","topic","description"],"additionalProperties":false},"pdpa":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string"},"description":{"type":"string"}},"required":["id","topic","description"],"additionalProperties":false}},"required":["termAndCondition","pdpa"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/consent/pending":{"get":{"operationId":"consent.pending","tags":["consent"],"summary":"consent.pending","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"consents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["term&con","pdpa","marketing"]},"title":{"type":"string"},"actionTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":{"type":"boolean"},"effectiveAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","type","title","actionTitle","required","effectiveAt","summary"],"additionalProperties":false}},"mode":{"type":"string","enum":["notice","blocking"]}},"required":["consents","mode"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/consent/{id}":{"get":{"operationId":"consent.get","tags":["consent"],"summary":"consent.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string"},"description":{"type":"string"}},"required":["id","topic","description"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/consent/accept":{"post":{"operationId":"consent.accept","tags":["consent"],"summary":"consent.accept","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"acceptedTypes":{"maxItems":8,"type":"array","items":{"type":"string","enum":["term&con","pdpa","marketing"]}}},"required":["acceptedTypes"]}}}},"security":[{"bearerAuth":[]}]}},"/user/profile":{"get":{"operationId":"user.profile","tags":["user"],"summary":"user.profile","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"active":{"type":"boolean"},"nickname":{"type":"string"},"email":{"type":"string"},"userName":{"type":"string"},"note":{"type":"string"},"birthDate":{"type":"string"},"birthPlace":{"type":"string"},"birthPlaceFullText":{"type":"string"},"birthTime":{"type":"string"},"birthDateText":{"type":"string"},"birthDateFullText":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"chineseZodiac":{"type":"string"},"displayName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"sex":{"type":"string"},"blood":{"type":"string"},"isAppleConnected":{"type":"boolean"},"isGoogleConnected":{"type":"boolean"},"isLineConnected":{"type":"boolean"},"imgProfile":{"type":"string"},"flagNotBirthPlace":{"type":"boolean"},"flagNotBirthTime":{"type":"boolean"},"flagWritter":{"type":"boolean"},"interest":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"select":{"type":"boolean"},"img":{"type":"string"}},"required":["id","name","select","img"],"additionalProperties":false}}},"required":["id","name","list"],"additionalProperties":false}},"pdpa":{"type":"boolean"},"term":{"type":"boolean"},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"nextUserName":{"type":"string"},"nextDisplayName":{"type":"string"},"isNeedUpdateConsent":{"type":"boolean"},"contentWarnings":{"type":"array","items":{"type":"string","enum":["displayName","note","userName"]}}},"required":["id","createdAt","updatedAt","active","nickname","email","userName","note","birthDate","birthPlace","birthPlaceFullText","birthTime","birthDateText","birthDateFullText","zodiac","ascendant","chineseZodiac","displayName","firstName","lastName","sex","blood","isAppleConnected","isGoogleConnected","isLineConnected","imgProfile","flagNotBirthPlace","flagNotBirthTime","flagWritter","interest","pdpa","term","canChangeUsername","canChangeDisplayName","nextUserName","nextDisplayName","isNeedUpdateConsent","contentWarnings"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/users/me":{"get":{"operationId":"users.meV1","tags":["users"],"summary":"users.meV1","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}},"textScale":{"type":"integer","minimum":-2,"maximum":2},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"nextUserName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextDisplayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentWarnings":{"type":"array","items":{"type":"string","enum":["displayName","note","userName"]}},"isNeedUpdateConsent":{"type":"boolean"},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["id","email","displayName","userName","avatarUrl","firstName","lastName","nickname","note","role","providers","textScale","fortuneSystem","positionMode","canChangeUsername","canChangeDisplayName","nextUserName","nextDisplayName","contentWarnings","isNeedUpdateConsent","activatedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"users.updateProfile","tags":["users"],"summary":"users.updateProfile","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}},"textScale":{"type":"integer","minimum":-2,"maximum":2},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"nextUserName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextDisplayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentWarnings":{"type":"array","items":{"type":"string","enum":["displayName","note","userName"]}},"isNeedUpdateConsent":{"type":"boolean"},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["id","email","displayName","userName","avatarUrl","firstName","lastName","nickname","note","role","providers","textScale","fortuneSystem","positionMode","canChangeUsername","canChangeDisplayName","nextUserName","nextDisplayName","contentWarnings","isNeedUpdateConsent","activatedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"userName":{"anyOf":[{"type":"string","pattern":"^[a-z0-9_]{3,30}$"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"nickname":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"interests":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"textScale":{"type":"integer","minimum":-2,"maximum":2},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"users.delete","tags":["users"],"summary":"users.delete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/users/me/interests":{"get":{"operationId":"users.interests","tags":["users"],"summary":"users.interests","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"selected":{"type":"boolean"}},"required":["id","name","img","selected"],"additionalProperties":false}}},"required":["id","name","items"],"additionalProperties":false}},"selectedIds":{"type":"array","items":{"type":"string"}}},"required":["topics","selectedIds"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/users/me/avatar":{"post":{"operationId":"users.uploadAvatar","tags":["users"],"summary":"users.uploadAvatar","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}},"textScale":{"type":"integer","minimum":-2,"maximum":2},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"nextUserName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextDisplayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentWarnings":{"type":"array","items":{"type":"string","enum":["displayName","note","userName"]}},"isNeedUpdateConsent":{"type":"boolean"},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["id","email","displayName","userName","avatarUrl","firstName","lastName","nickname","note","role","providers","textScale","fortuneSystem","positionMode","canChangeUsername","canChangeDisplayName","nextUserName","nextDisplayName","contentWarnings","isNeedUpdateConsent","activatedAt"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{}}}}},"security":[{"bearerAuth":[]}]}},"/users/me/attribution-device":{"post":{"operationId":"users.attributionDevice","tags":["users"],"summary":"users.attributionDevice","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appsflyerId":{"type":"string","minLength":1,"maxLength":64},"platform":{"type":"string","enum":["ios","android"]},"appVersion":{"type":"string","minLength":1,"maxLength":32},"bundleId":{"type":"string","minLength":1,"maxLength":128},"idfv":{"type":"string","minLength":1,"maxLength":64},"attStatus":{"type":"string","enum":["authorized","denied","restricted","notDetermined","notSupported"]},"conversion":{"type":"object","properties":{"mediaSource":{"type":"string","minLength":1,"maxLength":256},"campaign":{"type":"string","minLength":1,"maxLength":256},"afAdset":{"type":"string","minLength":1,"maxLength":256},"afAd":{"type":"string","minLength":1,"maxLength":256},"afStatus":{"type":"string","minLength":1,"maxLength":64},"deepLinkValue":{"type":"string","minLength":1,"maxLength":1024}}},"osVersion":{"type":"string","minLength":1,"maxLength":32}},"required":["appsflyerId","platform","appVersion","bundleId"]}}}},"security":[{"bearerAuth":[]}]}},"/health":{"get":{"operationId":"health.get","tags":["health"],"summary":"health.get","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"ok"},"env":{"type":"string"},"time":{"type":"string"}},"required":["status","env","time"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/verify/{serial}":{"get":{"operationId":"verify.serial","tags":["verify"],"summary":"verify.serial","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serial":{"type":"string"},"owner":{"type":"string"},"issuedAt":{"type":"string"},"artifactId":{"type":"string"},"verified":{"type":"boolean","const":true}},"required":["serial","owner","issuedAt","artifactId","verified"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serial","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}]}},"/products":{"get":{"operationId":"products.byEvent","tags":["products"],"summary":"products.byEvent","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productType":{"type":"string"},"coin":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"piece":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deliverables":{"type":"array","items":{"type":"string","enum":["wallpaper","widget","paired"]}}},"required":["productId","sku","name","priceMinor","productType","coin","piece","deliverables"],"additionalProperties":false}}},"required":["products"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/entitlements/me":{"get":{"operationId":"entitlements.me","tags":["entitlements"],"summary":"entitlements.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entitlements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creatorServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"type":"string","enum":["purchase","subscription","gift","grant","redemption"]},"status":{"type":"string"},"kind":{"type":"string","enum":["access","quota"]},"scope":{"type":"string","enum":["service","service_type","platform"]},"scopeServiceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"remainingUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"resetPolicy":{"type":"string","enum":["none","monthly"]},"periodKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"grantedAt":{"type":"string"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["access","coupon","free_quota"]},"serviceTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"advisorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"freeCycle":{"anyOf":[{"type":"string","enum":["daily","weekly","monthly","once"]},{"type":"null"}]}},"required":["id","creatorServiceId","productId","source","status","kind","scope","scopeServiceType","totalUses","remainingUses","resetPolicy","periodKey","grantedAt","expiresAt","type"],"additionalProperties":false}}},"required":["entitlements"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/entitlements/claim-signup":{"post":{"operationId":"entitlements.claimSignup","tags":["entitlements"],"summary":"entitlements.claimSignup","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"claimed":{"type":"boolean"},"entitlements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creatorServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"type":"string","enum":["purchase","subscription","gift","grant","redemption"]},"status":{"type":"string"},"kind":{"type":"string","enum":["access","quota"]},"scope":{"type":"string","enum":["service","service_type","platform"]},"scopeServiceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"remainingUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"resetPolicy":{"type":"string","enum":["none","monthly"]},"periodKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"grantedAt":{"type":"string"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["access","coupon","free_quota"]},"serviceTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"advisorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"freeCycle":{"anyOf":[{"type":"string","enum":["daily","weekly","monthly","once"]},{"type":"null"}]}},"required":["id","creatorServiceId","productId","source","status","kind","scope","scopeServiceType","totalUses","remainingUses","resetPolicy","periodKey","grantedAt","expiresAt","type"],"additionalProperties":false}}},"required":["claimed","entitlements"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/webhooks/paygenix":{"post":{"operationId":"webhooks.paygenix","tags":["webhooks"],"summary":"webhooks.paygenix","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean"},"handled":{"type":"boolean"}},"required":["received","handled"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/shipments/queue":{"get":{"operationId":"shipments.queue","tags":["shipments"],"summary":"shipments.queue","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"shipments":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderNo":{"type":"string"},"shipped":{"type":"boolean"},"trackingCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"shippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["orderId","orderNo","shipped","trackingCode","shippedAt","address","createdAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["shipments","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"creatorId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/shipments/{id}/shipped":{"post":{"operationId":"shipments.markShipped","tags":["shipments"],"summary":"shipments.markShipped","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"shipment":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderNo":{"type":"string"},"shipped":{"type":"boolean"},"trackingCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"shippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["orderId","orderNo","shipped","trackingCode","shippedAt","address","createdAt"],"additionalProperties":false}},"required":["shipment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackingCode":{"type":"string","minLength":1,"maxLength":64}},"required":["trackingCode"]}}}},"security":[{"bearerAuth":[]}]}},"/payment/iap":{"post":{"operationId":"payment.storeCreate","tags":["payment"],"summary":"payment.storeCreate","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"storeProductId":{"type":"string"},"totalAmount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"expiresAt":{"type":"string"}},"required":["orderNo","storeProductId","totalAmount","currency","expiresAt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `payment` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["appstore","googleplay"]}},"required":["productId","source"]}}}},"security":[{"bearerAuth":[]}]}},"/payment/iap/verify":{"post":{"operationId":"payment.storeVerify","tags":["payment"],"summary":"payment.storeVerify","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"status":{"type":"string","enum":["completed","pending"]},"granted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["orderNo","status","granted"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `payment` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orderNo":{"type":"string","minLength":1},"source":{"type":"string","enum":["appstore","googleplay"]},"purchaseId":{"type":"string","minLength":1,"maxLength":4096}},"required":["orderNo","source","purchaseId"]}}}},"security":[{"bearerAuth":[]}]}},"/payment/channels":{"get":{"operationId":"payment.channels","tags":["payment"],"summary":"payment.channels","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"string","enum":["promptpay","credit_debit"]}}},"required":["channels"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"productId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-payment-providers":{"get":{"operationId":"paymentProviders.list","tags":["paymentProviders"],"summary":"paymentProviders.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["gateway","store","bank","wallet","aggregator","manual","internal","partner"]},{"type":"null"}]},"fee":{"anyOf":[{"type":"number"},{"type":"null"}]},"feeType":{"anyOf":[{"type":"string","enum":["fixed","percent"]},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"paymentMethodId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"paymentMethodName":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","type","fee","feeType","currency","active","paymentMethodId","paymentMethodName","createdAt","updatedAt"],"additionalProperties":false}},"paymentMethods":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}},"required":["id","name","active"],"additionalProperties":false}}},"required":["providers","paymentMethods"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"paymentProviders.create","tags":["paymentProviders"],"summary":"paymentProviders.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["gateway","store","bank","wallet","aggregator","manual","internal","partner"]},{"type":"null"}]},"fee":{"anyOf":[{"type":"number"},{"type":"null"}]},"feeType":{"anyOf":[{"type":"string","enum":["fixed","percent"]},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"paymentMethodId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"paymentMethodName":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","type","fee","feeType","currency","active","paymentMethodId","paymentMethodName","createdAt","updatedAt"],"additionalProperties":false}},"required":["provider"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["gateway","store","bank","wallet","aggregator","manual","internal","partner"]},"fee":{"type":"number","minimum":0},"feeType":{"type":"string","enum":["fixed","percent"]},"currency":{"type":"string","minLength":3,"maxLength":3,"pattern":"^[A-Z]{3}$"},"paymentMethodId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"type":"boolean"}},"required":["name","type","fee","feeType","paymentMethodId"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-payment-providers/{id}":{"patch":{"operationId":"paymentProviders.update","tags":["paymentProviders"],"summary":"paymentProviders.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["gateway","store","bank","wallet","aggregator","manual","internal","partner"]},{"type":"null"}]},"fee":{"anyOf":[{"type":"number"},{"type":"null"}]},"feeType":{"anyOf":[{"type":"string","enum":["fixed","percent"]},{"type":"null"}]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"paymentMethodId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"paymentMethodName":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","type","fee","feeType","currency","active","paymentMethodId","paymentMethodName","createdAt","updatedAt"],"additionalProperties":false}},"required":["provider"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["gateway","store","bank","wallet","aggregator","manual","internal","partner"]},"fee":{"type":"number","minimum":0},"feeType":{"type":"string","enum":["fixed","percent"]},"currency":{"type":"string","minLength":3,"maxLength":3,"pattern":"^[A-Z]{3}$"},"paymentMethodId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/products/context-price":{"get":{"operationId":"products.contextPrice","tags":["products"],"summary":"products.contextPrice","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"context":{"type":"string","enum":["predict.bank-phone-deep"]},"offer":{"anyOf":[{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"listPriceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["productId","sku","listPriceMinor","priceMinor"],"additionalProperties":false},{"type":"null"}]},"eligible":{"type":"boolean"}},"required":["context","offer","eligible"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"context","in":"query","required":true,"schema":{"type":"string","enum":["predict.bank-phone-deep"]}}],"security":[{"bearerAuth":[]}]}},"/admin-context-prices":{"get":{"operationId":"contextPrices.list","tags":["contextPrices"],"summary":"contextPrices.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"contextPrices":{"type":"array","items":{"type":"object","properties":{"context":{"type":"string","enum":["predict.bank-phone-deep"]},"labelTh":{"type":"string"},"productSku":{"type":"string"},"productLabelTh":{"type":"string"},"listPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"active":{"type":"boolean"},"saved":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["context","labelTh","productSku","productLabelTh","listPriceMinor","priceMinor","active","saved","updatedAt"],"additionalProperties":false}}},"required":["contextPrices"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/admin-context-prices/{context}":{"put":{"operationId":"contextPrices.update","tags":["contextPrices"],"summary":"contextPrices.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"contextPrice":{"type":"object","properties":{"context":{"type":"string","enum":["predict.bank-phone-deep"]},"labelTh":{"type":"string"},"productSku":{"type":"string"},"productLabelTh":{"type":"string"},"listPriceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"active":{"type":"boolean"},"saved":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["context","labelTh","productSku","productLabelTh","listPriceMinor","priceMinor","active","saved","updatedAt"],"additionalProperties":false}},"required":["contextPrice"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"context","in":"path","required":true,"schema":{"type":"string","enum":["predict.bank-phone-deep"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priceMinor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/promo-codes/redeem":{"post":{"operationId":"promoCodes.redeem","tags":["promoCodes"],"summary":"promoCodes.redeem","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"promoCodeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paymentOrderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderNo":{"type":"string"}},"required":["promoCodeId","productId","paymentOrderId","orderNo"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":40},"idempotencyKey":{"type":"string","minLength":8,"maxLength":128}},"required":["code"]}}}},"security":[{"bearerAuth":[]}]}},"/promo-codes":{"post":{"operationId":"promoCodes.create","tags":["promoCodes"],"summary":"promoCodes.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"effect":{"type":"string","enum":["grant","discount"]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"discountType":{"anyOf":[{"type":"string","enum":["percent","fixed"]},{"type":"null"}]},"discountValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxRedemptions":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"redemptionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oncePerUser":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","code","note","effect","productId","discountType","discountValue","maxRedemptions","redemptionCount","oncePerUser","startsAt","expiresAt","active","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":40},"note":{"type":"string","maxLength":200},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maxRedemptions":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"oncePerUser":{"type":"boolean"},"startsAt":{},"expiresAt":{},"active":{"type":"boolean"}},"required":["code","productId"]}}}},"security":[{"bearerAuth":[]}]},"get":{"operationId":"promoCodes.list","tags":["promoCodes"],"summary":"promoCodes.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"codes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"effect":{"type":"string","enum":["grant","discount"]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"discountType":{"anyOf":[{"type":"string","enum":["percent","fixed"]},{"type":"null"}]},"discountValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxRedemptions":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"redemptionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oncePerUser":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","code","note","effect","productId","discountType","discountValue","maxRedemptions","redemptionCount","oncePerUser","startsAt","expiresAt","active","createdAt","updatedAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["codes","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"code","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":40}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"security":[{"bearerAuth":[]}]}},"/promo-codes/{id}/deactivate":{"post":{"operationId":"promoCodes.deactivate","tags":["promoCodes"],"summary":"promoCodes.deactivate","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"effect":{"type":"string","enum":["grant","discount"]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"discountType":{"anyOf":[{"type":"string","enum":["percent","fixed"]},{"type":"null"}]},"discountValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxRedemptions":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"redemptionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oncePerUser":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","code","note","effect","productId","discountType","discountValue","maxRedemptions","redemptionCount","oncePerUser","startsAt","expiresAt","active","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/referrals/code":{"post":{"operationId":"referral.mintCode","tags":["referral"],"summary":"referral.mintCode","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":16},"inviteUrl":{"type":"string"},"userName":{"anyOf":[{"type":"string","pattern":"^[a-z0-9_]{3,30}$"},{"type":"null"}]}},"required":["code","inviteUrl","userName"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/referrals/claim":{"post":{"operationId":"referral.claim","tags":["referral"],"summary":"referral.claim","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"attributed":{"type":"boolean"},"welcomePoints":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["attributed","welcomePoints"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":31}},"required":["code"]}}}},"security":[{"bearerAuth":[]}]}},"/referrals/me":{"get":{"operationId":"referral.me","tags":["referral"],"summary":"referral.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"anyOf":[{"type":"string","minLength":1,"maxLength":16},{"type":"null"}]},"inviteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string","pattern":"^[a-z0-9_]{3,30}$"},{"type":"null"}]},"programOpen":{"type":"boolean"},"friends":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"deferred":{"type":"integer","minimum":0,"maximum":9007199254740991},"rewarded":{"type":"integer","minimum":0,"maximum":9007199254740991},"closed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["total","waiting","deferred","rewarded","closed"],"additionalProperties":false},"recentFriends":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"maskedName":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["waiting","deferred","rewarded","closed"]},"claimedAt":{"type":"string"},"rewardedPoints":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["maskedName","status","claimedAt","rewardedPoints"],"additionalProperties":false}},"thisMonth":{"type":"object","properties":{"rewardedFriends":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxFriendsPerMonth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["rewardedFriends","maxFriendsPerMonth"],"additionalProperties":false},"milestones":{"type":"object","properties":{"settledFriends":{"type":"integer","minimum":0,"maximum":9007199254740991},"tiers":{"type":"array","items":{"type":"object","properties":{"friends":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"points":{"type":"integer","minimum":0,"maximum":9007199254740991},"reached":{"type":"boolean"}},"required":["friends","points","reached"],"additionalProperties":false}}},"required":["settledFriends","tiers"],"additionalProperties":false},"rewards":{"type":"object","properties":{"inviteePoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"inviterPoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["inviteePoints","inviterPoints"],"additionalProperties":false}},"required":["code","inviteUrl","userName","programOpen","friends","recentFriends","thisMonth","milestones","rewards"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/points/me":{"get":{"operationId":"points.me","tags":["points"],"summary":"points.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"programOpen":{"type":"boolean"},"availablePoints":{"type":"integer","minimum":0,"maximum":9007199254740991},"pendingPoints":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiries":{"type":"array","items":{"type":"object","properties":{"points":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"expiresOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["points","expiresOn"],"additionalProperties":false}},"holdCap":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"rules":{"type":"object","properties":{"inviteePoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"inviterPoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"inviterRequiresServiceUse":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"serviceUseWindowDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"maxFriendsPerMonth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"milestones":{"type":"array","items":{"type":"object","properties":{"friends":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"points":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["friends","points"],"additionalProperties":false}},"birthDatePoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"firstTryPoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reviewPoints":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reviewMinBodyChars":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"missionMonthlyCap":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"expiryMonthsAfterEarnMonth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"redeemMinAccountAgeDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"redeemMinAgeYears":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"redeemShippingEstimateDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["inviteePoints","inviterPoints","inviterRequiresServiceUse","serviceUseWindowDays","maxFriendsPerMonth","milestones","birthDatePoints","firstTryPoints","reviewPoints","reviewMinBodyChars","missionMonthlyCap","expiryMonthsAfterEarnMonth","redeemMinAccountAgeDays","redeemMinAgeYears","redeemShippingEstimateDays"],"additionalProperties":false}},"required":["programOpen","availablePoints","pendingPoints","expiries","holdCap","rules"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/points/history":{"get":{"operationId":"points.history","tags":["points"],"summary":"points.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["earn","redeem","refund","clawback","adjust"]},"source":{"type":"string","enum":["referral_invitee","referral_inviter","referral_milestone","mission_birth_date","mission_first_try","redemption","admin","mission_review"]},"points":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cappedPoints":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiresOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"expired":{"type":"boolean"},"createdAt":{"type":"string"},"featureKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"milestoneFriends":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"rewardItemTitle":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","kind","source","points","cappedPoints","expiresOn","expired","createdAt","featureKey","milestoneFriends","rewardItemTitle"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}}],"security":[{"bearerAuth":[]}]}},"/points/sync":{"post":{"operationId":"points.sync","tags":["points"],"summary":"points.sync","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/rewards/items":{"get":{"operationId":"reward.listItems","tags":["reward"],"summary":"reward.listItems","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"redeemOpen":{"type":"boolean"},"availablePoints":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasAddress":{"type":"boolean"},"accountBlockedReason":{"anyOf":[{"type":"string","enum":["redeem_closed","account_too_new","birth_date_required","age_requirement","budget_reached","address_required"]},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"pointsCost":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"inStock":{"type":"boolean"},"perUserMonthlyLimit":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"redeemedThisMonth":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockedReason":{"anyOf":[{"type":"string","enum":["item_monthly_limit","budget_reached","insufficient_points","out_of_stock"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","pointsCost","inStock","perUserMonthlyLimit","redeemedThisMonth","blockedReason"],"additionalProperties":false}}},"required":["redeemOpen","availablePoints","hasAddress","accountBlockedReason","items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/rewards/address":{"get":{"operationId":"reward.getAddress","tags":["reward"],"summary":"reward.getAddress","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"],"additionalProperties":false},{"type":"null"}]}},"required":["address"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"reward.putAddress","tags":["reward"],"summary":"reward.putAddress","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"],"additionalProperties":false}},"required":["address"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"]}}}},"security":[{"bearerAuth":[]}]}},"/rewards/redeem":{"post":{"operationId":"reward.redeem","tags":["reward"],"summary":"reward.redeem","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"redemption":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemTitle":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"pointsSpent":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["requested","approved","shipped","delivered","rejected","cancelled","lost"]},"carrier":{"anyOf":[{"type":"string"},{"type":"null"}]},"trackingNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"approvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"shippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"closedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","itemId","itemTitle","imageUrl","pointsSpent","status","carrier","trackingNo","createdAt","approvedAt","shippedAt","deliveredAt","closedAt"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["redemption","replayed"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pointsCost":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000}},"required":["itemId","idempotencyKey"]}}}},"security":[{"bearerAuth":[]}]}},"/rewards/redemptions":{"get":{"operationId":"reward.listRedemptions","tags":["reward"],"summary":"reward.listRedemptions","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemTitle":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"pointsSpent":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["requested","approved","shipped","delivered","rejected","cancelled","lost"]},"carrier":{"anyOf":[{"type":"string"},{"type":"null"}]},"trackingNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"approvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"shippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"closedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","itemId","itemTitle","imageUrl","pointsSpent","status","carrier","trackingNo","createdAt","approvedAt","shippedAt","deliveredAt","closedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}}],"security":[{"bearerAuth":[]}]}},"/receipts/me":{"get":{"operationId":"receipts.mine","tags":["receipts"],"summary":"receipts.mine","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"invoiceNo":{"type":"string"},"orderNo":{"type":"string"},"productName":{"type":"string"},"iconPath":{"type":"string"},"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"paymentMethod":{"type":"string"},"issuedAt":{"type":"string"}},"required":["invoiceNo","orderNo","productName","iconPath","amountMinor","paymentMethod","issuedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128}}],"security":[{"bearerAuth":[]}]}},"/receipts/{invoiceNo}":{"get":{"operationId":"receipts.get","tags":["receipts"],"summary":"receipts.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"object","properties":{"transactionDate":{"type":"string"},"transactionNo":{"type":"string"},"invoiceNo":{"type":"string"},"userId":{"type":"string"},"userName":{"type":"string"},"salesAmountExcVat":{"type":"string"},"salesVat":{"type":"string"},"salesAmountIncVat":{"type":"string"},"paymentMethod":{"type":"string"},"fee":{"type":"string"},"transactionStatus":{"type":"string"},"productName":{"type":"string"}},"required":["transactionDate","transactionNo","invoiceNo","salesAmountExcVat","salesVat","salesAmountIncVat","paymentMethod","transactionStatus"],"additionalProperties":false},"company":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"},"address":{"type":"string"},"taxNo":{"type":"string"},"web":{"type":"string"}},"required":["name","logo","address","taxNo","web"],"additionalProperties":false}},"required":["transaction","company"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"invoiceNo","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"security":[{"bearerAuth":[]}]}},"/reports/coin-float":{"get":{"operationId":"reports.coinFloat","tags":["reports"],"summary":"reports.coinFloat","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"wallets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purchasedOutstanding":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deferredRevenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bonusOutstanding":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byReason":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"purchasedDelta":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bonusDelta":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reason","purchasedDelta","bonusDelta","entries"],"additionalProperties":false}}},"required":["wallets","purchasedOutstanding","deferredRevenueMinor","bonusOutstanding","byReason"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/reports/coin-invariant":{"get":{"operationId":"reports.coinInvariant","tags":["reports"],"summary":"reports.coinInvariant","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"checkedWallets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"drift":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"walletPurchased":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ledgerPurchased":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"walletBonus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ledgerBonus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["userId","walletPurchased","ledgerPurchased","walletBonus","ledgerBonus"],"additionalProperties":false}}},"required":["ok","checkedWallets","drift"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/reports/partner-settlement":{"get":{"operationId":"reports.partnerSettlement","tags":["reports"],"summary":"reports.partnerSettlement","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"transactionDate":{"type":"string"},"transactionNo":{"type":"string"},"invoiceNo":{"type":"string"},"userNo":{"type":"string"},"userName":{"type":"string"},"itemName":{"type":"string"},"purchaseAmount":{"type":"string"},"purchaseVat":{"type":"string"},"purchaseTotalAmount":{"type":"string"},"providerName":{"type":"string"},"paymentMethod":{"type":"string"},"feeRate":{"type":"string"},"baseOfPartnerShip":{"type":"string"},"partnerShipName":{"type":"string"},"applicantType":{"type":"string"},"pndType":{"type":"string"},"partnerShipAmount":{"type":"string"},"partnerShipVat":{"type":"string"},"partnerShipTotalAmount":{"type":"string"},"wht":{"type":"string"},"netCashOut":{"type":"string"}},"required":["transactionDate","transactionNo","invoiceNo","userNo","userName","itemName","purchaseAmount","purchaseVat","purchaseTotalAmount","providerName","paymentMethod","feeRate","baseOfPartnerShip","partnerShipName","applicantType","pndType","partnerShipAmount","partnerShipVat","partnerShipTotalAmount","wht","netCashOut"],"additionalProperties":false}}},"required":["rows"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":2000,"maximum":2100}},{"name":"month","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":12}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","completed","failed","cancelled","refunded"]}}],"security":[{"bearerAuth":[]}]}},"/reports/payment-transaction":{"get":{"operationId":"reports.paymentTransaction","tags":["reports"],"summary":"reports.paymentTransaction","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"transactionDate":{"type":"string"},"transactionNo":{"type":"string"},"invoiceNo":{"type":"string"},"userId":{"type":"string"},"userName":{"type":"string"},"productName":{"type":"string"},"salesAmountExcVat":{"type":"string"},"salesVat":{"type":"string"},"salesAmountIncVat":{"type":"string"},"paymentMethod":{"type":"string"},"transactionStatus":{"type":"string"}},"required":["transactionDate","transactionNo","invoiceNo","userId","userName","productName","salesAmountExcVat","salesVat","salesAmountIncVat","paymentMethod","transactionStatus"],"additionalProperties":false}}},"required":["rows"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":2000,"maximum":2100}},{"name":"month","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":12}}],"security":[{"bearerAuth":[]}]}},"/reports/invoice":{"get":{"operationId":"reports.invoice","tags":["reports"],"summary":"reports.invoice","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"object","properties":{"transactionDate":{"type":"string"},"transactionNo":{"type":"string"},"invoiceNo":{"type":"string"},"userId":{"type":"string"},"userName":{"type":"string"},"salesAmountExcVat":{"type":"string"},"salesVat":{"type":"string"},"salesAmountIncVat":{"type":"string"},"paymentMethod":{"type":"string"},"fee":{"type":"string"},"transactionStatus":{"type":"string"},"productName":{"type":"string"}},"required":["transactionDate","transactionNo","invoiceNo","salesAmountExcVat","salesVat","salesAmountIncVat","paymentMethod","transactionStatus"],"additionalProperties":false},"company":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"},"address":{"type":"string"},"taxNo":{"type":"string"},"web":{"type":"string"}},"required":["name","logo","address","taxNo","web"],"additionalProperties":false}},"required":["transaction","company"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"transactionNo","in":"query","required":true,"schema":{"type":"string"}},{"name":"invoiceNo","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/reports/app-analytics":{"get":{"operationId":"reports.appAnalytics","tags":["reports"],"summary":"reports.appAnalytics","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"daily":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"dau":{"type":"integer","minimum":0,"maximum":9007199254740991},"newUsers":{"type":"integer","minimum":0,"maximum":9007199254740991},"sessions":{"type":"integer","minimum":0,"maximum":9007199254740991},"avgSessionSec":{"type":"number","minimum":0},"iosDau":{"type":"integer","minimum":0,"maximum":9007199254740991},"androidDau":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","dau","newUsers","sessions","avgSessionSec","iosDau","androidDau"],"additionalProperties":false}},{"type":"null"}]},"summary":{"anyOf":[{"type":"object","properties":{"dauToday":{"type":"integer","minimum":0,"maximum":9007199254740991},"dauChangePct":{"type":"number"},"newUsersTotal":{"type":"integer","minimum":0,"maximum":9007199254740991},"mau":{"type":"integer","minimum":0,"maximum":9007199254740991},"sessionsTotal":{"type":"integer","minimum":0,"maximum":9007199254740991},"avgSessionSec":{"type":"number","minimum":0},"stickinessPct":{"type":"number","minimum":0}},"required":["dauToday","dauChangePct","newUsersTotal","mau","sessionsTotal","avgSessionSec","stickinessPct"],"additionalProperties":false},{"type":"null"}]},"platformSplit":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"users":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["name","users"],"additionalProperties":false}},{"type":"null"}]},"retention":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"pct":{"type":"number","minimum":0},"returned":{"type":"integer","minimum":0,"maximum":9007199254740991},"born":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["label","pct"],"additionalProperties":false}},{"type":"null"}]},"featureUsage":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"users":{"type":"integer","minimum":0,"maximum":9007199254740991},"views":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["name","users","views"],"additionalProperties":false}},{"type":"null"}]},"crashFreePct":{"anyOf":[{"type":"number"},{"type":"null"}]},"channels":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"users":{"type":"integer","minimum":0,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["name","users","clicks"],"additionalProperties":false}},{"type":"null"}]},"campaignLinks":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"name":{"type":"string"},"clicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"installs":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["source","name","clicks","installs"],"additionalProperties":false}},{"type":"null"}]},"installsByPlatform":{"anyOf":[{"type":"object","properties":{"ios":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"android":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["ios","android"],"additionalProperties":false},{"type":"null"}]},"uninstalls":{"anyOf":[{"type":"object","properties":{"ios":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"android":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["ios","android"],"additionalProperties":false},{"type":"null"}]},"playHealth":{"anyOf":[{"type":"object","properties":{"ratingCurrent":{"anyOf":[{"type":"number"},{"type":"null"}]},"ratingRangeAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"crashes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"anrs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"storeVisitors":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"storeAcquisitions":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["ratingCurrent","ratingRangeAvg","crashes","anrs","storeVisitors","storeAcquisitions"],"additionalProperties":false},{"type":"null"}]},"fetchedAt":{"type":"string"}},"required":["daily","summary","platformSplit","retention","featureUsage","crashFreePct","channels","campaignLinks","installsByPlatform","uninstalls","playHealth","fetchedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"rangeDays","in":"query","required":false,"schema":{"default":30,"type":"number"}},{"name":"platform","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","ios","android"]}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/reports/monthly-decks":{"get":{"operationId":"reports.monthlyDecks","tags":["reports"],"summary":"reports.monthlyDecks","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"months":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"label":{"type":"string"},"status":{"type":"string","enum":["generated","pending","open"]},"missing":{"type":"array","items":{"type":"string"}},"generatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["month","label","status","missing","generatedAt","sizeBytes"],"additionalProperties":false}}},"required":["months"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"months","in":"query","required":false,"schema":{"default":6,"type":"integer","minimum":1,"maximum":24}}],"security":[{"bearerAuth":[]}]}},"/reports/monthly-decks/{month}":{"post":{"operationId":"reports.monthlyDeckGenerate","tags":["reports"],"summary":"reports.monthlyDeckGenerate","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"label":{"type":"string"},"status":{"type":"string","enum":["generated","pending","open"]},"missing":{"type":"array","items":{"type":"string"}},"generatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["month","label","status","missing","generatedAt","sizeBytes"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"month","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}}],"security":[{"bearerAuth":[]}]}},"/reports/ai-usage":{"get":{"operationId":"reports.aiUsage","tags":["reports"],"summary":"reports.aiUsage","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"range":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false},"totals":{"type":"object","properties":{"answers":{"type":"integer","minimum":0,"maximum":9007199254740991},"answersMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"thoughtsTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"billedOutputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalTokens":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["answers","answersMeasured","inputTokens","outputTokens","thoughtsTokens","billedOutputTokens","totalTokens"],"additionalProperties":false},"walls":{"type":"object","properties":{"dailyCap":{"type":"integer","minimum":0,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":0,"maximum":9007199254740991},"graceTaps":{"type":"integer","minimum":0,"maximum":9007199254740991},"graceGranted":{"type":"integer","minimum":0,"maximum":9007199254740991},"usersWalled":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["dailyCap","followUp","graceTaps","graceGranted","usersWalled"],"additionalProperties":false},"byKind":{"type":"array","items":{"type":"object","properties":{"answers":{"type":"integer","minimum":0,"maximum":9007199254740991},"answersMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"thoughtsTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"billedOutputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"key":{"type":"string"}},"required":["answers","answersMeasured","inputTokens","outputTokens","thoughtsTokens","billedOutputTokens","totalTokens","key"],"additionalProperties":false}},"byModel":{"type":"array","items":{"type":"object","properties":{"answers":{"type":"integer","minimum":0,"maximum":9007199254740991},"answersMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"thoughtsTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"billedOutputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"key":{"type":"string"}},"required":["answers","answersMeasured","inputTokens","outputTokens","thoughtsTokens","billedOutputTokens","totalTokens","key"],"additionalProperties":false}},"days":{"type":"array","items":{"type":"object","properties":{"answers":{"type":"integer","minimum":0,"maximum":9007199254740991},"answersMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"thoughtsTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"billedOutputTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalTokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"forDate":{"type":"string"},"walls":{"type":"object","properties":{"dailyCap":{"type":"integer","minimum":0,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":0,"maximum":9007199254740991},"graceTaps":{"type":"integer","minimum":0,"maximum":9007199254740991},"graceGranted":{"type":"integer","minimum":0,"maximum":9007199254740991},"usersWalled":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["dailyCap","followUp","graceTaps","graceGranted","usersWalled"],"additionalProperties":false}},"required":["answers","answersMeasured","inputTokens","outputTokens","thoughtsTokens","billedOutputTokens","totalTokens","forDate","walls"],"additionalProperties":false}}},"required":["range","totals","walls","byKind","byModel","days"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"security":[{"bearerAuth":[]}]}},"/creators":{"get":{"operationId":"creators.list","tags":["creators"],"summary":"creators.list","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string"},{"type":"null"}]},"specialties":{"type":"array","items":{"type":"string"}},"verified":{"type":"boolean"},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"services":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"}},"required":["slug","title"],"additionalProperties":false}}},"required":["id","displayName","slug","bio","avatarUrl","coverUrl","cardTitle","cardDesc","specialties","verified","followerCount"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["creators","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"verified","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}]}},"/creators/{id}":{"get":{"operationId":"creators.get","tags":["creators"],"summary":"creators.get","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}},"services":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["creator","services"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]}},"/creators/by-slug/{slug}":{"get":{"operationId":"creators.getBySlug","tags":["creators"],"summary":"creators.getBySlug","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}},"services":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"recentPosts":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["creator","services"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}},{"name":"includePosts","in":"query","required":false,"schema":{"type":"boolean"}}]}},"/creators/{id}/services":{"get":{"operationId":"creators.services","tags":["creators"],"summary":"creators.services","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"services":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["services"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]}},"/creators/{id}/follow":{"post":{"operationId":"creators.follow","tags":["creators"],"summary":"creators.follow","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"following":{"type":"boolean"},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["following","followerCount"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"creators.unfollow","tags":["creators"],"summary":"creators.unfollow","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"following":{"type":"boolean"},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["following","followerCount"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/creators/following":{"get":{"operationId":"creators.following","tags":["creators"],"summary":"creators.following","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string"},{"type":"null"}]},"specialties":{"type":"array","items":{"type":"string"}},"verified":{"type":"boolean"},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followedAt":{"type":"string"}},"required":["id","displayName","slug","bio","avatarUrl","coverUrl","cardTitle","cardDesc","specialties","verified","followerCount","followedAt"],"additionalProperties":false}}},"required":["creators"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/creators/me":{"get":{"operationId":"creators.me","tags":["creators"],"summary":"creators.me","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}}},"required":["creator"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"creators.updateProfile","tags":["creators"],"summary":"creators.updateProfile","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}}},"required":["creator"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"heroUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"stageCardUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"specialties":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}}}}},"security":[{"bearerAuth":[]}]}},"/admin/creators":{"get":{"operationId":"creators.adminList","tags":["creators"],"summary":"creators.adminList","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","active","suspended"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/admin/creators/{id}":{"get":{"operationId":"creators.adminGet","tags":["creators"],"summary":"creators.adminGet","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}}},"required":["creator"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"patch":{"operationId":"creators.adminUpdate","tags":["creators"],"summary":"creators.adminUpdate","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}}},"required":["creator"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"heroUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"stageCardUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"specialties":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"slug":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"verified":{"type":"boolean"},"status":{"type":"string","enum":["pending","active","suspended"]}}}}}},"security":[{"bearerAuth":[]}]}},"/admin/creators/by-slug/{slug}":{"get":{"operationId":"creators.adminGetBySlug","tags":["creators"],"summary":"creators.adminGetBySlug","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{},"additionalProperties":{}}},"required":["creator"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}}],"security":[{"bearerAuth":[]}]}},"/admin/users":{"get":{"operationId":"users.list","tags":["users"],"summary":"users.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"isStaff":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"string","enum":["finance","support","marketing"]},{"type":"null"}]},"creatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string","enum":["google","apple","line"]},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","email","displayName","userName","avatarUrl","role","isStaff","staffRole","creatorId","slug","provider","active","createdAt","updatedAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["users","limit","offset","total"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"kind","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","customer","staff"]}},{"name":"sort","in":"query","required":false,"schema":{"default":"createdAt","type":"string","enum":["createdAt","updatedAt","email","displayName","userName","role","status"]}},{"name":"dir","in":"query","required":false,"schema":{"default":"desc","type":"string","enum":["asc","desc"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":500}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"users.create","tags":["users"],"summary":"users.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","displayName","userName","active","createdAt"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":255,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string","maxLength":120},"lastName":{"type":"string","maxLength":120},"displayName":{"type":"string","maxLength":120},"userName":{"type":"string","maxLength":120},"note":{"type":"string","maxLength":2000},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"birthPlace":{"type":"string","maxLength":200},"sex":{"type":"string","maxLength":32},"blood":{"type":"string","maxLength":16},"interest":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/admin/users/{id}":{"patch":{"operationId":"users.setRole","tags":["users"],"summary":"users.setRole","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"creatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","email","displayName","role","creatorId","slug","createdAt"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]}},"required":["role"]}}}},"security":[{"bearerAuth":[]}]}},"/admin/users/{id}/deactivate":{"patch":{"operationId":"users.deactivate","tags":["users"],"summary":"users.deactivate","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","displayName","userName","active","createdAt"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/services":{"get":{"operationId":"services.listMine","tags":["services"],"summary":"services.listMine","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"services":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["services"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"creatorId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"services.create","tags":["services"],"summary":"services.create","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{},"additionalProperties":{}}},"required":["service"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["visual_artifact","reading","personalization","numerology","vision_trait","ritual"]},"category":{"default":"predict","type":"string","enum":["predict","boost"]},"categoryLabel":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"pricingModel":{"default":"one_time","type":"string","enum":["one_time","subscription","free"]},"priceMinor":{"default":0,"type":"integer","minimum":0,"maximum":100000000},"priceNote":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"currency":{"default":"THB","type":"string","minLength":3,"maxLength":3},"freeQuotaPerMonth":{"default":0,"type":"integer","minimum":0,"maximum":10000},"active":{"default":true,"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","title"]}}}},"security":[{"bearerAuth":[]}]}},"/services/{id}":{"patch":{"operationId":"services.update","tags":["services"],"summary":"services.update","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{},"additionalProperties":{}}},"required":["service"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["predict","boost"]},"categoryLabel":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"pricingModel":{"type":"string","enum":["one_time","subscription","free"]},"priceMinor":{"type":"integer","minimum":0,"maximum":100000000},"priceNote":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"currency":{"type":"string","minLength":3,"maxLength":3},"freeQuotaPerMonth":{"type":"integer","minimum":0,"maximum":10000},"active":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"services.delete","tags":["services"],"summary":"services.delete","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/feed":{"get":{"operationId":"feed.get","tags":["feed"],"summary":"feed.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}}],"security":[{"bearerAuth":[]}]}},"/posts":{"post":{"operationId":"posts.create","tags":["posts"],"summary":"posts.create","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{},"additionalProperties":{}}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["text","image","video"]},"body":{"type":"string","maxLength":8000},"mediaUrls":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}},"hashtags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"videoUid":{"type":"string","minLength":1,"maxLength":128},"visibility":{"default":"public","type":"string","enum":["public","paywalled"]},"requiredServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","published"]},"visibleFrom":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type"]}}}},"security":[{"bearerAuth":[]}]}},"/posts/video/upload-url":{"post":{"operationId":"posts.videoUploadUrl","tags":["posts"],"summary":"posts.videoUploadUrl","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"videoUid":{"type":"string"}},"required":["uploadUrl","videoUid"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maxDurationSeconds":{"type":"integer","minimum":1,"maximum":21600},"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"uploadLength":{"type":"integer","minimum":1,"maximum":9007199254740991}}}}}},"security":[{"bearerAuth":[]}]}},"/posts/image/upload-url":{"post":{"operationId":"posts.imageUploadUrl","tags":["posts"],"summary":"posts.imageUploadUrl","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"imageId":{"type":"string"}},"required":["uploadUrl","imageId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/posts/image/direct":{"post":{"operationId":"posts.imageDirectUpload","tags":["posts"],"summary":"posts.imageDirectUpload","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"result":{"type":"object","properties":{"id":{"type":"string"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploaded":{"type":"string"},"requireSignedURLs":{"type":"boolean"},"variants":{"type":"array","items":{"type":"string"}}},"required":["id","filename","uploaded","requireSignedURLs","variants"],"additionalProperties":false},"errors":{"type":"array","items":{}},"messages":{"type":"array","items":{}}},"required":["success","result","errors","messages"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":1}}]}},"/posts/image":{"post":{"operationId":"posts.imageUpload","tags":["posts"],"summary":"posts.imageUpload","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{}}}}},"security":[{"bearerAuth":[]}]}},"/posts/{id}/publish":{"post":{"operationId":"posts.publish","tags":["posts"],"summary":"posts.publish","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{},"additionalProperties":{}}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/posts/mine":{"get":{"operationId":"posts.listMine","tags":["posts"],"summary":"posts.listMine","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["posts","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["draft","published","all"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"creatorId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/posts/saved":{"get":{"operationId":"posts.listSaved","tags":["posts"],"summary":"posts.listSaved","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["posts","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/posts/discover":{"get":{"operationId":"posts.discover","tags":["posts"],"summary":"posts.discover","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":30}}],"security":[{},{"bearerAuth":[]}]}},"/creators/{id}/posts":{"get":{"operationId":"posts.listByCreator","tags":["posts"],"summary":"posts.listByCreator","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["posts","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{},{"bearerAuth":[]}]}},"/posts/{id}":{"patch":{"operationId":"posts.update","tags":["posts"],"summary":"posts.update","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{},"additionalProperties":{}}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}]},"mediaUrls":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}},"hashtags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"posts.delete","tags":["posts"],"summary":"posts.delete","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"get":{"operationId":"posts.get","tags":["posts"],"summary":"posts.get","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{},"additionalProperties":{}}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{},{"bearerAuth":[]}]}},"/posts/{id}/like":{"post":{"operationId":"posts.like","tags":["posts"],"summary":"posts.like","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"posts.unlike","tags":["posts"],"summary":"posts.unlike","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/posts/{id}/save":{"post":{"operationId":"posts.save","tags":["posts"],"summary":"posts.save","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"posts.unsave","tags":["posts"],"summary":"posts.unsave","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"boolean"}},"required":["saved"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/posts/{id}/comments":{"get":{"operationId":"posts.listComments","tags":["posts"],"summary":"posts.listComments","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","displayName","avatarUrl"],"additionalProperties":false},{"type":"null"}]},"body":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"replyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isOwner":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","postId","parentId","userId","author","body","mediaUrls","likeCount","likedByMe","replyCount","isOwner","createdAt","updatedAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["comments","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{},{"bearerAuth":[]}]},"post":{"operationId":"posts.addComment","tags":["posts"],"summary":"posts.addComment","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","displayName","avatarUrl"],"additionalProperties":false},{"type":"null"}]},"body":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"replyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isOwner":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","postId","parentId","userId","author","body","mediaUrls","likeCount","likedByMe","replyCount","isOwner","createdAt","updatedAt"],"additionalProperties":false}},"required":["comment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"parentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mediaUrls":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}}},"required":["body"]}}}},"security":[{"bearerAuth":[]}]}},"/posts/comments/{commentId}/replies":{"get":{"operationId":"posts.listReplies","tags":["posts"],"summary":"posts.listReplies","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","displayName","avatarUrl"],"additionalProperties":false},{"type":"null"}]},"body":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"replyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isOwner":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","postId","parentId","userId","author","body","mediaUrls","likeCount","likedByMe","replyCount","isOwner","createdAt","updatedAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["comments","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{},{"bearerAuth":[]}]}},"/posts/comments/{commentId}":{"patch":{"operationId":"posts.updateComment","tags":["posts"],"summary":"posts.updateComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","displayName","avatarUrl"],"additionalProperties":false},{"type":"null"}]},"body":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"replyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isOwner":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","postId","parentId","userId","author","body","mediaUrls","likeCount","likedByMe","replyCount","isOwner","createdAt","updatedAt"],"additionalProperties":false}},"required":["comment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"mediaUrls":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}}},"required":["body"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"posts.deleteComment","tags":["posts"],"summary":"posts.deleteComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/posts/comments/{commentId}/like":{"post":{"operationId":"posts.likeComment","tags":["posts"],"summary":"posts.likeComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"posts.unlikeComment","tags":["posts"],"summary":"posts.unlikeComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/posts/{id}/report":{"post":{"operationId":"posts.report","tags":["posts"],"summary":"posts.report","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reported":{"type":"boolean","const":true}},"required":["reported"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["spam","harassment","hate","sexual","violence","misinformation","other"]},"note":{"type":"string","maxLength":1000}},"required":["reason"]}}}},"security":[{"bearerAuth":[]}]}},"/posts/comments/{commentId}/report":{"post":{"operationId":"posts.reportComment","tags":["posts"],"summary":"posts.reportComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reported":{"type":"boolean","const":true}},"required":["reported"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["spam","harassment","hate","sexual","violence","misinformation","other"]},"note":{"type":"string","maxLength":1000}},"required":["reason"]}}}},"security":[{"bearerAuth":[]}]}},"/artifacts/templates":{"get":{"operationId":"artifacts.templates","tags":["artifacts"],"summary":"artifacts.templates","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"previewUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiredBindings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","string[]"]}},"required":["key","label","type"],"additionalProperties":false}},"pairedTemplateId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","kind","previewUrl","requiredBindings","pairedTemplateId","sortOrder"],"additionalProperties":false}}},"required":["templates"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{},{"bearerAuth":[]}]}},"/artifacts":{"post":{"operationId":"artifacts.create","tags":["artifacts"],"summary":"artifacts.create","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"artifact":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"layerSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}},"widgetSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}}},"required":["version","layers"],"additionalProperties":false}},"required":["version","layers"],"additionalProperties":false},"serial":{"type":"string"},"verifyUrl":{"type":"string"},"pairedArtifactId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","kind","layerSpec","serial","verifyUrl","pairedArtifactId"],"additionalProperties":false},"pairedWidget":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"layerSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}},"widgetSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}}},"required":["version","layers"],"additionalProperties":false}},"required":["version","layers"],"additionalProperties":false},"serial":{"type":"string"},"verifyUrl":{"type":"string"},"pairedArtifactId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","kind","layerSpec","serial","verifyUrl","pairedArtifactId"],"additionalProperties":false}},"required":["artifact"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bindings":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"includePairedWidget":{"type":"boolean"}},"required":["creatorServiceId","templateId"]}}}},"security":[{"bearerAuth":[]}]}},"/artifacts/me":{"get":{"operationId":"artifacts.me","tags":["artifacts"],"summary":"artifacts.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"createdAt":{"type":"string"},"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}]},"pairedArtifactId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"previewImg":{"type":"string"},"thumbUrl":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliverables":{"type":"array","items":{"type":"string","enum":["wallpaper","widget","paired"]}},"widget":{"anyOf":[{"type":"object","properties":{"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"img":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["topicId","img"],"additionalProperties":false},{"type":"null"}]},"replay":{"type":"object","properties":{"eventId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"items":{"type":"array","items":{"type":"string"}},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"}},"required":["eventId","topicId","items","showName","showStar","showVirtue"],"additionalProperties":false}},"required":["id","kind","createdAt","creatorServiceId","serial","pairedArtifactId"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["artifacts","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/artifacts/sale":{"get":{"operationId":"artifacts.sale","tags":["artifacts"],"summary":"artifacts.sale","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"advisorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"packages":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tier":{"type":"string"},"name":{"type":"string"},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owned":{"type":"boolean"}},"required":["productId","tier","name","priceMinor"],"additionalProperties":false}},"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"previewUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiredBindings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","string[]"]}},"required":["key","label","type"],"additionalProperties":false}},"pairedTemplateId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","kind","previewUrl","requiredBindings","pairedTemplateId","sortOrder"],"additionalProperties":false}},"owned":{"type":"boolean"},"ownedTier":{"anyOf":[{"type":"string"},{"type":"null"}]},"upgrade":{"anyOf":[{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tier":{"type":"string"},"fromTier":{"type":"string"},"name":{"type":"string"},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["productId","tier","fromTier","name","priceMinor"],"additionalProperties":false},{"type":"null"}]}},"required":["serviceId","title","advisorName","packages","templates","owned","ownedTier","upgrade"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceSlug","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"security":[{"bearerAuth":[]}]}},"/artifacts/by-service":{"get":{"operationId":"artifacts.byService","tags":["artifacts"],"summary":"artifacts.byService","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"createdAt":{"type":"string"},"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}]},"layerSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}},"widgetSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}}},"required":["version","layers"],"additionalProperties":false}},"required":["version","layers"],"additionalProperties":false},"pairedArtifactId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","kind","createdAt","creatorServiceId","serial","layerSpec","pairedArtifactId"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["artifacts","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceIds","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}){0,4}$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/artifacts/wallpapers":{"get":{"operationId":"artifacts.wallpapers","tags":["artifacts"],"summary":"artifacts.wallpapers","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"wallpapers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"godId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"items":{"type":"array","items":{"type":"string"}},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"godName":{"type":"string"},"topicName":{"type":"string"},"collectionName":{"type":"string"},"img":{"type":"string"},"thumbUrl":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"deliverables":{"type":"array","items":{"type":"string","enum":["wallpaper","widget","paired"]}},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"widget":{"anyOf":[{"type":"object","properties":{"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"img":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["topicId","img"],"additionalProperties":false},{"type":"null"}]},"birthDay":{"type":"string"},"displayName":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","createdAt","eventId","godId","topicId","items","showName","showStar","showVirtue","godName","topicName","collectionName","img","deliverables","productId","widget"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["wallpapers","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"artifacts.mintWallpaper","tags":["artifacts"],"summary":"artifacts.mintWallpaper","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"},"deliverables":{"type":"array","items":{"type":"string","enum":["wallpaper","widget","paired"]}}},"required":["id","eventId","topicId","type","deliverables"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"virtueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemId":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"displayName":{"type":"string","maxLength":100},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"}},"required":["creatorServiceId","productId","eventId","virtueId","itemId","displayName"]}}}},"security":[{"bearerAuth":[]}]}},"/artifacts/wallpapers/stellar":{"post":{"operationId":"artifacts.mintStellarWallpaper","tags":["artifacts"],"summary":"artifacts.mintStellarWallpaper","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"}},"required":["id","eventId","topicId","type"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"zodiacId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"houseOwnerPlanetNumber":{"type":"integer","minimum":0,"maximum":9},"pairedPlanetNumber":{"type":"integer","minimum":0,"maximum":9},"starDenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"starJonId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rulingStarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"backgroundImgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"starMoveStartedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?)?$"},"starMoveEndedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?)?$"},"createdDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?)?$"},"detail":{"type":"object","properties":{"powerName":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":10000}},"required":["powerName","description"]}},"required":["creatorServiceId","productId","eventId","topic","zodiacId","houseOwnerPlanetNumber","pairedPlanetNumber","starDenId","starJonId","rulingStarId","backgroundImgId","starMoveStartedAt","starMoveEndedAt"]}}}},"security":[{"bearerAuth":[]}]}},"/artifacts/{id}":{"get":{"operationId":"artifacts.get","tags":["artifacts"],"summary":"artifacts.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"artifact":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"layerSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}},"widgetSpec":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":{}}}},"required":["version","layers"],"additionalProperties":false}},"required":["version","layers"],"additionalProperties":false},"serial":{"anyOf":[{"type":"string"},{"type":"null"}]},"verifyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"pairedArtifactId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewImg":{"type":"string"}},"required":["id","kind","layerSpec","serial","verifyUrl","createdAt","pairedArtifactId"],"additionalProperties":false}},"required":["artifact"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/decks":{"get":{"operationId":"decks.list","tags":["decks"],"summary":"decks.list","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"decks":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["decks"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"decks.create","tags":["decks"],"summary":"decks.create","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deck":{"type":"object","properties":{},"additionalProperties":{}}},"required":["deck"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["tarot","oracle","syamsi"]}},"required":["creatorServiceId","name","kind"]}}}},"security":[{"bearerAuth":[]}]}},"/decks/{id}/cards":{"get":{"operationId":"decks.listCards","tags":["decks"],"summary":"decks.listCards","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["cards"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"decks.addCards","tags":["decks"],"summary":"decks.addCards","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","minLength":1,"maxLength":200},"imageUrl":{"type":"string","maxLength":1024,"format":"uri"},"meta":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","name"]}}},"required":["cards"]}}}},"security":[{"bearerAuth":[]}]}},"/decks/{id}/embed":{"post":{"operationId":"decks.embed","tags":["decks"],"summary":"decks.embed","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/readings":{"post":{"operationId":"readings.create","tags":["readings"],"summary":"readings.create","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["card_of_day","multi_choice","free_question","syamsi"]},"question":{"type":"string","minLength":1,"maxLength":2000},"options":{"minItems":2,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"count":{"type":"integer","minimum":1,"maximum":20}},"required":["creatorServiceId","mode"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/me":{"get":{"operationId":"readings.me","tags":["readings"],"summary":"readings.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sessions","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/tarot/events":{"get":{"operationId":"readings.tarotEvents","tags":["readings"],"summary":"readings.tarotEvents","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"eventId":{"type":"string"},"tableName":{"type":"string"}},"required":["eventId","tableName"],"additionalProperties":false}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/tarot/today":{"get":{"operationId":"readings.cardOfTheDayToday","tags":["readings"],"summary":"readings.cardOfTheDayToday","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"drawn":{"type":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"}},"required":["number","name","img","detail"],"additionalProperties":false},"prediction":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment":{"type":"string"},"date":{"type":"string"}},"required":["id","card","prediction","score","comment","date"],"additionalProperties":false}},"required":["drawn"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/tarot/landing-page":{"get":{"operationId":"readings.cardOfTheDayLanding","tags":["readings"],"summary":"readings.cardOfTheDayLanding","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string"},"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reminder":{"anyOf":[{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false},{"type":"null"}]},"recap":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"}},"required":["number","name","img","detail"],"additionalProperties":false},"prediction":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment":{"type":"string"},"date":{"type":"string"}},"required":["id","card","prediction","score","comment","date"],"additionalProperties":false},{"type":"null"}]},"backCard":{"type":"string"},"longPage":{"type":"array","items":{"type":"object","properties":{"bgImg":{"type":"string"}},"required":["bgImg"],"additionalProperties":false}},"iconScore":{"type":"array","items":{"type":"object","properties":{"good":{"type":"string"},"same":{"type":"string"},"bad":{"type":"string"},"best":{"type":"string"}},"required":["good","same","bad","best"],"additionalProperties":false}},"quota":{"type":"boolean"},"streak":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalDraw":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"feedback":{"type":"object","properties":{"enabled":{"type":"boolean"},"pending":{"type":"boolean"},"skipped":{"type":"boolean"},"latest":{"type":"object","properties":{"id":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"}},"required":["number","name","img","detail"],"additionalProperties":false},"prediction":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment":{"type":"string"},"date":{"type":"string"}},"additionalProperties":false}},"required":["enabled","pending","skipped","latest"],"additionalProperties":false}},"required":["eventId","backCard","longPage","iconScore","quota","streak","totalDraw","feedback"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/tarot/draw":{"post":{"operationId":"tarot.draw","tags":["tarot"],"summary":"tarot.draw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["number","name","img","detail","attributes"],"additionalProperties":false},"prediction":{"type":"string"},"streak":{"type":"number"},"totalDraw":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","card","prediction","streak","totalDraw"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pick":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["eventId"]}}}},"security":[{"bearerAuth":[]}]}},"/tarot/feedback":{"post":{"operationId":"tarot.feedback","tags":["tarot"],"summary":"tarot.feedback","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"drawId":{"type":"string","minLength":1},"score":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":5}]},"comment":{"type":"string"}},"required":["drawId"]}}}},"security":[{"bearerAuth":[]}]}},"/tarot/feedback/skip":{"post":{"operationId":"tarot.skipFeedback","tags":["tarot"],"summary":"tarot.skipFeedback","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"drawId":{"type":"string","minLength":1}},"required":["drawId"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/card-of-the-day/reminder":{"post":{"operationId":"readings.cardOfTheDayReminder","tags":["readings"],"summary":"readings.cardOfTheDayReminder","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"setting":{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false}},"required":["setting"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reminderHour":{"anyOf":[{"type":"integer","minimum":0,"maximum":23},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":64},"active":{"type":"boolean"}},"required":["serviceId"]}}}},"security":[{"bearerAuth":[]}]}},"/tarot/summary":{"get":{"operationId":"readings.diary","tags":["readings"],"summary":"readings.diary","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"card":{"type":"object","properties":{"id":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"}},"required":["number","name","img","detail"],"additionalProperties":false},"prediction":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment":{"type":"string"},"date":{"type":"string"}},"additionalProperties":false}},"required":["date","card"],"additionalProperties":false}}},"required":["cards"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":false,"schema":{"type":"string"}},{"name":"month","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":12}},{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":2000,"maximum":2999}}],"security":[{"bearerAuth":[]}]}},"/readings/crystal-ball":{"get":{"operationId":"readings.crystalBallStatus","tags":["readings"],"summary":"readings.crystalBallStatus","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["can_draw","awaiting_answer","accepted_locked","rejected_locked"]},"draw":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"}},"required":["id","number","accepted","submittedAt","drawDate"],"additionalProperties":false},{"type":"null"}]},"nextDrawAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canUse":{"type":"boolean"},"nextFreeAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"images":{"type":"object","properties":{"moon":{"type":"string"}},"required":["moon"],"additionalProperties":false}},"required":["state","draw","nextDrawAt","serviceId","product","freeRemaining","quotaRemaining","canUse","nextFreeAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Target service by uuid. Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."},"description":"Target service by uuid. Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."},{"name":"serviceSlug","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":80,"description":"Target service by its stable slug (resolved to a serviceId server-side). Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."},"description":"Target service by its stable slug (resolved to a serviceId server-side). Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."}],"security":[{"bearerAuth":[]}]}},"/readings/crystal-ball/draw":{"post":{"operationId":"readings.crystalBallDraw","tags":["readings"],"summary":"readings.crystalBallDraw","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["can_draw","awaiting_answer","accepted_locked","rejected_locked"]},"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"}},"required":["id","number","accepted","submittedAt","drawDate"],"additionalProperties":false},"nextDrawAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"restored":{"type":"boolean"}},"required":["state","draw","nextDrawAt","restored"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["serviceId"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/crystal-ball/answer":{"post":{"operationId":"readings.crystalBallAnswer","tags":["readings"],"summary":"readings.crystalBallAnswer","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["can_draw","awaiting_answer","accepted_locked","rejected_locked"]},"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"}},"required":["id","number","accepted","submittedAt","drawDate"],"additionalProperties":false},"nextDrawAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["state","draw","nextDrawAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"drawId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accept":{"type":"boolean"}},"required":["drawId","accept"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/crystal-ball/history":{"get":{"operationId":"readings.crystalBallHistory","tags":["readings"],"summary":"readings.crystalBallHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"draws":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"}},"required":["id","number","accepted","submittedAt","drawDate"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["draws","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"serviceId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Target service by uuid. Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."},"description":"Target service by uuid. Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."},{"name":"serviceSlug","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":80,"description":"Target service by its stable slug (resolved to a serviceId server-side). Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."},"description":"Target service by its stable slug (resolved to a serviceId server-side). Provide EXACTLY ONE of serviceId or serviceSlug (not both, not neither)."}],"security":[{"bearerAuth":[]}]}},"/readings/{id}":{"get":{"operationId":"readings.get","tags":["readings"],"summary":"readings.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/numerology/phone-check":{"post":{"operationId":"numerology.phoneCheck","tags":["numerology"],"summary":"numerology.phoneCheck","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"inputMasked":{"type":"string"},"digits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"grade":{"type":"string"},"sum":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fit":{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"baseScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string"},"favorableHits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avoidHits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["score","baseScore","rank","favorableHits","avoidHits"],"additionalProperties":false},"dimensions":{"type":"object","properties":{"dims":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"raw":{"type":"number"}},"required":["key","th","score","raw"],"additionalProperties":false}},"composite":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dominant":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"raw":{"type":"number"}},"required":["key","th","score","raw"],"additionalProperties":false},"weakest":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"raw":{"type":"number"}},"required":["key","th","score","raw"],"additionalProperties":false}},"required":["dims","composite","dominant","weakest"],"additionalProperties":false},"pairs":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"caution":{"type":"string"},"tone":{"type":"string","enum":["good","weak","avoid"]},"reading":{"type":"object","properties":{"tone":{"type":"string","enum":["boost","avoid","plain"]},"headline":{"type":"string"},"summary":{"type":"string"},"caution":{"type":"string"},"thaksaNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"marks":{"type":"array","items":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"role":{"type":"string"},"planetTh":{"type":"string"}},"required":["digit","role","planetTh"],"additionalProperties":false}},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"text":{"type":"string"}},"required":["key","th","text"],"additionalProperties":false}}},"required":["tone","headline","summary","caution","thaksaNote","marks","topics"],"additionalProperties":false}},"required":["pair","point","title","caution","tone","reading"],"additionalProperties":false}},"verdict":{"type":"object","properties":{"tone":{"type":"string","enum":["good","weak"]},"headline":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["tone","headline","reasons"],"additionalProperties":false},"kalakini":{"anyOf":[{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"harm":{"type":"string"},"occurrences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["digit","planetTh","harm","occurrences"],"additionalProperties":false},{"type":"null"}]},"needsBirthProfile":{"type":"boolean"},"forecast":{"type":"array","items":{"type":"string"}},"thaksaHouses":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["boriwan","ayu","dech","sri","mula","utsaha","montri","kalakini"]},"roleTh":{"type":"string"},"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meaningTh":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inTail":{"type":"boolean"}},"required":["key","roleTh","digit","meaningTh","count","inTail"],"additionalProperties":false}},{"type":"null"}]},"repeat":{"anyOf":[{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["digit","count"],"additionalProperties":false},{"type":"null"}]},"thaksa":{"anyOf":[{"type":"object","properties":{"dayPlanetTh":{"type":"string"},"favorableDigits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"avoidDigits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["dayPlanetTh","favorableDigits","avoidDigits"],"additionalProperties":false},{"type":"null"}]},"birthBasis":{"anyOf":[{"type":"object","properties":{"birthDate":{"type":"string"},"birthTime":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["birthDate","birthTime","lockedAt"],"additionalProperties":false},{"type":"null"}]},"entitled":{"type":"boolean"},"deepUnlocked":{"type":"boolean"},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prescription":{"anyOf":[{"type":"object","properties":{"mustHave":{"type":"array","items":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"role":{"type":"string"},"boosts":{"type":"array","items":{"type":"string"}},"boostsTh":{"type":"array","items":{"type":"string"}},"whyTh":{"type":"string"}},"required":["digit","planetTh","role","boosts","boostsTh","whyTh"],"additionalProperties":false}},"mustAvoid":{"type":"array","items":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"role":{"type":"string"},"boosts":{"type":"array","items":{"type":"string"}},"boostsTh":{"type":"array","items":{"type":"string"}},"whyTh":{"type":"string"}},"required":["digit","planetTh","role","boosts","boostsTh","whyTh"],"additionalProperties":false}},"weakest":{"type":"array","items":{"type":"string"}},"weakestTh":{"type":"array","items":{"type":"string"}},"targetPairs":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"helps":{"type":"array","items":{"type":"string"}},"helpsTh":{"type":"array","items":{"type":"string"}},"meaning":{"anyOf":[{"type":"object","properties":{"summary":{"type":"string"},"caution":{"type":"string"},"careers":{"type":"string"},"career":{"type":"string"},"wealth":{"type":"string"},"love":{"type":"string"},"health":{"type":"string"},"luck":{"type":"string"}},"required":["summary","caution","careers","career","wealth","love","health","luck"],"additionalProperties":false},{"type":"null"}]}},"required":["pair","point","title","helps","helpsTh","meaning"],"additionalProperties":false}},"draggingPairs":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"why":{"type":"string"}},"required":["pair","point","why"],"additionalProperties":false}},"howToUse":{"type":"array","items":{"type":"string"}},"pairCatalog":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["pair","point","title"],"additionalProperties":false}}},"required":["mustHave","mustAvoid","weakest","weakestTh","targetPairs","draggingPairs","howToUse","pairCatalog"],"additionalProperties":false},{"type":"null"}]},"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"wallpaperServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"wallpaperOffers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["boost","fix"]},"title":{"type":"string"},"description":{"type":"string"},"digits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"listPriceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"owned":{"type":"boolean"}},"required":["key","title","description","digits","listPriceMinor","product","owned"],"additionalProperties":false}}},"required":["inputMasked","digits","grade","sum","fit","dimensions","pairs","verdict","kalakini","needsBirthProfile","forecast","thaksaHouses","repeat","thaksa","birthBasis","entitled","deepUnlocked","quotaRemaining","prescription","serviceId","product","wallpaperServiceId","wallpaperOffers"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","pattern":"^0\\d{9}$"}},"required":["value"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/numerology/phone-deep-unlock":{"post":{"operationId":"numerology.phoneDeepUnlock","tags":["numerology"],"summary":"numerology.phoneDeepUnlock","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"inputMasked":{"type":"string"},"digits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"grade":{"type":"string"},"sum":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fit":{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"baseScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string"},"favorableHits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avoidHits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["score","baseScore","rank","favorableHits","avoidHits"],"additionalProperties":false},"dimensions":{"type":"object","properties":{"dims":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"raw":{"type":"number"}},"required":["key","th","score","raw"],"additionalProperties":false}},"composite":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dominant":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"raw":{"type":"number"}},"required":["key","th","score","raw"],"additionalProperties":false},"weakest":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"raw":{"type":"number"}},"required":["key","th","score","raw"],"additionalProperties":false}},"required":["dims","composite","dominant","weakest"],"additionalProperties":false},"pairs":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"caution":{"type":"string"},"tone":{"type":"string","enum":["good","weak","avoid"]},"reading":{"type":"object","properties":{"tone":{"type":"string","enum":["boost","avoid","plain"]},"headline":{"type":"string"},"summary":{"type":"string"},"caution":{"type":"string"},"thaksaNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"marks":{"type":"array","items":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"role":{"type":"string"},"planetTh":{"type":"string"}},"required":["digit","role","planetTh"],"additionalProperties":false}},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"text":{"type":"string"}},"required":["key","th","text"],"additionalProperties":false}}},"required":["tone","headline","summary","caution","thaksaNote","marks","topics"],"additionalProperties":false}},"required":["pair","point","title","caution","tone","reading"],"additionalProperties":false}},"verdict":{"type":"object","properties":{"tone":{"type":"string","enum":["good","weak"]},"headline":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["tone","headline","reasons"],"additionalProperties":false},"kalakini":{"anyOf":[{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"harm":{"type":"string"},"occurrences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["digit","planetTh","harm","occurrences"],"additionalProperties":false},{"type":"null"}]},"needsBirthProfile":{"type":"boolean"},"forecast":{"type":"array","items":{"type":"string"}},"thaksaHouses":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["boriwan","ayu","dech","sri","mula","utsaha","montri","kalakini"]},"roleTh":{"type":"string"},"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meaningTh":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inTail":{"type":"boolean"}},"required":["key","roleTh","digit","meaningTh","count","inTail"],"additionalProperties":false}},{"type":"null"}]},"repeat":{"anyOf":[{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["digit","count"],"additionalProperties":false},{"type":"null"}]},"thaksa":{"anyOf":[{"type":"object","properties":{"dayPlanetTh":{"type":"string"},"favorableDigits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"avoidDigits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["dayPlanetTh","favorableDigits","avoidDigits"],"additionalProperties":false},{"type":"null"}]},"birthBasis":{"anyOf":[{"type":"object","properties":{"birthDate":{"type":"string"},"birthTime":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["birthDate","birthTime","lockedAt"],"additionalProperties":false},{"type":"null"}]},"entitled":{"type":"boolean"},"deepUnlocked":{"type":"boolean"},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prescription":{"anyOf":[{"type":"object","properties":{"mustHave":{"type":"array","items":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"role":{"type":"string"},"boosts":{"type":"array","items":{"type":"string"}},"boostsTh":{"type":"array","items":{"type":"string"}},"whyTh":{"type":"string"}},"required":["digit","planetTh","role","boosts","boostsTh","whyTh"],"additionalProperties":false}},"mustAvoid":{"type":"array","items":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"role":{"type":"string"},"boosts":{"type":"array","items":{"type":"string"}},"boostsTh":{"type":"array","items":{"type":"string"}},"whyTh":{"type":"string"}},"required":["digit","planetTh","role","boosts","boostsTh","whyTh"],"additionalProperties":false}},"weakest":{"type":"array","items":{"type":"string"}},"weakestTh":{"type":"array","items":{"type":"string"}},"targetPairs":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"helps":{"type":"array","items":{"type":"string"}},"helpsTh":{"type":"array","items":{"type":"string"}},"meaning":{"anyOf":[{"type":"object","properties":{"summary":{"type":"string"},"caution":{"type":"string"},"careers":{"type":"string"},"career":{"type":"string"},"wealth":{"type":"string"},"love":{"type":"string"},"health":{"type":"string"},"luck":{"type":"string"}},"required":["summary","caution","careers","career","wealth","love","health","luck"],"additionalProperties":false},{"type":"null"}]}},"required":["pair","point","title","helps","helpsTh","meaning"],"additionalProperties":false}},"draggingPairs":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"why":{"type":"string"}},"required":["pair","point","why"],"additionalProperties":false}},"howToUse":{"type":"array","items":{"type":"string"}},"pairCatalog":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["pair","point","title"],"additionalProperties":false}}},"required":["mustHave","mustAvoid","weakest","weakestTh","targetPairs","draggingPairs","howToUse","pairCatalog"],"additionalProperties":false},{"type":"null"}]},"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"wallpaperServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"wallpaperOffers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["boost","fix"]},"title":{"type":"string"},"description":{"type":"string"},"digits":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"listPriceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"owned":{"type":"boolean"}},"required":["key","title","description","digits","listPriceMinor","product","owned"],"additionalProperties":false}}},"required":["inputMasked","digits","grade","sum","fit","dimensions","pairs","verdict","kalakini","needsBirthProfile","forecast","thaksaHouses","repeat","thaksa","birthBasis","entitled","deepUnlocked","quotaRemaining","prescription","serviceId","product","wallpaperServiceId","wallpaperOffers"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","pattern":"^0\\d{9}$"}},"required":["value"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/numerology/phone-deep-status":{"post":{"operationId":"numerology.phoneDeepStatus","tags":["numerology"],"summary":"numerology.phoneDeepStatus","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deepUnlocked":{"type":"boolean"},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"needsBirthProfile":{"type":"boolean"},"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"lockedBirth":{"anyOf":[{"type":"object","properties":{"birthDate":{"type":"string"},"birthTime":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["birthDate","birthTime","lockedAt"],"additionalProperties":false},{"type":"null"}]},"otherLockedBirths":{"type":"array","items":{"type":"object","properties":{"birthDate":{"type":"string"},"birthTime":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["birthDate","birthTime","lockedAt"],"additionalProperties":false}}},"required":["deepUnlocked","quotaRemaining","needsBirthProfile","serviceId","product","lockedBirth","otherLockedBirths"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","pattern":"^0\\d{9}$"}},"required":["value"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/numerology/phone-compare/list":{"post":{"operationId":"numerology.phoneCompareList","tags":["numerology"],"summary":"numerology.phoneCompareList","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"phone":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string"},"dominant":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"}},"required":["key","th"],"additionalProperties":false},"comparedAt":{"type":"string"}},"required":["id","phone","score","rank","dominant","comparedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"base":{"type":"string","pattern":"^0\\d{9}$"}},"required":["base"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/numerology/phone-compare":{"post":{"operationId":"numerology.phoneCompare","tags":["numerology"],"summary":"numerology.phoneCompare","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"phone":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string"},"dominant":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"}},"required":["key","th"],"additionalProperties":false},"comparedAt":{"type":"string"}},"required":["id","phone","score","rank","dominant","comparedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"base":{"type":"string","pattern":"^0\\d{9}$"},"value":{"type":"string","pattern":"^0\\d{9}$"}},"required":["base","value"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/numerology/phone-compare/{id}":{"delete":{"operationId":"numerology.phoneCompareDelete","tags":["numerology"],"summary":"numerology.phoneCompareDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/personalization/lucky-color":{"get":{"operationId":"personalization.luckyColor","tags":["personalization"],"summary":"personalization.luckyColor","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"date","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"security":[{"bearerAuth":[]}]}},"/personalization/monthly":{"post":{"operationId":"personalization.monthly","tags":["personalization"],"summary":"personalization.monthly","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}},"required":["creatorServiceId"]}}}},"security":[{"bearerAuth":[]}]}},"/personalization/monthly/me":{"get":{"operationId":"personalization.monthlyMe","tags":["personalization"],"summary":"personalization.monthlyMe","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"readings":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["readings","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/personalization/profile":{"get":{"operationId":"personalization.getProfile","tags":["personalization"],"summary":"personalization.getProfile","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"anyOf":[{"type":"object","properties":{},"additionalProperties":{}},{"type":"null"}]}},"required":["profile"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"birthDate","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"birthTime","in":"query","required":false,"schema":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"personalization.upsertProfile","tags":["personalization"],"summary":"personalization.upsertProfile","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{},"additionalProperties":{}}},"required":["profile"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"birthTimeUnknown":{"type":"boolean"},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"provinceCode":{"type":"string"},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180},"birthCityId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"birthPlace":{"type":"string","maxLength":200},"birthPlaceUnknown":{"type":"boolean"},"blood":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}]},"relationshipStatus":{"anyOf":[{"type":"string","enum":["single","talking","partnered","married","other"]},{"type":"null"}]},"occupation":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"undertone":{"anyOf":[{"type":"string","enum":["warm","cool","neutral"]},{"type":"null"}]}},"required":["birthDate"]}}}},"security":[{"bearerAuth":[]}]}},"/vision/clips":{"post":{"operationId":"vision.registerClip","tags":["vision"],"summary":"vision.registerClip","description":"Auth: requires role creator / admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"clip":{"type":"object","properties":{},"additionalProperties":{}}},"required":["clip"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"videoUid":{"type":"string","minLength":1,"maxLength":128},"tags":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"featureType":{"type":"string","enum":["signature","face_reading"]},"transcript":{"type":"string","maxLength":8000},"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title","videoUid","tags","featureType"]}}}},"security":[{"bearerAuth":[]}]},"get":{"operationId":"vision.listClips","tags":["vision"],"summary":"vision.listClips","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"clips":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["clips"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"featureType","in":"query","required":false,"schema":{"type":"string","enum":["signature","face_reading"]}}],"security":[{"bearerAuth":[]}]}},"/vision/analyze":{"post":{"operationId":"vision.analyze","tags":["vision"],"summary":"vision.analyze","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"inputImageUrl":{"type":"string"},"resultSections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"title":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"matchKey":{"type":"string","minLength":1},"title":{"type":"string"},"iconUrl":{"type":"string","minLength":1},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["key","matchKey","title","iconUrl","iconWidth","iconHeight"],"additionalProperties":false}}},"required":["key","title","subtitle","sortOrder","items"],"additionalProperties":false}}},"additionalProperties":{}}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["signature","face_reading"]},"imageUrl":{"type":"string","minLength":1,"maxLength":1024}},"required":["creatorServiceId","kind","imageUrl"]}}}},"security":[{"bearerAuth":[]}]}},"/vision/signature-analyses":{"post":{"operationId":"vision.analyzeSignature","tags":["vision"],"summary":"vision.analyzeSignature","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"inputImageUrl":{"type":"string"},"resultSections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"title":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"matchKey":{"type":"string","minLength":1},"title":{"type":"string"},"iconUrl":{"type":"string","minLength":1},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["key","matchKey","title","iconUrl","iconWidth","iconHeight"],"additionalProperties":false}}},"required":["key","title","subtitle","sortOrder","items"],"additionalProperties":false}}},"additionalProperties":{}}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"features":{"type":"string","maxLength":8000},"copyVersion":{"type":"string","minLength":1,"maxLength":20},"copyText":{"type":"string","minLength":1,"maxLength":1000}}}}}},"security":[{"bearerAuth":[]}]}},"/vision/signature-checks":{"post":{"operationId":"vision.checkSignature","tags":["vision"],"summary":"vision.checkSignature","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean","const":true}},"required":["valid"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{}}}}},"security":[{"bearerAuth":[]}]}},"/vision/signature-reports":{"post":{"operationId":"vision.saveSignatureReport","tags":["vision"],"summary":"vision.saveSignatureReport","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"features":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"summary":{"type":"string","minLength":1,"maxLength":120}},"required":["features","summary"]}}}},"security":[{"bearerAuth":[]}]}},"/vision/me":{"get":{"operationId":"vision.me","tags":["vision"],"summary":"vision.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"analyses":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["analyses","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/vision/{id}":{"get":{"operationId":"vision.get","tags":["vision"],"summary":"vision.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"analysis":{"type":"object","properties":{"inputImageUrl":{"type":"string"},"resultSections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"title":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"matchKey":{"type":"string","minLength":1},"title":{"type":"string"},"iconUrl":{"type":"string","minLength":1},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["key","matchKey","title","iconUrl","iconWidth","iconHeight"],"additionalProperties":false}}},"required":["key","title","subtitle","sortOrder","items"],"additionalProperties":false}}},"additionalProperties":{}}},"required":["analysis"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/ritual/queue":{"get":{"operationId":"ritual.queue","tags":["ritual"],"summary":"ritual.queue","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillments":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fulfillments","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","in_progress","proof_uploaded","delivered","cancelled"]}},{"name":"creatorId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/ritual/me":{"get":{"operationId":"ritual.me","tags":["ritual"],"summary":"ritual.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillments":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fulfillments","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/ritual/{id}/start":{"post":{"operationId":"ritual.start","tags":["ritual"],"summary":"ritual.start","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/ritual/{id}/proof":{"post":{"operationId":"ritual.proof","tags":["ritual"],"summary":"ritual.proof","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"proofVideoUid":{"type":"string","minLength":1,"maxLength":128},"notes":{"type":"string","maxLength":4000}},"required":["proofVideoUid"]}}}},"security":[{"bearerAuth":[]}]}},"/ritual/{id}/deliver":{"post":{"operationId":"ritual.deliver","tags":["ritual"],"summary":"ritual.deliver","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"extraBindings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"notes":{"type":"string","maxLength":4000}}}}}},"security":[{"bearerAuth":[]}]}},"/ritual/{id}/cancel":{"post":{"operationId":"ritual.cancel","tags":["ritual"],"summary":"ritual.cancel","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":"string","maxLength":4000}}}}}},"security":[{"bearerAuth":[]}]}},"/ritual/{id}":{"get":{"operationId":"ritual.get","tags":["ritual"],"summary":"ritual.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/ritual/{id}/beneficiary":{"patch":{"operationId":"ritual.updateBeneficiary","tags":["ritual"],"summary":"ritual.updateBeneficiary","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"beneficiaryName":{"type":"string","minLength":1,"maxLength":200},"beneficiaryMessage":{"type":"string","maxLength":200},"consentGroupMedia":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/ritual/{id}/shipping":{"patch":{"operationId":"ritual.updateShipping","tags":["ritual"],"summary":"ritual.updateShipping","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shippingAddress":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"]}},"required":["shippingAddress"]}}}},"security":[{"bearerAuth":[]}]}},"/ritual/{id}/shipped":{"post":{"operationId":"ritual.markShipped","tags":["ritual"],"summary":"ritual.markShipped","description":"Auth: requires role creator / admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"fulfillment":{"type":"object","properties":{},"additionalProperties":{}}},"required":["fulfillment"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackingCode":{"type":"string","minLength":1,"maxLength":64}},"required":["trackingCode"]}}}},"security":[{"bearerAuth":[]}]}},"/face-reading/analyze":{"post":{"operationId":"faceReading.analyze","tags":["faceReading"],"summary":"faceReading.analyze","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"rejected":{"type":"boolean"},"message":{"type":"string"},"quality":{"type":"object","properties":{"level":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}},"yaw":{"type":"number"},"roll":{"type":"number"}},"required":["level","messages","yaw","roll"],"additionalProperties":false},"imageStats":{"type":"object","properties":{"received":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"frontalUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"profileUsed":{"type":"boolean"},"dropped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"primaryIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["received","frontalUsed","profileUsed","dropped","primaryIndex"],"additionalProperties":false},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lifeStage":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"ting":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string"},"note":{"type":"string"}},"required":["key","ting","label","note"],"additionalProperties":false},{"type":"null"}]},"faceReading":{"anyOf":[{"type":"object","properties":{"faceShape":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false},"sanTing":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"palaces":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"regions":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"overallConfidence":{"type":"number"}},"required":["faceShape","sanTing","palaces","regions","overallConfidence"],"additionalProperties":false},{"type":"null"}]},"liunian":{"anyOf":[{"type":"object","properties":{"points":{"type":"array","items":{"type":"object","properties":{"age":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cn":{"type":"string"},"th":{"type":"string"},"ting":{"type":"string"},"x":{"type":"number"},"y":{"type":"number"},"meaning":{"type":"string"},"good":{"type":"string"},"bad":{"type":"string"},"src":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["age","cn","th","ting","x","y","meaning","good","bad","src"],"additionalProperties":false}},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["points","width","height"],"additionalProperties":false},{"type":"null"}]},"moles":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"position":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"th":{"type":"string"},"cn":{"type":"string"},"x":{"anyOf":[{"type":"number"},{"type":"null"}]},"y":{"anyOf":[{"type":"number"},{"type":"null"}]},"polarity":{"type":"string","enum":["good","bad","mixed"]},"meaning":{"type":"string"},"sexNote":{"type":"string"},"src":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"placeable":{"type":"boolean"}},"required":["region","position","th","cn","x","y","polarity","meaning","src","placeable"],"additionalProperties":false}},{"type":"null"}]},"polished":{"type":"boolean"},"predictId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"summary":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","work","money","study","health"]},"label":{"type":"string"},"intro":{"type":"string"},"steer":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}},"weakRegionIds":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}}},"required":["key","label","hint","regionIds"],"additionalProperties":false}}},"required":["key","label","intro","regionIds","weakRegionIds"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false}},"required":["rejected","quality","imageStats","age","lifeStage","faceReading","liunian","moles","polished"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"images":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"landmarks":{"minItems":400,"maxItems":600,"type":"array","items":{"minItems":2,"maxItems":3,"type":"array","items":{"type":"number"}}},"imageWidth":{"type":"integer","exclusiveMinimum":0,"maximum":20000},"imageHeight":{"type":"integer","exclusiveMinimum":0,"maximum":20000}},"required":["landmarks","imageWidth","imageHeight"]}},"normalized":{"type":"boolean"},"age":{"type":"integer","minimum":1,"maximum":120},"polish":{"type":"boolean"},"eventSlug":{"type":"string","minLength":1,"maxLength":200}},"required":["images"]}}}},"security":[{"bearerAuth":[]}]}},"/face-reading/home":{"get":{"operationId":"faceReading.home","tags":["faceReading"],"summary":"faceReading.home","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"isFree":{"type":"boolean"},"priceAmount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"componentView":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["id","slug","name","description","img","isFree","priceAmount","componentView"],"additionalProperties":false},"singles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"name":{"type":"string"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"index":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","code","name","icon","index"],"additionalProperties":false}},"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"name":{"type":"string"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"index":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","code","name","icon","index"],"additionalProperties":false}},"profile":{"type":"object","properties":{"relationshipStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"occupation":{"anyOf":[{"type":"string"},{"type":"null"}]},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["relationshipStatus","occupation","age"],"additionalProperties":false}},"required":["event","singles","jobs","profile"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/face-reading/mine":{"get":{"operationId":"faceReading.listMine","tags":["faceReading"],"summary":"faceReading.listMine","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"faceShape":{"anyOf":[{"type":"string"},{"type":"null"}]},"elementPrimary":{"anyOf":[{"type":"string","enum":["wood","fire","earth","metal","water"]},{"type":"null"}]},"elementPrimaryPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lifeStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"overallConfidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"qualityLevel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","eventId","faceShape","elementPrimary","elementPrimaryPct","lifeStage","overallConfidence","qualityLevel","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}}],"security":[{"bearerAuth":[]}]}},"/face-reading/{id}":{"get":{"operationId":"faceReading.get","tags":["faceReading"],"summary":"faceReading.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"faceShape":{"anyOf":[{"type":"string"},{"type":"null"}]},"elementPrimary":{"anyOf":[{"type":"string","enum":["wood","fire","earth","metal","water"]},{"type":"null"}]},"elementPrimaryPct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lifeStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"overallConfidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"qualityLevel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"detail":{"type":"object","properties":{"rejected":{"type":"boolean"},"message":{"type":"string"},"quality":{"type":"object","properties":{"level":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}},"yaw":{"type":"number"},"roll":{"type":"number"}},"required":["level","messages","yaw","roll"],"additionalProperties":false},"imageStats":{"type":"object","properties":{"received":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"frontalUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"profileUsed":{"type":"boolean"},"dropped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"primaryIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["received","frontalUsed","profileUsed","dropped","primaryIndex"],"additionalProperties":false},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lifeStage":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"ting":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string"},"note":{"type":"string"}},"required":["key","ting","label","note"],"additionalProperties":false},{"type":"null"}]},"faceReading":{"anyOf":[{"type":"object","properties":{"faceShape":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false},"sanTing":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"palaces":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"regions":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"overallConfidence":{"type":"number"}},"required":["faceShape","sanTing","palaces","regions","overallConfidence"],"additionalProperties":false},{"type":"null"}]},"liunian":{"anyOf":[{"type":"object","properties":{"points":{"type":"array","items":{"type":"object","properties":{"age":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cn":{"type":"string"},"th":{"type":"string"},"ting":{"type":"string"},"x":{"type":"number"},"y":{"type":"number"},"meaning":{"type":"string"},"good":{"type":"string"},"bad":{"type":"string"},"src":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["age","cn","th","ting","x","y","meaning","good","bad","src"],"additionalProperties":false}},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["points","width","height"],"additionalProperties":false},{"type":"null"}]},"moles":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"position":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"th":{"type":"string"},"cn":{"type":"string"},"x":{"anyOf":[{"type":"number"},{"type":"null"}]},"y":{"anyOf":[{"type":"number"},{"type":"null"}]},"polarity":{"type":"string","enum":["good","bad","mixed"]},"meaning":{"type":"string"},"sexNote":{"type":"string"},"src":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"placeable":{"type":"boolean"}},"required":["region","position","th","cn","x","y","polarity","meaning","src","placeable"],"additionalProperties":false}},{"type":"null"}]},"polished":{"type":"boolean"},"predictId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"summary":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","work","money","study","health"]},"label":{"type":"string"},"intro":{"type":"string"},"steer":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}},"weakRegionIds":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}}},"required":["key","label","hint","regionIds"],"additionalProperties":false}}},"required":["key","label","intro","regionIds","weakRegionIds"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false}},"required":["rejected","quality","imageStats","age","lifeStage","faceReading","liunian","moles","polished"],"additionalProperties":false},"summary":{"anyOf":[{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","work","money","study","health"]},"label":{"type":"string"},"intro":{"type":"string"},"steer":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}},"weakRegionIds":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}}},"required":["key","label","hint","regionIds"],"additionalProperties":false}}},"required":["key","label","intro","regionIds","weakRegionIds"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false},{"type":"null"}]},"singleName":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobName":{"anyOf":[{"type":"string"},{"type":"null"}]},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","eventId","faceShape","elementPrimary","elementPrimaryPct","lifeStage","overallConfidence","qualityLevel","createdAt","detail","summary","singleName","jobName","age"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/face-reading/record":{"post":{"operationId":"faceReading.record","tags":["faceReading"],"summary":"faceReading.record","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"recorded":{"type":"boolean"}},"required":["recorded"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientReadingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"faceShape":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementPrimary":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondary":{"type":"string","enum":["wood","fire","earth","metal","water"]},"lifeStage":{"type":"string","enum":["ears","upper","middle","lower"]},"qualityLevel":{"type":"string","enum":["good","warn"]},"appVersion":{"type":"string","minLength":1,"maxLength":32},"detail":{"type":"object","properties":{"faceReading":{"anyOf":[{"type":"object","properties":{"faceShape":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"shape":{"type":"string"}},"required":["primary","secondary","shape"]},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"]}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"]},"sanTing":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"shape":{"type":"string"}},"required":["primary","secondary","shape"]},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"]}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"]}},"palaces":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"shape":{"type":"string"}},"required":["primary","secondary","shape"]},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"]}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"]}},"regions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"]},"shape":{"type":"string"}},"required":["primary","secondary","shape"]},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"]}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"]}},"overallConfidence":{"type":"number"}},"required":["faceShape","sanTing","palaces","regions","overallConfidence"]},{"type":"null"}]},"summary":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","work","money","study","health"]},"label":{"type":"string"},"intro":{"type":"string"},"steer":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}},"weakRegionIds":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}}},"required":["key","label","hint","regionIds"]}}},"required":["key","label","intro","regionIds","weakRegionIds"]}}},"required":["topics"]},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lifeStage":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"ting":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string"},"note":{"type":"string"}},"required":["key","ting","label","note"]},{"type":"null"}]}},"required":["faceReading","age","lifeStage"],"additionalProperties":false},"relationshipStatus":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"occupation":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]}},"required":["clientReadingId","faceShape","elementPrimary","lifeStage","qualityLevel","appVersion"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/web-faq":{"get":{"operationId":"faq.public","tags":["faq"],"summary":"faq.public","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"question":{"type":"string"},"answer":{"type":"string"},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"showOnHome":{"type":"boolean"},"showInApp":{"type":"boolean"}},"required":["id","question","answer","categoryId","position","showOnHome","showInApp"],"additionalProperties":false}},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"blurb":{"anyOf":[{"type":"string"},{"type":"null"}]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","label","blurb","position"],"additionalProperties":false}},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","categories","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["th"]}},{"name":"surface","in":"query","required":false,"schema":{"type":"string","enum":["app"]}}]}},"/ice-coworker":{"post":{"operationId":"iceCoworker.read","tags":["iceCoworker"],"summary":"iceCoworker.read","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"faceCompat":{"type":"object","properties":{"elementA":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementATh":{"type":"string"},"elementB":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementBTh":{"type":"string"},"relation":{"type":"string","enum":["aGeneratesB","bGeneratesA","aControlsB","bControlsA","same"]},"relationTh":{"type":"string"},"headline":{"type":"string"},"outputs":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["compat","strength","communication","caution"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"disclaimer":{"type":"string"}},"required":["elementA","elementATh","elementB","elementBTh","relation","relationTh","headline","outputs","disclaimer"],"additionalProperties":false},"rolePower":{"type":"object","properties":{"available":{"type":"boolean"},"approximate":{"type":"boolean","const":false},"category":{"type":"string","enum":["peer","aDirectsB","bDirectsA","aGeneratesB","bGeneratesA"]},"bToA":{"type":"object","properties":{"idx":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"gist":{"type":"string"}},"required":["idx","cn","th","gist"],"additionalProperties":false},"aToB":{"type":"object","properties":{"idx":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"gist":{"type":"string"}},"required":["idx","cn","th","gist"],"additionalProperties":false},"decisionLead":{"type":"string","enum":["a","b","both"]},"executeLead":{"type":"string","enum":["a","b","both"]},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["delegate","thinkAct","moneyPower","division"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"note":{"type":"string"}},"required":["available","approximate","topics"],"additionalProperties":false},"relationshipType":{"type":"string","enum":["subordinate","teammate","employee","boss","partner","businessPartner","coworker","other"]}},"required":["faceCompat","rolePower","relationshipType"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"personA":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"]},"personB":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"]},"relationshipType":{"type":"string","enum":["subordinate","teammate","employee","boss","partner","businessPartner","coworker","other"]}},"required":["personA","personB","relationshipType"]}}}},"security":[{"bearerAuth":[]}]}},"/ice-sompong":{"post":{"operationId":"iceSompong.read","tags":["iceSompong"],"summary":"iceSompong.read","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"faceCompat":{"type":"object","properties":{"elementA":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementATh":{"type":"string"},"elementB":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementBTh":{"type":"string"},"relation":{"type":"string","enum":["aGeneratesB","bGeneratesA","aControlsB","bControlsA","same"]},"relationTh":{"type":"string"},"headline":{"type":"string"},"outputs":{"minItems":6,"maxItems":6,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["support","caution","money","communication","home","growth"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"disclaimer":{"type":"string"}},"required":["elementA","elementATh","elementB","elementBTh","relation","relationTh","headline","outputs","disclaimer"],"additionalProperties":false},"timing":{"type":"object","properties":{"available":{"type":"boolean"},"approximate":{"type":"boolean"},"windows":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["start","clarify","marriage","caution"]},"label":{"type":"string"},"yearRange":{"type":"string"},"note":{"type":"string"},"present":{"type":"boolean"}},"required":["kind","label","yearRange","note","present"],"additionalProperties":false}},"note":{"type":"string"}},"required":["available","approximate","windows"],"additionalProperties":false},"compatibility":{"type":"object","properties":{"percent":{"type":"integer","minimum":45,"maximum":95},"label":{"type":"string"}},"required":["percent","label"],"additionalProperties":false},"bond":{"type":"string","enum":["crush","talking","partner","married","friend","boss","subordinate","teammate"]},"bondGroup":{"type":"string","enum":["couple","work","friend"]},"historyId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"topicIcons":{"type":"object","properties":{"overview":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"iconUrl":{"type":"string"},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"key":{"type":"string","minLength":1}},"required":["title","iconUrl","iconWidth","iconHeight","key"],"additionalProperties":false}},"fun":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"iconUrl":{"type":"string"},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"key":{"type":"string","minLength":1}},"required":["title","iconUrl","iconWidth","iconHeight","key"],"additionalProperties":false}}},"required":["overview","fun"],"additionalProperties":false}},"required":["faceCompat","timing","historyId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"personA":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"]},"personB":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"]},"bond":{"type":"string","enum":["crush","talking","partner","married","friend","boss","subordinate","teammate"]},"predictId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consentCopyVersion":{"type":"string","minLength":1,"maxLength":20},"consentCopyText":{"type":"string","minLength":1,"maxLength":1000},"consent":{"type":"boolean","const":true}},"required":["personA","personB","consent"]}}}},"security":[{"bearerAuth":[]}]}},"/ice-sompong/fun":{"post":{"operationId":"iceSompong.readFun","tags":["iceSompong"],"summary":"iceSompong.readFun","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sections":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["homemaker","fightStyle","fightFreq","whoApologizes","moneyHolder","jealousy","cutest","workCarrier","meetingStyle","chatReply","deadlineMode","snackDuty","rescuer","bestCombo","planMaker","lateOne","foodPick","billSplit","chatStyle","tripMode","bestPart"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"footer":{"type":"string"}},"required":["sections","footer"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"personA":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"]},"personB":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"]},"bond":{"type":"string","enum":["crush","talking","partner","married","friend","boss","subordinate","teammate"]},"predictId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consentCopyVersion":{"type":"string","minLength":1,"maxLength":20},"consentCopyText":{"type":"string","minLength":1,"maxLength":1000},"consent":{"type":"boolean","const":true},"relationshipStatus":{"type":"string","enum":["single","talking","partnered","married","other"]}},"required":["personA","personB","consent"]}}}},"security":[{"bearerAuth":[]}]}},"/ice-sompong/options":{"get":{"operationId":"iceSompong.options","tags":["iceSompong"],"summary":"iceSompong.options","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"bonds":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["crush","talking","partner","married","friend","boss","subordinate","teammate"]},"title":{"type":"string"},"bondGroup":{"type":"string","enum":["couple","work","friend"]},"profileStatus":{"anyOf":[{"type":"string","enum":["single","talking","partnered","married","other"]},{"type":"null"}]}},"required":["key","title","bondGroup","profileStatus"],"additionalProperties":false}},"occupationGroups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"occupations":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"familyKey":{"type":"string"},"familyTitle":{"type":"string"}},"required":["title","familyKey","familyTitle"],"additionalProperties":false}}},"required":["key","title","occupations"],"additionalProperties":false}}},"required":["bonds","occupationGroups"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/ice-sompong/history":{"get":{"operationId":"iceSompong.history","tags":["iceSompong"],"summary":"iceSompong.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"photoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconPath":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}}],"security":[{"bearerAuth":[]}]}},"/ice-sompong/history/{id}":{"get":{"operationId":"iceSompong.historyGet","tags":["iceSompong"],"summary":"iceSompong.historyGet","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"photoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconPath":{"type":"string"},"partnerPhotoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"type":"object","properties":{"faceCompat":{"type":"object","properties":{"elementA":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementATh":{"type":"string"},"elementB":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementBTh":{"type":"string"},"relation":{"type":"string","enum":["aGeneratesB","bGeneratesA","aControlsB","bControlsA","same"]},"relationTh":{"type":"string"},"headline":{"type":"string"},"outputs":{"minItems":6,"maxItems":6,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["support","caution","money","communication","home","growth"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"disclaimer":{"type":"string"}},"required":["elementA","elementATh","elementB","elementBTh","relation","relationTh","headline","outputs","disclaimer"],"additionalProperties":false},"timing":{"type":"object","properties":{"available":{"type":"boolean"},"approximate":{"type":"boolean"},"windows":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["start","clarify","marriage","caution"]},"label":{"type":"string"},"yearRange":{"type":"string"},"note":{"type":"string"},"present":{"type":"boolean"}},"required":["kind","label","yearRange","note","present"],"additionalProperties":false}},"note":{"type":"string"}},"required":["available","approximate","windows"],"additionalProperties":false},"compatibility":{"type":"object","properties":{"percent":{"type":"integer","minimum":45,"maximum":95},"label":{"type":"string"}},"required":["percent","label"],"additionalProperties":false},"bond":{"type":"string","enum":["crush","talking","partner","married","friend","boss","subordinate","teammate"]},"bondGroup":{"type":"string","enum":["couple","work","friend"]}},"required":["faceCompat","timing"],"additionalProperties":false},"personA":{"anyOf":[{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"],"additionalProperties":false},{"type":"null"}]},"personB":{"anyOf":[{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"age":{"type":"integer","minimum":1,"maximum":120}},"required":["faceShapeLabel"],"additionalProperties":false},{"type":"null"}]},"fun":{"anyOf":[{"type":"object","properties":{"sections":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["homemaker","fightStyle","fightFreq","whoApologizes","moneyHolder","jealousy","cutest","workCarrier","meetingStyle","chatReply","deadlineMode","snackDuty","rescuer","bestCombo","planMaker","lateOne","foodPick","billSplit","chatStyle","tripMode","bestPart"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"footer":{"type":"string"}},"required":["sections","footer"],"additionalProperties":false},{"type":"null"}]},"topicIcons":{"type":"object","properties":{"overview":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"iconUrl":{"type":"string"},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"key":{"type":"string","minLength":1}},"required":["title","iconUrl","iconWidth","iconHeight","key"],"additionalProperties":false}},"fun":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"iconUrl":{"type":"string"},"iconWidth":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"iconHeight":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"key":{"type":"string","minLength":1}},"required":["title","iconUrl","iconWidth","iconHeight","key"],"additionalProperties":false}}},"required":["overview","fun"],"additionalProperties":false}},"required":["id","createdAt","result","personA","personB","fun"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"iceSompong.historyDelete","tags":["iceSompong"],"summary":"iceSompong.historyDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/ice-sompong/history/{id}/fun":{"post":{"operationId":"iceSompong.historyFun","tags":["iceSompong"],"summary":"iceSompong.historyFun","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sections":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["homemaker","fightStyle","fightFreq","whoApologizes","moneyHolder","jealousy","cutest","workCarrier","meetingStyle","chatReply","deadlineMode","snackDuty","rescuer","bestCombo","planMaker","lateOne","foodPick","billSplit","chatStyle","tripMode","bestPart"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}},"footer":{"type":"string"}},"required":["sections","footer"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"relationshipStatus":{"type":"string","enum":["single","talking","partnered","married","other"]}}}}}},"security":[{"bearerAuth":[]}]}},"/ice-sompong/history/{id}/photo":{"post":{"operationId":"iceSompong.historyPhoto","tags":["iceSompong"],"summary":"iceSompong.historyPhoto","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"photoUrl":{"type":"string"}},"required":["photoUrl"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"person":{"default":"a","type":"string","enum":["a","b"]},"copyVersion":{"type":"string","minLength":1,"maxLength":20},"copyText":{"type":"string","minLength":1,"maxLength":1000}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"iceSompong.historyPhotoDelete","tags":["iceSompong"],"summary":"iceSompong.historyPhotoDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"person","in":"query","required":false,"schema":{"default":"a","type":"string","enum":["a","b"]}}],"security":[{"bearerAuth":[]}]}},"/ice-soulmate":{"post":{"operationId":"iceSoulmate.read","tags":["iceSoulmate"],"summary":"iceSoulmate.read","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"userElement":{"type":"string","enum":["wood","fire","earth","metal","water"]},"userElementTh":{"type":"string"},"headline":{"type":"string"},"ideal":{"type":"object","properties":{"element":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementTh":{"type":"string"},"face":{"type":"string"},"personality":{"type":"string"},"thinking":{"type":"string"},"communication":{"type":"string"},"ageRange":{"type":"string"},"relationshipStyle":{"type":"string"},"why":{"type":"string"}},"required":["element","elementTh","face","personality","thinking","communication","ageRange","relationshipStyle","why"],"additionalProperties":false},"caution":{"type":"object","properties":{"element":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementTh":{"type":"string"},"face":{"type":"string"},"conflict":{"type":"string"},"communication":{"type":"string"},"leadership":{"type":"string"},"agreement":{"type":"string"}},"required":["element","elementTh","face","conflict","communication","leadership","agreement"],"additionalProperties":false},"bazi":{"type":"object","properties":{"available":{"type":"boolean"},"favorable":{"type":"array","items":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"favorableTh":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["available","favorable","favorableTh","note"],"additionalProperties":false}},"required":["userElement","userElementTh","headline","ideal","caution"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"predictId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["faceShapeLabel"]}}}},"security":[{"bearerAuth":[]}]}},"/ice-thoughts":{"post":{"operationId":"iceThoughts.read","tags":["iceThoughts"],"summary":"iceThoughts.read","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"dateKey":{"type":"string"},"relationship":{"type":"string","enum":["crush","partner","friend","ex","boss","subordinate","newAcquaintance","senior","junior","pastTalk"]},"mood":{"type":"string","enum":["sweet","cheeky","twist","mysterious","teaseWork","teaseMoney","teaseLove"]},"moodLabel":{"type":"string"},"line":{"type":"string"},"shareText":{"type":"string"},"quota":{"type":"object","properties":{"dateKey":{"type":"string"},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"cap":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":0,"maximum":9007199254740991},"canDraw":{"type":"boolean"},"unlimited":{"type":"boolean"},"referralCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"inviteCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"inviteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dateKey","used","cap","remaining","canDraw","referralCount","inviteCode","inviteUrl"],"additionalProperties":false}},"required":["dateKey","relationship","mood","moodLabel","line","shareText","quota"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"faceShapeLabel":{"type":"string","minLength":1,"maxLength":200},"relationship":{"type":"string","enum":["crush","partner","friend","ex","boss","subordinate","newAcquaintance","senior","junior","pastTalk"]},"faceSignals":{"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"faceImage":{"type":"string","minLength":1,"maxLength":1500000},"consent":{"type":"boolean","const":true}},"required":["faceShapeLabel","relationship"]}}}},"security":[{"bearerAuth":[]}]}},"/ice-thoughts/quota":{"get":{"operationId":"iceThoughts.quota","tags":["iceThoughts"],"summary":"iceThoughts.quota","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"dateKey":{"type":"string"},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"cap":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":0,"maximum":9007199254740991},"canDraw":{"type":"boolean"},"unlimited":{"type":"boolean"},"referralCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"inviteCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"inviteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dateKey","used","cap","remaining","canDraw","referralCount","inviteCode","inviteUrl"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/membership/me":{"get":{"operationId":"membership.me","tags":["membership"],"summary":"membership.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"isMember":{"type":"boolean"},"plan":{"anyOf":[{"type":"string","const":"mu_plus"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"source":{"anyOf":[{"type":"string","enum":["appstore","googleplay","manual"]},{"type":"null"}]},"storeProductId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["isMember","plan","expiresAt","autoRenew","source","storeProductId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/membership/verify":{"post":{"operationId":"membership.verify","tags":["membership"],"summary":"membership.verify","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"isMember":{"type":"boolean"},"plan":{"anyOf":[{"type":"string","const":"mu_plus"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"source":{"anyOf":[{"type":"string","enum":["appstore","googleplay","manual"]},{"type":"null"}]},"storeProductId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["isMember","plan","expiresAt","autoRenew","source","storeProductId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["appstore","googleplay"]},"storeSubscriptionId":{"type":"string","minLength":1,"maxLength":4096}},"required":["source","storeSubscriptionId"]}}}},"security":[{"bearerAuth":[]}]}},"/membership/restore":{"post":{"operationId":"membership.restore","tags":["membership"],"summary":"membership.restore","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"isMember":{"type":"boolean"},"plan":{"anyOf":[{"type":"string","const":"mu_plus"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"source":{"anyOf":[{"type":"string","enum":["appstore","googleplay","manual"]},{"type":"null"}]},"storeProductId":{"anyOf":[{"type":"string"},{"type":"null"}]},"restored":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["isMember","plan","expiresAt","autoRenew","source","storeProductId","restored"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `payment` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchases":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["appstore","googleplay"]},"storeSubscriptionId":{"type":"string","minLength":1,"maxLength":4096}},"required":["source","storeSubscriptionId"]}}},"required":["purchases"]}}}},"security":[{"bearerAuth":[]}]}},"/membership/dev-grant":{"post":{"operationId":"membership.devGrant","tags":["membership"],"summary":"membership.devGrant","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"isMember":{"type":"boolean"},"plan":{"anyOf":[{"type":"string","const":"mu_plus"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"source":{"anyOf":[{"type":"string","enum":["appstore","googleplay","manual"]},{"type":"null"}]},"storeProductId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["isMember","plan","expiresAt","autoRenew","source","storeProductId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"boolean"}},"required":["member"]}}}},"security":[{"bearerAuth":[]}]}},"/usage/me":{"get":{"operationId":"usage.me","tags":["usage"],"summary":"usage.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"forDate":{"type":"string"},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"cap":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":0,"maximum":9007199254740991},"imagesUsed":{"type":"integer","minimum":0,"maximum":9007199254740991},"imageCap":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"isMember":{"type":"boolean"},"graceDaysLeft":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["forDate","used","cap","remaining","imagesUsed","imageCap","resetAt","isMember","graceDaysLeft"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/usage/grace":{"post":{"operationId":"usage.grace","tags":["usage"],"summary":"usage.grace","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"granted":{"type":"boolean"},"usage":{"type":"object","properties":{"forDate":{"type":"string"},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"cap":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":0,"maximum":9007199254740991},"imagesUsed":{"type":"integer","minimum":0,"maximum":9007199254740991},"imageCap":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"isMember":{"type":"boolean"},"graceDaysLeft":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["forDate","used","cap","remaining","imagesUsed","imageCap","resetAt","isMember","graceDaysLeft"],"additionalProperties":false}},"required":["granted","usage"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"security":[{"bearerAuth":[]}]}},"/ai/report":{"post":{"operationId":"ai.report","tags":["ai"],"summary":"ai.report","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"alreadyReported":{"type":"boolean"}},"required":["ok","alreadyReported"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":40},"refId":{"type":"string","minLength":1,"maxLength":200},"reason":{"type":"string","enum":["offensive","harmful_advice","inaccurate","nonsense","other","off_topic","too_broad","hard_to_read"]},"reasons":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","enum":["offensive","harmful_advice","inaccurate","nonsense","other","off_topic","too_broad","hard_to_read"]}},"note":{"type":"string","maxLength":500}},"required":["kind","refId","reason"]}}}},"security":[{"bearerAuth":[]}]}},"/ai/consent":{"get":{"operationId":"ai.consentMe","tags":["ai"],"summary":"ai.consentMe","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"consents":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ai_processing","face_photo","face_photo_storage","chat_screenshot"]},"granted":{"type":"boolean"},"copyVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"grantedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","granted","copyVersion","grantedAt"],"additionalProperties":false}},"copyVersion":{"type":"string"},"needsPrompt":{"type":"boolean"}},"required":["consents","copyVersion","needsPrompt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"ai.consentSet","tags":["ai"],"summary":"ai.consentSet","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"consents":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ai_processing","face_photo","face_photo_storage","chat_screenshot"]},"granted":{"type":"boolean"},"copyVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"grantedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","granted","copyVersion","grantedAt"],"additionalProperties":false}},"copyVersion":{"type":"string"},"needsPrompt":{"type":"boolean"}},"required":["consents","copyVersion","needsPrompt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["ai_processing","face_photo","face_photo_storage","chat_screenshot"]},"granted":{"type":"boolean"}},"required":["kind","granted"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/thai-chart":{"post":{"operationId":"divination.thaiChart","tags":["divination"],"summary":"divination.thaiChart","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"chart":{"type":"object","properties":{"birthDayThai":{"type":"string"},"birthDayName":{"type":"string"},"zodiacYear":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"ascendant":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"ascendantDegree":{"type":"integer","minimum":0,"maximum":29},"ascendantLipda":{"type":"integer","minimum":0,"maximum":59},"positions":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":0,"maximum":9},"nameTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lipda":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["planet","nameTh","zodiac","degree","lipda"],"additionalProperties":false}},"houses":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"house":{"type":"string"},"houseDescription":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"planets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"planetsThai":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","zodiac","planets","planetsThai"],"additionalProperties":false}},"relationships":{"type":"array","items":{"type":"object","properties":{"planetA":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetB":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nameA":{"type":"string"},"nameB":{"type":"string"},"relation":{"type":"string"},"pairGroup":{"type":"string"}},"required":["planetA","planetB","nameA","nameB","relation","pairGroup"],"additionalProperties":false}},"thaksa":{"type":"array","items":{"type":"object","properties":{"thaksa":{"type":"string"},"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"}},"required":["thaksa","planet","planetTh"],"additionalProperties":false}},"transitPositions":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":0,"maximum":9},"nameTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lipda":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["planet","nameTh","zodiac","degree","lipda"],"additionalProperties":false}},"transitHouses":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"house":{"type":"string"},"houseDescription":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"planets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"planetsThai":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","zodiac","planets","planetsThai"],"additionalProperties":false}}},"required":["birthDayThai","birthDayName","zodiacYear","zodiac","ascendant","ascendantDegree","ascendantLipda","positions","houses","relationships","thaksa","transitPositions","transitHouses"],"additionalProperties":false},"profile":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["request","profile"]},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"birthPlace":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["source","birthDate","birthTime","gender","provinceCode","districtCode","birthPlace"],"additionalProperties":false},{"type":"null"}]}},"required":["chart"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"gender":{"type":"string","enum":["male","female"]},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"},"mode":{"type":"string","enum":["suriyayart","lahiri"]},"includeProfile":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/matching":{"post":{"operationId":"divination.matching","tags":["divination"],"summary":"divination.matching","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"result":{"type":"object","properties":{"charts":{"type":"object","properties":{"user":{"type":"object","properties":{"asc":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"pins":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"p":{"type":"integer","minimum":0,"maximum":9},"z":{"type":"integer","minimum":1,"maximum":12}},"required":["p","z"],"additionalProperties":false}}},"required":["asc","pins"],"additionalProperties":false},"partner":{"type":"object","properties":{"asc":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"pins":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"p":{"type":"integer","minimum":0,"maximum":9},"z":{"type":"integer","minimum":1,"maximum":12}},"required":["p","z"],"additionalProperties":false}}},"required":["asc","pins"],"additionalProperties":false}},"required":["user","partner"],"additionalProperties":false},"userStar":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":8},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"partnerStar":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":8},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"userNaksatr":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"nameTh":{"type":"string"},"element":{"type":"string","enum":["water","earth","wood","gold","fire","iron"]},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"partnerNaksatr":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"nameTh":{"type":"string"},"element":{"type":"string","enum":["water","earth","wood","gold","fire","iron"]},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"userLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"partnerLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"axes":{"type":"array","items":{"type":"object","properties":{"axis":{"type":"string","enum":["year","day","month","lagna","moon"]},"titleTh":{"type":"string"},"relation":{"type":"string","enum":["mitra","sompon","that","satru","neutral"]},"relationLabelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["scored","silent","excluded"]},"excludedReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign"]},"houses":{"type":"array","prefixItems":[{"type":"integer","minimum":1,"maximum":12},{"type":"integer","minimum":1,"maximum":12}]},"noteTh":{"type":"string"},"rarityPercent":{"type":"number"},"scoreLo":{"type":"number"},"scoreHi":{"type":"number"}},"required":["axis","titleTh","relationLabelTh","userValueTh","partnerValueTh","score"],"additionalProperties":false}},"sompong":{"type":"object","properties":{"raw":{"type":"number"},"band":{"type":"string","enum":["pang","chemi","reuay","tune","apart"]},"bandLabelTh":{"type":"string"},"supportCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"neutralCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conflictCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excludedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["raw","band","bandLabelTh","supportCount","neutralCount","conflictCount","counted","excludedCount"],"additionalProperties":false},"dimensions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","longterm","hierarchy","coworker"]},"titleTh":{"type":"string"},"leadTh":{"type":"string"},"sourceTh":{"type":"string"},"raw":{"type":"number"},"rawLo":{"type":"number"},"rawHi":{"type":"number"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentLo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentHi":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"band":{"type":"string","enum":["pang","chemi","reuay","tune","apart"]},"bandLabelTh":{"type":"string"},"bandTextTh":{"type":"string"},"supportCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"neutralCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conflictCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excludedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parts":{"type":"array","items":{"type":"object","properties":{"material":{"type":"string","enum":["year","day","month","lagna","moon","strength","roleHouse","peerHouse","atthachak"]},"titleTh":{"type":"string"},"labelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"lo":{"anyOf":[{"type":"number"},{"type":"null"}]},"hi":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["scored","silent","excluded"]},"excludedReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign","noChart"]},"noteTh":{"type":"string"},"leadSide":{"type":"string","enum":["user","partner","equal"]}},"required":["material","titleTh","labelTh","userValueTh","partnerValueTh","score","lo","hi","state","noteTh"],"additionalProperties":false}},"available":{"type":"boolean"},"unavailableReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign","noChart"]},"leadSide":{"type":"string","enum":["user","partner","equal"]}},"required":["key","titleTh","leadTh","sourceTh","raw","rawLo","rawHi","percent","percentLo","percentHi","band","bandLabelTh","bandTextTh","supportCount","neutralCount","conflictCount","counted","excludedCount","parts","available"],"additionalProperties":false}},"atthachak":{"type":"object","properties":{"userToPartner":{"type":"object","properties":{"sri":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false},"kalakini":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false}},"required":["sri","kalakini"],"additionalProperties":false},"partnerToUser":{"type":"object","properties":{"sri":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false},"kalakini":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false}},"required":["sri","kalakini"],"additionalProperties":false},"sriMatchCount":{"type":"integer","minimum":0,"maximum":2},"kalakiniMatchCount":{"type":"integer","minimum":0,"maximum":2},"rarityPercent":{"type":"number"},"headlineKey":{"type":"string","enum":["sriBothClean","sriBoth","sriOne","kalakiniOnly","quiet"]}},"required":["userToPartner","partnerToUser","sriMatchCount","kalakiniMatchCount","rarityPercent","headlineKey"],"additionalProperties":false},"scoreYear":{"type":"number"},"scoreDay":{"type":"number"},"scoreMonth":{"anyOf":[{"type":"number"},{"type":"null"}]},"userWeekday":{"type":"object","properties":{"key":{"type":"string","enum":["sun","mon","tue","wedDay","thu","fri","sat","rahu"]},"labelTh":{"type":"string"}},"required":["key","labelTh"],"additionalProperties":false},"partnerWeekday":{"type":"object","properties":{"key":{"type":"string","enum":["sun","mon","tue","wedDay","thu","fri","sat","rahu"]},"labelTh":{"type":"string"}},"required":["key","labelTh"],"additionalProperties":false},"userLife":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partnerLife":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userElement":{"type":"object","properties":{"value":{"type":"string","enum":["fire","water","air","earth"]},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"partnerElement":{"type":"object","properties":{"value":{"type":"string","enum":["fire","water","air","earth"]},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"houseUserToPartner":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"housePartnerToUser":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scoreWeekday":{"type":"number"},"scoreElement":{"type":"number"},"scoreLife":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["feeling","love","work","role","obstacle"]},"title":{"type":"string"},"subtitle":{"type":"string"},"meaning":{"type":"string"},"yearScore":{"type":"number"},"dayScore":{"type":"number"},"monthScore":{"type":"number"},"houseScore":{"type":"number"},"bonusHouse59":{"type":"number"},"rawScore":{"type":"number"},"finalScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentInt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","title","subtitle","meaning","yearScore","dayScore","monthScore","houseScore","bonusHouse59","rawScore","finalScore","percentInt"],"additionalProperties":false}},"overallPercent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"string"}},"required":["scoreYear","scoreDay","scoreMonth","userWeekday","partnerWeekday","userLife","partnerLife","userZodiac","partnerZodiac","userAscendant","partnerAscendant","userElement","partnerElement","houseUserToPartner","housePartnerToUser","scoreWeekday","scoreElement","scoreLife","results","overallPercent","summary"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["birthDate"]},"partner":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"name":{"type":"string","minLength":1,"maxLength":30},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"},"photoUrl":{"type":"string","maxLength":1024,"format":"uri"},"gender":{"type":"string","enum":["male","female"]}},"required":["birthDate"]}},"required":["partner"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/matching/history":{"get":{"operationId":"divination.matchingHistory","tags":["divination"],"summary":"divination.matchingHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"partner":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"photoUrl":{"anyOf":[{"type":"string","maxLength":1024,"format":"uri"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]}},"required":["birthDate","birthTime","provinceCode","districtCode"],"additionalProperties":false},"result":{"type":"object","properties":{"charts":{"type":"object","properties":{"user":{"type":"object","properties":{"asc":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"pins":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"p":{"type":"integer","minimum":0,"maximum":9},"z":{"type":"integer","minimum":1,"maximum":12}},"required":["p","z"],"additionalProperties":false}}},"required":["asc","pins"],"additionalProperties":false},"partner":{"type":"object","properties":{"asc":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"pins":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"p":{"type":"integer","minimum":0,"maximum":9},"z":{"type":"integer","minimum":1,"maximum":12}},"required":["p","z"],"additionalProperties":false}}},"required":["asc","pins"],"additionalProperties":false}},"required":["user","partner"],"additionalProperties":false},"userStar":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":8},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"partnerStar":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":8},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"userNaksatr":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"nameTh":{"type":"string"},"element":{"type":"string","enum":["water","earth","wood","gold","fire","iron"]},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"partnerNaksatr":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"nameTh":{"type":"string"},"element":{"type":"string","enum":["water","earth","wood","gold","fire","iron"]},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"userLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"partnerLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"axes":{"type":"array","items":{"type":"object","properties":{"axis":{"type":"string","enum":["year","day","month","lagna","moon"]},"titleTh":{"type":"string"},"relation":{"type":"string","enum":["mitra","sompon","that","satru","neutral"]},"relationLabelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["scored","silent","excluded"]},"excludedReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign"]},"houses":{"type":"array","prefixItems":[{"type":"integer","minimum":1,"maximum":12},{"type":"integer","minimum":1,"maximum":12}]},"noteTh":{"type":"string"},"rarityPercent":{"type":"number"},"scoreLo":{"type":"number"},"scoreHi":{"type":"number"}},"required":["axis","titleTh","relationLabelTh","userValueTh","partnerValueTh","score"],"additionalProperties":false}},"sompong":{"type":"object","properties":{"raw":{"type":"number"},"band":{"type":"string","enum":["pang","chemi","reuay","tune","apart"]},"bandLabelTh":{"type":"string"},"supportCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"neutralCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conflictCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excludedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["raw","band","bandLabelTh","supportCount","neutralCount","conflictCount","counted","excludedCount"],"additionalProperties":false},"dimensions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","longterm","hierarchy","coworker"]},"titleTh":{"type":"string"},"leadTh":{"type":"string"},"sourceTh":{"type":"string"},"raw":{"type":"number"},"rawLo":{"type":"number"},"rawHi":{"type":"number"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentLo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentHi":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"band":{"type":"string","enum":["pang","chemi","reuay","tune","apart"]},"bandLabelTh":{"type":"string"},"bandTextTh":{"type":"string"},"supportCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"neutralCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conflictCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excludedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parts":{"type":"array","items":{"type":"object","properties":{"material":{"type":"string","enum":["year","day","month","lagna","moon","strength","roleHouse","peerHouse","atthachak"]},"titleTh":{"type":"string"},"labelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"lo":{"anyOf":[{"type":"number"},{"type":"null"}]},"hi":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["scored","silent","excluded"]},"excludedReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign","noChart"]},"noteTh":{"type":"string"},"leadSide":{"type":"string","enum":["user","partner","equal"]}},"required":["material","titleTh","labelTh","userValueTh","partnerValueTh","score","lo","hi","state","noteTh"],"additionalProperties":false}},"available":{"type":"boolean"},"unavailableReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign","noChart"]},"leadSide":{"type":"string","enum":["user","partner","equal"]}},"required":["key","titleTh","leadTh","sourceTh","raw","rawLo","rawHi","percent","percentLo","percentHi","band","bandLabelTh","bandTextTh","supportCount","neutralCount","conflictCount","counted","excludedCount","parts","available"],"additionalProperties":false}},"atthachak":{"type":"object","properties":{"userToPartner":{"type":"object","properties":{"sri":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false},"kalakini":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false}},"required":["sri","kalakini"],"additionalProperties":false},"partnerToUser":{"type":"object","properties":{"sri":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false},"kalakini":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false}},"required":["sri","kalakini"],"additionalProperties":false},"sriMatchCount":{"type":"integer","minimum":0,"maximum":2},"kalakiniMatchCount":{"type":"integer","minimum":0,"maximum":2},"rarityPercent":{"type":"number"},"headlineKey":{"type":"string","enum":["sriBothClean","sriBoth","sriOne","kalakiniOnly","quiet"]}},"required":["userToPartner","partnerToUser","sriMatchCount","kalakiniMatchCount","rarityPercent","headlineKey"],"additionalProperties":false},"scoreYear":{"type":"number"},"scoreDay":{"type":"number"},"scoreMonth":{"anyOf":[{"type":"number"},{"type":"null"}]},"userWeekday":{"type":"object","properties":{"key":{"type":"string","enum":["sun","mon","tue","wedDay","thu","fri","sat","rahu"]},"labelTh":{"type":"string"}},"required":["key","labelTh"],"additionalProperties":false},"partnerWeekday":{"type":"object","properties":{"key":{"type":"string","enum":["sun","mon","tue","wedDay","thu","fri","sat","rahu"]},"labelTh":{"type":"string"}},"required":["key","labelTh"],"additionalProperties":false},"userLife":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partnerLife":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userElement":{"type":"object","properties":{"value":{"type":"string","enum":["fire","water","air","earth"]},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"partnerElement":{"type":"object","properties":{"value":{"type":"string","enum":["fire","water","air","earth"]},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"houseUserToPartner":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"housePartnerToUser":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scoreWeekday":{"type":"number"},"scoreElement":{"type":"number"},"scoreLife":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["feeling","love","work","role","obstacle"]},"title":{"type":"string"},"subtitle":{"type":"string"},"meaning":{"type":"string"},"yearScore":{"type":"number"},"dayScore":{"type":"number"},"monthScore":{"type":"number"},"houseScore":{"type":"number"},"bonusHouse59":{"type":"number"},"rawScore":{"type":"number"},"finalScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentInt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","title","subtitle","meaning","yearScore","dayScore","monthScore","houseScore","bonusHouse59","rawScore","finalScore","percentInt"],"additionalProperties":false}},"overallPercent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"string"}},"required":["scoreYear","scoreDay","scoreMonth","userWeekday","partnerWeekday","userLife","partnerLife","userZodiac","partnerZodiac","userAscendant","partnerAscendant","userElement","partnerElement","houseUserToPartner","housePartnerToUser","scoreWeekday","scoreElement","scoreLife","results","overallPercent","summary"],"additionalProperties":false},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"createdAt":{"type":"string"}},"required":["id","name","partner","result","dateKey","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/matching/history/{id}":{"patch":{"operationId":"divination.matchingUpdate","tags":["divination"],"summary":"divination.matchingUpdate","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"result":{"type":"object","properties":{"charts":{"type":"object","properties":{"user":{"type":"object","properties":{"asc":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"pins":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"p":{"type":"integer","minimum":0,"maximum":9},"z":{"type":"integer","minimum":1,"maximum":12}},"required":["p","z"],"additionalProperties":false}}},"required":["asc","pins"],"additionalProperties":false},"partner":{"type":"object","properties":{"asc":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"pins":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"p":{"type":"integer","minimum":0,"maximum":9},"z":{"type":"integer","minimum":1,"maximum":12}},"required":["p","z"],"additionalProperties":false}}},"required":["asc","pins"],"additionalProperties":false}},"required":["user","partner"],"additionalProperties":false},"userStar":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":8},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"partnerStar":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":8},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"userNaksatr":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"nameTh":{"type":"string"},"element":{"type":"string","enum":["water","earth","wood","gold","fire","iron"]},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"partnerNaksatr":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"nameTh":{"type":"string"},"element":{"type":"string","enum":["water","earth","wood","gold","fire","iron"]},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"userLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"partnerLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"axes":{"type":"array","items":{"type":"object","properties":{"axis":{"type":"string","enum":["year","day","month","lagna","moon"]},"titleTh":{"type":"string"},"relation":{"type":"string","enum":["mitra","sompon","that","satru","neutral"]},"relationLabelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["scored","silent","excluded"]},"excludedReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign"]},"houses":{"type":"array","prefixItems":[{"type":"integer","minimum":1,"maximum":12},{"type":"integer","minimum":1,"maximum":12}]},"noteTh":{"type":"string"},"rarityPercent":{"type":"number"},"scoreLo":{"type":"number"},"scoreHi":{"type":"number"}},"required":["axis","titleTh","relationLabelTh","userValueTh","partnerValueTh","score"],"additionalProperties":false}},"sompong":{"type":"object","properties":{"raw":{"type":"number"},"band":{"type":"string","enum":["pang","chemi","reuay","tune","apart"]},"bandLabelTh":{"type":"string"},"supportCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"neutralCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conflictCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excludedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["raw","band","bandLabelTh","supportCount","neutralCount","conflictCount","counted","excludedCount"],"additionalProperties":false},"dimensions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","longterm","hierarchy","coworker"]},"titleTh":{"type":"string"},"leadTh":{"type":"string"},"sourceTh":{"type":"string"},"raw":{"type":"number"},"rawLo":{"type":"number"},"rawHi":{"type":"number"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentLo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentHi":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"band":{"type":"string","enum":["pang","chemi","reuay","tune","apart"]},"bandLabelTh":{"type":"string"},"bandTextTh":{"type":"string"},"supportCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"neutralCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conflictCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excludedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parts":{"type":"array","items":{"type":"object","properties":{"material":{"type":"string","enum":["year","day","month","lagna","moon","strength","roleHouse","peerHouse","atthachak"]},"titleTh":{"type":"string"},"labelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"lo":{"anyOf":[{"type":"number"},{"type":"null"}]},"hi":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["scored","silent","excluded"]},"excludedReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign","noChart"]},"noteTh":{"type":"string"},"leadSide":{"type":"string","enum":["user","partner","equal"]}},"required":["material","titleTh","labelTh","userValueTh","partnerValueTh","score","lo","hi","state","noteTh"],"additionalProperties":false}},"available":{"type":"boolean"},"unavailableReason":{"type":"string","enum":["birthTimeUnknown","genderUnknown","outOfRange","noMoonSign","noChart"]},"leadSide":{"type":"string","enum":["user","partner","equal"]}},"required":["key","titleTh","leadTh","sourceTh","raw","rawLo","rawHi","percent","percentLo","percentHi","band","bandLabelTh","bandTextTh","supportCount","neutralCount","conflictCount","counted","excludedCount","parts","available"],"additionalProperties":false}},"atthachak":{"type":"object","properties":{"userToPartner":{"type":"object","properties":{"sri":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false},"kalakini":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false}},"required":["sri","kalakini"],"additionalProperties":false},"partnerToUser":{"type":"object","properties":{"sri":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false},"kalakini":{"type":"object","properties":{"position":{"type":"string","enum":["ศรี","กาลกิณี"]},"planet":{"type":"integer","minimum":1,"maximum":8},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"type":"integer","minimum":1,"maximum":12},"houseNameTh":{"type":"string"},"noted":{"type":"boolean"},"rarityPercent":{"type":"number"}},"required":["position","planet","planetTh","zodiac","house","houseNameTh","noted","rarityPercent"],"additionalProperties":false}},"required":["sri","kalakini"],"additionalProperties":false},"sriMatchCount":{"type":"integer","minimum":0,"maximum":2},"kalakiniMatchCount":{"type":"integer","minimum":0,"maximum":2},"rarityPercent":{"type":"number"},"headlineKey":{"type":"string","enum":["sriBothClean","sriBoth","sriOne","kalakiniOnly","quiet"]}},"required":["userToPartner","partnerToUser","sriMatchCount","kalakiniMatchCount","rarityPercent","headlineKey"],"additionalProperties":false},"scoreYear":{"type":"number"},"scoreDay":{"type":"number"},"scoreMonth":{"anyOf":[{"type":"number"},{"type":"null"}]},"userWeekday":{"type":"object","properties":{"key":{"type":"string","enum":["sun","mon","tue","wedDay","thu","fri","sat","rahu"]},"labelTh":{"type":"string"}},"required":["key","labelTh"],"additionalProperties":false},"partnerWeekday":{"type":"object","properties":{"key":{"type":"string","enum":["sun","mon","tue","wedDay","thu","fri","sat","rahu"]},"labelTh":{"type":"string"}},"required":["key","labelTh"],"additionalProperties":false},"userLife":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partnerLife":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"userZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":12},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userElement":{"type":"object","properties":{"value":{"type":"string","enum":["fire","water","air","earth"]},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"partnerElement":{"type":"object","properties":{"value":{"type":"string","enum":["fire","water","air","earth"]},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"houseUserToPartner":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"housePartnerToUser":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scoreWeekday":{"type":"number"},"scoreElement":{"type":"number"},"scoreLife":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["feeling","love","work","role","obstacle"]},"title":{"type":"string"},"subtitle":{"type":"string"},"meaning":{"type":"string"},"yearScore":{"type":"number"},"dayScore":{"type":"number"},"monthScore":{"type":"number"},"houseScore":{"type":"number"},"bonusHouse59":{"type":"number"},"rawScore":{"type":"number"},"finalScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percentInt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","title","subtitle","meaning","yearScore","dayScore","monthScore","houseScore","bonusHouse59","rawScore","finalScore","percentInt"],"additionalProperties":false}},"overallPercent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"string"}},"required":["scoreYear","scoreDay","scoreMonth","userWeekday","partnerWeekday","userLife","partnerLife","userZodiac","partnerZodiac","userAscendant","partnerAscendant","userElement","partnerElement","houseUserToPartner","housePartnerToUser","scoreWeekday","scoreElement","scoreLife","results","overallPercent","summary"],"additionalProperties":false}},"required":["id","result"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":30},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"photoUrl":{"anyOf":[{"type":"string","maxLength":1024,"format":"uri"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]}},"required":["name","birthDate","birthTime","provinceCode","districtCode","photoUrl","gender"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"divination.matchingDelete","tags":["divination"],"summary":"divination.matchingDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/divination/matching/photo/upload-url":{"post":{"operationId":"divination.matchingPhotoUploadUrl","tags":["divination"],"summary":"divination.matchingPhotoUploadUrl","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"imageId":{"type":"string"}},"required":["uploadUrl","imageId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/matching/photo":{"post":{"operationId":"divination.matchingPhotoUpload","tags":["divination"],"summary":"divination.matchingPhotoUpload","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/lucky-color":{"get":{"operationId":"divination.luckyColor","tags":["divination"],"summary":"divination.luckyColor","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"day":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"dayName":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","title","dayName","colorList"],"additionalProperties":false},"wednesdayNight":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}},{"type":"null"}]},"week":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"dayName":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","title","dayName","colorList"],"additionalProperties":false}}},"required":["day","wednesdayNight","week"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"security":[{"bearerAuth":[]}]}},"/divination/phone":{"post":{"operationId":"divination.phone","tags":["divination"],"summary":"divination.phone","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"phoneMasked":{"type":"string"},"prediction":{"type":"object","properties":{"ranks":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"grade":{"type":"string"},"point":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"}},"required":["number","grade","point","detail"],"additionalProperties":false}},"sumRankPoint":{"type":"number"},"gradePoint":{"type":"number"},"allPoint":{"type":"number"},"fullPoint":{"type":"number","const":1000},"resultRank":{"type":"string"}},"required":["ranks","sumRankPoint","gradePoint","allPoint","fullPoint","resultRank"],"additionalProperties":false}},"required":["phoneMasked","prediction"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","pattern":"^0\\d{9}$"}},"required":["phone"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/dream":{"post":{"operationId":"divination.dream","tags":["divination"],"summary":"divination.dream","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"question":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"meaning":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"meaning":{"type":"string"}},"required":["pattern","meaning"],"additionalProperties":false}}},"required":["keyword","aliases","meaning"],"additionalProperties":false}},"numbers":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["question","matches","numbers"],"additionalProperties":false},"prose":{"type":"string"},"summary":{"type":"string"},"quota":{"type":"object","properties":{"state":{"type":"string","enum":["ok","low","exhausted","grace"]},"remainingUses":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"canSendImage":{"type":"boolean"}},"required":["state","resetAt","canSendImage"],"additionalProperties":false}},"required":["reading"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":1000}},"required":["question"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/draw":{"post":{"operationId":"divination.tarotDraw","tags":["divination"],"summary":"divination.tarotDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cards":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":77},"name":{"type":"string"},"img":{"type":"string"},"webDetail":{"type":"string"},"sections":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"paragraphs":{"type":"array","items":{"type":"string"}},"subsections":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"paragraphs":{"type":"array","items":{"type":"string"}}},"required":["title","paragraphs"],"additionalProperties":false}}},"required":["title","paragraphs","subsections"],"additionalProperties":false}},{"type":"null"}]}},"required":["number","name","img","webDetail","sections"],"additionalProperties":false}},"sticky":{"type":"boolean"},"cardBack":{"type":"string"}},"required":["cards"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":5},"cards":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"integer","minimum":0,"maximum":77}},"question":{"type":"string","maxLength":500},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"daily":{"type":"boolean","const":true}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/lenormand/draw":{"post":{"operationId":"divination.lenormandDraw","tags":["divination"],"summary":"divination.lenormandDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"cards":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":36},"nameTh":{"type":"string"},"nameEn":{"type":"string"},"insert":{"type":"string"},"noun":{"type":"array","items":{"type":"string"}},"modifier":{"type":"array","items":{"type":"string"}},"polarity":{"type":"number"},"position":{"type":"string","enum":["left","center","right"]}},"required":["number","nameTh","nameEn","insert","noun","modifier","polarity","position"],"additionalProperties":false}},"reading":{"type":"object","properties":{"center":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":36},"label":{"type":"string"},"text":{"type":"string"}},"required":["number","label","text"],"additionalProperties":false},"pairs":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["source","trend","frame"]},"label":{"type":"string"},"left":{"type":"integer","minimum":1,"maximum":36},"right":{"type":"integer","minimum":1,"maximum":36},"gloss":{"type":"string"},"text":{"type":"string"}},"required":["role","label","left","right","gloss","text"],"additionalProperties":false}},"tone":{"type":"string","enum":["positive","mixed","challenging"]},"toneScore":{"type":"number"},"toneLabel":{"type":"string"},"closing":{"type":"string"}},"required":["center","pairs","tone","toneScore","toneLabel","closing"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","question","cards","reading","createdAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":200},"cards":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"integer","minimum":1,"maximum":36}},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["question","cards"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/triage":{"post":{"operationId":"divination.tarotTriage","tags":["divination"],"summary":"divination.tarotTriage","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok","incomplete","excess"]},"candidates":{"type":"array","items":{"type":"string"}},"target":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"type":"boolean"},"rejectMessage":{"type":"string"},"summary":{"type":"string"},"understood":{"type":"array","items":{"type":"string"}},"questionMeta":{"type":"array","items":{"type":"object","properties":{"isLove":{"type":"boolean"},"alternativeOptions":{"anyOf":[{"type":"number","const":0},{"type":"number","const":2},{"type":"number","const":3}]},"alternativeOverflow":{"type":"boolean"}},"required":["isLove","alternativeOptions","alternativeOverflow"],"additionalProperties":false}},"loveStatus":{"type":"string","enum":["alone","seeing"]},"ai":{"type":"boolean"}},"required":["status","candidates","target","missing","ai"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"situation":{"type":"string","maxLength":2000},"questions":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"target":{"type":"integer","minimum":1,"maximum":5}},"required":["questions","target"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/landing":{"get":{"operationId":"divination.tarotLanding","tags":["divination"],"summary":"divination.tarotLanding","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceTitle":{"type":"string"},"packages":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"cards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"freeBalance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ownedBalance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signupGift":{"type":"boolean"}},"required":["productId","title","cards","questions","priceMinor","currency","freeBalance","ownedBalance","signupGift"],"additionalProperties":false}},"claimedSignup":{"type":"boolean"},"freeQuotaPerMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pendingOrder":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderNo":{"type":"string"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","orderNo","productId","amountMinor","currency","createdAt"],"additionalProperties":false},{"type":"null"}]}},"required":["serviceId","serviceTitle","packages","claimedSignup","freeQuotaPerMonth","pendingOrder"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/session":{"post":{"operationId":"divination.tarotSessionStart","tags":["divination"],"summary":"divination.tarotSessionStart","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionsTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"plan":{"type":"object","properties":{"situation":{"type":"string","maxLength":2000},"bonusAdvice":{"type":"boolean"},"loveStatus":{"type":"string","enum":["alone","seeing"]},"questions":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"context":{"type":"string","maxLength":500},"variant":{"type":"string","enum":["default","alternative","relationship"]},"alternativeOptions":{"anyOf":[{"type":"number","const":2},{"type":"number","const":3}]},"loveSubcase":{"type":"string","enum":["single","taken","complicated","crush","heartbreak","undecided"]}},"required":["question"],"additionalProperties":false}}},"required":["questions"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["sessionId","productId","cards","questionsTotal","plan","createdAt"],"additionalProperties":false},"results":{"type":"array","items":{"type":"object","properties":{"questionIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"question":{"type":"string"},"cardNumbers":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"reading":{"type":"object","properties":{"perCard":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positionLabel":{"type":"string"},"cardNumber":{"type":"integer","minimum":0,"maximum":77},"name":{"type":"string"},"gist":{"type":"string"}},"required":["position","positionLabel","cardNumber","name","gist"],"additionalProperties":false}},"perQuestion":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"leansOn":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["question","answer","leansOn"],"additionalProperties":false}},"closing":{"type":"string"},"ai":{"type":"boolean"}},"required":["perCard","perQuestion","closing","ai"],"additionalProperties":false}},"required":["questionIndex","question","cardNumbers","reading"],"additionalProperties":false}}},"required":["session","results"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"plan":{"type":"object","properties":{"situation":{"type":"string","maxLength":2000},"bonusAdvice":{"type":"boolean"},"loveStatus":{"type":"string","enum":["alone","seeing"]},"questions":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"context":{"type":"string","maxLength":500},"variant":{"type":"string","enum":["default","alternative","relationship"]},"alternativeOptions":{"anyOf":[{"type":"number","const":2},{"type":"number","const":3}]},"loveSubcase":{"type":"string","enum":["single","taken","complicated","crush","heartbreak","undecided"]}},"required":["question"]}}},"required":["questions"]},"draws":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"array","items":{"type":"integer","minimum":0,"maximum":77}}},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["productId","plan","draws","idempotencyKey"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/free-reading":{"post":{"operationId":"divination.tarotFreeReading","tags":["divination"],"summary":"divination.tarotFreeReading","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ai":{"type":"boolean"},"overview":{"type":"string"},"cards":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"quota":{"type":"object","properties":{"state":{"type":"string","enum":["ok","low","exhausted","grace"]},"remainingUses":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"canSendImage":{"type":"boolean"}},"required":["state","resetAt","canSendImage"],"additionalProperties":false}},"required":["ai"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"drawId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cardNumbers":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"integer","minimum":0,"maximum":77}},"question":{"type":"string","minLength":1,"maxLength":500},"positionLabels":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["drawId","cardNumbers","question","positionLabels"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/history":{"get":{"operationId":"divination.tarotHistory","tags":["divination"],"summary":"divination.tarotHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["vvy","free","daily"]},"situation":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["vvy","free","daily"]},"question":{"type":"string"},"situation":{"type":"string"},"context":{"type":"string"},"cardNumbers":{"type":"array","items":{"type":"integer","minimum":0,"maximum":77}},"cardNames":{"type":"array","items":{"type":"string"}},"cardImages":{"type":"array","items":{"type":"string"}},"freeReading":{"type":"object","properties":{"overview":{"type":"string"},"cards":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"}},"required":["overview","cards","summary"],"additionalProperties":false},"basicReading":{"type":"object","properties":{"overview":{"type":"string"},"cards":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"}},"required":["overview","cards","summary"],"additionalProperties":false},"perCard":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positionLabel":{"type":"string"},"cardNumber":{"type":"integer","minimum":0,"maximum":77},"name":{"type":"string"},"gist":{"type":"string"}},"required":["position","positionLabel","cardNumber","name","gist"],"additionalProperties":false}},"perQuestion":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"leansOn":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["question","answer","leansOn"],"additionalProperties":false}},"closing":{"type":"string"},"ai":{"type":"boolean"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","source","question","cardNumbers","ai","createdAt","dateKey"],"additionalProperties":false}}},"required":["sessionId","source","createdAt","dateKey","items"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sessions","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["vvy","free","daily"]}}],"security":[{"bearerAuth":[]}]}},"/divination/tarot/daily/today":{"get":{"operationId":"divination.tarotDailyToday","tags":["divination"],"summary":"divination.tarotDailyToday","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"draw":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":77},"name":{"type":"string"},"img":{"type":"string"},"webDetail":{"type":"string"},"sections":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"paragraphs":{"type":"array","items":{"type":"string"}},"subsections":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"paragraphs":{"type":"array","items":{"type":"string"}}},"required":["title","paragraphs"],"additionalProperties":false}}},"required":["title","paragraphs","subsections"],"additionalProperties":false}},{"type":"null"}]}},"required":["number","name","img","webDetail","sections"],"additionalProperties":false}},"drawnAt":{"type":"string"},"summary":{"type":"string"},"headline":{"type":"string"},"cardBack":{"type":"string"}},"required":["id","cards","drawnAt"],"additionalProperties":false},{"type":"null"}]},"art":{"anyOf":[{"type":"object","properties":{"homeIcon":{"anyOf":[{"type":"string"},{"type":"null"}]},"homeIconBg":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["homeIcon","homeIconBg"],"additionalProperties":false},{"type":"null"}]}},"required":["date","draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/daily/reading":{"post":{"operationId":"divination.tarotDailyReading","tags":["divination"],"summary":"divination.tarotDailyReading","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ai":{"type":"boolean"},"overview":{"type":"string"},"cards":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"quota":{"type":"object","properties":{"state":{"type":"string","enum":["ok","low","exhausted","grace"]},"remainingUses":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"canSendImage":{"type":"boolean"}},"required":["state","resetAt","canSendImage"],"additionalProperties":false},"headline":{"type":"string"},"positions":{"type":"array","items":{"type":"string"}}},"required":["ai"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"drawId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["drawId"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/tarot/history/{sessionId}":{"delete":{"operationId":"divination.tarotHistoryDelete","tags":["divination"],"summary":"divination.tarotHistoryDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/divination/siamsi/today":{"get":{"operationId":"divination.siamsiToday","tags":["divination"],"summary":"divination.siamsiToday","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"draw":{"anyOf":[{"type":"object","properties":{"fortune":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":99},"title":{"type":"string"},"isGood":{"type":"boolean"},"detail":{"type":"string"}},"required":["number","title","isGood","detail"],"additionalProperties":false},"topic":{"type":"string"},"drawnAt":{"type":"string"},"burned":{"type":"boolean"}},"required":["fortune","drawnAt","burned"],"additionalProperties":false},{"type":"null"}]},"art":{"anyOf":[{"type":"object","properties":{"homeIcon":{"anyOf":[{"type":"string"},{"type":"null"}]},"homeIconBg":{"anyOf":[{"type":"string"},{"type":"null"}]},"slipPaper":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["homeIcon","homeIconBg","slipPaper"],"additionalProperties":false},{"type":"null"}]}},"required":["draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/siamsi/draw":{"post":{"operationId":"divination.siamsiDraw","tags":["divination"],"summary":"divination.siamsiDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"draw":{"type":"object","properties":{"fortune":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":99},"title":{"type":"string"},"isGood":{"type":"boolean"},"detail":{"type":"string"}},"required":["number","title","isGood","detail"],"additionalProperties":false},"topic":{"type":"string"},"drawnAt":{"type":"string"},"burned":{"type":"boolean"}},"required":["fortune","drawnAt","burned"],"additionalProperties":false},"sticky":{"type":"boolean"}},"required":["draw","sticky"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","minLength":1,"maxLength":40}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/siamsi/burn":{"post":{"operationId":"divination.siamsiBurn","tags":["divination"],"summary":"divination.siamsiBurn","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"draw":{"type":"object","properties":{"fortune":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":99},"title":{"type":"string"},"isGood":{"type":"boolean"},"detail":{"type":"string"}},"required":["number","title","isGood","detail"],"additionalProperties":false},"topic":{"type":"string"},"drawnAt":{"type":"string"},"burned":{"type":"boolean"}},"required":["fortune","drawnAt","burned"],"additionalProperties":false}},"required":["id","draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/siamsi/history":{"get":{"operationId":"divination.siamsiHistory","tags":["divination"],"summary":"divination.siamsiHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"draws":{"type":"array","items":{"type":"object","properties":{"fortune":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":99},"title":{"type":"string"},"isGood":{"type":"boolean"},"detail":{"type":"string"}},"required":["number","title","isGood","detail"],"additionalProperties":false},"topic":{"type":"string"},"drawnAt":{"type":"string"},"burned":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["fortune","drawnAt","burned","id","createdAt","dateKey"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["draws","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/divination/name-analysis":{"post":{"operationId":"divination.nameAnalysis","tags":["divination"],"summary":"divination.nameAnalysis","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"result":{"type":"object","properties":{"name":{"type":"object","properties":{"text":{"type":"string"},"sum":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lookupNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tone":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"label":{"type":"string"},"summary":{"type":"string"}},"required":["digit","label","summary"],"additionalProperties":false}},"required":["text","sum","lookupNumber","tone"],"additionalProperties":false},"surname":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"sum":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lookupNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tone":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"label":{"type":"string"},"summary":{"type":"string"}},"required":["digit","label","summary"],"additionalProperties":false}},"required":["text","sum","lookupNumber","tone"],"additionalProperties":false},{"type":"null"}]},"combined":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"sum":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lookupNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tone":{"type":"object","properties":{"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"label":{"type":"string"},"summary":{"type":"string"}},"required":["digit","label","summary"],"additionalProperties":false}},"required":["text","sum","lookupNumber","tone"],"additionalProperties":false},{"type":"null"}]},"thaksa":{"anyOf":[{"type":"object","properties":{"birthWeekday":{"type":"string"},"kalakiniSet":{"type":"array","items":{"type":"string"}},"letters":{"type":"array","items":{"type":"object","properties":{"char":{"type":"string"},"varga":{"type":"string"},"thaksa":{"type":"string"}},"required":["char","varga","thaksa"],"additionalProperties":false}},"kalakiniInName":{"type":"array","items":{"type":"object","properties":{"char":{"type":"string"},"varga":{"type":"string"},"thaksa":{"type":"string"}},"required":["char","varga","thaksa"],"additionalProperties":false}},"auspiciousInName":{"type":"array","items":{"type":"object","properties":{"char":{"type":"string"},"varga":{"type":"string"},"thaksa":{"type":"string"}},"required":["char","varga","thaksa"],"additionalProperties":false}},"hasKalakini":{"type":"boolean"},"summary":{"type":"string"}},"required":["birthWeekday","kalakiniSet","letters","kalakiniInName","auspiciousInName","hasKalakini","summary"],"additionalProperties":false},{"type":"null"}]},"ayatana":{"type":"object","properties":{"sum":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"digit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"persona":{"type":"string"},"description":{"type":"string"}},"required":["sum","digit","persona","description"],"additionalProperties":false}},"required":["name","surname","combined","thaksa","ayatana"],"additionalProperties":false}},"required":["result"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"surname":{"type":"string","minLength":1,"maxLength":60},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["name"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/life-graph":{"post":{"operationId":"divination.lifeGraph","tags":["divination"],"summary":"divination.lifeGraph","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"bases":{"type":"object","properties":{"D":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"M":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Y":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"weekdayLabel":{"type":"string"},"naksatrLabel":{"type":"string"}},"required":["D","M","Y","weekdayLabel","naksatrLabel"],"additionalProperties":false},"cells":{"type":"array","items":{"type":"object","properties":{"bhopIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bhop":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"phumi":{"type":"string"},"maleficHouse":{"type":"boolean"},"quality":{"type":"string"},"partnerIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"selfDiagonal":{"type":"boolean"},"gist":{"type":"string"},"poem":{"type":"string"}},"required":["bhopIndex","bhop","score","phumi","maleficHouse","quality","partnerIndex","selfDiagonal","gist","poem"],"additionalProperties":false}},"transit":{"anyOf":[{"type":"object","properties":{"transitDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"age":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"round":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cell":{"type":"object","properties":{"bhopIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bhop":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"phumi":{"type":"string"},"maleficHouse":{"type":"boolean"},"quality":{"type":"string"},"partnerIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"selfDiagonal":{"type":"boolean"},"gist":{"type":"string"},"poem":{"type":"string"}},"required":["bhopIndex","bhop","score","phumi","maleficHouse","quality","partnerIndex","selfDiagonal","gist","poem"],"additionalProperties":false}},"required":["transitDate","age","round","cell"],"additionalProperties":false},{"type":"null"}]}},"required":["bases","cells","transit"],"additionalProperties":false}},"required":["reading"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"transitDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/places":{"get":{"operationId":"divination.places","tags":["divination"],"summary":"divination.places","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"places":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"asciiName":{"type":"string"},"thaiName":{"anyOf":[{"type":"string"},{"type":"null"}]},"countryCode":{"type":"string","minLength":2,"maxLength":2},"countryName":{"type":"string"},"admin1":{"anyOf":[{"type":"string"},{"type":"null"}]},"latitude":{"type":"number"},"longitude":{"type":"number"},"timeZone":{"type":"string"}},"required":["id","name","asciiName","thaiName","countryCode","countryName","admin1","latitude","longitude","timeZone"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attribution":{"type":"string"}},"required":["places","limit","offset","total","attribution"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}}],"security":[{"bearerAuth":[]}]}},"/divination/western":{"post":{"operationId":"divination.western","tags":["divination"],"summary":"divination.western","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"timeKnown":{"type":"boolean"},"bodies":{"type":"array","items":{"type":"object","properties":{"longitude":{"type":"number"},"sign":{"type":"string"},"signIndex":{"type":"integer","minimum":0,"maximum":11},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"body":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"nameTh":{"type":"string"},"retrograde":{"type":"boolean"},"house":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["longitude","sign","signIndex","degree","minute","body","nameTh","retrograde","house"],"additionalProperties":false}},"node":{"type":"object","properties":{"longitude":{"type":"number"},"sign":{"type":"string"},"signIndex":{"type":"integer","minimum":0,"maximum":11},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nameTh":{"type":"string"},"house":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"meanLongitude":{"type":"number"},"nodeType":{"type":"string","enum":["mean","true"]},"trueLongitude":{"type":"number"}},"required":["longitude","sign","signIndex","degree","minute","nameTh","house","meanLongitude","nodeType","trueLongitude"],"additionalProperties":false},"chiron":{"anyOf":[{"type":"object","properties":{"longitude":{"type":"number"},"sign":{"type":"string"},"signIndex":{"type":"integer","minimum":0,"maximum":11},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"retrograde":{"type":"boolean"}},"required":["longitude","sign","signIndex","degree","minute","house","retrograde"],"additionalProperties":false},{"type":"null"}]},"partOfFortune":{"anyOf":[{"type":"object","properties":{"longitude":{"type":"number"},"sign":{"type":"string"},"signIndex":{"type":"integer","minimum":0,"maximum":11},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"retrograde":{"type":"boolean"}},"required":["longitude","sign","signIndex","degree","minute","house","retrograde"],"additionalProperties":false},{"type":"null"}]},"angles":{"anyOf":[{"type":"object","properties":{"ascendant":{"type":"object","properties":{"longitude":{"type":"number"},"sign":{"type":"string"},"signIndex":{"type":"integer","minimum":0,"maximum":11},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["longitude","sign","signIndex","degree","minute"],"additionalProperties":false},"midheaven":{"type":"object","properties":{"longitude":{"type":"number"},"sign":{"type":"string"},"signIndex":{"type":"integer","minimum":0,"maximum":11},"degree":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["longitude","sign","signIndex","degree","minute"],"additionalProperties":false},"cusps":{"type":"array","items":{"type":"number"}}},"required":["ascendant","midheaven","cusps"],"additionalProperties":false},{"type":"null"}]}},"required":["timeKnown","bodies","node","chiron","partOfFortune","angles"],"additionalProperties":false},"place":{"type":"object","properties":{"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"source":{"type":"string","enum":["request","profile","default"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"townName":{"anyOf":[{"type":"string"},{"type":"null"}]},"cityId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"countryCode":{"type":"string","minLength":2,"maxLength":2},"countryName":{"type":"string"},"timeZone":{"type":"string"}},"required":["provinceCode","districtCode","source","latitude","longitude"],"additionalProperties":false},"utcOffsetSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timeNote":{"type":"string","enum":["lmt","gap","overlap"]},"profile":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["request","profile"]},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"birthPlace":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["source","birthDate","birthTime","gender","provinceCode","districtCode","birthPlace"],"additionalProperties":false},{"type":"null"}]}},"required":["reading","place"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"},"birthCityId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"includeProfile":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/uranian-daily":{"post":{"operationId":"divination.uranianDaily","tags":["divination"],"summary":"divination.uranianDaily","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"points":{"type":"array","items":{"type":"object","properties":{"point":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},"nameTh":{"type":"string"},"longitude":{"type":"number"},"dial":{"type":"number"}},"required":["point","nameTh","longitude","dial"],"additionalProperties":false}},"natalPictures":{"type":"array","items":{"type":"object","properties":{"point":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},"a":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},"b":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},"orbMinutes":{"type":"number"},"formula":{"type":"string"}},"required":["point","a","b","orbMinutes","formula"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},"a":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},"b":{"anyOf":[{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","MeanNode","Asc","MC","AriesPoint","Cupido","Hades","Zeus","Kronos","Apollon","Admetos","Vulkanus","Poseidon"]},{"type":"null"}]},"orbMinutes":{"type":"number"},"formula":{"type":"string"}},"required":["transit","a","b","orbMinutes","formula"],"additionalProperties":false}}},"required":["date","timeKnown","points","natalPictures","hits"],"additionalProperties":false},"place":{"type":"object","properties":{"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"source":{"type":"string","enum":["request","profile","default"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"townName":{"anyOf":[{"type":"string"},{"type":"null"}]},"cityId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"countryCode":{"type":"string","minLength":2,"maxLength":2},"countryName":{"type":"string"},"timeZone":{"type":"string"}},"required":["provinceCode","districtCode","source","latitude","longitude"],"additionalProperties":false}},"required":["reading","place"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi":{"post":{"operationId":"divination.bazi","tags":["divination"],"summary":"divination.bazi","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"pillars":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["year","month","day","hour"]},"label":{"type":"string"},"palaceTh":{"type":"string"},"gist":{"type":"string"},"ganzhiCn":{"type":"string"},"stem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"branch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"nayin":{"type":"object","properties":{"pairIndex":{"type":"integer","minimum":0,"maximum":29},"hanja":{"type":"string"},"hanjaAlt":{"type":"string"},"ko":{"type":"string"},"th":{"type":"string"},"element":{"type":"integer","minimum":0,"maximum":4}},"required":["pairIndex","hanja","ko","th","element"],"additionalProperties":false}},"required":["kind","label","palaceTh","gist","ganzhiCn","stem","branch","nayin"],"additionalProperties":false}},"dayMaster":{"type":"object","properties":{"stem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"imagery":{"type":"string"},"weak":{"type":"boolean"},"strengthTh":{"type":"string","enum":["ดวงอ่อน","ดวงแข็ง"]},"strengthLevel":{"type":"string","enum":["followWeak","weak","strong","followStrong"]},"supportPercent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"summary":{"type":"string"},"reading":{"type":"object","properties":{"headline":{"type":"string"},"short":{"type":"string"},"long":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"additionalProperties":false}}},"required":["headline","short","long"],"additionalProperties":false},"seasonLine":{"type":"string"},"strengthReading":{"type":"object","properties":{"headline":{"type":"string"},"short":{"type":"string"},"long":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"additionalProperties":false}}},"required":["headline","short","long"],"additionalProperties":false}},"required":["stem","imagery","weak","strengthTh","strengthLevel","supportPercent","favorable","avoid","summary","reading","seasonLine","strengthReading"],"additionalProperties":false},"elementPowers":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"score":{"type":"number"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorable":{"type":"boolean"},"avoid":{"type":"boolean"}},"required":["element","cn","th","tone","score","percent","favorable","avoid"],"additionalProperties":false}},"tenGods":{"type":"array","items":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"},"reading":{"type":"object","properties":{"headline":{"type":"string"},"short":{"type":"string"},"long":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"additionalProperties":false}}},"required":["headline","short","long"],"additionalProperties":false}},"required":["cn","th","teochew","gist","reading"],"additionalProperties":false}},"favorableGuides":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"reading":{"type":"object","properties":{"headline":{"type":"string"},"short":{"type":"string"},"long":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"additionalProperties":false}}},"required":["headline","short","long"],"additionalProperties":false},"colorsTh":{"type":"string"},"directionTh":{"type":"string"},"careersTh":{"type":"string"}},"required":["element","cn","th","tone","reading","colorsTh","directionTh","careersTh"],"additionalProperties":false}},"luck":{"anyOf":[{"type":"object","properties":{"forward":{"type":"boolean"},"directionTh":{"type":"string","enum":["เดินหน้า","ถอยหลัง"]},"startAgeYears":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAgeMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"approximate":{"type":"boolean"},"pillars":{"type":"array","items":{"type":"object","properties":{"ganzhiCn":{"type":"string"},"stem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"branch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"required":["branch","cn","zodiacTh","animalTh","element"],"additionalProperties":false},"startAge":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endAge":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current":{"type":"boolean"}},"required":["ganzhiCn","stem","branch","startAge","endAge","current"],"additionalProperties":false}}},"required":["forward","directionTh","startAgeYears","startAgeMonths","approximate","pillars"],"additionalProperties":false},{"type":"null"}]},"currentYear":{"anyOf":[{"type":"object","properties":{"ce":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"be":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ganzhiCn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","ruam"]},"cn":{"type":"string"},"th":{"type":"string"},"gist":{"type":"string"},"reading":{"type":"object","properties":{"headline":{"type":"string"},"short":{"type":"string"},"long":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"additionalProperties":false}}},"required":["headline","short","long"],"additionalProperties":false}},"required":["key","cn","th","gist","reading"],"additionalProperties":false}},"headlineTh":{"type":"string"}},"required":["ce","be","ganzhiCn","zodiacTh","animalTh","element","relations","headlineTh"],"additionalProperties":false},{"type":"null"}]},"birthZodiacTh":{"type":"string"},"lunar":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"month":{"type":"integer","minimum":1,"maximum":12},"leap":{"type":"boolean"},"day":{"type":"integer","minimum":1,"maximum":30},"monthLength":{"type":"integer","minimum":29,"maximum":30}},"required":["year","month","leap","day","monthLength"],"additionalProperties":false},"lunarLabelTh":{"type":"string"},"zodiacNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"pillarRelations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["stemCombine","stemClash","branchCombine","branchClash","halfCombine","branchHarm"]},"th":{"type":"string"},"cn":{"type":"string"},"gist":{"type":"string"},"text":{"type":"string"},"layer":{"type":"string","enum":["stem","branch"]},"pillarsTh":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"palacesTh":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"glyphCn":{"type":"string"},"producesElement":{"anyOf":[{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},{"type":"null"}]},"strength":{"type":"string","enum":["full","weak"]},"disputed":{"type":"boolean"},"disputedTh":{"anyOf":[{"type":"string"},{"type":"null"}]},"actorTh":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","th","cn","gist","text","layer","pillarsTh","palacesTh","glyphCn","producesElement","strength","disputed","disputedTh","actorTh"],"additionalProperties":false}},"yearLuck":{"type":"array","items":{"type":"object","properties":{"ce":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"be":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"age":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ganzhiCn":{"type":"string"},"stem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"branch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"required":["branch","cn","zodiacTh","animalTh","element"],"additionalProperties":false},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"band":{"type":"integer","minimum":1,"maximum":5},"bandLabelTh":{"type":"string"},"bandToneTh":{"type":"string"},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","ruam"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"anyOf":[{"type":"string"},{"type":"null"}]},"against":{"type":"string","enum":["self","taisui"]},"againstTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh","against","againstTh"],"additionalProperties":false}},"luckGanzhiCn":{"anyOf":[{"type":"string"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["ce","be","age","ganzhiCn","stem","branch","element","band","bandLabelTh","bandToneTh","relations","luckGanzhiCn","current"],"additionalProperties":false}},"yearAmbiguous":{"type":"boolean"},"monthAmbiguous":{"type":"boolean"},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","gender","pillars","dayMaster","elementPowers","tenGods","favorableGuides","luck","currentYear","birthZodiacTh","lunar","lunarLabelTh","zodiacNote","pillarRelations","yearLuck","yearAmbiguous","monthAmbiguous","strengthNote"],"additionalProperties":false}},"required":["reading"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"gender":{"type":"string","enum":["male","female"]}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi/interpret":{"post":{"operationId":"divination.baziInterpret","tags":["divination"],"summary":"divination.baziInterpret","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready","none"]},"generatedAt":{"type":"string"},"headline":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["identity","suited","work_money","love","family","strengths","rhythm","boost"]},"title":{"type":"string"},"body":{"type":"string"}},"required":["key","title","body"],"additionalProperties":false}}},"required":["status"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"gender":{"type":"string","enum":["male","female"]},"cachedOnly":{"type":"boolean"}},"required":["birthDate"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/saju":{"post":{"operationId":"divination.saju","tags":["divination"],"summary":"divination.saju","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"birthTimeUnknown":{"type":"boolean"},"hourOffsetMin":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lunar":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"month":{"type":"integer","minimum":1,"maximum":12},"leap":{"type":"boolean"},"day":{"type":"integer","minimum":1,"maximum":30},"monthLength":{"type":"integer","minimum":29,"maximum":30}},"required":["year","month","leap","day","monthLength"],"additionalProperties":false},"lunarLabelTh":{"type":"string"},"pillars":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["year","month","day","hour"]},"labelTh":{"type":"string"},"labelKo":{"type":"string"},"labelKoTh":{"type":"string"},"palaceTh":{"type":"string"},"gistTh":{"type":"string"},"hanja":{"type":"string"},"hangul":{"type":"string"},"stem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"gistTh":{"type":"string"}},"required":["hanja","ko","koTh","gistTh"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","hanja","ko","koTh","yin","polarityTh","element","tenGod"],"additionalProperties":false},"branch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"gistTh":{"type":"string"}},"required":["hanja","ko","koTh","gistTh"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","hanja","ko","koTh","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","hanja","ko","koTh","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"stage":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":11},"ko":{"type":"string"},"hanja":{"type":"string"},"koTh":{"type":"string"},"glossTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["index","ko","hanja","koTh","glossTh","noteTh"],"additionalProperties":false},"nayin":{"type":"object","properties":{"pairIndex":{"type":"integer","minimum":0,"maximum":29},"hanja":{"type":"string"},"hanjaAlt":{"type":"string"},"ko":{"type":"string"},"th":{"type":"string"},"element":{"type":"integer","minimum":0,"maximum":4}},"required":["pairIndex","hanja","ko","th","element"],"additionalProperties":false}},"required":["kind","labelTh","labelKo","labelKoTh","palaceTh","gistTh","hanja","hangul","stem","branch","stage","nayin"],"additionalProperties":false}},"ilju":{"type":"object","properties":{"ganzhiIndex":{"type":"integer","minimum":0,"maximum":59},"hanja":{"type":"string"},"hangul":{"type":"string"},"iljuKoTh":{"type":"string"},"nameTh":{"type":"string"},"nameKo":{"type":"string"},"nameHanja":{"type":"string"},"nameKoTh":{"type":"string"},"animalTh":{"type":"string"},"colorTh":{"type":"string"},"zodiacTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},"personality":{"type":"string"},"strength":{"type":"string"},"watch":{"type":"string"},"share":{"type":"string"},"authored":{"type":"boolean"}},"required":["ganzhiIndex","hanja","hangul","iljuKoTh","nameTh","nameKo","nameHanja","nameKoTh","animalTh","colorTh","zodiacTh","element","personality","strength","watch","share","authored"],"additionalProperties":false},"elements":{"type":"object","properties":{"charCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counts":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"hidden":{"type":"integer","minimum":0,"maximum":9007199254740991},"percent":{"type":"integer","minimum":0,"maximum":100},"status":{"type":"string","enum":["missing","light","balanced","strong","excess"]},"statusLabelTh":{"type":"string"},"statusKo":{"anyOf":[{"type":"string"},{"type":"null"}]},"noteTh":{"type":"string"},"yongshin":{"type":"boolean"},"avoid":{"type":"boolean"}},"required":["element","cn","th","tone","ko","koTh","count","hidden","percent","status","statusLabelTh","statusKo","noteTh","yongshin","avoid"],"additionalProperties":false}},"yongshin":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false}},"missing":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false}},"noteTh":{"type":"string"}},"required":["charCount","counts","yongshin","avoid","missing","noteTh"],"additionalProperties":false},"shinsal":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["dohwa","yeongma","hwagae","baekho","gwoegang","cheoneul","gongmang"]},"nameTh":{"type":"string"},"ko":{"type":"string"},"hanja":{"type":"string"},"koTh":{"type":"string"},"popTh":{"type":"string"},"basisTh":{"type":"string"},"text":{"type":"string"},"pillars":{"type":"array","items":{"type":"string","enum":["year","month","day","hour"]}},"pillarLabelsTh":{"type":"array","items":{"type":"string"}},"targetHanja":{"type":"string"}},"required":["id","nameTh","ko","hanja","koTh","popTh","basisTh","text","pillars","pillarLabelsTh","targetHanja"],"additionalProperties":false}},"shinsalNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"pillarRelations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["stemCombine","stemClash","branchCombine","branchClash","halfCombine","branchHarm"]},"th":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"hanja":{"type":"string"},"gist":{"type":"string"},"text":{"type":"string"},"layer":{"type":"string","enum":["stem","branch"]},"pillarsTh":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"palacesTh":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"glyphHanja":{"type":"string"},"glyphKo":{"type":"string"},"producesElement":{"anyOf":[{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},{"type":"null"}]},"strength":{"type":"string","enum":["full","weak"]},"disputed":{"type":"boolean"},"disputedTh":{"anyOf":[{"type":"string"},{"type":"null"}]},"actorTh":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","th","ko","koTh","hanja","gist","text","layer","pillarsTh","palacesTh","glyphHanja","glyphKo","producesElement","strength","disputed","disputedTh","actorTh"],"additionalProperties":false}},"sipseong":{"type":"array","items":{"type":"object","properties":{"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"gistTh":{"type":"string"},"reading":{"type":"object","properties":{"headline":{"type":"string"},"short":{"type":"string"},"long":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"additionalProperties":false}}},"required":["headline","short","long"],"additionalProperties":false}},"required":["hanja","ko","koTh","gistTh","reading"],"additionalProperties":false}},"luck":{"anyOf":[{"type":"object","properties":{"forward":{"type":"boolean"},"directionTh":{"type":"string","enum":["เดินหน้า","ถอยหลัง"]},"startAgeYears":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAgeMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"approximate":{"type":"boolean"},"pillars":{"type":"array","items":{"type":"object","properties":{"hanja":{"type":"string"},"hangul":{"type":"string"},"startAge":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endAge":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current":{"type":"boolean"},"stem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"gistTh":{"type":"string"}},"required":["hanja","ko","koTh","gistTh"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","hanja","ko","koTh","yin","polarityTh","element","tenGod"],"additionalProperties":false},"branch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false}},"required":["branch","hanja","ko","koTh","zodiacTh","animalTh","element"],"additionalProperties":false},"stage":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":11},"ko":{"type":"string"},"hanja":{"type":"string"},"koTh":{"type":"string"},"glossTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["index","ko","hanja","koTh","glossTh","noteTh"],"additionalProperties":false}},"required":["hanja","hangul","startAge","endAge","current","stem","branch","stage"],"additionalProperties":false}}},"required":["forward","directionTh","startAgeYears","startAgeMonths","approximate","pillars"],"additionalProperties":false},{"type":"null"}]},"yearLuck":{"type":"array","items":{"type":"object","properties":{"ce":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"be":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"age":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hanja":{"type":"string"},"hangul":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]},"ko":{"type":"string"},"koTh":{"type":"string"}},"required":["element","cn","th","tone","ko","koTh"],"additionalProperties":false},"zodiacTh":{"type":"string"},"tenGod":{"type":"object","properties":{"hanja":{"type":"string"},"ko":{"type":"string"},"koTh":{"type":"string"},"gistTh":{"type":"string"}},"required":["hanja","ko","koTh","gistTh"],"additionalProperties":false},"band":{"type":"integer","minimum":1,"maximum":5},"bandLabelTh":{"type":"string"},"bandToneTh":{"type":"string"},"relations":{"type":"array","items":{"type":"object","properties":{"labelTh":{"type":"string"},"noteTh":{"anyOf":[{"type":"string"},{"type":"null"}]},"againstTh":{"type":"string"}},"required":["labelTh","noteTh","againstTh"],"additionalProperties":false}},"luckHanja":{"anyOf":[{"type":"string"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["ce","be","age","hanja","hangul","element","zodiacTh","tenGod","band","bandLabelTh","bandToneTh","relations","luckHanja","current"],"additionalProperties":false}},"yearAmbiguous":{"type":"boolean"},"monthAmbiguous":{"type":"boolean"},"disclosure":{"type":"object","properties":{"system":{"type":"string"},"yajasi":{"type":"string"},"localTime":{"type":"string"},"elementCriteria":{"type":"string"},"weighting":{"type":"string"},"shinsalBasis":{"type":"string"},"stages":{"type":"string"},"yongshin":{"type":"string"},"nayin":{"type":"string"},"relations":{"type":"string"},"yearLuck":{"type":"string"},"content":{"type":"string"}},"required":["system","yajasi","localTime","elementCriteria","weighting","shinsalBasis","stages","yongshin","nayin","relations","yearLuck","content"],"additionalProperties":false}},"required":["systemLabel","birthDate","birthTime","gender","birthTimeUnknown","hourOffsetMin","lunar","lunarLabelTh","pillars","ilju","elements","shinsal","shinsalNote","pillarRelations","sipseong","luck","yearLuck","yearAmbiguous","monthAmbiguous","disclosure"],"additionalProperties":false},"place":{"type":"object","properties":{"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"source":{"type":"string","enum":["request","profile","default"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"townName":{"anyOf":[{"type":"string"},{"type":"null"}]},"cityId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"countryCode":{"type":"string","minLength":2,"maxLength":2},"countryName":{"type":"string"},"timeZone":{"type":"string"}},"required":["provinceCode","districtCode","source","latitude","longitude"],"additionalProperties":false}},"required":["reading","place"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"gender":{"type":"string","enum":["male","female"]},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi-daily":{"get":{"operationId":"divination.baziDaily","tags":["divination"],"summary":"divination.baziDaily","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"today":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"yesterday":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"reminder":{"anyOf":[{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false},{"type":"null"}]},"streak":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lifetime":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["today","yesterday","reminder","streak","lifetime"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi-daily/open":{"post":{"operationId":"divination.baziDailyOpen","tags":["divination"],"summary":"divination.baziDailyOpen","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},"quota":{"type":"object","properties":{"state":{"type":"string","enum":["ok","low","exhausted","grace"]},"remainingUses":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"canSendImage":{"type":"boolean"}},"required":["state","resetAt","canSendImage"],"additionalProperties":false}},"required":["entry"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"gender":{"type":"string","enum":["male","female"]}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi-daily/review":{"post":{"operationId":"divination.baziDailyReview","tags":["divination"],"summary":"divination.baziDailyReview","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false}},"required":["entry"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"rating":{"type":"integer","minimum":1,"maximum":5},"reviewNote":{"type":"string","maxLength":4000}},"required":["date"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi-daily/reminder":{"post":{"operationId":"divination.baziDailyReminder","tags":["divination"],"summary":"divination.baziDailyReminder","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reminder":{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false}},"required":["reminder"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":0,"maximum":23},{"type":"null"}]},"reminderMinute":{"anyOf":[{"type":"number","const":0},{"type":"number","const":15},{"type":"number","const":30},{"type":"number","const":45}]},"timezone":{"type":"string","minLength":1,"maxLength":64},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/bazi-daily/diary":{"get":{"operationId":"divination.baziDailyDiary","tags":["divination"],"summary":"divination.baziDailyDiary","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false}}},"required":["entries"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"security":[{"bearerAuth":[]}]}},"/divination/astro-map":{"get":{"operationId":"divination.astroMap","tags":["divination"],"summary":"divination.astroMap","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"unlocked":{"type":"boolean"},"unlockCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentDraft":{"type":"boolean"},"disclaimer":{"type":"string"},"capsules":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]},"text":{"type":"string"}},"required":["body","text"],"additionalProperties":false}},"angleExplainers":{"type":"array","items":{"type":"object","properties":{"angle":{"type":"string","enum":["MC","IC","ASC","DSC"]},"short":{"type":"string"},"text":{"type":"string"}},"required":["angle","short","text"],"additionalProperties":false}},"lines":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]},"angle":{"type":"string","enum":["MC","IC","ASC","DSC"]},"summary":{"type":"string"},"deep":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["body","angle","summary","deep"],"additionalProperties":false}},"paranReadings":{"type":"array","items":{"type":"object","properties":{"bodyA":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]},"bodyB":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]},"text":{"type":"string"}},"required":["bodyA","bodyB","text"],"additionalProperties":false}},"minorBodies":{"type":"array","items":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]}},"themePresets":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"bodies":{"type":"array","items":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]}},"angles":{"anyOf":[{"type":"array","items":{"type":"string","enum":["MC","IC","ASC","DSC"]}},{"type":"null"}]}},"required":["key","label","bodies","angles"],"additionalProperties":false}},"zenithTexts":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","TrueNode","Lilith"]},"text":{"type":"string"}},"required":["body","text"],"additionalProperties":false}},"birth":{"anyOf":[{"type":"object","properties":{"utc":{"type":"string"},"utcOffsetSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timeNote":{"anyOf":[{"type":"string","enum":["lmt","gap","overlap"]},{"type":"null"}]},"timeZone":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["utc","utcOffsetSeconds","timeNote","timeZone"],"additionalProperties":false},{"type":"null"}]}},"required":["unlocked","unlockCost","contentDraft","disclaimer","capsules","angleExplainers","lines","paranReadings","minorBodies","themePresets","zenithTexts","birth"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/astro-map/unlock":{"post":{"operationId":"divination.astroMapUnlock","tags":["divination"],"summary":"divination.astroMapUnlock","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"unlocked":{"type":"boolean","const":true}},"required":["unlocked"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/iching/cast":{"post":{"operationId":"divination.ichingCast","tags":["divination"],"summary":"divination.ichingCast","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"method":{"type":"string","enum":["coins","manual"]},"question":{"type":"string"},"category":{"type":"string","enum":["work","money","love","health","general"]},"lineValues":{"minItems":6,"maxItems":6,"type":"array","items":{"anyOf":[{"type":"number","const":6},{"type":"number","const":7},{"type":"number","const":8},{"type":"number","const":9}]}},"primary":{"type":"object","properties":{"kingWen":{"type":"integer","minimum":1,"maximum":64},"cn":{"type":"string"},"pinyin":{"type":"string"},"thaiTrans":{"type":"string"},"nameTh":{"type":"string"},"unicode":{"type":"string"},"bits":{"type":"string"},"lower":{"type":"object","properties":{"key":{"type":"string","enum":["qian","dui","li","zhen","xun","kan","gen","kun"]},"cn":{"type":"string"},"pinyin":{"type":"string"},"symbol":{"type":"string"},"nameTh":{"type":"string"}},"required":["key","cn","pinyin","symbol","nameTh"],"additionalProperties":false},"upper":{"type":"object","properties":{"key":{"type":"string","enum":["qian","dui","li","zhen","xun","kan","gen","kun"]},"cn":{"type":"string"},"pinyin":{"type":"string"},"symbol":{"type":"string"},"nameTh":{"type":"string"}},"required":["key","cn","pinyin","symbol","nameTh"],"additionalProperties":false},"keywords":{"type":"array","items":{"type":"string"}},"gist":{"type":"string"},"judgmentTh":{"type":"string"},"imageTh":{"type":"string"},"advice":{"type":"string"},"authored":{"type":"boolean"}},"required":["kingWen","cn","pinyin","thaiTrans","nameTh","unicode","bits","lower","upper","keywords","gist","judgmentTh","imageTh","advice","authored"],"additionalProperties":false},"changingLines":{"type":"array","items":{"type":"object","properties":{"no":{"type":"integer","minimum":1,"maximum":6},"text":{"type":"string"}},"required":["no","text"],"additionalProperties":false}},"resulting":{"anyOf":[{"type":"object","properties":{"kingWen":{"type":"integer","minimum":1,"maximum":64},"cn":{"type":"string"},"pinyin":{"type":"string"},"thaiTrans":{"type":"string"},"nameTh":{"type":"string"},"unicode":{"type":"string"},"bits":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"gist":{"type":"string"},"judgmentTh":{"type":"string"},"authored":{"type":"boolean"}},"required":["kingWen","cn","pinyin","thaiTrans","nameTh","unicode","bits","keywords","gist","judgmentTh","authored"],"additionalProperties":false},{"type":"null"}]},"focus":{"type":"object","properties":{"kind":{"type":"string","enum":["judgment","line","both-judgments","resulting-line","resulting-judgment","all-moving"]},"lineNo":{"type":"integer","minimum":1,"maximum":6},"readIn":{"type":"string","enum":["primary","resulting"]},"lines":{"type":"array","items":{"type":"integer","minimum":1,"maximum":6}},"special":{"type":"string","enum":["yong9","yong6"]}},"required":["kind"],"additionalProperties":false},"yong":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["method","lineValues","primary","changingLines","resulting","focus","yong"],"additionalProperties":false}},"required":["reading"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":280},"category":{"type":"string","enum":["work","money","love","health","general"]},"method":{"default":"coins","type":"string","enum":["coins","manual"]},"lines":{"minItems":6,"maxItems":6,"type":"array","items":{"anyOf":[{"type":"number","const":6},{"type":"number","const":7},{"type":"number","const":8},{"type":"number","const":9}]}}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/iching/interpret":{"post":{"operationId":"divination.ichingInterpret","tags":["divination"],"summary":"divination.ichingInterpret","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string"},"cached":{"type":"boolean"}},"required":["answer","cached"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"readingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["readingId"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/star-move":{"post":{"operationId":"divination.starMove","tags":["divination"],"summary":"divination.starMove","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"header":{"type":"object","properties":{"planetNo":{"type":"integer","minimum":0,"maximum":9},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string"}},"required":["name","icon"],"additionalProperties":false}},"img":{"type":"string"},"bgImg":{"type":"string"}},"required":["planetNo","planetTh","zodiac","house","topic","period","detail","ability","img","bgImg"],"additionalProperties":false},"tabs":{"type":"array","items":{"type":"object","properties":{"planetNo":{"type":"integer","minimum":0,"maximum":9},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string"}},"required":["name","icon"],"additionalProperties":false}},"img":{"type":"string"},"bgImg":{"type":"string"}},"required":["planetNo","planetTh","zodiac","house","topic","period","detail","ability","img","bgImg"],"additionalProperties":false}},"tab":{"type":"string","enum":["latest","all"]},"profile":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["request","profile"]},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"birthPlace":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["source","birthDate","birthTime","gender","provinceCode","districtCode","birthPlace"],"additionalProperties":false},{"type":"null"}]}},"required":["header","tabs","tab"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"tab":{"type":"string","enum":["latest","all"]},"includeProfile":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/lucky-number":{"post":{"operationId":"divination.luckyNumber","tags":["divination"],"summary":"divination.luckyNumber","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reading":{"type":"object","properties":{"luckyNumber":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"meaning":{"type":"string"}},"required":["number","meaning"],"additionalProperties":false}}},"required":["luckyNumber","details"],"additionalProperties":false},"sticky":{"type":"boolean"}},"required":["reading","sticky"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/daily-aspects":{"post":{"operationId":"divination.dailyAspects","tags":["divination"],"summary":"divination.dailyAspects","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"baseSign":{"type":"string"},"personalDay":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"headline":{"type":"object","properties":{"message":{"type":"string"},"color":{"type":"string"}},"required":["message","color"],"additionalProperties":false},"bannerImg":{"type":"string"},"aspects":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string","enum":["work","money","love","health"]},"titleTh":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"color":{"type":"string"},"message":{"type":"string"}},"required":["topic","titleTh","score","percent","rank","color","message"],"additionalProperties":false}}},"required":["date","baseSign","personalDay","headline","aspects"],"additionalProperties":false},"profile":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["request","profile"]},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["male","female"]},{"type":"null"}]},"provinceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"districtCode":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}]},"birthPlace":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["source","birthDate","birthTime","gender","provinceCode","districtCode","birthPlace"],"additionalProperties":false},{"type":"null"}]}},"required":["reading"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"mode":{"type":"string","enum":["suriyayart","lahiri"]},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"},"includeProfile":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/calendar":{"post":{"operationId":"divination.calendar","tags":["divination"],"summary":"divination.calendar","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"bgColor":{"type":"string"},"energyBand":{"type":"integer","minimum":1,"maximum":5},"faceImg":{"type":"string"},"specialDays":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"},"isCanWrap":{"type":"boolean"},"order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periodIdx":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["img","name","detail","position","icon","isCanWrap","order"],"additionalProperties":false}},"reukPeriods":{"type":"array","items":{"type":"object","properties":{"rerk":{"type":"integer","minimum":1,"maximum":27},"rerkName":{"type":"string"},"family":{"type":"integer","minimum":1,"maximum":9},"familyName":{"type":"string"},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]},"clipped":{"type":"string","enum":["personal","day","both"]}},"required":["rerk","rerkName","family","familyName","from","to"],"additionalProperties":false}}},"required":["date","bgColor","specialDays"],"additionalProperties":false}},"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false}},"edgeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"bgColor":{"type":"string"},"energyBand":{"type":"integer","minimum":1,"maximum":5},"faceImg":{"type":"string"}},"required":["date","bgColor","energyBand"],"additionalProperties":false}},"reuk":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"source":{"type":"string","enum":["static","computed","none"]},"certified":{"type":"boolean"}},"required":["level","source","certified"],"additionalProperties":false}},"required":["days"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":1957,"maximum":2052},"month":{"type":"integer","minimum":1,"maximum":12},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"birthTimeUnknown":{"type":"boolean"},"mode":{"type":"string","enum":["suriyayart","lahiri"]},"provinceCode":{"type":"string"},"districtCode":{"type":"string","pattern":"^\\d{4}$"},"system":{"type":"string","enum":["thai","bazi","western"]},"includeTopics":{"type":"boolean"},"includeEdgeDays":{"type":"boolean"}},"required":["year","month"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/calendar/topics":{"get":{"operationId":"divination.calendarTopics","tags":["divination"],"summary":"divination.calendarTopics","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/western-daily":{"get":{"operationId":"divination.westernDaily","tags":["divination"],"summary":"divination.westernDaily","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"today":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"yesterday":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"reminder":{"anyOf":[{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false},{"type":"null"}]},"streak":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lifetime":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["today","yesterday","reminder","streak","lifetime"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/western-daily/open":{"post":{"operationId":"divination.westernDailyOpen","tags":["divination"],"summary":"divination.westernDailyOpen","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},"quota":{"type":"object","properties":{"state":{"type":"string","enum":["ok","low","exhausted","grace"]},"remainingUses":{"type":"integer","minimum":0,"maximum":9007199254740991},"resetAt":{"type":"string"},"canSendImage":{"type":"boolean"}},"required":["state","resetAt","canSendImage"],"additionalProperties":false}},"required":["entry"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/western-daily/review":{"post":{"operationId":"divination.westernDailyReview","tags":["divination"],"summary":"divination.westernDailyReview","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false}},"required":["entry"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"rating":{"type":"integer","minimum":1,"maximum":5},"reviewNote":{"type":"string","maxLength":4000}},"required":["date"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/western-daily/reminder":{"post":{"operationId":"divination.westernDailyReminder","tags":["divination"],"summary":"divination.westernDailyReminder","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reminder":{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false}},"required":["reminder"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":0,"maximum":23},{"type":"null"}]},"reminderMinute":{"anyOf":[{"type":"number","const":0},{"type":"number","const":15},{"type":"number","const":30},{"type":"number","const":45}]},"timezone":{"type":"string","minLength":1,"maxLength":64},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/divination/western-daily/diary":{"get":{"operationId":"divination.westernDailyDiary","tags":["divination"],"summary":"divination.westernDailyDiary","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false}}},"required":["entries"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"security":[{"bearerAuth":[]}]}},"/divination/mu-question":{"post":{"operationId":"divination.muQuestion","tags":["divination"],"summary":"divination.muQuestion","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"answer":{"type":"string"},"refused":{"type":"boolean"},"followUpDraw":{"type":"object","properties":{"mode":{"type":"string","enum":["add","new"]},"intro":{"type":"string"},"cards":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":77},"name":{"type":"string"}},"required":["number","name"],"additionalProperties":false}}},"required":["mode","intro","cards"],"additionalProperties":false}},"required":["question","answer","refused"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":1000},"sourceRefType":{"type":"string","enum":["tarot_draw","matching","dream"]},"sourceRefId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"image":{"type":"object","properties":{"mimeType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"data":{"type":"string","minLength":1,"maxLength":5592408,"pattern":"^[A-Za-z0-9+/]+={0,2}$"}},"required":["mimeType","data"]}},"required":["question"]}}}},"security":[{"bearerAuth":[]}]}},"/divination/mu-question/history":{"get":{"operationId":"divination.muQuestionHistory","tags":["divination"],"summary":"divination.muQuestionHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"answer":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"createdAt":{"type":"string"},"sessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"hasImage":{"type":"boolean"}},"required":["id","question","answer","dateKey","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/mu-question/history/{id}":{"delete":{"operationId":"divination.muQuestionDelete","tags":["divination"],"summary":"divination.muQuestionDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/divination/history/{sourceTable}/{sourceId}":{"get":{"operationId":"divination.historyDetail","tags":["divination"],"summary":"divination.historyDetail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"lenormand"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"cards":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":36},"nameTh":{"type":"string"},"nameEn":{"type":"string"},"insert":{"type":"string"},"noun":{"type":"array","items":{"type":"string"}},"modifier":{"type":"array","items":{"type":"string"}},"polarity":{"type":"number"},"position":{"type":"string","enum":["left","center","right"]}},"required":["number","nameTh","nameEn","insert","noun","modifier","polarity","position"],"additionalProperties":false}},"reading":{"type":"object","properties":{"center":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":36},"label":{"type":"string"},"text":{"type":"string"}},"required":["number","label","text"],"additionalProperties":false},"pairs":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["source","trend","frame"]},"label":{"type":"string"},"left":{"type":"integer","minimum":1,"maximum":36},"right":{"type":"integer","minimum":1,"maximum":36},"gloss":{"type":"string"},"text":{"type":"string"}},"required":["role","label","left","right","gloss","text"],"additionalProperties":false}},"tone":{"type":"string","enum":["positive","mixed","challenging"]},"toneScore":{"type":"number"},"toneLabel":{"type":"string"},"closing":{"type":"string"}},"required":["center","pairs","tone","toneScore","toneLabel","closing"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","question","cards","reading","createdAt"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","draw"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"rune_draw"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string","enum":["love","work","money","health","general"]},"question":{"anyOf":[{"type":"string"},{"type":"null"}]},"scheme":{"type":"string","const":"norns"},"positions":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"position":{"type":"string","enum":["past","present","future"]},"label":{"type":"string"},"frame":{"type":"string"},"stone":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":25},"nameTh":{"type":"string"},"nameEn":{"type":"string"},"glyph":{"type":"string"},"reversed":{"type":"boolean"},"meaning":{"type":"string"}},"required":["number","nameTh","nameEn","glyph","reversed","meaning"],"additionalProperties":false}},"required":["position","label","frame","stone"],"additionalProperties":false}},"tone":{"type":"string","enum":["positive","mixed","challenging"]},"toneScore":{"type":"number"},"toneLabel":{"type":"string"},"pair":{"anyOf":[{"type":"object","properties":{"left":{"type":"integer","minimum":1,"maximum":25},"right":{"type":"integer","minimum":1,"maximum":25},"gloss":{"type":"string"},"text":{"type":"string"}},"required":["left","right","gloss","text"],"additionalProperties":false},{"type":"null"}]},"synthesis":{"type":"string"},"aiUsed":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","topic","question","scheme","positions","tone","toneScore","toneLabel","pair","synthesis","aiUsed","createdAt"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","draw"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"birdeye_oracle"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string","enum":["love","work","money","health","general"]},"deck":{"type":"string","enum":["love","tea"]},"question":{"type":"string"},"positions":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"position":{"type":"string","enum":["now","obstacle","path"]},"label":{"type":"string"},"frame":{"type":"string"},"card":{"type":"object","properties":{"deck":{"type":"string","enum":["love","tea"]},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"nameTh":{"type":"string"},"key":{"type":"string"},"meaning":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"img":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["deck","number","nameTh","key","meaning","keywords","category","polarity","img"],"additionalProperties":false}},"required":["position","label","frame","card"],"additionalProperties":false}},"tone":{"type":"string","enum":["positive","mixed","challenging"]},"toneScore":{"type":"number"},"toneLabel":{"type":"string"},"synthesis":{"type":"string"},"aiUsed":{"type":"boolean"},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":80},"name":{"type":"string"},"img":{"type":"string"}},"required":["number","name","img"],"additionalProperties":false},"cardKind":{"type":"string","enum":["oracle","tarot"]},"oracleCard":{"type":"object","properties":{"deck":{"type":"string","enum":["love","tea"]},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"nameTh":{"type":"string"},"key":{"type":"string"},"meaning":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"img":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["deck","number","nameTh","key","meaning","keywords","category","polarity","img"],"additionalProperties":false},"tone":{"type":"string","enum":["great","good","mixed","caution","bad"]},"answer":{"type":"object","properties":{"short":{"type":"string"},"detail":{"type":"string"},"closing":{"type":"string"}},"required":["short","detail","closing"],"additionalProperties":false},"aiUsed":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","question","card","tone","answer","aiUsed","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","topic","deck","question","positions","tone","toneScore","toneLabel","synthesis","aiUsed","followUps","createdAt"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","reading"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"saengsuk_oracle"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["general","timeline"]},"question":{"type":"string"},"positions":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":3},"position":{"type":"string","enum":["moment","amplifier","main","now","next","third"]},"label":{"type":"string"},"role":{"type":"string"},"read":{"type":"boolean"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":90},"nameTh":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"mood":{"type":"string"},"moodKeywords":{"type":"array","items":{"type":"string"}},"mainMeaning":{"type":"array","items":{"type":"string"}},"secondaryMeaning":{"type":"array","items":{"type":"string"}},"panMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"symbols":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"meanings":{"type":"array","items":{"type":"string"}}},"required":["label","meanings"],"additionalProperties":false}},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentStatus":{"type":"string","enum":["final","draft"]}},"required":["number","nameTh","polarity","mood","moodKeywords","mainMeaning","secondaryMeaning","panMessage","symbols","img","contentStatus"],"additionalProperties":false}},"required":["index","position","label","role","read","card"],"additionalProperties":false}},"mainIsClear":{"type":"boolean"},"headline":{"type":"string"},"overview":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","mode","question","positions","mainIsClear","headline","overview","createdAt"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","reading"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"pimfah_tarot"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"drawId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"cardNos":{"type":"array","items":{"type":"integer","minimum":0,"maximum":77}},"status":{"type":"string","enum":["drawn","interpreting","charging","awaiting_payment","ready","failed"]}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","drawId","question","cardNos","status"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"iching"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"method":{"type":"string","enum":["coins","manual"]},"question":{"type":"string"},"category":{"type":"string","enum":["work","money","love","health","general"]},"lineValues":{"minItems":6,"maxItems":6,"type":"array","items":{"anyOf":[{"type":"number","const":6},{"type":"number","const":7},{"type":"number","const":8},{"type":"number","const":9}]}},"primary":{"type":"object","properties":{"kingWen":{"type":"integer","minimum":1,"maximum":64},"cn":{"type":"string"},"pinyin":{"type":"string"},"thaiTrans":{"type":"string"},"nameTh":{"type":"string"},"unicode":{"type":"string"},"bits":{"type":"string"},"lower":{"type":"object","properties":{"key":{"type":"string","enum":["qian","dui","li","zhen","xun","kan","gen","kun"]},"cn":{"type":"string"},"pinyin":{"type":"string"},"symbol":{"type":"string"},"nameTh":{"type":"string"}},"required":["key","cn","pinyin","symbol","nameTh"],"additionalProperties":false},"upper":{"type":"object","properties":{"key":{"type":"string","enum":["qian","dui","li","zhen","xun","kan","gen","kun"]},"cn":{"type":"string"},"pinyin":{"type":"string"},"symbol":{"type":"string"},"nameTh":{"type":"string"}},"required":["key","cn","pinyin","symbol","nameTh"],"additionalProperties":false},"keywords":{"type":"array","items":{"type":"string"}},"gist":{"type":"string"},"judgmentTh":{"type":"string"},"imageTh":{"type":"string"},"advice":{"type":"string"},"authored":{"type":"boolean"}},"required":["kingWen","cn","pinyin","thaiTrans","nameTh","unicode","bits","lower","upper","keywords","gist","judgmentTh","imageTh","advice","authored"],"additionalProperties":false},"changingLines":{"type":"array","items":{"type":"object","properties":{"no":{"type":"integer","minimum":1,"maximum":6},"text":{"type":"string"}},"required":["no","text"],"additionalProperties":false}},"resulting":{"anyOf":[{"type":"object","properties":{"kingWen":{"type":"integer","minimum":1,"maximum":64},"cn":{"type":"string"},"pinyin":{"type":"string"},"thaiTrans":{"type":"string"},"nameTh":{"type":"string"},"unicode":{"type":"string"},"bits":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"gist":{"type":"string"},"judgmentTh":{"type":"string"},"authored":{"type":"boolean"}},"required":["kingWen","cn","pinyin","thaiTrans","nameTh","unicode","bits","keywords","gist","judgmentTh","authored"],"additionalProperties":false},{"type":"null"}]},"focus":{"type":"object","properties":{"kind":{"type":"string","enum":["judgment","line","both-judgments","resulting-line","resulting-judgment","all-moving"]},"lineNo":{"type":"integer","minimum":1,"maximum":6},"readIn":{"type":"string","enum":["primary","resulting"]},"lines":{"type":"array","items":{"type":"integer","minimum":1,"maximum":6}},"special":{"type":"string","enum":["yong9","yong6"]}},"required":["kind"],"additionalProperties":false},"yong":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["method","lineValues","primary","changingLines","resulting","focus","yong"],"additionalProperties":false},"aiAnswer":{"type":"string"}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","reading"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"dream"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"question":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"meaning":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"meaning":{"type":"string"}},"required":["pattern","meaning"],"additionalProperties":false}}},"required":["keyword","aliases","meaning"],"additionalProperties":false}},"numbers":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["question","matches","numbers"],"additionalProperties":false},"prose":{"type":"string"},"summary":{"type":"string"}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","reading"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"mu_question"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"question":{"type":"string"},"answer":{"type":"string"}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","question","answer"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"numerology"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"input":{"type":"string"},"full":{"type":"boolean"},"inputType":{"type":"string"},"tier":{"type":"string","enum":["free","deep"]}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","input","full","inputType","tier"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ice_face_reading"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"categories":{"type":"object","properties":{"faceShape":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementPrimary":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondary":{"anyOf":[{"type":"string","enum":["wood","fire","earth","metal","water"]},{"type":"null"}]},"lifeStage":{"type":"string","enum":["ears","upper","middle","lower"]}},"required":["faceShape","elementPrimary","elementSecondary","lifeStage"],"additionalProperties":false},"relationshipStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"occupation":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"type":"object","properties":{"faceReading":{"anyOf":[{"type":"object","properties":{"faceShape":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false},"sanTing":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"palaces":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"regions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"label":{"type":"string"},"narrative":{"type":"string"},"narrativeExpanded":{"type":"string"},"tone":{"type":"string"},"strength":{"type":"string"},"caution":{"type":"string"},"confidence":{"type":"number"},"score":{"type":"number"},"direction":{"type":"string","enum":["high","low","balanced"]},"elements":{"type":"object","properties":{"primary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"secondary":{"type":"object","properties":{"th":{"type":"string"},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["th","pct"],"additionalProperties":false},"shape":{"type":"string"}},"required":["primary","secondary","shape"],"additionalProperties":false},"elementKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementSecondaryKey":{"type":"string","enum":["wood","fire","earth","metal","water"]},"sources":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"detail":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"maxItems":32,"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["region","label","narrative","confidence","score","sources","detail"],"additionalProperties":false}},"overallConfidence":{"type":"number"}},"required":["faceShape","sanTing","palaces","regions","overallConfidence"],"additionalProperties":false},{"type":"null"}]},"summary":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","work","money","study","health"]},"label":{"type":"string"},"intro":{"type":"string"},"steer":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}},"weakRegionIds":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"regionIds":{"type":"array","items":{"type":"string"}}},"required":["key","label","hint","regionIds"],"additionalProperties":false}}},"required":["key","label","intro","regionIds","weakRegionIds"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lifeStage":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"ting":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string"},"note":{"type":"string"}},"required":["key","ting","label","note"],"additionalProperties":false},{"type":"null"}]}},"required":["faceReading","age","lifeStage"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","categories","relationshipStatus","occupation","detail"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"tarot_vvy"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"session":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionQuota":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"situation":{"type":"string"},"completedAt":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"question":{"type":"string"},"questionExpand":{"type":"string"},"questionType":{"type":"string"},"status":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positionLabel":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"reversed":{"type":"boolean"},"gist":{"type":"string"}},"required":["position","positionLabel","number","name","img","reversed","gist"],"additionalProperties":false}},"result":{"type":"object","properties":{"suggestion":{"type":"string"},"answer":{"type":"string"}},"required":["suggestion","answer"],"additionalProperties":false}},"required":["seq","question","questionExpand","questionType","status","cards","result"],"additionalProperties":false}}},"required":["sessionId","status","cardCount","questionQuota","situation","completedAt","questions"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","session"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ice_soulmate"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"result":{"type":"object","properties":{"userElement":{"type":"string","enum":["wood","fire","earth","metal","water"]},"userElementTh":{"type":"string"},"headline":{"type":"string"},"ideal":{"type":"object","properties":{"element":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementTh":{"type":"string"},"face":{"type":"string"},"personality":{"type":"string"},"thinking":{"type":"string"},"communication":{"type":"string"},"ageRange":{"type":"string"},"relationshipStyle":{"type":"string"},"why":{"type":"string"}},"required":["element","elementTh","face","personality","thinking","communication","ageRange","relationshipStyle","why"],"additionalProperties":false},"caution":{"type":"object","properties":{"element":{"type":"string","enum":["wood","fire","earth","metal","water"]},"elementTh":{"type":"string"},"face":{"type":"string"},"conflict":{"type":"string"},"communication":{"type":"string"},"leadership":{"type":"string"},"agreement":{"type":"string"}},"required":["element","elementTh","face","conflict","communication","leadership","agreement"],"additionalProperties":false},"bazi":{"type":"object","properties":{"available":{"type":"boolean"},"favorable":{"type":"array","items":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"favorableTh":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["available","favorable","favorableTh","note"],"additionalProperties":false}},"required":["userElement","userElementTh","headline","ideal","caution"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","result"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"ice_face_thoughts"},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"result":{"type":"object","properties":{"dateKey":{"type":"string"},"relationship":{"type":"string","enum":["crush","partner","friend","ex","boss","subordinate","newAcquaintance","senior","junior","pastTalk"]},"mood":{"type":"string","enum":["sweet","cheeky","twist","mysterious","teaseWork","teaseMoney","teaseLove"]},"moodLabel":{"type":"string"},"line":{"type":"string"},"shareText":{"type":"string"}},"required":["dateKey","relationship","mood","moodLabel","line","shareText"],"additionalProperties":false}},"required":["kind","sourceTable","sourceId","title","createdAt","dateKey","result"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sourceTable","in":"path","required":true,"schema":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]}},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"divination.historyDelete","tags":["divination"],"summary":"divination.historyDelete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sourceTable","in":"path","required":true,"schema":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]}},{"name":"sourceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/divination/history":{"get":{"operationId":"divination.history","tags":["divination"],"summary":"divination.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["tarot_vvy","tarot_free","tarot_daily","lenormand","iching","rune_draw","birdeye_oracle","pimfah_tarot","dream","mu_question","matching","western","uranian_daily","saju","life_graph","name_analysis","siamsi_draw","phone","lucky_number","bazi_daily","western_daily","card_of_the_day","crystal_ball","numerology","vision_signature","vision_face","ice_face_reading","advisor_reading","monthly","ice_soulmate","ice_sompong","sinsae_wallpaper","stellar_essence","bank_wallpaper","ice_face_thoughts","saengsuk_oracle"]},"sourceTable":{"type":"string","enum":["divination_readings","daily_bazi","daily_western","daily_card_diary","crystal_ball_draws","numerology_analyses","vision_analyses","reading_sessions","monthly_readings","compatibility","tarot_sessions","face_couples","wallpapers"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"subtitle":{"type":"string"},"category":{"type":"string","enum":["daily","tarot","astro","number","advisor"]},"hasFullText":{"type":"boolean"},"deepLink":{"type":"string"},"imagePath":{"type":"string"},"symbol":{"type":"object","properties":{"type":{"type":"string","enum":["siamsi_slip","rune_stone","hexagram"]},"number":{"type":"integer","minimum":0,"maximum":9007199254740991},"glyph":{"type":"string"},"reversed":{"type":"boolean"}},"required":["type","number"],"additionalProperties":false},"iconPath":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string"},"dateKey":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["kind","sourceTable","sourceId","title","category","hasFullText","deepLink","createdAt","dateKey"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["tarot_vvy","tarot_free","tarot_daily","lenormand","iching","rune_draw","birdeye_oracle","pimfah_tarot","dream","mu_question","matching","western","uranian_daily","saju","life_graph","name_analysis","siamsi_draw","phone","lucky_number","bazi_daily","western_daily","card_of_the_day","crystal_ball","numerology","vision_signature","vision_face","ice_face_reading","advisor_reading","monthly","ice_soulmate","ice_sompong","sinsae_wallpaper","stellar_essence","bank_wallpaper","ice_face_thoughts","saengsuk_oracle"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["daily","tarot","astro","number","advisor"]}},{"name":"tier","in":"query","required":false,"schema":{"type":"string","enum":["free","deep"]}}],"security":[{"bearerAuth":[]}]}},"/divination/chong-widget":{"get":{"operationId":"divination.chongWidget","tags":["divination"],"summary":"divination.chongWidget","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"zodiac":{"type":"string"},"zodiacKey":{"type":"string"},"statusLabel":{"type":"string"},"isChong":{"type":"boolean"},"yearLabel":{"type":"string"},"periodStartIso":{"type":"string"},"periodEndIso":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pctElapsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentLocale":{"type":"string"}},"required":["zodiac","statusLabel","isChong","yearLabel","periodStartIso","periodEndIso","daysLeft","totalDays","pctElapsed"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/chong-ceremony":{"get":{"operationId":"divination.chongCeremony","tags":["divination"],"summary":"divination.chongCeremony","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"advisorName":{"type":"string"},"serviceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"ceremony":{"type":"object","properties":{"dateLabel":{"type":"string"},"place":{"type":"string"}},"required":["dateLabel","place"],"additionalProperties":false},"season":{"anyOf":[{"type":"object","properties":{"zodiac":{"type":"string"},"zodiacKey":{"type":"string"},"statusLabel":{"type":"string"},"isChong":{"type":"boolean"},"yearLabel":{"type":"string"},"periodStartIso":{"type":"string"},"periodEndIso":{"type":"string"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pctElapsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["zodiac","statusLabel","isChong","yearLabel","periodStartIso","periodEndIso","daysLeft","totalDays","pctElapsed"],"additionalProperties":false},{"type":"null"}]},"triad":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"tag":{"type":"string"}},"required":["key","name","role","tag"],"additionalProperties":false}},"entitled":{"type":"boolean"},"ownedTier":{"anyOf":[{"type":"string","enum":["wallpaper","widget","entrust"]},{"type":"null"}]},"entrustRound":{"type":"object","properties":{"seasonYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"phase":{"type":"string","enum":["open","closed","done"]},"closeAtIso":{"anyOf":[{"type":"string"},{"type":"null"}]},"ritualAtIso":{"anyOf":[{"type":"string"},{"type":"null"}]},"closeLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"ritualLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"placeLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"replay":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbnailUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iframeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","hlsUrl","thumbnailUrl","iframeUrl","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"replayReady":{"type":"boolean"}},"required":["seasonYear","phase","closeAtIso","ritualAtIso","closeLabel","ritualLabel","placeLabel"],"additionalProperties":false},"nextRound":{"anyOf":[{"type":"object","properties":{"seasonYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"label":{"type":"string"},"waitlisted":{"type":"boolean"}},"required":["seasonYear","label","waitlisted"],"additionalProperties":false},{"type":"null"}]},"episodes":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"free":{"type":"boolean"},"locked":{"type":"boolean"},"playback":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbnailUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iframeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","hlsUrl","thumbnailUrl","iframeUrl","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]}},"required":["n","title","free","locked","playback"],"additionalProperties":false}},"packages":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tier":{"type":"string","enum":["wallpaper","widget","entrust"]},"name":{"type":"string"},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requiresShipping":{"type":"boolean"},"includes":{"type":"array","items":{"type":"string"}}},"required":["productId","tier","name","priceMinor","requiresShipping","includes"],"additionalProperties":false}},"upgrade":{"anyOf":[{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fromTier":{"type":"string","enum":["wallpaper","widget","entrust"]},"toTier":{"type":"string","enum":["wallpaper","widget","entrust"]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"}},"required":["productId","fromTier","toTier","priceMinor","name"],"additionalProperties":false},{"type":"null"}]},"artifact":{"anyOf":[{"type":"object","properties":{"serial":{"type":"string"},"verifyUrl":{"type":"string"}},"required":["serial","verifyUrl"],"additionalProperties":false},{"type":"null"}]},"shipment":{"anyOf":[{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderNo":{"type":"string"},"shipped":{"type":"boolean"},"trackingCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"shippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"phone":{"type":"string","minLength":4,"maxLength":30},"line1":{"type":"string","minLength":1,"maxLength":300},"line2":{"type":"string","maxLength":300},"subdistrict":{"type":"string","maxLength":120},"district":{"type":"string","maxLength":120},"province":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":4,"maxLength":10}},"required":["name","phone","line1","province","postalCode"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["orderId","orderNo","shipped","trackingCode","shippedAt","address","createdAt"],"additionalProperties":false},{"type":"null"}]},"entrustSlips":{"type":"array","items":{"type":"object","properties":{"orderNo":{"type":"string"},"slipNo":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","in_progress","proof_uploaded","delivered","cancelled"]},"updatedAtIso":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["orderNo","slipNo","status","updatedAtIso"],"additionalProperties":false}},"slipArt":{"type":"array","items":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"animal":{"type":"string"},"url":{"type":"string"}},"required":["branch","animal","url"],"additionalProperties":false}},"videos":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"string","enum":["prep","deity","ritual","activate"]},"posterUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"durationSec":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ready":{"type":"boolean"},"locked":{"type":"boolean"},"playback":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["stream","file"]},"url":{"type":"string"},"hlsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","url","hlsUrl"],"additionalProperties":false},{"type":"null"}]},"caption":{"type":"object","properties":{"locale":{"type":"string"},"url":{"type":"string"}},"required":["locale","url"],"additionalProperties":false}},"required":["slot","posterUrl","durationSec","ready","locked","playback"],"additionalProperties":false}},"deityVideos":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"generalIndex":{"type":"integer","minimum":0,"maximum":59},"posterUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"durationSec":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"ready":{"type":"boolean"},"locked":{"type":"boolean"},"playback":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["stream","file"]},"url":{"type":"string"},"hlsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","url","hlsUrl"],"additionalProperties":false},{"type":"null"}]},"caption":{"type":"object","properties":{"locale":{"type":"string"},"url":{"type":"string"}},"required":["locale","url"],"additionalProperties":false}},"required":["generalIndex","posterUrl","durationSec","ready","locked","playback"],"additionalProperties":false}},{"type":"null"}]},"wallpaperArt":{"anyOf":[{"type":"object","properties":{"backdrop":{"type":"string"},"smoke":{"anyOf":[{"type":"string"},{"type":"null"}]},"emblem":{"anyOf":[{"type":"string"},{"type":"null"}]},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["backdrop","smoke","emblem","logo"],"additionalProperties":false},{"type":"null"}]},"deityArt":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bodyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"plaqueUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","url","bodyUrl","plaqueUrl"],"additionalProperties":false}},"wallpaperLayers":{"anyOf":[{"type":"object","properties":{"bg":{"type":"string"},"center":{"anyOf":[{"type":"string"},{"type":"null"}]},"left":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"url":{"type":"string"}},"required":["key","url"],"additionalProperties":false}},"right":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"url":{"type":"string"}},"required":["key","url"],"additionalProperties":false}}},"required":["bg","center","left","right"],"additionalProperties":false},{"type":"null"}]},"widgetPreviewArt":{"anyOf":[{"type":"string"},{"type":"null"}]},"wallpaperNumbers":{"type":"array","items":{"type":"object","properties":{"orderNo":{"type":"string"},"numbers":{"type":"object","properties":{"topLeft":{"type":"string"},"topRight":{"type":"string"},"bottomLeft":{"type":"string"},"bottomRight":{"type":"string"}},"required":["topLeft","topRight","bottomLeft","bottomRight"],"additionalProperties":false}},"required":["orderNo","numbers"],"additionalProperties":false}},"contentLocale":{"type":"string"}},"required":["advisorName","serviceId","ceremony","season","triad","entitled","ownedTier","entrustRound","nextRound","episodes","packages","upgrade","artifact","shipment","entrustSlips","slipArt","videos","deityVideos","wallpaperArt","deityArt","wallpaperLayers","widgetPreviewArt","wallpaperNumbers"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/chong-deities":{"get":{"operationId":"divination.chongDeities","tags":["divination"],"summary":"divination.chongDeities","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deities":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"th":{"type":"string"},"name":{"type":"string"},"cn":{"type":"string"},"history":{"type":"string"},"art":{"type":"object","properties":{"frameUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"bodyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"plaqueUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frameUrl","bodyUrl","plaqueUrl"],"additionalProperties":false},"figure":{"anyOf":[{"type":"object","properties":{"frameW":{"type":"number"},"frameH":{"type":"number"},"contentTop":{"type":"number"},"contentBottom":{"type":"number"},"thumb":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"size":{"type":"number"}},"required":["x","y","size"],"additionalProperties":false}},"required":["frameW","frameH","contentTop","contentBottom","thumb"],"additionalProperties":false},{"type":"null"}]},"boostDomain":{"anyOf":[{"type":"string","enum":["work","money","love","fortune","health"]},{"type":"null"}]}},"required":["key","th","cn","history","art","figure","boostDomain"],"additionalProperties":false}},"boostDeities":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string","enum":["work","money","love","fortune","health"]},"th":{"type":"string"},"cn":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"history":{"type":"string"},"art":{"type":"object","properties":{"frameUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frameUrl"],"additionalProperties":false},"figure":{"anyOf":[{"type":"object","properties":{"frameW":{"type":"number"},"frameH":{"type":"number"},"contentTop":{"type":"number"},"contentBottom":{"type":"number"},"thumb":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"size":{"type":"number"}},"required":["x","y","size"],"additionalProperties":false}},"required":["frameW","frameH","contentTop","contentBottom","thumb"],"additionalProperties":false},{"type":"null"}]}},"required":["domain","th","cn","subtitle","history","art","figure"],"additionalProperties":false}},{"type":"null"}]},"contentLocale":{"type":"string"}},"required":["deities","boostDeities"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/chong-landing":{"get":{"operationId":"divination.chongLanding","tags":["divination"],"summary":"divination.chongLanding","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"hero":{"anyOf":[{"type":"object","properties":{"advisor":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"subtitle":{"type":"string","minLength":1},"portraitUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"portraitWidth":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"portraitHeight":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]}},"required":["advisor","title","subtitle","portraitUrl","portraitWidth","portraitHeight"],"additionalProperties":false},{"type":"null"}]},"background":{"anyOf":[{"type":"object","properties":{"videoUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"posterUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["videoUrl","posterUrl"],"additionalProperties":false},{"type":"null"}]},"question":{"anyOf":[{"type":"object","properties":{"heading":{"type":"string","minLength":1},"detail":{"type":"string","minLength":1}},"required":["heading","detail"],"additionalProperties":false},{"type":"null"}]},"howTo":{"anyOf":[{"type":"object","properties":{"heading":{"type":"string","minLength":1},"steps":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1},"detail":{"type":"string"},"imgUrl":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["title","detail","imgUrl"],"additionalProperties":false}}},"required":["heading","steps"],"additionalProperties":false},{"type":"null"}]},"cta":{"anyOf":[{"type":"object","properties":{"check":{"type":"string","minLength":1},"mine":{"type":"string","minLength":1},"lovedOne":{"type":"string","minLength":1}},"required":["check","mine","lovedOne"],"additionalProperties":false},{"type":"null"}]},"contentLocale":{"type":"string"}},"required":["hero","background","question","howTo","cta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/chong-ceremony/waitlist":{"post":{"operationId":"divination.chongWaitlistJoin","tags":["divination"],"summary":"divination.chongWaitlistJoin","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"seasonYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"waitlisted":{"type":"boolean","const":true},"contentLocale":{"type":"string"}},"required":["seasonYear","waitlisted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/rune":{"get":{"operationId":"rune.status","tags":["rune"],"summary":"rune.status","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canUse":{"type":"boolean"},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"config":{"type":"object","properties":{"stoneCount":{"anyOf":[{"type":"number","const":24},{"type":"number","const":25}]},"reversals":{"type":"boolean"},"scheme":{"type":"string","const":"norns"}},"required":["stoneCount","reversals","scheme"],"additionalProperties":false}},"required":["serviceId","freeRemaining","quotaRemaining","canUse","product","config"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/rune/draw":{"post":{"operationId":"rune.draw","tags":["rune"],"summary":"rune.draw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string","enum":["love","work","money","health","general"]},"question":{"anyOf":[{"type":"string"},{"type":"null"}]},"scheme":{"type":"string","const":"norns"},"positions":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"position":{"type":"string","enum":["past","present","future"]},"label":{"type":"string"},"frame":{"type":"string"},"stone":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":25},"nameTh":{"type":"string"},"nameEn":{"type":"string"},"glyph":{"type":"string"},"reversed":{"type":"boolean"},"meaning":{"type":"string"}},"required":["number","nameTh","nameEn","glyph","reversed","meaning"],"additionalProperties":false}},"required":["position","label","frame","stone"],"additionalProperties":false}},"tone":{"type":"string","enum":["positive","mixed","challenging"]},"toneScore":{"type":"number"},"toneLabel":{"type":"string"},"pair":{"anyOf":[{"type":"object","properties":{"left":{"type":"integer","minimum":1,"maximum":25},"right":{"type":"integer","minimum":1,"maximum":25},"gloss":{"type":"string"},"text":{"type":"string"}},"required":["left","right","gloss","text"],"additionalProperties":false},{"type":"null"}]},"synthesis":{"type":"string"},"aiUsed":{"type":"boolean"},"createdAt":{"type":"string"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","topic","question","scheme","positions","tone","toneScore","toneLabel","pair","synthesis","aiUsed","createdAt","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","enum":["love","work","money","health","general"]},"question":{"type":"string","minLength":1,"maxLength":280},"stones":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":25},"reversed":{"type":"boolean"}},"required":["number","reversed"]}},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["topic","stones","idempotencyKey"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/birdeye-oracle":{"get":{"operationId":"birdeyeOracle.status","tags":["birdeyeOracle"],"summary":"birdeyeOracle.status","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canUse":{"type":"boolean"},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"config":{"type":"object","properties":{"cardsPerDraw":{"type":"number","const":3},"decks":{"type":"object","properties":{"love":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tea":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["love","tea"],"additionalProperties":false},"artBase":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["cardsPerDraw","decks"],"additionalProperties":false},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","work","money","health","general"]},"labelTh":{"type":"string"},"deck":{"type":"string","enum":["love","tea"]},"coverImg":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","labelTh","deck","coverImg","sortOrder"],"additionalProperties":false}},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"topic":{"type":"string","enum":["love","work","money","health","general"]},"text":{"type":"string"},"quick":{"type":"boolean"},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","topic","text","quick","sortOrder"],"additionalProperties":false}},"decks":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["love","tea"]},"nameTh":{"type":"string"},"brandName":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"coverImg":{"anyOf":[{"type":"string"},{"type":"null"}]},"backImg":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","nameTh","brandName","size","coverImg","backImg"],"additionalProperties":false}},"freeClaim":{"anyOf":[{"type":"object","properties":{"claimable":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claimable","amount"],"additionalProperties":false},{"type":"null"}]}},"required":["serviceId","freeRemaining","quotaRemaining","canUse","product","config"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/birdeye-oracle/draw":{"post":{"operationId":"birdeyeOracle.draw","tags":["birdeyeOracle"],"summary":"birdeyeOracle.draw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string","enum":["love","work","money","health","general"]},"deck":{"type":"string","enum":["love","tea"]},"question":{"type":"string"},"positions":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"position":{"type":"string","enum":["now","obstacle","path"]},"label":{"type":"string"},"frame":{"type":"string"},"card":{"type":"object","properties":{"deck":{"type":"string","enum":["love","tea"]},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"nameTh":{"type":"string"},"key":{"type":"string"},"meaning":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"img":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["deck","number","nameTh","key","meaning","keywords","category","polarity","img"],"additionalProperties":false}},"required":["position","label","frame","card"],"additionalProperties":false}},"tone":{"type":"string","enum":["positive","mixed","challenging"]},"toneScore":{"type":"number"},"toneLabel":{"type":"string"},"synthesis":{"type":"string"},"aiUsed":{"type":"boolean"},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":80},"name":{"type":"string"},"img":{"type":"string"}},"required":["number","name","img"],"additionalProperties":false},"cardKind":{"type":"string","enum":["oracle","tarot"]},"oracleCard":{"type":"object","properties":{"deck":{"type":"string","enum":["love","tea"]},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"nameTh":{"type":"string"},"key":{"type":"string"},"meaning":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"img":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["deck","number","nameTh","key","meaning","keywords","category","polarity","img"],"additionalProperties":false},"tone":{"type":"string","enum":["great","good","mixed","caution","bad"]},"answer":{"type":"object","properties":{"short":{"type":"string"},"detail":{"type":"string"},"closing":{"type":"string"}},"required":["short","detail","closing"],"additionalProperties":false},"aiUsed":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","question","card","tone","answer","aiUsed","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","topic","deck","question","positions","tone","toneScore","toneLabel","synthesis","aiUsed","followUps","createdAt","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","enum":["love","work","money","health","general"]},"question":{"type":"string","minLength":1,"maxLength":280},"cards":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"integer","minimum":1,"maximum":80}},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["topic","question","cards","idempotencyKey"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/birdeye-oracle/follow-up":{"post":{"operationId":"birdeyeOracle.followUp","tags":["birdeyeOracle"],"summary":"birdeyeOracle.followUp","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"followUp":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":80},"name":{"type":"string"},"img":{"type":"string"}},"required":["number","name","img"],"additionalProperties":false},"cardKind":{"type":"string","enum":["oracle","tarot"]},"oracleCard":{"type":"object","properties":{"deck":{"type":"string","enum":["love","tea"]},"number":{"type":"integer","minimum":1,"maximum":9007199254740991},"nameTh":{"type":"string"},"key":{"type":"string"},"meaning":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"img":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["deck","number","nameTh","key","meaning","keywords","category","polarity","img"],"additionalProperties":false},"tone":{"type":"string","enum":["great","good","mixed","caution","bad"]},"answer":{"type":"object","properties":{"short":{"type":"string"},"detail":{"type":"string"},"closing":{"type":"string"}},"required":["short","detail","closing"],"additionalProperties":false},"aiUsed":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","question","card","tone","answer","aiUsed","createdAt"],"additionalProperties":false},{"type":"null"}]},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["accepted","reason","followUp","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"readingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"question":{"type":"string","minLength":1,"maxLength":280},"card":{"type":"integer","minimum":0,"maximum":80},"cardKind":{"type":"string","enum":["oracle","tarot"]},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["readingId","question","card","idempotencyKey"]}}}},"security":[{"bearerAuth":[]}]}},"/readings/birdeye-oracle/free-claim":{"post":{"operationId":"birdeyeOracle.claimFree","tags":["birdeyeOracle"],"summary":"birdeyeOracle.claimFree","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"claimed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claimed","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/birdeye-oracle/free-coupon":{"post":{"operationId":"birdeyeOracle.claimFreeCoupon","tags":["birdeyeOracle"],"summary":"birdeyeOracle.claimFreeCoupon","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"claimed":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claimed","amount","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/saengsuk-oracle":{"get":{"operationId":"saengsukOracle.status","tags":["saengsukOracle"],"summary":"saengsukOracle.status","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canUse":{"type":"boolean"},"nextFreeAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"validityDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"storeProduct":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","sku","title","priceMinor","currency","grantsUses","validityDays"],"additionalProperties":false},{"type":"null"}]},"config":{"type":"object","properties":{"cardsPerDraw":{"type":"number","const":3},"deckSize":{"type":"number","const":90},"backImg":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["cardsPerDraw","deckSize","backImg"],"additionalProperties":false}},"required":["serviceId","freeRemaining","quotaRemaining","canUse","nextFreeAt","product","config"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/saengsuk-oracle/draw":{"post":{"operationId":"saengsukOracle.draw","tags":["saengsukOracle"],"summary":"saengsukOracle.draw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["general","timeline"]},"question":{"type":"string"},"positions":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":1,"maximum":3},"position":{"type":"string","enum":["moment","amplifier","main","now","next","third"]},"label":{"type":"string"},"role":{"type":"string"},"read":{"type":"boolean"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":1,"maximum":90},"nameTh":{"type":"string"},"polarity":{"type":"string","enum":["0","+","-"]},"mood":{"type":"string"},"moodKeywords":{"type":"array","items":{"type":"string"}},"mainMeaning":{"type":"array","items":{"type":"string"}},"secondaryMeaning":{"type":"array","items":{"type":"string"}},"panMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"symbols":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"meanings":{"type":"array","items":{"type":"string"}}},"required":["label","meanings"],"additionalProperties":false}},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentStatus":{"type":"string","enum":["final","draft"]}},"required":["number","nameTh","polarity","mood","moodKeywords","mainMeaning","secondaryMeaning","panMessage","symbols","img","contentStatus"],"additionalProperties":false}},"required":["index","position","label","role","read","card"],"additionalProperties":false}},"mainIsClear":{"type":"boolean"},"headline":{"type":"string"},"overview":{"type":"string"},"createdAt":{"type":"string"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","mode","question","positions","mainIsClear","headline","overview","createdAt","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["general","timeline"]},"question":{"type":"string","minLength":1,"maxLength":280},"cards":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"integer","minimum":1,"maximum":90}},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["mode","question","cards","idempotencyKey"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-short-links":{"get":{"operationId":"shortLinks.list","tags":["shortLinks"],"summary":"shortLinks.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"url":{"type":"string"},"destination":{"type":"string"},"fallback":{"type":"string"},"printed":{"type":"boolean"},"firstClickAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"retiredTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"frozen":{"type":"boolean"}},"required":["slug","url","destination","fallback","printed","firstClickAt","retiredTo","createdBy","createdAt","frozen"],"additionalProperties":false}}},"required":["links"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"shortLinks.create","tags":["shortLinks"],"summary":"shortLinks.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"slug":{"type":"string"},"url":{"type":"string"},"destination":{"type":"string"},"fallback":{"type":"string"},"printed":{"type":"boolean"},"firstClickAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"retiredTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"frozen":{"type":"boolean"}},"required":["slug","url","destination","fallback","printed","firstClickAt","retiredTo","createdBy","createdAt","frozen"],"additionalProperties":false}},"required":["link"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":64},"destination":{"type":"string","minLength":1,"maxLength":2048},"fallback":{"type":"string","minLength":1,"maxLength":2048},"printed":{"type":"boolean"}},"required":["slug","destination","fallback"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-short-links/{slug}":{"patch":{"operationId":"shortLinks.update","tags":["shortLinks"],"summary":"shortLinks.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"slug":{"type":"string"},"url":{"type":"string"},"destination":{"type":"string"},"fallback":{"type":"string"},"printed":{"type":"boolean"},"firstClickAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"retiredTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"frozen":{"type":"boolean"}},"required":["slug","url","destination","fallback","printed","firstClickAt","retiredTo","createdBy","createdAt","frozen"],"additionalProperties":false}},"required":["link"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","minLength":1,"maxLength":2048},"fallback":{"type":"string","minLength":1,"maxLength":2048},"retiredTo":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"printed":{"type":"boolean"},"breakFix":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/admin-partners":{"get":{"operationId":"adminPartners.list","tags":["adminPartners"],"summary":"adminPartners.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}}},"required":["accounts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"adminPartners.create","tags":["adminPartners"],"summary":"adminPartners.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}},"required":["account"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":160},"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["displayName"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-partners/candidates":{"get":{"operationId":"adminPartners.candidates","tags":["adminPartners"],"summary":"adminPartners.candidates","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}]},"alreadyBound":{"type":"boolean"}},"required":["id","label","hint","alreadyBound"],"additionalProperties":false}}},"required":["candidates"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]}}],"security":[{"bearerAuth":[]}]}},"/admin-partners/{id}":{"patch":{"operationId":"adminPartners.update","tags":["adminPartners"],"summary":"adminPartners.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}},"required":["account"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":160},"access":{"type":"string","enum":["pending","active","vacation","banned"]}}}}}},"security":[{"bearerAuth":[]}]}},"/admin-partners/{id}/members":{"post":{"operationId":"adminPartners.addMember","tags":["adminPartners"],"summary":"adminPartners.addMember","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}},"required":["account"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"memberRole":{"default":"staff","type":"string","enum":["owner","staff"]}},"required":["email"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-partners/{id}/members/{memberId}":{"patch":{"operationId":"adminPartners.updateMember","tags":["adminPartners"],"summary":"adminPartners.updateMember","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}},"required":["account"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"memberRole":{"type":"string","enum":["owner","staff"]}}}}}},"security":[{"bearerAuth":[]}]}},"/admin-partners/{id}/subjects":{"post":{"operationId":"adminPartners.bindSubject","tags":["adminPartners"],"summary":"adminPartners.bindSubject","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}},"required":["account"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","subjectId"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-partners/{id}/subjects/{subjectId}":{"delete":{"operationId":"adminPartners.unbindSubject","tags":["adminPartners"],"summary":"adminPartners.unbindSubject","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberRole":{"type":"string","enum":["owner","staff"]},"active":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","email","userId","memberRole","active","createdAt"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]},"subjectId":{"type":"string"},"active":{"type":"boolean"},"subjectLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","subjectId","active","subjectLabel","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string"}},"required":["id","displayName","access","members","subjects","createdAt"],"additionalProperties":false}},"required":["account"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-quota-ops/users":{"get":{"operationId":"quotaOps.findUser","tags":["quotaOps"],"summary":"quotaOps.findUser","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","userName","displayName","email","active","createdAt"],"additionalProperties":false},{"type":"null"}]}},"required":["user"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"userName","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":30}}],"security":[{"bearerAuth":[]}]}},"/admin-quota-ops/state":{"get":{"operationId":"quotaOps.state","tags":["quotaOps"],"summary":"quotaOps.state","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"oneOf":[{"type":"object","properties":{"feature":{"type":"string","const":"crystalBall"},"crystalBall":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lockState":{"type":"string","enum":["can_draw","awaiting_answer","accepted_locked","rejected_locked"]},"nextDrawAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"draw":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","number","accepted","submittedAt","drawDate","createdAt"],"additionalProperties":false},{"type":"null"}]},"coupon":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"couponV3":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"free":{"anyOf":[{"type":"object","properties":{"periodKey":{"type":"string"},"cycle":{"type":"string","enum":["daily","weekly","monthly","once"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claimed":{"type":"boolean"}},"required":["periodKey","cycle","amount","claimed"],"additionalProperties":false},{"type":"null"}]},"spendGateToday":{"type":"object","properties":{"sourceRef":{"type":"string"},"exists":{"type":"boolean"}},"required":["sourceRef","exists"],"additionalProperties":false},"cta":{"type":"string","enum":["draw","buy","locked"]}},"required":["serviceId","eventId","lockState","nextDrawAt","draw","coupon","couponV3","free","spendGateToday","cta"],"additionalProperties":false}},"required":["feature","crystalBall"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"vvyTarot"},"vvyTarot":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"couponEnabled":{"type":"boolean"},"freeCycle":{"anyOf":[{"type":"string","enum":["daily","weekly","monthly","once"]},{"type":"null"}]},"coupon":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"freeSessionUsed":{"type":"boolean"},"freeSession":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"latestSession":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"unfinishedPaidSessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"orderNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"questionsAsked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","status","createdAt","orderNo","questionsAsked"],"additionalProperties":false}},"suspectLostCoupon":{"type":"boolean"}},"required":["packageId","eventId","label","cardCount","questionCount","couponEnabled","freeCycle","coupon","freeSessionUsed","freeSession","latestSession","unfinishedPaidSessions","suspectLostCoupon"],"additionalProperties":false}}},"required":["packages"],"additionalProperties":false}},"required":["feature","vvyTarot"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"shrineSiamsi"},"shrineSiamsi":{"type":"object","properties":{"todayKey":{"type":"string"},"today":{"anyOf":[{"type":"object","properties":{"readingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fortuneNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawnAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"burned":{"type":"boolean"},"deletedByUser":{"type":"boolean"}},"required":["readingId","fortuneNumber","topic","drawnAt","burned","deletedByUser"],"additionalProperties":false},{"type":"null"}]},"recentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["todayKey","today","recentCount"],"additionalProperties":false}},"required":["feature","shrineSiamsi"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"pimfahLuckyColor"},"pimfahLuckyColor":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceActive":{"type":"boolean"},"ownedByEntitlements":{"type":"boolean"},"ownedByLegacyGate":{"type":"boolean"},"entitlements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","expired","revoked"]},"orderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"orderNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"amountBaht":{"anyOf":[{"type":"number"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","orderId","orderNo","paidAt","amountBaht","provider","expiresAt","createdAt"],"additionalProperties":false}},"cta":{"type":"string","enum":["buy","owned"]}},"required":["serviceId","serviceActive","ownedByEntitlements","ownedByLegacyGate","entitlements","cta"],"additionalProperties":false}},"required":["feature","pimfahLuckyColor"],"additionalProperties":false}]}},"required":["state"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"feature","in":"query","required":true,"schema":{"type":"string","enum":["crystalBall","vvyTarot","shrineSiamsi","pimfahLuckyColor"]}},{"name":"userId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-quota-ops/apply":{"post":{"operationId":"quotaOps.apply","tags":["quotaOps"],"summary":"quotaOps.apply","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"applied":{"type":"boolean"},"plan":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string"},"summary":{"type":"string"},"destructive":{"type":"boolean"}},"required":["target","summary","destructive"],"additionalProperties":false}},"before":{"oneOf":[{"type":"object","properties":{"feature":{"type":"string","const":"crystalBall"},"crystalBall":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lockState":{"type":"string","enum":["can_draw","awaiting_answer","accepted_locked","rejected_locked"]},"nextDrawAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"draw":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","number","accepted","submittedAt","drawDate","createdAt"],"additionalProperties":false},{"type":"null"}]},"coupon":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"couponV3":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"free":{"anyOf":[{"type":"object","properties":{"periodKey":{"type":"string"},"cycle":{"type":"string","enum":["daily","weekly","monthly","once"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claimed":{"type":"boolean"}},"required":["periodKey","cycle","amount","claimed"],"additionalProperties":false},{"type":"null"}]},"spendGateToday":{"type":"object","properties":{"sourceRef":{"type":"string"},"exists":{"type":"boolean"}},"required":["sourceRef","exists"],"additionalProperties":false},"cta":{"type":"string","enum":["draw","buy","locked"]}},"required":["serviceId","eventId","lockState","nextDrawAt","draw","coupon","couponV3","free","spendGateToday","cta"],"additionalProperties":false}},"required":["feature","crystalBall"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"vvyTarot"},"vvyTarot":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"couponEnabled":{"type":"boolean"},"freeCycle":{"anyOf":[{"type":"string","enum":["daily","weekly","monthly","once"]},{"type":"null"}]},"coupon":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"freeSessionUsed":{"type":"boolean"},"freeSession":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"latestSession":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"unfinishedPaidSessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"orderNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"questionsAsked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","status","createdAt","orderNo","questionsAsked"],"additionalProperties":false}},"suspectLostCoupon":{"type":"boolean"}},"required":["packageId","eventId","label","cardCount","questionCount","couponEnabled","freeCycle","coupon","freeSessionUsed","freeSession","latestSession","unfinishedPaidSessions","suspectLostCoupon"],"additionalProperties":false}}},"required":["packages"],"additionalProperties":false}},"required":["feature","vvyTarot"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"shrineSiamsi"},"shrineSiamsi":{"type":"object","properties":{"todayKey":{"type":"string"},"today":{"anyOf":[{"type":"object","properties":{"readingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fortuneNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawnAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"burned":{"type":"boolean"},"deletedByUser":{"type":"boolean"}},"required":["readingId","fortuneNumber","topic","drawnAt","burned","deletedByUser"],"additionalProperties":false},{"type":"null"}]},"recentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["todayKey","today","recentCount"],"additionalProperties":false}},"required":["feature","shrineSiamsi"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"pimfahLuckyColor"},"pimfahLuckyColor":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceActive":{"type":"boolean"},"ownedByEntitlements":{"type":"boolean"},"ownedByLegacyGate":{"type":"boolean"},"entitlements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","expired","revoked"]},"orderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"orderNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"amountBaht":{"anyOf":[{"type":"number"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","orderId","orderNo","paidAt","amountBaht","provider","expiresAt","createdAt"],"additionalProperties":false}},"cta":{"type":"string","enum":["buy","owned"]}},"required":["serviceId","serviceActive","ownedByEntitlements","ownedByLegacyGate","entitlements","cta"],"additionalProperties":false}},"required":["feature","pimfahLuckyColor"],"additionalProperties":false}]},"after":{"anyOf":[{"oneOf":[{"type":"object","properties":{"feature":{"type":"string","const":"crystalBall"},"crystalBall":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lockState":{"type":"string","enum":["can_draw","awaiting_answer","accepted_locked","rejected_locked"]},"nextDrawAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"draw":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawDate":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","number","accepted","submittedAt","drawDate","createdAt"],"additionalProperties":false},{"type":"null"}]},"coupon":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"couponV3":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"free":{"anyOf":[{"type":"object","properties":{"periodKey":{"type":"string"},"cycle":{"type":"string","enum":["daily","weekly","monthly","once"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claimed":{"type":"boolean"}},"required":["periodKey","cycle","amount","claimed"],"additionalProperties":false},{"type":"null"}]},"spendGateToday":{"type":"object","properties":{"sourceRef":{"type":"string"},"exists":{"type":"boolean"}},"required":["sourceRef","exists"],"additionalProperties":false},"cta":{"type":"string","enum":["draw","buy","locked"]}},"required":["serviceId","eventId","lockState","nextDrawAt","draw","coupon","couponV3","free","spendGateToday","cta"],"additionalProperties":false}},"required":["feature","crystalBall"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"vvyTarot"},"vvyTarot":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"couponEnabled":{"type":"boolean"},"freeCycle":{"anyOf":[{"type":"string","enum":["daily","weekly","monthly","once"]},{"type":"null"}]},"coupon":{"type":"object","properties":{"exists":{"type":"boolean"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["exists","amount","active"],"additionalProperties":false},"freeSessionUsed":{"type":"boolean"},"freeSession":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"latestSession":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"unfinishedPaidSessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"orderNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"questionsAsked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","status","createdAt","orderNo","questionsAsked"],"additionalProperties":false}},"suspectLostCoupon":{"type":"boolean"}},"required":["packageId","eventId","label","cardCount","questionCount","couponEnabled","freeCycle","coupon","freeSessionUsed","freeSession","latestSession","unfinishedPaidSessions","suspectLostCoupon"],"additionalProperties":false}}},"required":["packages"],"additionalProperties":false}},"required":["feature","vvyTarot"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"shrineSiamsi"},"shrineSiamsi":{"type":"object","properties":{"todayKey":{"type":"string"},"today":{"anyOf":[{"type":"object","properties":{"readingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fortuneNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"drawnAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"burned":{"type":"boolean"},"deletedByUser":{"type":"boolean"}},"required":["readingId","fortuneNumber","topic","drawnAt","burned","deletedByUser"],"additionalProperties":false},{"type":"null"}]},"recentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["todayKey","today","recentCount"],"additionalProperties":false}},"required":["feature","shrineSiamsi"],"additionalProperties":false},{"type":"object","properties":{"feature":{"type":"string","const":"pimfahLuckyColor"},"pimfahLuckyColor":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceActive":{"type":"boolean"},"ownedByEntitlements":{"type":"boolean"},"ownedByLegacyGate":{"type":"boolean"},"entitlements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","expired","revoked"]},"orderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"orderNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"amountBaht":{"anyOf":[{"type":"number"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","status","orderId","orderNo","paidAt","amountBaht","provider","expiresAt","createdAt"],"additionalProperties":false}},"cta":{"type":"string","enum":["buy","owned"]}},"required":["serviceId","serviceActive","ownedByEntitlements","ownedByLegacyGate","entitlements","cta"],"additionalProperties":false}},"required":["feature","pimfahLuckyColor"],"additionalProperties":false}]},{"type":"null"}]}},"required":["applied","plan","before","after"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"feature":{"type":"string","const":"crystalBall"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"oneOf":[{"type":"object","properties":{"process":{"type":"string","const":"unlock"}},"required":["process"]},{"type":"object","properties":{"process":{"type":"string","const":"readyFree"}},"required":["process"]},{"type":"object","properties":{"process":{"type":"string","const":"forcePurchase"}},"required":["process"]}]},"reason":{"type":"object","properties":{"code":{"type":"string","enum":["customerPaidNoDelivery","promoFix","systemTest","other"]},"note":{"type":"string","minLength":1,"maxLength":500}},"required":["code"]},"idempotencyKey":{"type":"string","minLength":8,"maxLength":200},"dryRun":{"type":"boolean"}},"required":["feature","userId","action","reason","idempotencyKey","dryRun"]},{"type":"object","properties":{"feature":{"type":"string","const":"vvyTarot"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"oneOf":[{"type":"object","properties":{"process":{"type":"string","const":"restoreFreeCoupon"},"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["process","packageId"]},{"type":"object","properties":{"process":{"type":"string","const":"readyFree"},"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["process","packageId"]},{"type":"object","properties":{"process":{"type":"string","const":"forcePurchase"},"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["process","packageId"]},{"type":"object","properties":{"process":{"type":"string","const":"closeUnfinishedPaid"},"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["process","packageId"]}]},"reason":{"type":"object","properties":{"code":{"type":"string","enum":["customerPaidNoDelivery","promoFix","systemTest","other"]},"note":{"type":"string","minLength":1,"maxLength":500}},"required":["code"]},"idempotencyKey":{"type":"string","minLength":8,"maxLength":200},"dryRun":{"type":"boolean"}},"required":["feature","userId","action","reason","idempotencyKey","dryRun"]},{"type":"object","properties":{"feature":{"type":"string","const":"shrineSiamsi"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"oneOf":[{"type":"object","properties":{"process":{"type":"string","const":"redrawToday"}},"required":["process"]}]},"reason":{"type":"object","properties":{"code":{"type":"string","enum":["customerPaidNoDelivery","promoFix","systemTest","other"]},"note":{"type":"string","minLength":1,"maxLength":500}},"required":["code"]},"idempotencyKey":{"type":"string","minLength":8,"maxLength":200},"dryRun":{"type":"boolean"}},"required":["feature","userId","action","reason","idempotencyKey","dryRun"]},{"type":"object","properties":{"feature":{"type":"string","const":"pimfahLuckyColor"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"oneOf":[{"type":"object","properties":{"process":{"type":"string","const":"forcePurchase"}},"required":["process"]},{"type":"object","properties":{"process":{"type":"string","const":"restoreAccess"}},"required":["process"]}]},"reason":{"type":"object","properties":{"code":{"type":"string","enum":["customerPaidNoDelivery","promoFix","systemTest","other"]},"note":{"type":"string","minLength":1,"maxLength":500}},"required":["code"]},"idempotencyKey":{"type":"string","minLength":8,"maxLength":200},"dryRun":{"type":"boolean"}},"required":["feature","userId","action","reason","idempotencyKey","dryRun"]}]}}}},"security":[{"bearerAuth":[]}]}},"/admin-staff-roles":{"get":{"operationId":"staffRoles.list","tags":["staffRoles"],"summary":"staffRoles.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"builtin":{"type":"boolean"},"active":{"type":"boolean"},"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","scopes","builtin","active","memberCount","createdAt","updatedAt"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"includeInactive","in":"query","required":false,"schema":{"default":false,"type":"boolean"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"staffRoles.create","tags":["staffRoles"],"summary":"staffRoles.create","description":"Auth: requires role super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"builtin":{"type":"boolean"},"active":{"type":"boolean"},"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","scopes","builtin","active","memberCount","createdAt","updatedAt"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"scopes":{"maxItems":23,"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}}},"required":["slug","scopes"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-staff-roles/{id}":{"get":{"operationId":"staffRoles.get","tags":["staffRoles"],"summary":"staffRoles.get","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"builtin":{"type":"boolean"},"active":{"type":"boolean"},"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","scopes","builtin","active","memberCount","createdAt","updatedAt"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"patch":{"operationId":"staffRoles.update","tags":["staffRoles"],"summary":"staffRoles.update","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"builtin":{"type":"boolean"},"active":{"type":"boolean"},"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","scopes","builtin","active","memberCount","createdAt","updatedAt"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scopes":{"maxItems":23,"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"active":{"type":"boolean","const":true}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"staffRoles.deactivate","tags":["staffRoles"],"summary":"staffRoles.deactivate","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"builtin":{"type":"boolean"},"active":{"type":"boolean"},"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","scopes","builtin","active","memberCount","createdAt","updatedAt"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-staff-roles/{id}/members":{"get":{"operationId":"staffRoles.members","tags":["staffRoles"],"summary":"staffRoles.members","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"active":{"type":"boolean"}},"required":["id","slug","active"],"additionalProperties":false},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","email","role","active","staffRole","scopes","userId","createdAt"],"additionalProperties":false}}},"required":["members"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-permissions":{"get":{"operationId":"permissions.list","tags":["permissions"],"summary":"permissions.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"permissions":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]},"group":{"type":"string","enum":["overview","people","content","money","system"]},"label":{"type":"string"},"description":{"type":"string"},"sensitive":{"type":"boolean"},"roleAssignable":{"type":"boolean"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"}},"required":["id","slug"],"additionalProperties":false}}},"required":["scope","group","label","description","sensitive","roleAssignable","roles"],"additionalProperties":false}}},"required":["permissions"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/admin-staff":{"get":{"operationId":"staffMembers.list","tags":["staffMembers"],"summary":"staffMembers.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"active":{"type":"boolean"}},"required":["id","slug","active"],"additionalProperties":false},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","email","role","active","staffRole","scopes","userId","createdAt"],"additionalProperties":false}}},"required":["members"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"staffMembers.invite","tags":["staffMembers"],"summary":"staffMembers.invite","description":"Auth: requires role super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"active":{"type":"boolean"}},"required":["id","slug","active"],"additionalProperties":false},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","email","role","active","staffRole","scopes","userId","createdAt"],"additionalProperties":false}},"required":["member"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["admin","super_admin"]},"staffRoleId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["email","role"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-staff/{id}":{"get":{"operationId":"staffMembers.get","tags":["staffMembers"],"summary":"staffMembers.get","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"active":{"type":"boolean"}},"required":["id","slug","active"],"additionalProperties":false},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","email","role","active","staffRole","scopes","userId","createdAt"],"additionalProperties":false}},"required":["member"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"patch":{"operationId":"staffMembers.update","tags":["staffMembers"],"summary":"staffMembers.update","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRole":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"active":{"type":"boolean"}},"required":["id","slug","active"],"additionalProperties":false},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","email","role","active","staffRole","scopes","userId","createdAt"],"additionalProperties":false}},"required":["member"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","super_admin"]},"active":{"type":"boolean"},"staffRoleId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}}}}}},"security":[{"bearerAuth":[]}]}},"/admin-staff/{id}/permissions":{"get":{"operationId":"staffMembers.effectivePermissions","tags":["staffMembers"],"summary":"staffMembers.effectivePermissions","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["admin","super_admin"]},"source":{"type":"string","enum":["super_admin","legacy_admin","staff_role","inactive"]},"staffRole":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"}},"required":["id","slug"],"additionalProperties":false},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["overview.read","advisor.manage","user.read","user.manage","staff.manage","staff.read","wallpaper.manage","banner.manage","announcement.manage","article.manage","luckydraw.manage","event.manage","featureflag.manage","finance.read","transaction.read","promo.manage","membership.manage","paymentprovider.manage","activitylog.read","tool.read","shorturl.manage","partner.manage","quota.manage"]}}},"required":["memberId","role","source","staffRole","scopes"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-staff/{id}/revoke-sessions":{"post":{"operationId":"staffMembers.revokeSessions","tags":["staffMembers"],"summary":"staffMembers.revokeSessions","description":"Auth: requires role super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean"},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["revoked","userId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-staff-audit":{"get":{"operationId":"staffAudit.list","tags":["staffAudit"],"summary":"staffAudit.list","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"action":{"anyOf":[{"type":"string"},{"type":"null"}]},"targetId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"oldValue":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"newValue":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"ipAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","userId","userName","action","targetId","oldValue","newValue","status","errorMessage","ipAddress","createdAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalItems":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["page","limit","totalItems","totalPages"],"additionalProperties":false}},"required":["items","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":320}},{"name":"actorUserId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/partners/auth/social":{"post":{"operationId":"partners.authSocial","tags":["partners"],"summary":"partners.authSocial","description":"Auth: public (no token).","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","role","email","displayName"],"additionalProperties":false},"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"tokenType":{"type":"string"}},"required":["user","accessToken","expiresIn","tokenType"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["google","apple"]},"idToken":{"type":"string","minLength":1}},"required":["provider","idToken"]}}}}}},"/partners/me":{"get":{"operationId":"partners.me","tags":["partners"],"summary":"partners.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"memberRole":{"type":"string","enum":["owner","staff"]}},"required":["id","displayName","access","memberRole"],"additionalProperties":false}},"selected":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"access":{"type":"string","enum":["pending","active","vacation","banned"]},"memberRole":{"type":"string","enum":["owner","staff"]},"kinds":{"type":"array","items":{"type":"string","enum":["creatorProfile","v3Partner","sellerShop"]}},"creatorProfileIds":{"type":"array","items":{"type":"string"}}},"required":["id","displayName","access","memberRole","kinds","creatorProfileIds"],"additionalProperties":false},{"type":"null"}]},"capabilities":{"type":"array","items":{"type":"string","enum":["partner.profile.edit","partner.post.write","partner.service.copy.edit","partner.service.availability","partner.stats.read","partner.settlement.read","partner.messages.read"]}},"statsAsOf":{"anyOf":[{"type":"object","properties":{"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"dataThrough":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"stale":{"type":"boolean"},"lastRunOk":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["updatedAt","dataThrough","stale","lastRunOk"],"additionalProperties":false},{"type":"null"}]}},"required":["accounts","selected","capabilities"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/partners/me/services/{id}":{"patch":{"operationId":"partners.updateServiceCopy","tags":["partners"],"summary":"partners.updateServiceCopy","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string"},"category":{"type":"string","enum":["predict","boost"]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"pricingModel":{"type":"string","enum":["one_time","subscription","free"]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"priceNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"freeQuotaPerMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"config":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","creatorId","type","category","categoryLabel","title","description","pricingModel","priceMinor","currency","priceNote","freeQuotaPerMonth","active","config","bannerUrl","createdAt","updatedAt"],"additionalProperties":false}},"required":["service"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"priceNote":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]}},"additionalProperties":{}}}}},"security":[{"bearerAuth":[]}]}},"/partners/me/overview":{"get":{"operationId":"partners.overview","tags":["partners"],"summary":"partners.overview","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"notLinked"},"rangeDays":{"type":"number","enum":[7,30,90]}},"required":["state","rangeDays"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"noData"},"rangeDays":{"type":"number","enum":[7,30,90]},"statsAsOf":{"type":"object","properties":{"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"dataThrough":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"stale":{"type":"boolean"},"lastRunOk":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["updatedAt","dataThrough","stale","lastRunOk"],"additionalProperties":false}},"required":["state","rangeDays","statsAsOf"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"ready"},"rangeDays":{"type":"number","enum":[7,30,90]},"statsAsOf":{"type":"object","properties":{"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"dataThrough":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"stale":{"type":"boolean"},"lastRunOk":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["updatedAt","dataThrough","stale","lastRunOk"],"additionalProperties":false},"period":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"complete":{"type":"boolean"}},"required":["from","to","complete"],"additionalProperties":false},"totals":{"type":"object","properties":{"readings":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ratedReadings":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notedReadings":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"readingsCoveredFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"newFollowers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["readings","ratedReadings","notedReadings","readingsCoveredFrom","newFollowers"],"additionalProperties":false},"posts":{"type":"object","properties":{"published":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["published","likes","comments"],"additionalProperties":false},"features":{"type":"array","items":{"type":"object","properties":{"serviceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"readings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ratedReadings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notedReadings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["readings","ratedReadings","notedReadings"],"additionalProperties":false},{"type":"null"}]},"coveredFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"keys":{"type":"array","items":{"type":"object","properties":{"featureKey":{"type":"string"},"tracked":{"type":"boolean"},"coveredFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"readings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ratedReadings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notedReadings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"peakDailyUsers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["readings","ratedReadings","notedReadings","peakDailyUsers"],"additionalProperties":false},{"type":"null"}]}},"required":["featureKey","tracked","coveredFrom","usage"],"additionalProperties":false}}},"required":["serviceId","title","active","usage","coveredFrom","keys"],"additionalProperties":false}}},"required":["state","rangeDays","statsAsOf","period","totals","posts","features"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"rangeDays","in":"query","required":false,"schema":{"default":7,"type":"number"}}],"security":[{"bearerAuth":[]}]}},"/partners/me/features/{serviceId}":{"get":{"operationId":"partners.featureStats","tags":["partners"],"summary":"partners.featureStats","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false},"rangeDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"featureKeys":{"type":"array","items":{"type":"string"}},"statsAsOf":{"type":"object","properties":{"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"dataThrough":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"stale":{"type":"boolean"},"lastRunOk":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["updatedAt","dataThrough","stale","lastRunOk"],"additionalProperties":false},"period":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"complete":{"type":"boolean"}},"required":["from","to","complete"],"additionalProperties":false},{"type":"null"}]},"keys":{"type":"array","items":{"type":"object","properties":{"featureKey":{"type":"string"},"tracked":{"type":"boolean"},"coveredFrom":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["featureKey","tracked","coveredFrom"],"additionalProperties":false}},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"featureKey":{"type":"string"},"uses":{"type":"integer","minimum":0,"maximum":9007199254740991},"users":{"type":"integer","minimum":0,"maximum":9007199254740991},"rated":{"type":"integer","minimum":0,"maximum":9007199254740991},"notes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","featureKey","uses","users","rated","notes"],"additionalProperties":false}},"demographic":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"featureKey":{"type":"string"},"dimension":{"type":"string","const":"gender"},"cells":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string","enum":["female","male","unknown"]},"users":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["bucket","users"],"additionalProperties":false}},"suppressed":{"type":"boolean"}},"required":["featureKey","dimension","cells","suppressed"],"additionalProperties":false},{"type":"object","properties":{"featureKey":{"type":"string"},"dimension":{"type":"string","const":"ageBand"},"cells":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string","enum":["under18","18to24","25to34","35to44","45to54","55plus","unknown"]},"users":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["bucket","users"],"additionalProperties":false}},"suppressed":{"type":"boolean"}},"required":["featureKey","dimension","cells","suppressed"],"additionalProperties":false}]}},"messages":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"featureKey":{"type":"string"},"text":{"type":"string","maxLength":500},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]}},"required":["date","featureKey","text","rating"],"additionalProperties":false}},{"type":"null"}]}},"required":["service","rangeDays","featureKeys","statsAsOf","period","keys","daily","demographic","messages"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"serviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"rangeDays","in":"query","required":false,"schema":{"default":30,"type":"number"}}],"security":[{"bearerAuth":[]}]}},"/partners/me/settlement":{"get":{"operationId":"partners.settlement","tags":["partners"],"summary":"partners.settlement","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"notLinked"}},"required":["state"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"linked"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"month":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","const":"THB"},"totals":{"type":"object","properties":{"orderCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"incompleteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purchaseTotalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partnerShareMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partnerShareVatMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partnerShareTotalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"whtMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"netCashOutMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["orderCount","refundedCount","incompleteCount","purchaseTotalMinor","partnerShareMinor","partnerShareVatMinor","partnerShareTotalMinor","whtMinor","netCashOutMinor"],"additionalProperties":false},"lines":{"type":"array","items":{"type":"object","properties":{"orderNo":{"type":"string"},"itemName":{"anyOf":[{"type":"string"},{"type":"null"}]},"paidAt":{"type":"string"},"refunded":{"type":"boolean"},"shareStatus":{"type":"string","enum":["ready","pending","notConfigured"]},"purchaseTotalMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"partnerShareMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"partnerShareVatMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"partnerShareTotalMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"whtMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"netCashOutMinor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["orderNo","itemName","paidAt","refunded","shareStatus","purchaseTotalMinor","partnerShareMinor","partnerShareVatMinor","partnerShareTotalMinor","whtMinor","netCashOutMinor"],"additionalProperties":false}}},"required":["state","year","month","currency","totals","lines"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":2000,"maximum":2100}},{"name":"month","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":12}}],"security":[{"bearerAuth":[]}]}},"/partners/me/services":{"get":{"operationId":"partners.listServices","tags":["partners"],"summary":"partners.listServices","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string"},"category":{"type":"string","enum":["predict","boost"]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"pricingModel":{"type":"string","enum":["one_time","subscription","free"]},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"priceNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"freeQuotaPerMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"config":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","creatorId","type","category","categoryLabel","title","description","pricingModel","priceMinor","currency","priceNote","freeQuotaPerMonth","active","config","bannerUrl","createdAt","updatedAt"],"additionalProperties":false}}},"required":["services"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/partners/me/profiles":{"get":{"operationId":"partners.listProfiles","tags":["partners"],"summary":"partners.listProfiles","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"stageCardUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string"},{"type":"null"}]},"specialties":{"type":"array","items":{"type":"string"}},"verified":{"type":"boolean"},"status":{"type":"string","enum":["pending","active","suspended"]},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","bio","avatarUrl","coverUrl","heroUrl","stageCardUrl","cardTitle","cardDesc","specialties","verified","status","followerCount","createdAt","updatedAt"],"additionalProperties":false}}},"required":["creators"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/partners/me/profiles/{id}":{"patch":{"operationId":"partners.updateProfile","tags":["partners"],"summary":"partners.updateProfile","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"stageCardUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string"},{"type":"null"}]},"specialties":{"type":"array","items":{"type":"string"}},"verified":{"type":"boolean"},"status":{"type":"string","enum":["pending","active","suspended"]},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","bio","avatarUrl","coverUrl","heroUrl","stageCardUrl","cardTitle","cardDesc","specialties","verified","status","followerCount","createdAt","updatedAt"],"additionalProperties":false}},"required":["creator"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"heroUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"specialties":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":{}}}}},"security":[{"bearerAuth":[]}]}},"/partners/me/posts":{"get":{"operationId":"partners.listPosts","tags":["partners"],"summary":"partners.listPosts","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["draft","published"]}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt","status"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["posts","limit","offset"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["draft","published","all"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"creatorId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"partners.createPost","tags":["partners"],"summary":"partners.createPost","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["draft","published"]}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt","status"],"additionalProperties":false}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["text","image","video"]},"body":{"type":"string","maxLength":8000},"mediaUrls":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}},"hashtags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"visibility":{"default":"public","type":"string","enum":["public","paywalled"]},"requiredServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","published"]},"visibleFrom":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","creatorId"],"additionalProperties":{}}}}},"security":[{"bearerAuth":[]}]}},"/partners/me/posts/{id}":{"patch":{"operationId":"partners.updatePost","tags":["partners"],"summary":"partners.updatePost","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["draft","published"]}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt","status"],"additionalProperties":false}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}]},"mediaUrls":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}},"hashtags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"additionalProperties":{}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"partners.deletePost","tags":["partners"],"summary":"partners.deletePost","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/partners/me/posts/{id}/publish":{"post":{"operationId":"partners.publishPost","tags":["partners"],"summary":"partners.publishPost","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["draft","published"]}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt","status"],"additionalProperties":false}},"required":["post"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/lucky-shirt":{"get":{"operationId":"luckyColor.get","tags":["luckyColor"],"summary":"luckyColor.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"needsBirthData":{"type":"boolean"},"prefs":{"type":"object","properties":{"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]}},"required":["fortuneSystem","positionMode"],"additionalProperties":false},"view":{"anyOf":[{"type":"object","properties":{"system":{"type":"string","enum":["thai","bazi","western"]},"tag":{"type":"string"},"summary":{"type":"object","properties":{"favorable":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"favorableGroups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"star":{"type":"boolean"}},"required":["label","colors","star"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"disclosure":{"type":"string"},"birthTimeHint":{"anyOf":[{"type":"string"},{"type":"null"}]},"highlights":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"subtitle":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","subtitle","colors"],"additionalProperties":false}}},"required":["favorable","avoid","disclosure","birthTimeHint","highlights"],"additionalProperties":false},"base":{"type":"object","properties":{"tag":{"type":"string"},"intro":{"type":"string"},"disclosure":{"type":"string"},"groups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false}},"avoid":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false}},"required":["tag","intro","disclosure","groups"],"additionalProperties":false},"week":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"subtitle":{"type":"string"},"caution":{"type":"boolean"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"wearItems":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false}},"shirtLabel":{"type":"string"},"avoidColors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"day":{"oneOf":[{"type":"object","properties":{"system":{"type":"string","const":"thai"},"header":{"type":"object","properties":{"title":{"type":"string"},"dayName":{"type":"string"},"dateNoYear":{"type":"string"},"fullDate":{"type":"string"}},"required":["title","dayName","dateNoYear","fullDate"],"additionalProperties":false},"intro":{"type":"string"},"dimensions":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false}},"avoid":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false},"avoidAlways":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false},"challengedNote":{"type":"string"}},"required":["system","header","intro","dimensions"],"additionalProperties":false},{"type":"object","properties":{"system":{"type":"string","enum":["bazi","western"]},"header":{"type":"object","properties":{"title":{"type":"string"},"dayName":{"type":"string"},"dateNoYear":{"type":"string"},"fullDate":{"type":"string"}},"required":["title","dayName","dateNoYear","fullDate"],"additionalProperties":false},"subtitle":{"type":"string"},"favorable":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false},"avoid":{"type":"object","properties":{"label":{"type":"string"},"hint":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["label","colors"],"additionalProperties":false}},"required":["system","header","subtitle","favorable"],"additionalProperties":false}]}},"required":["date","title","subtitle","colors","avoidColors","day"],"additionalProperties":false}}},"required":["system","tag","summary","base","week"],"additionalProperties":false},{"type":"null"}]}},"required":["date","needsBirthData","prefs","view"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/pimfah-lucky-color":{"get":{"operationId":"pimfahLuckyColor.get","tags":["pimfahLuckyColor"],"summary":"pimfahLuckyColor.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"needsBirthData":{"type":"boolean"},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]},"overview":{"anyOf":[{"type":"object","properties":{"situations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"sub":{"type":"string"},"swatches":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"share":{"type":"number"}},"required":["hex","share"],"additionalProperties":false}}},"required":["key","title","sub","swatches"],"additionalProperties":false}},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"topic":{"type":"string","enum":["money","career","love","health","luck"]},"title":{"type":"string"},"dateLabel":{"type":"string"},"coverLabel":{"type":"string"},"topicTh":{"type":"string"},"colorName":{"type":"string"},"swatches":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"share":{"type":"number"}},"required":["hex","share"],"additionalProperties":false}},"kalakiniDay":{"type":"boolean"}},"required":["date","topic","title","dateLabel","coverLabel","topicTh","colorName","swatches","kalakiniDay"],"additionalProperties":false}}},"required":["situations","days"],"additionalProperties":false},{"type":"null"}]},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayName":{"type":"string"},"dateLabel":{"type":"string"},"kalakiniDay":{"type":"boolean"},"dominantTopic":{"type":"string","enum":["money","career","love","health","luck"]},"byTopic":{"type":"object","properties":{"money":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"shirt":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"thaksaRole":{"type":"string"},"houseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"houseTh":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}},"dignity":{"type":"number","enum":[0,1,2,3,4,5,6]},"dignityTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]},"dignityZodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"dignityAlt":{"anyOf":[{"type":"object","properties":{"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"level":{"type":"number","enum":[0,1,2,3,4,5,6]},"levelTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]}},"required":["zodiac","level","levelTh"],"additionalProperties":false},{"type":"null"}]},"penalties":{"type":"array","items":{"type":"string","enum":["ประ","เจ้าเรือนภพร้าย"]}},"score":{"type":"number"},"slotTh":{"type":"string"},"transitFrom":{"type":"object","properties":{"rulesHouseNos":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"rulesHousesTh":{"type":"array","items":{"type":"string"}},"entersHouseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesHouseNos","rulesHousesTh","entersHouseNo"],"additionalProperties":false}},"required":["planet","planetTh","colors","sources","dignity","dignityTh","dignityZodiac","dignityAlt","penalties","score","slotTh"],"additionalProperties":false}},"excluded":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"reason":{"type":"string","enum":["กาลีจร","กาลีกำเนิด","นิจ","มฤตยู"]},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}}},"required":["planet","planetTh","reason","sources"],"additionalProperties":false}},"kalakini":{"type":"object","properties":{"jorn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jornTh":{"type":"string"},"natal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"natalTh":{"type":"string"}},"required":["jorn","jornTh","natal","natalTh"],"additionalProperties":false},"hasLagna":{"type":"boolean"},"lagnaSign":{"anyOf":[{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},{"type":"null"}]}},"required":["topic","topicTh","thaksaRole","houseNo","houseTh","candidates","excluded","kalakini","hasLagna","lagnaSign"],"additionalProperties":false},"palette":{"type":"object","properties":{"variants":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"swatches":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["main","secondary","accent","ground"]},"roleTh":{"type":"string"},"hex":{"type":"string"},"share":{"type":"number"},"layer":{"type":"string","enum":["tamra","design"]}},"required":["role","roleTh","hex","share","layer"],"additionalProperties":false}},"score":{"type":"number"}},"required":["swatches","score"],"additionalProperties":false}},"forbidMargin":{"type":"number"},"anchorPlanet":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"anchorPlanetTh":{"type":"string"},"anchorFamilyTh":{"type":"string"},"anchorHue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"forbidden":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"halfWidth":{"type":"number"},"achromatic":{"type":"boolean"},"ring":{"type":"string","enum":["jorn","natal"]},"ringTh":{"type":"string"}},"required":["planet","planetTh","familyTh","refHex","hue","halfWidth","achromatic","ring","ringTh"],"additionalProperties":false}},"votes":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"source":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]},"sourceTh":{"type":"string"},"weight":{"type":"number"},"supportsAnchor":{"type":"boolean"}},"required":["planet","planetTh","familyTh","refHex","hue","achromatic","source","sourceTh","weight","supportsAnchor"],"additionalProperties":false}}},"required":["variants","forbidMargin","anchorPlanet","anchorPlanetTh","anchorFamilyTh","anchorHue","achromatic","forbidden","votes"],"additionalProperties":false},"headline":{"type":"string"}},"required":["topic","topicTh","shirt","palette","headline"],"additionalProperties":false},"career":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"shirt":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"thaksaRole":{"type":"string"},"houseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"houseTh":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}},"dignity":{"type":"number","enum":[0,1,2,3,4,5,6]},"dignityTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]},"dignityZodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"dignityAlt":{"anyOf":[{"type":"object","properties":{"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"level":{"type":"number","enum":[0,1,2,3,4,5,6]},"levelTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]}},"required":["zodiac","level","levelTh"],"additionalProperties":false},{"type":"null"}]},"penalties":{"type":"array","items":{"type":"string","enum":["ประ","เจ้าเรือนภพร้าย"]}},"score":{"type":"number"},"slotTh":{"type":"string"},"transitFrom":{"type":"object","properties":{"rulesHouseNos":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"rulesHousesTh":{"type":"array","items":{"type":"string"}},"entersHouseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesHouseNos","rulesHousesTh","entersHouseNo"],"additionalProperties":false}},"required":["planet","planetTh","colors","sources","dignity","dignityTh","dignityZodiac","dignityAlt","penalties","score","slotTh"],"additionalProperties":false}},"excluded":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"reason":{"type":"string","enum":["กาลีจร","กาลีกำเนิด","นิจ","มฤตยู"]},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}}},"required":["planet","planetTh","reason","sources"],"additionalProperties":false}},"kalakini":{"type":"object","properties":{"jorn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jornTh":{"type":"string"},"natal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"natalTh":{"type":"string"}},"required":["jorn","jornTh","natal","natalTh"],"additionalProperties":false},"hasLagna":{"type":"boolean"},"lagnaSign":{"anyOf":[{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},{"type":"null"}]}},"required":["topic","topicTh","thaksaRole","houseNo","houseTh","candidates","excluded","kalakini","hasLagna","lagnaSign"],"additionalProperties":false},"palette":{"type":"object","properties":{"variants":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"swatches":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["main","secondary","accent","ground"]},"roleTh":{"type":"string"},"hex":{"type":"string"},"share":{"type":"number"},"layer":{"type":"string","enum":["tamra","design"]}},"required":["role","roleTh","hex","share","layer"],"additionalProperties":false}},"score":{"type":"number"}},"required":["swatches","score"],"additionalProperties":false}},"forbidMargin":{"type":"number"},"anchorPlanet":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"anchorPlanetTh":{"type":"string"},"anchorFamilyTh":{"type":"string"},"anchorHue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"forbidden":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"halfWidth":{"type":"number"},"achromatic":{"type":"boolean"},"ring":{"type":"string","enum":["jorn","natal"]},"ringTh":{"type":"string"}},"required":["planet","planetTh","familyTh","refHex","hue","halfWidth","achromatic","ring","ringTh"],"additionalProperties":false}},"votes":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"source":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]},"sourceTh":{"type":"string"},"weight":{"type":"number"},"supportsAnchor":{"type":"boolean"}},"required":["planet","planetTh","familyTh","refHex","hue","achromatic","source","sourceTh","weight","supportsAnchor"],"additionalProperties":false}}},"required":["variants","forbidMargin","anchorPlanet","anchorPlanetTh","anchorFamilyTh","anchorHue","achromatic","forbidden","votes"],"additionalProperties":false},"headline":{"type":"string"}},"required":["topic","topicTh","shirt","palette","headline"],"additionalProperties":false},"love":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"shirt":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"thaksaRole":{"type":"string"},"houseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"houseTh":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}},"dignity":{"type":"number","enum":[0,1,2,3,4,5,6]},"dignityTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]},"dignityZodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"dignityAlt":{"anyOf":[{"type":"object","properties":{"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"level":{"type":"number","enum":[0,1,2,3,4,5,6]},"levelTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]}},"required":["zodiac","level","levelTh"],"additionalProperties":false},{"type":"null"}]},"penalties":{"type":"array","items":{"type":"string","enum":["ประ","เจ้าเรือนภพร้าย"]}},"score":{"type":"number"},"slotTh":{"type":"string"},"transitFrom":{"type":"object","properties":{"rulesHouseNos":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"rulesHousesTh":{"type":"array","items":{"type":"string"}},"entersHouseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesHouseNos","rulesHousesTh","entersHouseNo"],"additionalProperties":false}},"required":["planet","planetTh","colors","sources","dignity","dignityTh","dignityZodiac","dignityAlt","penalties","score","slotTh"],"additionalProperties":false}},"excluded":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"reason":{"type":"string","enum":["กาลีจร","กาลีกำเนิด","นิจ","มฤตยู"]},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}}},"required":["planet","planetTh","reason","sources"],"additionalProperties":false}},"kalakini":{"type":"object","properties":{"jorn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jornTh":{"type":"string"},"natal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"natalTh":{"type":"string"}},"required":["jorn","jornTh","natal","natalTh"],"additionalProperties":false},"hasLagna":{"type":"boolean"},"lagnaSign":{"anyOf":[{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},{"type":"null"}]}},"required":["topic","topicTh","thaksaRole","houseNo","houseTh","candidates","excluded","kalakini","hasLagna","lagnaSign"],"additionalProperties":false},"palette":{"type":"object","properties":{"variants":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"swatches":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["main","secondary","accent","ground"]},"roleTh":{"type":"string"},"hex":{"type":"string"},"share":{"type":"number"},"layer":{"type":"string","enum":["tamra","design"]}},"required":["role","roleTh","hex","share","layer"],"additionalProperties":false}},"score":{"type":"number"}},"required":["swatches","score"],"additionalProperties":false}},"forbidMargin":{"type":"number"},"anchorPlanet":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"anchorPlanetTh":{"type":"string"},"anchorFamilyTh":{"type":"string"},"anchorHue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"forbidden":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"halfWidth":{"type":"number"},"achromatic":{"type":"boolean"},"ring":{"type":"string","enum":["jorn","natal"]},"ringTh":{"type":"string"}},"required":["planet","planetTh","familyTh","refHex","hue","halfWidth","achromatic","ring","ringTh"],"additionalProperties":false}},"votes":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"source":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]},"sourceTh":{"type":"string"},"weight":{"type":"number"},"supportsAnchor":{"type":"boolean"}},"required":["planet","planetTh","familyTh","refHex","hue","achromatic","source","sourceTh","weight","supportsAnchor"],"additionalProperties":false}}},"required":["variants","forbidMargin","anchorPlanet","anchorPlanetTh","anchorFamilyTh","anchorHue","achromatic","forbidden","votes"],"additionalProperties":false},"headline":{"type":"string"}},"required":["topic","topicTh","shirt","palette","headline"],"additionalProperties":false},"health":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"shirt":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"thaksaRole":{"type":"string"},"houseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"houseTh":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}},"dignity":{"type":"number","enum":[0,1,2,3,4,5,6]},"dignityTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]},"dignityZodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"dignityAlt":{"anyOf":[{"type":"object","properties":{"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"level":{"type":"number","enum":[0,1,2,3,4,5,6]},"levelTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]}},"required":["zodiac","level","levelTh"],"additionalProperties":false},{"type":"null"}]},"penalties":{"type":"array","items":{"type":"string","enum":["ประ","เจ้าเรือนภพร้าย"]}},"score":{"type":"number"},"slotTh":{"type":"string"},"transitFrom":{"type":"object","properties":{"rulesHouseNos":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"rulesHousesTh":{"type":"array","items":{"type":"string"}},"entersHouseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesHouseNos","rulesHousesTh","entersHouseNo"],"additionalProperties":false}},"required":["planet","planetTh","colors","sources","dignity","dignityTh","dignityZodiac","dignityAlt","penalties","score","slotTh"],"additionalProperties":false}},"excluded":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"reason":{"type":"string","enum":["กาลีจร","กาลีกำเนิด","นิจ","มฤตยู"]},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}}},"required":["planet","planetTh","reason","sources"],"additionalProperties":false}},"kalakini":{"type":"object","properties":{"jorn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jornTh":{"type":"string"},"natal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"natalTh":{"type":"string"}},"required":["jorn","jornTh","natal","natalTh"],"additionalProperties":false},"hasLagna":{"type":"boolean"},"lagnaSign":{"anyOf":[{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},{"type":"null"}]}},"required":["topic","topicTh","thaksaRole","houseNo","houseTh","candidates","excluded","kalakini","hasLagna","lagnaSign"],"additionalProperties":false},"palette":{"type":"object","properties":{"variants":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"swatches":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["main","secondary","accent","ground"]},"roleTh":{"type":"string"},"hex":{"type":"string"},"share":{"type":"number"},"layer":{"type":"string","enum":["tamra","design"]}},"required":["role","roleTh","hex","share","layer"],"additionalProperties":false}},"score":{"type":"number"}},"required":["swatches","score"],"additionalProperties":false}},"forbidMargin":{"type":"number"},"anchorPlanet":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"anchorPlanetTh":{"type":"string"},"anchorFamilyTh":{"type":"string"},"anchorHue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"forbidden":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"halfWidth":{"type":"number"},"achromatic":{"type":"boolean"},"ring":{"type":"string","enum":["jorn","natal"]},"ringTh":{"type":"string"}},"required":["planet","planetTh","familyTh","refHex","hue","halfWidth","achromatic","ring","ringTh"],"additionalProperties":false}},"votes":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"source":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]},"sourceTh":{"type":"string"},"weight":{"type":"number"},"supportsAnchor":{"type":"boolean"}},"required":["planet","planetTh","familyTh","refHex","hue","achromatic","source","sourceTh","weight","supportsAnchor"],"additionalProperties":false}}},"required":["variants","forbidMargin","anchorPlanet","anchorPlanetTh","anchorFamilyTh","anchorHue","achromatic","forbidden","votes"],"additionalProperties":false},"headline":{"type":"string"}},"required":["topic","topicTh","shirt","palette","headline"],"additionalProperties":false},"luck":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"shirt":{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"topicTh":{"type":"string"},"thaksaRole":{"type":"string"},"houseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"houseTh":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}},"dignity":{"type":"number","enum":[0,1,2,3,4,5,6]},"dignityTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]},"dignityZodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"dignityAlt":{"anyOf":[{"type":"object","properties":{"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"level":{"type":"number","enum":[0,1,2,3,4,5,6]},"levelTh":{"anyOf":[{"type":"string","enum":["เกษตร","มหาอุจจ์","ราชาโชค","เทวีโชค","มหาจักร","จุลจักร"]},{"type":"null"}]}},"required":["zodiac","level","levelTh"],"additionalProperties":false},{"type":"null"}]},"penalties":{"type":"array","items":{"type":"string","enum":["ประ","เจ้าเรือนภพร้าย"]}},"score":{"type":"number"},"slotTh":{"type":"string"},"transitFrom":{"type":"object","properties":{"rulesHouseNos":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"rulesHousesTh":{"type":"array","items":{"type":"string"}},"entersHouseNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesHouseNos","rulesHousesTh","entersHouseNo"],"additionalProperties":false}},"required":["planet","planetTh","colors","sources","dignity","dignityTh","dignityZodiac","dignityAlt","penalties","score","slotTh"],"additionalProperties":false}},"excluded":{"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"reason":{"type":"string","enum":["กาลีจร","กาลีกำเนิด","นิจ","มฤตยู"]},"sources":{"type":"array","items":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]}}},"required":["planet","planetTh","reason","sources"],"additionalProperties":false}},"kalakini":{"type":"object","properties":{"jorn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jornTh":{"type":"string"},"natal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"natalTh":{"type":"string"}},"required":["jorn","jornTh","natal","natalTh"],"additionalProperties":false},"hasLagna":{"type":"boolean"},"lagnaSign":{"anyOf":[{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},{"type":"null"}]}},"required":["topic","topicTh","thaksaRole","houseNo","houseTh","candidates","excluded","kalakini","hasLagna","lagnaSign"],"additionalProperties":false},"palette":{"type":"object","properties":{"variants":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"swatches":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["main","secondary","accent","ground"]},"roleTh":{"type":"string"},"hex":{"type":"string"},"share":{"type":"number"},"layer":{"type":"string","enum":["tamra","design"]}},"required":["role","roleTh","hex","share","layer"],"additionalProperties":false}},"score":{"type":"number"}},"required":["swatches","score"],"additionalProperties":false}},"forbidMargin":{"type":"number"},"anchorPlanet":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"anchorPlanetTh":{"type":"string"},"anchorFamilyTh":{"type":"string"},"anchorHue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"forbidden":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"halfWidth":{"type":"number"},"achromatic":{"type":"boolean"},"ring":{"type":"string","enum":["jorn","natal"]},"ringTh":{"type":"string"}},"required":["planet","planetTh","familyTh","refHex","hue","halfWidth","achromatic","ring","ringTh"],"additionalProperties":false}},"votes":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"planet":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planetTh":{"type":"string"},"familyTh":{"type":"string"},"refHex":{"type":"string"},"hue":{"anyOf":[{"type":"number"},{"type":"null"}]},"achromatic":{"type":"boolean"},"source":{"type":"string","enum":["thaksaJorn","thaksaNatal","houseLord","floating","transit"]},"sourceTh":{"type":"string"},"weight":{"type":"number"},"supportsAnchor":{"type":"boolean"}},"required":["planet","planetTh","familyTh","refHex","hue","achromatic","source","sourceTh","weight","supportsAnchor"],"additionalProperties":false}}},"required":["variants","forbidMargin","anchorPlanet","anchorPlanetTh","anchorFamilyTh","anchorHue","achromatic","forbidden","votes"],"additionalProperties":false},"headline":{"type":"string"}},"required":["topic","topicTh","shirt","palette","headline"],"additionalProperties":false}},"required":["money","career","love","health","luck"],"additionalProperties":false},"dayCells":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"abbr":{"type":"string"},"dayNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kalakiniDay":{"type":"boolean"}},"required":["date","abbr","dayNo","kalakiniDay"],"additionalProperties":false}},"allRows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"sub":{"type":"string"},"swatches":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"share":{"type":"number"}},"required":["hex","share"],"additionalProperties":false}}},"required":["key","title","sub","swatches"],"additionalProperties":false}},"allBand":{"anyOf":[{"type":"object","properties":{"topic":{"type":"string","enum":["money","career","love","health","luck"]},"hex":{"type":"string"},"swatches":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"share":{"type":"number"}},"required":["hex","share"],"additionalProperties":false}},"topicTh":{"type":"string"}},"required":["topic","hex","swatches","topicTh"],"additionalProperties":false},{"type":"null"}]}},"required":["date","dayName","dateLabel","kalakiniDay","dominantTopic","byTopic","dayCells","allRows","allBand"],"additionalProperties":false}}},"required":["date","needsBirthData","positionMode","overview","days"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot":{"get":{"operationId":"pimfahTarot.status","tags":["pimfahTarot"],"summary":"pimfahTarot.status","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ready":{"type":"boolean"},"eligibility":{"type":"string","enum":["ok","under_age","no_birth_date"]},"minAge":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"consent":{"type":"object","properties":{"chatScreenshot":{"type":"object","properties":{"granted":{"type":"boolean"},"copyVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"string"}},"required":["granted","copyVersion","currentVersion"],"additionalProperties":false}},"required":["chatScreenshot"],"additionalProperties":false},"entitlement":{"type":"object","properties":{"canUse":{"type":"boolean"},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["canUse","freeRemaining","quotaRemaining"],"additionalProperties":false},"freeClaim":{"anyOf":[{"type":"object","properties":{"claimable":{"type":"boolean"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["claimable","amount"],"additionalProperties":false},{"type":"null"}]},"products":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sku":{"type":"string"},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["productId","sku","priceMinor","grantsUses"],"additionalProperties":false}},"open":{"anyOf":[{"type":"object","properties":{"drawId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["drawn","interpreting","charging","awaiting_payment","ready","failed"]},"createdAt":{"type":"string"}},"required":["drawId","caseId","status","createdAt"],"additionalProperties":false},{"type":"null"}]},"limits":{"type":"object","properties":{"checksLeftToday":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"extractsLeftToday":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"drawsLeftToday":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["checksLeftToday","extractsLeftToday","drawsLeftToday"],"additionalProperties":false},"topics":{"type":"array","items":{"type":"string","enum":["love","work","money","study","health"]}},"sampleTopics":{"type":"array","items":{"type":"string","enum":["love","work","money","study","health"]}},"modes":{"type":"object","properties":{"typed":{"type":"boolean","const":true},"paste":{"type":"boolean"},"screenshot":{"type":"boolean"}},"required":["typed","paste","screenshot"],"additionalProperties":false},"replyDrafts":{"type":"boolean"},"artBase":{"type":"string"}},"required":["serviceId","ready","eligibility","minAge","consent","entitlement","freeClaim","products","open","limits","topics","sampleTopics","modes","replyDrafts","artBase"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/free-claim":{"post":{"operationId":"pimfahTarot.claimFree","tags":["pimfahTarot"],"summary":"pimfahTarot.claimFree","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"claimed":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claimed","freeRemaining","quotaRemaining"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/chat-extract":{"post":{"operationId":"pimfahTarot.chatExtract","tags":["pimfahTarot"],"summary":"pimfahTarot.chatExtract","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"maxItems":60,"type":"array","items":{"type":"object","properties":{"side":{"type":"string","enum":["me","other","system"]},"text":{"type":"string","minLength":1,"maxLength":500},"at":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"kind":{"type":"string","enum":["text","sticker","image","voice","unsent"]}},"required":["side","text","kind"],"additionalProperties":false}},"participants":{"type":"integer","minimum":0,"maximum":9007199254740991},"warnings":{"type":"array","items":{"type":"string","enum":["group_chat","unreadable","not_a_chat","truncated","faces"]}}},"required":["lines","participants","warnings"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{}}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/check":{"post":{"operationId":"pimfahTarot.check","tags":["pimfahTarot"],"summary":"pimfahTarot.check","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","need_more","blocked","off_topic"]},"needMore":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["situation","gender_expression","question","people","timing","relation","asker_gender","intent","topic"]},"ask":{"type":"string","minLength":1,"maxLength":160},"hint":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"options":{"maxItems":9,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"patch":{"type":"object","properties":{"topic":{"type":"string","enum":["love","work","money","study","health"]},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string","minLength":1,"maxLength":200},"situation":{"type":"string","enum":["single","talking","couple","ex","married","unclear","employed","job_seeking","job_change","business","new_job","money_tight","debt","saving","big_spend","income_up","studying","exam_prep","choosing","struggling","upskill","energy","stress","rest","routine","balance"]},"relation":{"type":"string","enum":["crush","partner","ex","friend","other","senior","family","coworker","boss","subordinate","creditor","debtor","teacher","client","self"]},"otherGenderExpr":{"type":"string","enum":["feminine","masculine","neutral"]},"askerGenderExpr":{"type":"string","enum":["feminine","masculine","neutral"]},"peopleCount":{"type":"integer","minimum":2,"maximum":4}},"additionalProperties":false}},"required":["label","patch"],"additionalProperties":false}},"allowText":{"type":"boolean"},"suggested":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["field","ask","hint","options","allowText","suggested"],"additionalProperties":false}},"case":{"anyOf":[{"type":"object","properties":{"topic":{"type":"string","enum":["love","work","money","study","health"]},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string","minLength":1,"maxLength":200},"askerGenderExpr":{"anyOf":[{"type":"string","enum":["feminine","masculine","neutral"]},{"type":"null"}]},"otherGenderExpr":{"anyOf":[{"type":"string","enum":["feminine","masculine","neutral"]},{"type":"null"}]}},"required":["topic","intent","question"],"additionalProperties":false},{"type":"null"}]},"answerPatch":{"anyOf":[{"type":"object","properties":{"situation":{"type":"string","enum":["single","talking","couple","ex","married","unclear","employed","job_seeking","job_change","business","new_job","money_tight","debt","saving","big_spend","income_up","studying","exam_prep","choosing","struggling","upskill","energy","stress","rest","routine","balance"]},"relation":{"type":"string","enum":["crush","partner","ex","friend","other","senior","family","coworker","boss","subordinate","creditor","debtor","teacher","client","self"]},"otherGenderExpr":{"type":"string","enum":["feminine","masculine","neutral"]},"askerGenderExpr":{"type":"string","enum":["feminine","masculine","neutral"]},"peopleCount":{"type":"integer","minimum":2,"maximum":4}},"additionalProperties":false},{"type":"null"}]},"needMoreExhausted":{"type":"boolean"},"blocked":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","enum":["self_harm","violence","minor_sexual","scam","control"]},"resources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"}},"required":["name","phone"],"additionalProperties":false}}},"required":["reason","resources"],"additionalProperties":false},{"type":"null"}]},"summaryDraft":{"anyOf":[{"type":"string"},{"type":"null"}]},"sensitiveRemoved":{"type":"array","items":{"type":"string","enum":["health","sexual_orientation","religion","sexual_content","criminal_record"]}},"chatFacts":{"anyOf":[{"type":"object","properties":{"lineCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"type":"object","properties":{"me":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["me","other"],"additionalProperties":false},"meShare":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"initiations":{"type":"object","properties":{"me":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["me","other"],"additionalProperties":false},"longestSilenceMinutes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"lastSender":{"anyOf":[{"type":"string","enum":["me","other"]},{"type":"null"}]},"openQuestions":{"type":"object","properties":{"me":{"type":"integer","minimum":0,"maximum":9007199254740991},"other":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["me","other"],"additionalProperties":false}},"required":["lineCount","messages","meShare","initiations","longestSilenceMinutes","lastSender","openQuestions"],"additionalProperties":false},{"type":"null"}]},"redactions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["verdict","needMore","case","answerPatch","needMoreExhausted","blocked","summaryDraft","sensitiveRemoved","chatFacts","redactions"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case":{"type":"object","properties":{"topic":{"type":"string","enum":["love","work","money","study","health"]},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string","minLength":1,"maxLength":200},"situation":{"anyOf":[{"type":"string","enum":["single","talking","couple","ex","married","unclear","employed","job_seeking","job_change","business","new_job","money_tight","debt","saving","big_spend","income_up","studying","exam_prep","choosing","struggling","upskill","energy","stress","rest","routine","balance"]},{"type":"null"}]},"asker":{"type":"object","properties":{"genderExpr":{"anyOf":[{"type":"string","enum":["feminine","masculine","neutral"]},{"type":"null"}]}},"required":["genderExpr"],"additionalProperties":false},"other":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"genderExpr":{"anyOf":[{"type":"string","enum":["feminine","masculine","neutral"]},{"type":"null"}]},"relation":{"anyOf":[{"type":"string","enum":["crush","partner","ex","friend","other","senior","family","coworker","boss","subordinate","creditor","debtor","teacher","client","self"]},{"type":"null"}]}},"required":["label","genderExpr","relation"],"additionalProperties":false},"peopleCount":{"type":"integer","minimum":2,"maximum":4},"story":{"type":"string","maxLength":1500},"mode":{"type":"string","enum":["typed","paste","screenshot"]}},"required":["topic","intent","question","situation","asker","other","peopleCount","story","mode"],"additionalProperties":false},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"followUp":{"type":"object","properties":{"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"chat":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"side":{"type":"string","enum":["me","other","system"]},"text":{"type":"string","minLength":1,"maxLength":500},"at":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"kind":{"type":"string","enum":["text","sticker","image","voice","unsent"]}},"required":["side","text","kind"],"additionalProperties":false}},"inChat":{"type":"boolean","const":true},"participants":{"type":"number","const":2},"consent":{"type":"boolean","const":true}},"required":["lines","inChat","participants","consent"],"additionalProperties":false},"answers":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["situation","relation","gender_expression","asker_gender","people"]},"text":{"type":"string","minLength":1,"maxLength":200}},"required":["field","text"],"additionalProperties":false}},"round":{"type":"integer","minimum":0,"maximum":2}},"required":["round"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/draws":{"post":{"operationId":"pimfahTarot.createDraw","tags":["pimfahTarot"],"summary":"pimfahTarot.createDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["drawn","interpreting","charging","awaiting_payment","ready","failed"]},"spread":{"type":"string","enum":["story_row_3"]},"topic":{"type":"string","enum":["love","work","money","study","health"]},"sample":{"type":"boolean"},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl"],"additionalProperties":false}},"clarifier":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"},"question":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl","question","text"],"additionalProperties":false},{"type":"null"}]},"reading":{"anyOf":[{"type":"object","properties":{"answer":{"type":"string"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}]},"story":{"type":"string"},"chatNotes":{"type":"array","items":{"type":"string"}},"unclear":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"why":{"type":"string"}},"required":["slot","why"],"additionalProperties":false},{"type":"null"}]},"whatYouCanDo":{"type":"string"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}]},"reply":{"anyOf":[{"type":"object","properties":{"direction":{"type":"string","enum":["wait","warm_short","say_it","step_back","respect"]},"text":{"type":"string"}},"required":["direction","text"],"additionalProperties":false},{"type":"null"}]},"drafts":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"tone":{"type":"string","enum":["warm","direct","casual"]},"text":{"type":"string"}},"required":["tone","text"],"additionalProperties":false}},{"type":"null"}]},"clarifierHint":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"question":{"type":"string"}},"required":["slot","question"],"additionalProperties":false},{"type":"null"}]},"warning":{"anyOf":[{"type":"string","enum":["scam","control"]},{"type":"null"}]}},"required":["answer","lead","story","chatNotes","unclear","whatYouCanDo","conclusion","reply","drafts","clarifierHint","warning"],"additionalProperties":false},{"type":"null"}]},"review":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"blocked":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","enum":["self_harm","violence","minor_sexual","scam","control"]},"resources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"}},"required":["name","phone"],"additionalProperties":false}}},"required":["reason","resources"],"additionalProperties":false},{"type":"null"}]},"charged":{"type":"boolean"},"chargeWaived":{"anyOf":[{"type":"string","enum":["roles_unresolved","charge_unverified"]},{"type":"null"}]},"usedChatLines":{"type":"boolean"},"followUpsLeft":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"readyAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","caseId","seq","status","spread","topic","sample","intent","question","cards","clarifier","reading","blocked","charged","chargeWaived","usedChatLines","followUpsLeft","createdAt","readyAt"],"additionalProperties":false}},"required":["draw"],"additionalProperties":false},{"type":"object","properties":{"blocked":{"type":"object","properties":{"reason":{"type":"string","enum":["self_harm","violence","minor_sexual","scam","control"]},"resources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"}},"required":["name","phone"],"additionalProperties":false}}},"required":["reason","resources"],"additionalProperties":false}},"required":["blocked"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"case":{"type":"object","properties":{"topic":{"type":"string","enum":["love","work","money","study","health"]},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string","minLength":1,"maxLength":200},"situation":{"anyOf":[{"type":"string","enum":["single","talking","couple","ex","married","unclear","employed","job_seeking","job_change","business","new_job","money_tight","debt","saving","big_spend","income_up","studying","exam_prep","choosing","struggling","upskill","energy","stress","rest","routine","balance"]},{"type":"null"}]},"asker":{"type":"object","properties":{"genderExpr":{"anyOf":[{"type":"string","enum":["feminine","masculine","neutral"]},{"type":"null"}]}},"required":["genderExpr"],"additionalProperties":false},"other":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"genderExpr":{"anyOf":[{"type":"string","enum":["feminine","masculine","neutral"]},{"type":"null"}]},"relation":{"anyOf":[{"type":"string","enum":["crush","partner","ex","friend","other","senior","family","coworker","boss","subordinate","creditor","debtor","teacher","client","self"]},{"type":"null"}]}},"required":["label","genderExpr","relation"],"additionalProperties":false},"peopleCount":{"type":"integer","minimum":2,"maximum":4},"story":{"type":"string","maxLength":1500},"mode":{"type":"string","enum":["typed","paste","screenshot"]},"summary":{"type":"string","minLength":1,"maxLength":1500}},"required":["topic","intent","question","situation","asker","other","peopleCount","story","mode","summary"],"additionalProperties":false},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"followUp":{"type":"object","properties":{"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string","minLength":1,"maxLength":200}},"required":["intent","question"],"additionalProperties":false},"picks":{"type":"array","prefixItems":[{"type":"integer","minimum":0,"maximum":77},{"type":"integer","minimum":0,"maximum":77},{"type":"integer","minimum":0,"maximum":77}]},"proceedUnclear":{"type":"boolean"},"evalCards":{"type":"array","prefixItems":[{"type":"integer","minimum":0,"maximum":77},{"type":"integer","minimum":0,"maximum":77},{"type":"integer","minimum":0,"maximum":77}]},"chat":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"side":{"type":"string","enum":["me","other","system"]},"text":{"type":"string","minLength":1,"maxLength":500},"at":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"kind":{"type":"string","enum":["text","sticker","image","voice","unsent"]}},"required":["side","text","kind"],"additionalProperties":false}},"inChat":{"type":"boolean","const":true},"participants":{"type":"number","const":2},"consent":{"type":"boolean","const":true}},"required":["lines","inChat","participants","consent"],"additionalProperties":false}},"required":["idempotencyKey","picks"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/draws/{id}":{"get":{"operationId":"pimfahTarot.getDraw","tags":["pimfahTarot"],"summary":"pimfahTarot.getDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["drawn","interpreting","charging","awaiting_payment","ready","failed"]},"spread":{"type":"string","enum":["story_row_3"]},"topic":{"type":"string","enum":["love","work","money","study","health"]},"sample":{"type":"boolean"},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl"],"additionalProperties":false}},"clarifier":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"},"question":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl","question","text"],"additionalProperties":false},{"type":"null"}]},"reading":{"anyOf":[{"type":"object","properties":{"answer":{"type":"string"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}]},"story":{"type":"string"},"chatNotes":{"type":"array","items":{"type":"string"}},"unclear":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"why":{"type":"string"}},"required":["slot","why"],"additionalProperties":false},{"type":"null"}]},"whatYouCanDo":{"type":"string"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}]},"reply":{"anyOf":[{"type":"object","properties":{"direction":{"type":"string","enum":["wait","warm_short","say_it","step_back","respect"]},"text":{"type":"string"}},"required":["direction","text"],"additionalProperties":false},{"type":"null"}]},"drafts":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"tone":{"type":"string","enum":["warm","direct","casual"]},"text":{"type":"string"}},"required":["tone","text"],"additionalProperties":false}},{"type":"null"}]},"clarifierHint":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"question":{"type":"string"}},"required":["slot","question"],"additionalProperties":false},{"type":"null"}]},"warning":{"anyOf":[{"type":"string","enum":["scam","control"]},{"type":"null"}]}},"required":["answer","lead","story","chatNotes","unclear","whatYouCanDo","conclusion","reply","drafts","clarifierHint","warning"],"additionalProperties":false},{"type":"null"}]},"review":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"blocked":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","enum":["self_harm","violence","minor_sexual","scam","control"]},"resources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"}},"required":["name","phone"],"additionalProperties":false}}},"required":["reason","resources"],"additionalProperties":false},{"type":"null"}]},"charged":{"type":"boolean"},"chargeWaived":{"anyOf":[{"type":"string","enum":["roles_unresolved","charge_unverified"]},{"type":"null"}]},"usedChatLines":{"type":"boolean"},"followUpsLeft":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"readyAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","caseId","seq","status","spread","topic","sample","intent","question","cards","clarifier","reading","blocked","charged","chargeWaived","usedChatLines","followUpsLeft","createdAt","readyAt"],"additionalProperties":false}},"required":["draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"pimfahTarot.deleteDraw","tags":["pimfahTarot"],"summary":"pimfahTarot.deleteDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/draws/{id}/interpret":{"post":{"operationId":"pimfahTarot.interpret","tags":["pimfahTarot"],"summary":"pimfahTarot.interpret","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["drawn","interpreting","charging","awaiting_payment","ready","failed"]},"spread":{"type":"string","enum":["story_row_3"]},"topic":{"type":"string","enum":["love","work","money","study","health"]},"sample":{"type":"boolean"},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl"],"additionalProperties":false}},"clarifier":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"},"question":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl","question","text"],"additionalProperties":false},{"type":"null"}]},"reading":{"anyOf":[{"type":"object","properties":{"answer":{"type":"string"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}]},"story":{"type":"string"},"chatNotes":{"type":"array","items":{"type":"string"}},"unclear":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"why":{"type":"string"}},"required":["slot","why"],"additionalProperties":false},{"type":"null"}]},"whatYouCanDo":{"type":"string"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}]},"reply":{"anyOf":[{"type":"object","properties":{"direction":{"type":"string","enum":["wait","warm_short","say_it","step_back","respect"]},"text":{"type":"string"}},"required":["direction","text"],"additionalProperties":false},{"type":"null"}]},"drafts":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"tone":{"type":"string","enum":["warm","direct","casual"]},"text":{"type":"string"}},"required":["tone","text"],"additionalProperties":false}},{"type":"null"}]},"clarifierHint":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"question":{"type":"string"}},"required":["slot","question"],"additionalProperties":false},{"type":"null"}]},"warning":{"anyOf":[{"type":"string","enum":["scam","control"]},{"type":"null"}]}},"required":["answer","lead","story","chatNotes","unclear","whatYouCanDo","conclusion","reply","drafts","clarifierHint","warning"],"additionalProperties":false},{"type":"null"}]},"review":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"blocked":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","enum":["self_harm","violence","minor_sexual","scam","control"]},"resources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"}},"required":["name","phone"],"additionalProperties":false}}},"required":["reason","resources"],"additionalProperties":false},{"type":"null"}]},"charged":{"type":"boolean"},"chargeWaived":{"anyOf":[{"type":"string","enum":["roles_unresolved","charge_unverified"]},{"type":"null"}]},"usedChatLines":{"type":"boolean"},"followUpsLeft":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"readyAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","caseId","seq","status","spread","topic","sample","intent","question","cards","clarifier","reading","blocked","charged","chargeWaived","usedChatLines","followUpsLeft","createdAt","readyAt"],"additionalProperties":false}},"required":["draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"chat":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"side":{"type":"string","enum":["me","other","system"]},"text":{"type":"string","minLength":1,"maxLength":500},"at":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"kind":{"type":"string","enum":["text","sticker","image","voice","unsent"]}},"required":["side","text","kind"],"additionalProperties":false}},"inChat":{"type":"boolean","const":true},"participants":{"type":"number","const":2},"consent":{"type":"boolean","const":true}},"required":["lines","inChat","participants","consent"],"additionalProperties":false}},"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/readings/pimfah-tarot/draws/{id}/clarifier":{"post":{"operationId":"pimfahTarot.clarifier","tags":["pimfahTarot"],"summary":"pimfahTarot.clarifier","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"draw":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"caseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["drawn","interpreting","charging","awaiting_payment","ready","failed"]},"spread":{"type":"string","enum":["story_row_3"]},"topic":{"type":"string","enum":["love","work","money","study","health"]},"sample":{"type":"boolean"},"intent":{"type":"string","enum":["feelings","reply","direction","custom","solve"]},"question":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl"],"additionalProperties":false}},"clarifier":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"cardNo":{"type":"integer","minimum":0,"maximum":77},"nameTh":{"type":"string"},"imageUrl":{"type":"string"},"question":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"}},"required":["slot","cardNo","nameTh","imageUrl","question","text"],"additionalProperties":false},{"type":"null"}]},"reading":{"anyOf":[{"type":"object","properties":{"answer":{"type":"string"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}]},"story":{"type":"string"},"chatNotes":{"type":"array","items":{"type":"string"}},"unclear":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"why":{"type":"string"}},"required":["slot","why"],"additionalProperties":false},{"type":"null"}]},"whatYouCanDo":{"type":"string"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}]},"reply":{"anyOf":[{"type":"object","properties":{"direction":{"type":"string","enum":["wait","warm_short","say_it","step_back","respect"]},"text":{"type":"string"}},"required":["direction","text"],"additionalProperties":false},{"type":"null"}]},"drafts":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"tone":{"type":"string","enum":["warm","direct","casual"]},"text":{"type":"string"}},"required":["tone","text"],"additionalProperties":false}},{"type":"null"}]},"clarifierHint":{"anyOf":[{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"question":{"type":"string"}},"required":["slot","question"],"additionalProperties":false},{"type":"null"}]},"warning":{"anyOf":[{"type":"string","enum":["scam","control"]},{"type":"null"}]}},"required":["answer","lead","story","chatNotes","unclear","whatYouCanDo","conclusion","reply","drafts","clarifierHint","warning"],"additionalProperties":false},{"type":"null"}]},"review":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"blocked":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","enum":["self_harm","violence","minor_sexual","scam","control"]},"resources":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"}},"required":["name","phone"],"additionalProperties":false}}},"required":["reason","resources"],"additionalProperties":false},{"type":"null"}]},"charged":{"type":"boolean"},"chargeWaived":{"anyOf":[{"type":"string","enum":["roles_unresolved","charge_unverified"]},{"type":"null"}]},"usedChatLines":{"type":"boolean"},"followUpsLeft":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"readyAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","caseId","seq","status","spread","topic","sample","intent","question","cards","clarifier","reading","blocked","charged","chargeWaived","usedChatLines","followUpsLeft","createdAt","readyAt"],"additionalProperties":false}},"required":["draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slot":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"question":{"type":"string","maxLength":120},"chat":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"side":{"type":"string","enum":["me","other","system"]},"text":{"type":"string","minLength":1,"maxLength":500},"at":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"kind":{"type":"string","enum":["text","sticker","image","voice","unsent"]}},"required":["side","text","kind"],"additionalProperties":false}},"inChat":{"type":"boolean","const":true},"participants":{"type":"number","const":2},"consent":{"type":"boolean","const":true}},"required":["lines","inChat","participants","consent"],"additionalProperties":false}},"required":["slot"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}]}},"/divination/daily-tarot/today":{"get":{"operationId":"divination.dailyTarotToday","tags":["divination"],"summary":"divination.dailyTarotToday","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"draw":{"anyOf":[{"type":"object","properties":{"card":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":77},"nameEn":{"type":"string"},"nameTh":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"meaning":{"type":"array","items":{"type":"string"}},"imageUrl":{"type":"string"}},"required":["number","nameEn","nameTh","keywords","meaning","imageUrl"],"additionalProperties":false},"drawnAt":{"type":"string"}},"required":["card","drawnAt"],"additionalProperties":false},{"type":"null"}]}},"required":["date","draw"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/divination/daily-tarot/draw":{"post":{"operationId":"divination.dailyTarotDraw","tags":["divination"],"summary":"divination.dailyTarotDraw","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"draw":{"type":"object","properties":{"card":{"type":"object","properties":{"number":{"type":"integer","minimum":0,"maximum":77},"nameEn":{"type":"string"},"nameTh":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"meaning":{"type":"array","items":{"type":"string"}},"imageUrl":{"type":"string"}},"required":["number","nameEn","nameTh","keywords","meaning","imageUrl"],"additionalProperties":false},"drawnAt":{"type":"string"}},"required":["card","drawnAt"],"additionalProperties":false},"sticky":{"type":"boolean"}},"required":["date","draw","sticky"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/state":{"get":{"operationId":"luckyDraw.state","tags":["luckyDraw"],"summary":"luckyDraw.state","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"phase":{"type":"string","enum":["registering","drawn"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"winners":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"drawnAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ts":{"type":"string"}},"required":["phase","total","winners","drawnAt","ts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":1}}]}},"/lucky-draw/on-stage":{"get":{"operationId":"luckyDraw.stage","tags":["luckyDraw"],"summary":"luckyDraw.stage","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"qrCodeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["displayName","avatarUrl","qrCodeUrl"],"additionalProperties":false},"phase":{"type":"string","enum":["registering","drawn"]},"counts":{"type":"object","properties":{"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"winners":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["registered","winners"],"additionalProperties":false},"recent":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"}},"required":["regId","label"],"additionalProperties":false}},"winners":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]}},"required":["regId","label","status"],"additionalProperties":false}},"ts":{"type":"string"}},"required":["creator","phase","counts","recent","winners","ts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":1}}]}},"/lucky-draw/on-stage/events":{"get":{"operationId":"luckyDraw.stageEvents","tags":["luckyDraw"],"summary":"luckyDraw.stageEvents","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creator":{"type":"object","properties":{"displayName":{"type":"string"},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"qrCodeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["displayName","avatarUrl","qrCodeUrl"],"additionalProperties":false},"phase":{"type":"string","enum":["registering","drawn"]},"counts":{"type":"object","properties":{"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"winners":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["registered","winners"],"additionalProperties":false},"recent":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"}},"required":["regId","label"],"additionalProperties":false}},"winners":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]}},"required":["regId","label","status"],"additionalProperties":false}},"ts":{"type":"string"}},"required":["creator","phase","counts","recent","winners","ts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string","minLength":1}}]}},"/lucky-draw/register":{"post":{"operationId":"luckyDraw.register","tags":["luckyDraw"],"summary":"luckyDraw.register","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"wasExisting":{"type":"boolean"}},"required":["regId","status","wasExisting"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1}},"required":["slug"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/me":{"get":{"operationId":"luckyDraw.myStatus","tags":["luckyDraw"],"summary":"luckyDraw.myStatus","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"registered":{"type":"boolean","const":true},"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"phase":{"type":"string","enum":["registering","drawn"]},"won":{"type":"boolean"}},"required":["registered","regId","status","phase","won"],"additionalProperties":false},{"type":"object","properties":{"registered":{"type":"boolean","const":false},"phase":{"type":"string","enum":["registering","drawn"]}},"required":["registered","phase"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice":{"get":{"operationId":"luckyDraw.boCreators","tags":["luckyDraw"],"summary":"luckyDraw.boCreators","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"qrCodeUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"counts":{"type":"object","properties":{"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"confirmed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["registered","confirmed","cancelled"],"additionalProperties":false},"stage":{"type":"object","properties":{"token":{"type":"string"},"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["token","url","expiresAt"],"additionalProperties":false}},"required":["id","displayName","slug","avatarUrl","qrCodeUrl","counts","stage"],"additionalProperties":false}}},"required":["creators"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/registrants":{"get":{"operationId":"luckyDraw.boRegistrants","tags":["luckyDraw"],"summary":"luckyDraw.boRegistrants","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object","properties":{"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"confirmed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["registered","confirmed","cancelled"],"additionalProperties":false},"registrants":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"createdAt":{"type":"string"},"locked":{"type":"boolean"}},"required":["regId","userId","firstName","lastName","displayName","userName","status","createdAt","locked"],"additionalProperties":false}},"locks":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["registered","confirmed","cancelled"]},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockedBy":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["userId","firstName","lastName","displayName","userName","status","note","lockedBy","createdAt"],"additionalProperties":false}},"ts":{"type":"string"}},"required":["counts","registrants","locks","ts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"creatorId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/events":{"get":{"operationId":"luckyDraw.boUserEvents","tags":["luckyDraw"],"summary":"luckyDraw.boUserEvents","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object","properties":{"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"confirmed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["registered","confirmed","cancelled"],"additionalProperties":false},"registrants":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"createdAt":{"type":"string"},"locked":{"type":"boolean"}},"required":["regId","userId","firstName","lastName","displayName","userName","status","createdAt","locked"],"additionalProperties":false}},"locks":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["registered","confirmed","cancelled"]},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockedBy":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["userId","firstName","lastName","displayName","userName","status","note","lockedBy","createdAt"],"additionalProperties":false}},"ts":{"type":"string"}},"required":["counts","registrants","locks","ts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"creatorId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/draw":{"post":{"operationId":"luckyDraw.draw","tags":["luckyDraw"],"summary":"luckyDraw.draw","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"requested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"drawn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"winners":{"type":"array","items":{"type":"object","properties":{"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["regId","userId","firstName","lastName","displayName","userName"],"additionalProperties":false}},"drawnAt":{"type":"string"}},"required":["requested","drawn","winners","drawnAt"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount":{"type":"integer","minimum":1,"maximum":2147483647},"expectedWinners":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["creatorId","amount","expectedWinners"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/cancel":{"patch":{"operationId":"luckyDraw.cancel","tags":["luckyDraw"],"summary":"luckyDraw.cancel","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"result":{"type":"string","const":"cancelled"},"previousStatus":{"type":"string","enum":["registered","confirmed"]}},"required":["result","previousStatus"],"additionalProperties":false},{"type":"object","properties":{"result":{"type":"string","const":"alreadyCancelled"}},"required":["result"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["creatorId","userId"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/restore":{"patch":{"operationId":"luckyDraw.restore","tags":["luckyDraw"],"summary":"luckyDraw.restore","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"result":{"type":"string","const":"restored"},"status":{"type":"string","enum":["registered","confirmed"]}},"required":["result","status"],"additionalProperties":false},{"type":"object","properties":{"result":{"type":"string","const":"alreadyLive"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]}},"required":["result","status"],"additionalProperties":false}]}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"to":{"default":"registered","type":"string","enum":["registered","confirmed"]}},"required":["creatorId","userId"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/reset":{"post":{"operationId":"luckyDraw.reset","tags":["luckyDraw"],"summary":"luckyDraw.reset","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["winners","registrations"]},"changed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["mode","changed"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["winners","registrations"]},"expectedConfirmed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["creatorId","mode","expectedConfirmed"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/lock":{"post":{"operationId":"luckyDraw.lock","tags":["luckyDraw"],"summary":"luckyDraw.lock","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"regId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"preRegistered":{"type":"boolean"},"alreadyLocked":{"type":"boolean"}},"required":["userId","regId","status","preRegistered","alreadyLocked"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"note":{"type":"string","maxLength":200}},"required":["creatorId","userId"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/unlock":{"patch":{"operationId":"luckyDraw.unlock","tags":["luckyDraw"],"summary":"luckyDraw.unlock","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"string","enum":["unlocked","notLocked"]}},"required":["result"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["creatorId","userId"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/locks/clear":{"post":{"operationId":"luckyDraw.clearLocks","tags":["luckyDraw"],"summary":"luckyDraw.clearLocks","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["removed"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedLocks":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["creatorId","expectedLocks"]}}}},"security":[{"bearerAuth":[]}]}},"/lucky-draw/backoffice/restore-all":{"post":{"operationId":"luckyDraw.restoreAll","tags":["luckyDraw"],"summary":"luckyDraw.restoreAll","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"restored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["restored","skipped"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creatorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedCancelled":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["creatorId","expectedCancelled"]}}}},"security":[{"bearerAuth":[]}]}},"/home":{"get":{"operationId":"home.get","tags":["home"],"summary":"home.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"prefs":{"type":"object","properties":{"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]}},"required":["fortuneSystem","positionMode"],"additionalProperties":false},"degraded":{"type":"array","items":{"type":"string","enum":["dayPower","luckyShirts","luckyShirtRail","dailyAspects","cardOfDay","baziDaily","westernDaily","announcements","advisorRail","features","articles","headline"]}},"dayPower":{"anyOf":[{"type":"object","properties":{"days":{"minItems":5,"maxItems":5,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"bgColor":{"type":"string"},"energyBand":{"type":"integer","minimum":1,"maximum":5},"faceImg":{"type":"string"},"specialDays":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"},"isCanWrap":{"type":"boolean"},"order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periodIdx":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["img","name","detail","position","icon","isCanWrap","order"],"additionalProperties":false}},"reukPeriods":{"type":"array","items":{"type":"object","properties":{"rerk":{"type":"integer","minimum":1,"maximum":27},"rerkName":{"type":"string"},"family":{"type":"integer","minimum":1,"maximum":9},"familyName":{"type":"string"},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]},"clipped":{"type":"string","enum":["personal","day","both"]}},"required":["rerk","rerkName","family","familyName","from","to"],"additionalProperties":false}}},"required":["date","bgColor","specialDays"],"additionalProperties":false}}},"required":["days"],"additionalProperties":false},{"type":"null"}]},"luckyShirts":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"dayName":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","title","dayName","colorList"],"additionalProperties":false},{"type":"null"}]},"luckyShirtRail":{"anyOf":[{"type":"object","properties":{"needsBirthData":{"type":"boolean"},"system":{"type":"string","enum":["thai","bazi","western"]},"cells":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"colors":{"type":"array","items":{"type":"string"}}},"required":["label","colors"],"additionalProperties":false}}},"required":["needsBirthData","system","cells"],"additionalProperties":false},{"type":"null"}]},"dailyAspects":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"baseSign":{"type":"string"},"personalDay":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"headline":{"type":"object","properties":{"message":{"type":"string"},"color":{"type":"string"}},"required":["message","color"],"additionalProperties":false},"bannerImg":{"type":"string"},"aspects":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string","enum":["work","money","love","health"]},"titleTh":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"color":{"type":"string"},"message":{"type":"string"}},"required":["topic","titleTh","score","percent","rank","color","message"],"additionalProperties":false}}},"required":["date","baseSign","personalDay","headline","aspects"],"additionalProperties":false},{"type":"null"}]},"cardOfDay":{"anyOf":[{"type":"object","properties":{"today":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"drawDate":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["number","name","img","detail","attributes"],"additionalProperties":false},"prediction":{"type":"string"},"score":{"type":"integer","minimum":0,"maximum":5},"comment":{"anyOf":[{"type":"string"},{"type":"null"}]},"wasAccurate":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"skipped":{"type":"boolean"}},"required":["id","drawDate","card","prediction","score","comment","wasAccurate","skipped"],"additionalProperties":false},{"type":"null"}]},"yesterday":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"drawDate":{"type":"string"},"card":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["number","name","img","detail","attributes"],"additionalProperties":false},"prediction":{"type":"string"},"score":{"type":"integer","minimum":0,"maximum":5},"comment":{"anyOf":[{"type":"string"},{"type":"null"}]},"wasAccurate":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"skipped":{"type":"boolean"}},"required":["id","drawDate","card","prediction","score","comment","wasAccurate","skipped"],"additionalProperties":false},{"type":"null"}]},"reminder":{"anyOf":[{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false},{"type":"null"}]},"streak":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lifetime":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["today","yesterday","reminder","streak","lifetime","serviceId"],"additionalProperties":false},{"type":"null"}]},"baziDaily":{"anyOf":[{"type":"object","properties":{"today":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"yesterday":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"systemLabel":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dayGanzhiCn":{"type":"string"},"dayStem":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false},"dayBranch":{"type":"object","properties":{"branch":{"type":"integer","minimum":0,"maximum":11},"cn":{"type":"string"},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"object","properties":{"stem":{"type":"integer","minimum":0,"maximum":9},"cn":{"type":"string"},"th":{"type":"string"},"yin":{"type":"boolean"},"polarityTh":{"type":"string","enum":["หยาง","หยิน"]},"element":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"anyOf":[{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},{"type":"null"}]}},"required":["stem","cn","th","yin","polarityTh","element","tenGod"],"additionalProperties":false}}},"required":["branch","cn","zodiacTh","animalTh","element","hidden"],"additionalProperties":false},"dayElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"zodiacTh":{"type":"string"},"animalTh":{"type":"string"},"dayMasterElement":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false},"tenGod":{"type":"object","properties":{"cn":{"type":"string"},"th":{"type":"string"},"teochew":{"type":"string"},"gist":{"type":"string"}},"required":["cn","th","teochew","gist"],"additionalProperties":false},"score":{"type":"object","properties":{"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"toneTh":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"favorableToday":{"type":"boolean"}},"required":["band","labelTh","toneTh","value","favorableToday"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["chong","zhi","xing","hai","po","he","sanhe","wuhe","chongZodiac"]},"cn":{"type":"string"},"labelTh":{"type":"string"},"noteTh":{"type":"string"}},"required":["key","cn","labelTh","noteTh"],"additionalProperties":false}},"headlineTh":{"type":"string"},"base":{"type":"object","properties":{"headlineTh":{"type":"string"},"summary":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["career","wealth","love","health","luck"]},"labelTh":{"type":"string"},"text":{"type":"string"}},"required":["key","labelTh","text"],"additionalProperties":false}},"rhythmTh":{"type":"string"}},"required":["headlineTh","summary","topics","rhythmTh"],"additionalProperties":false},"favorable":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"avoid":{"type":"array","items":{"type":"object","properties":{"element":{"type":"integer","minimum":0,"maximum":4},"cn":{"type":"string"},"th":{"type":"string"},"tone":{"type":"string","enum":["wood","fire","earth","metal","water"]}},"required":["element","cn","th","tone"],"additionalProperties":false}},"strengthNote":{"type":"string"}},"required":["systemLabel","birthDate","birthTime","targetDate","dayGanzhiCn","dayStem","dayBranch","dayElement","zodiacTh","animalTh","dayMasterElement","tenGod","score","relations","headlineTh","base","favorable","avoid","strengthNote"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"reminder":{"anyOf":[{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false},{"type":"null"}]},"streak":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lifetime":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["today","yesterday","reminder","streak","lifetime"],"additionalProperties":false},{"type":"null"}]},"westernDaily":{"anyOf":[{"type":"object","properties":{"today":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"yesterday":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reading":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeKnown":{"type":"boolean"},"band":{"type":"integer","minimum":1,"maximum":5},"labelTh":{"type":"string"},"headlineTh":{"type":"string"},"avgPercent":{"type":"number"},"mercuryRetrograde":{"type":"boolean"},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["work","money","love","health"]},"labelTh":{"type":"string"},"percent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rank":{"type":"string","enum":["VERY_GOOD","GOOD","NEUTRAL","BAD","VERY_BAD"]},"text":{"type":"string"}},"required":["key","labelTh","percent","rank","text"],"additionalProperties":false}},"hits":{"type":"array","items":{"type":"object","properties":{"transit":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto"]},"natal":{"type":"string","enum":["Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Node"]},"aspect":{"type":"string","enum":["conjunction","sextile","square","trine","opposition"]},"aspectTh":{"type":"string"},"orb":{"type":"number"},"strength":{"type":"number"},"valence":{"type":"number","minimum":-1,"maximum":1},"topics":{"type":"array","items":{"type":"string","enum":["work","money","love","health"]}},"formulaTh":{"type":"string"}},"required":["transit","natal","aspect","aspectTh","orb","strength","valence","topics","formulaTh"],"additionalProperties":false}}},"required":["date","timeKnown","band","labelTh","headlineTh","avgPercent","topics","hits"],"additionalProperties":false},"prose":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"reviewNote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["forDate","reading","prose","rating","reviewNote"],"additionalProperties":false},{"type":"null"}]},"reminder":{"anyOf":[{"type":"object","properties":{"reminderHour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reminderMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"type":"string"},"active":{"type":"boolean"}},"required":["reminderHour","reminderMinute","timezone","active"],"additionalProperties":false},{"type":"null"}]},"streak":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lifetime":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["today","yesterday","reminder","streak","lifetime"],"additionalProperties":false},{"type":"null"}]},"announcements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"showScrim":{"type":"boolean"}},"required":["id","title","body","imageUrl","linkUrl","linkLabel","showScrim"],"additionalProperties":false}},"advisorRail":{"type":"object","properties":{"heading":{"anyOf":[{"type":"string"},{"type":"null"}]},"banners":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","img","link"],"additionalProperties":false}}},"required":["heading","banners"],"additionalProperties":false},"focus":{"anyOf":[{"type":"object","properties":{"topic":{"type":"string","enum":["work","money","love","health","other"]},"detail":{"type":"string","maxLength":300}},"required":["topic","detail"],"additionalProperties":false},{"type":"null"}]},"headline":{"anyOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":400},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]}},"required":["text","forDate","fortuneSystem"],"additionalProperties":false},{"type":"null"}]},"features":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"type":"string","enum":["predict","boost"]},"type":{"type":"string","enum":["visual_artifact","reading","personalization","numerology","vision_trait","ritual"]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"eventType":{"anyOf":[{"type":"string"},{"type":"null"}]},"advisorSlug":{"type":"string"},"advisorName":{"type":"string"}},"required":["serviceId","slug","title","categoryLabel","category","type","bannerUrl","eventId","eventType","advisorSlug","advisorName"],"additionalProperties":false}},"articles":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt"],"additionalProperties":false}},{"type":"null"}]},"starMove":{"anyOf":[{"type":"object","properties":{"planetNo":{"type":"integer","minimum":0,"maximum":9},"planetTh":{"type":"string"},"zodiac":{"type":"string","enum":["เมษ","พฤษภ","เมถุน","กรกฎ","สิงห์","กันย์","ตุลย์","พิจิก","ธนู","มังกร","กุมภ์","มีน"]},"house":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string"}},"required":["name","icon"],"additionalProperties":false}},"img":{"type":"string"},"bgImg":{"type":"string"}},"required":["planetNo","planetTh","zodiac","house","topic","period","detail","ability","img","bgImg"],"additionalProperties":false},{"type":"null"}]},"art":{"anyOf":[{"type":"object","properties":{"mascot":{"anyOf":[{"type":"object","properties":{"fallback":{"anyOf":[{"type":"string"},{"type":"null"}]},"bySign":{"type":"object","properties":{"aries":{"anyOf":[{"type":"string"},{"type":"null"}]},"taurus":{"anyOf":[{"type":"string"},{"type":"null"}]},"gemini":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancer":{"anyOf":[{"type":"string"},{"type":"null"}]},"leo":{"anyOf":[{"type":"string"},{"type":"null"}]},"virgo":{"anyOf":[{"type":"string"},{"type":"null"}]},"libra":{"anyOf":[{"type":"string"},{"type":"null"}]},"scorpio":{"anyOf":[{"type":"string"},{"type":"null"}]},"sagittarius":{"anyOf":[{"type":"string"},{"type":"null"}]},"capricorn":{"anyOf":[{"type":"string"},{"type":"null"}]},"aquarius":{"anyOf":[{"type":"string"},{"type":"null"}]},"pisces":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces"],"additionalProperties":false}},"required":["fallback","bySign"],"additionalProperties":false},{"type":"null"}]},"natalCoins":{"type":"object","properties":{"weekday":{"anyOf":[{"type":"object","properties":{"sun":{"anyOf":[{"type":"string"},{"type":"null"}]},"mon":{"anyOf":[{"type":"string"},{"type":"null"}]},"tue":{"anyOf":[{"type":"string"},{"type":"null"}]},"wed":{"anyOf":[{"type":"string"},{"type":"null"}]},"wedNight":{"anyOf":[{"type":"string"},{"type":"null"}]},"thu":{"anyOf":[{"type":"string"},{"type":"null"}]},"fri":{"anyOf":[{"type":"string"},{"type":"null"}]},"sat":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["sun","mon","tue","wed","wedNight","thu","fri","sat"],"additionalProperties":false},{"type":"null"}]},"naksatr":{"anyOf":[{"type":"object","properties":{"rat":{"anyOf":[{"type":"string"},{"type":"null"}]},"ox":{"anyOf":[{"type":"string"},{"type":"null"}]},"tiger":{"anyOf":[{"type":"string"},{"type":"null"}]},"rabbit":{"anyOf":[{"type":"string"},{"type":"null"}]},"dragon":{"anyOf":[{"type":"string"},{"type":"null"}]},"snake":{"anyOf":[{"type":"string"},{"type":"null"}]},"horse":{"anyOf":[{"type":"string"},{"type":"null"}]},"goat":{"anyOf":[{"type":"string"},{"type":"null"}]},"monkey":{"anyOf":[{"type":"string"},{"type":"null"}]},"rooster":{"anyOf":[{"type":"string"},{"type":"null"}]},"dog":{"anyOf":[{"type":"string"},{"type":"null"}]},"pig":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["rat","ox","tiger","rabbit","dragon","snake","horse","goat","monkey","rooster","dog","pig"],"additionalProperties":false},{"type":"null"}]},"lagna":{"anyOf":[{"type":"object","properties":{"aries":{"anyOf":[{"type":"string"},{"type":"null"}]},"taurus":{"anyOf":[{"type":"string"},{"type":"null"}]},"gemini":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancer":{"anyOf":[{"type":"string"},{"type":"null"}]},"leo":{"anyOf":[{"type":"string"},{"type":"null"}]},"virgo":{"anyOf":[{"type":"string"},{"type":"null"}]},"libra":{"anyOf":[{"type":"string"},{"type":"null"}]},"scorpio":{"anyOf":[{"type":"string"},{"type":"null"}]},"sagittarius":{"anyOf":[{"type":"string"},{"type":"null"}]},"capricorn":{"anyOf":[{"type":"string"},{"type":"null"}]},"aquarius":{"anyOf":[{"type":"string"},{"type":"null"}]},"pisces":{"anyOf":[{"type":"string"},{"type":"null"}]},"fallback":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces","fallback"],"additionalProperties":false},{"type":"null"}]},"asc":{"anyOf":[{"type":"object","properties":{"aries":{"anyOf":[{"type":"string"},{"type":"null"}]},"taurus":{"anyOf":[{"type":"string"},{"type":"null"}]},"gemini":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancer":{"anyOf":[{"type":"string"},{"type":"null"}]},"leo":{"anyOf":[{"type":"string"},{"type":"null"}]},"virgo":{"anyOf":[{"type":"string"},{"type":"null"}]},"libra":{"anyOf":[{"type":"string"},{"type":"null"}]},"scorpio":{"anyOf":[{"type":"string"},{"type":"null"}]},"sagittarius":{"anyOf":[{"type":"string"},{"type":"null"}]},"capricorn":{"anyOf":[{"type":"string"},{"type":"null"}]},"aquarius":{"anyOf":[{"type":"string"},{"type":"null"}]},"pisces":{"anyOf":[{"type":"string"},{"type":"null"}]},"fallback":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces","fallback"],"additionalProperties":false},{"type":"null"}]},"bazi":{"anyOf":[{"type":"object","properties":{"wood":{"anyOf":[{"type":"string"},{"type":"null"}]},"fire":{"anyOf":[{"type":"string"},{"type":"null"}]},"earth":{"anyOf":[{"type":"string"},{"type":"null"}]},"metal":{"anyOf":[{"type":"string"},{"type":"null"}]},"water":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["wood","fire","earth","metal","water"],"additionalProperties":false},{"type":"null"}]}},"required":["weekday","naksatr","lagna","asc","bazi"],"additionalProperties":false}},"required":["mascot","natalCoins"],"additionalProperties":false},{"type":"null"}]},"shortcuts":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"slot":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"link":{"type":"string"},"featureKey":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","label","iconUrl","link","featureKey"],"additionalProperties":false}}},"required":["slot","items"],"additionalProperties":false}},{"type":"null"}]}},"required":["date","prefs","degraded","dayPower","luckyShirts","luckyShirtRail","dailyAspects","cardOfDay","baziDaily","westernDaily","announcements","advisorRail","focus","headline","features","articles","starMove","art","shortcuts"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/home/focus":{"put":{"operationId":"home.updateFocus","tags":["home"],"summary":"home.updateFocus","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"focus":{"anyOf":[{"type":"object","properties":{"topic":{"type":"string","enum":["work","money","love","health","other"]},"detail":{"type":"string","maxLength":300}},"required":["topic","detail"],"additionalProperties":false},{"type":"null"}]}},"required":["focus"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"anyOf":[{"type":"string","enum":["work","money","love","health","other"]},{"type":"null"}]},"detail":{"default":"","type":"string","maxLength":300}},"required":["topic"]}}}},"security":[{"bearerAuth":[]}]}},"/home/headline":{"post":{"operationId":"home.headline","tags":["home"],"summary":"home.headline","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"headline":{"anyOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":400},"forDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]}},"required":["text","forDate","fortuneSystem"],"additionalProperties":false},{"type":"null"}]}},"required":["headline"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/i18n/locales":{"get":{"operationId":"i18n.locales","tags":["i18n"],"summary":"i18n.locales","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sourceLocale":{"type":"string"},"locales":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"nativeName":{"type":"string"},"fallbackChain":{"type":"array","items":{"type":"string"}},"minAppVersion":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["code","nativeName","fallbackChain","minAppVersion"],"additionalProperties":false}},"features":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["sourceLocale","locales","features"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/i18n/resolve":{"post":{"operationId":"i18n.resolve","tags":["i18n"],"summary":"i18n.resolve","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string"},"source":{"type":"string","enum":["user","legacy","device","country","default"]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"saved":{"type":"boolean"}},"required":["locale","source","country","saved"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceLocales":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":35}},"deviceRegion":{"type":"string","maxLength":3},"legacyInstall":{"type":"boolean"}}}}}},"security":[{},{"bearerAuth":[]}]}},"/i18n/bundle":{"get":{"operationId":"i18n.bundle","tags":["i18n"],"summary":"i18n.bundle","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"namespace":{"type":"string"},"locale":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["namespace","locale","version","entries"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"ns","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":80,"pattern":"^[a-z][a-z0-9.-]{1,79}$"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"}}]}},"/i18n/preferences":{"get":{"operationId":"i18n.preferences.get","tags":["i18n"],"summary":"i18n.preferences.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string"},"source":{"type":"string"},"country":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["locale","source","country"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"i18n.preferences.set","tags":["i18n"],"summary":"i18n.preferences.set","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string"},"source":{"type":"string"},"country":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["locale","source","country"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"}},"required":["locale"]}}}},"security":[{"bearerAuth":[]}]}},"/platform/config":{"get":{"operationId":"platform.config","tags":["platform"],"summary":"platform.config","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"flags":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"required":["web","ios","android"],"additionalProperties":false}},"minAppVersion":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"ios":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"android":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"below":{"default":"off","type":"string","enum":["off","soon"]}},"required":["below"],"additionalProperties":false}}},"required":["version","date","flags","minAppVersion"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/platform/my-features":{"get":{"operationId":"platform.myFeatures","tags":["platform"],"summary":"platform.myFeatures","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["keys"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/platform/catalog-prices":{"get":{"operationId":"platform.catalogPrices","tags":["platform"],"summary":"platform.catalogPrices","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"prices":{"type":"array","items":{"type":"object","properties":{"featureKey":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","minLength":1,"maxLength":80},"pricingModel":{"type":"string","enum":["one_time","subscription","free"]},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"tiers":{"type":"integer","minimum":0,"maximum":9007199254740991},"grantsUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"priceNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paymentChannels":{"type":"array","items":{"type":"string","enum":["promptpay","credit_debit","app_store","google_play"]}}},"required":["featureKey","slug","pricingModel","priceMinor","currency","tiers","grantsUses","priceNote","bannerUrl"],"additionalProperties":false}},"tiles":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["prices","tiles"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/platform/landing-page":{"get":{"operationId":"platform.landingPage","tags":["platform"],"summary":"platform.landingPage","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string"},"name":{"type":"string"},"componentView":{"type":"object","properties":{"banner":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]}},"additionalProperties":{}},"hero":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"subtitle":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"detail":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"additionalProperties":{}},"images":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"object","properties":{"img":{"type":"string","maxLength":1024},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]}},"required":["img"],"additionalProperties":{}}},"howTo":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title","detail"],"additionalProperties":{}}},"points":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title","detail"],"additionalProperties":{}}},"benefits":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title","detail"],"additionalProperties":{}}},"questions":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title","detail"],"additionalProperties":{}}},"days":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"birthDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["detail"],"additionalProperties":{}}},"headings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":120}},"cta":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]}},"additionalProperties":{}}},"additionalProperties":{}}},"required":["featureKey","name","componentView"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"featureKey","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}}]}},"/platform/feature-opens":{"post":{"operationId":"platform.recordFeatureOpen","tags":["platform"],"summary":"platform.recordFeatureOpen","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string","pattern":"^(predict|boost)\\.[a-z0-9-]{1,60}$"},"surface":{"default":"entry","type":"string","enum":["entry","result"]}},"required":["featureKey"]}}}},"security":[{"bearerAuth":[]}]}},"/platform/events":{"post":{"operationId":"platform.recordAppEvents","tags":["platform"],"summary":"platform.recordAppEvents","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"accepted":{"type":"integer","minimum":0,"maximum":9007199254740991},"dropped":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["ok","accepted","dropped"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"v":{"type":"number","const":1},"anonId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priorSession":{"default":false,"type":"boolean"},"notice":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"events":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["v","anonId","events"]}}}},"security":[{},{"bearerAuth":[]}]}},"/admin-feature-flags":{"get":{"operationId":"featureFlags.adminList","tags":["featureFlags"],"summary":"featureFlags.adminList","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureFlags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"surface":{"type":"string","enum":["predict","boost","app"]},"title":{"type":"string"},"state":{"type":"string","enum":["on","preview","soon","off"]},"stateByPlatform":{"anyOf":[{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"additionalProperties":false},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerCreatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nativeReady":{"type":"boolean"},"minAppVersion":{"anyOf":[{"type":"object","properties":{"ios":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"android":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"}},"additionalProperties":false},{"type":"null"}]},"belowMinState":{"type":"string","enum":["off","soon"]},"paymentChannels":{"type":"array","items":{"type":"string","enum":["promptpay","credit_debit","app_store","google_play"]}},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"resolved":{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"required":["web","ios","android"],"additionalProperties":false},"serviceActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"componentView":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["id","key","surface","title","state","stateByPlatform","serviceSlug","ownerCreatorId","nativeReady","minAppVersion","belowMinState","paymentChannels","startsAt","endsAt","note","sortOrder","createdAt","updatedAt","resolved","serviceActive","bannerUrl","componentView"],"additionalProperties":false}}},"required":["featureFlags"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"featureFlags.create","tags":["featureFlags"],"summary":"featureFlags.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureFlag":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"surface":{"type":"string","enum":["predict","boost","app"]},"title":{"type":"string"},"state":{"type":"string","enum":["on","preview","soon","off"]},"stateByPlatform":{"anyOf":[{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"additionalProperties":false},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerCreatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nativeReady":{"type":"boolean"},"minAppVersion":{"anyOf":[{"type":"object","properties":{"ios":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"android":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"}},"additionalProperties":false},{"type":"null"}]},"belowMinState":{"type":"string","enum":["off","soon"]},"paymentChannels":{"type":"array","items":{"type":"string","enum":["promptpay","credit_debit","app_store","google_play"]}},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"resolved":{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"required":["web","ios","android"],"additionalProperties":false},"serviceActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"componentView":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["id","key","surface","title","state","stateByPlatform","serviceSlug","ownerCreatorId","nativeReady","minAppVersion","belowMinState","paymentChannels","startsAt","endsAt","note","sortOrder","createdAt","updatedAt","resolved","serviceActive","bannerUrl","componentView"],"additionalProperties":false}},"required":["featureFlag"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","minLength":3,"maxLength":80,"pattern":"^(predict|boost|app)\\.[a-z0-9]+(-[a-z0-9]+)*$"},"surface":{"type":"string","enum":["predict","boost","app"]},"title":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["on","preview","soon","off"]},"stateByPlatform":{"anyOf":[{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}}},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"ownerCreatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nativeReady":{"type":"boolean"},"minAppVersion":{"anyOf":[{"type":"object","properties":{"ios":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"android":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"}}},{"type":"null"}]},"belowMinState":{"type":"string","enum":["off","soon"]},"paymentChannels":{"default":["promptpay"],"minItems":1,"type":"array","items":{"type":"string","enum":["promptpay","credit_debit","app_store","google_play"]}},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"emergency":{"type":"boolean"},"bannerUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"componentView":{"anyOf":[{"type":"object","properties":{"banner":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]}},"additionalProperties":{}},"hero":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"subtitle":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"detail":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"additionalProperties":{}},"images":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"object","properties":{"img":{"type":"string","maxLength":1024},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]}},"required":["img"],"additionalProperties":{}}},"howTo":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"points":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"benefits":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"questions":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"days":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"birthDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"additionalProperties":{}}},"headings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":120}},"cta":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]}},"additionalProperties":{}}},"additionalProperties":{}},{"type":"null"}]}},"required":["key","surface","title"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-feature-flags/{id}":{"patch":{"operationId":"featureFlags.update","tags":["featureFlags"],"summary":"featureFlags.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureFlag":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"surface":{"type":"string","enum":["predict","boost","app"]},"title":{"type":"string"},"state":{"type":"string","enum":["on","preview","soon","off"]},"stateByPlatform":{"anyOf":[{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"additionalProperties":false},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerCreatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nativeReady":{"type":"boolean"},"minAppVersion":{"anyOf":[{"type":"object","properties":{"ios":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"android":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"}},"additionalProperties":false},{"type":"null"}]},"belowMinState":{"type":"string","enum":["off","soon"]},"paymentChannels":{"type":"array","items":{"type":"string","enum":["promptpay","credit_debit","app_store","google_play"]}},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"resolved":{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}},"required":["web","ios","android"],"additionalProperties":false},"serviceActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"bannerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"componentView":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["id","key","surface","title","state","stateByPlatform","serviceSlug","ownerCreatorId","nativeReady","minAppVersion","belowMinState","paymentChannels","startsAt","endsAt","note","sortOrder","createdAt","updatedAt","resolved","serviceActive","bannerUrl","componentView"],"additionalProperties":false}},"required":["featureFlag"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["on","preview","soon","off"]},"stateByPlatform":{"anyOf":[{"type":"object","properties":{"web":{"type":"string","enum":["on","preview","soon","off"]},"ios":{"type":"string","enum":["on","preview","soon","off"]},"android":{"type":"string","enum":["on","preview","soon","off"]}}},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"ownerCreatorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nativeReady":{"type":"boolean"},"minAppVersion":{"anyOf":[{"type":"object","properties":{"ios":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"android":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"}}},{"type":"null"}]},"belowMinState":{"type":"string","enum":["off","soon"]},"paymentChannels":{"minItems":1,"type":"array","items":{"type":"string","enum":["promptpay","credit_debit","app_store","google_play"]}},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"emergency":{"type":"boolean"},"bannerUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"componentView":{"anyOf":[{"type":"object","properties":{"banner":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]}},"additionalProperties":{}},"hero":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"subtitle":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"detail":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"additionalProperties":{}},"images":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"object","properties":{"img":{"type":"string","maxLength":1024},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]}},"required":["img"],"additionalProperties":{}}},"howTo":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"points":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"benefits":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"questions":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"required":["title"],"additionalProperties":{}}},"days":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"birthDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},"img":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imgWidth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"imgHeight":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":8192},{"type":"null"}]},"title":{"type":"string","minLength":1,"maxLength":120},"detail":{"default":"","type":"string","maxLength":400}},"additionalProperties":{}}},"headings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":120}},"cta":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]}},"additionalProperties":{}}},"additionalProperties":{}},{"type":"null"}]}}}}}},"security":[{"bearerAuth":[]}]}},"/profile/overview":{"get":{"operationId":"profile.overview","tags":["profile"],"summary":"profile.overview","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"me":{"type":"object","properties":{"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"userName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["user","creator","admin","super_admin","tester"]},"providers":{"type":"array","items":{"type":"string","enum":["google","apple","line"]}},"textScale":{"type":"integer","minimum":-2,"maximum":2},"fortuneSystem":{"type":"string","enum":["thai","bazi","western"]},"positionMode":{"type":"string","enum":["suriyayart","lahiri"]},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"nextUserName":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextDisplayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentWarnings":{"type":"array","items":{"type":"string","enum":["displayName","note","userName"]}},"isNeedUpdateConsent":{"type":"boolean"},"activatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["id","email","displayName","userName","avatarUrl","firstName","lastName","nickname","note","role","providers","textScale","fortuneSystem","positionMode","canChangeUsername","canChangeDisplayName","nextUserName","nextDisplayName","contentWarnings","isNeedUpdateConsent","activatedAt"],"additionalProperties":false},"artifacts":{"anyOf":[{"type":"object","properties":{"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["wallpaper","widget","paired"]},"createdAt":{"type":"string"},"creatorServiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}]},"pairedArtifactId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"previewImg":{"type":"string"},"thumbUrl":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliverables":{"type":"array","items":{"type":"string","enum":["wallpaper","widget","paired"]}},"widget":{"anyOf":[{"type":"object","properties":{"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"img":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["topicId","img"],"additionalProperties":false},{"type":"null"}]},"replay":{"type":"object","properties":{"eventId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"items":{"type":"array","items":{"type":"string"}},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"}},"required":["eventId","topicId","items","showName","showStar","showVirtue"],"additionalProperties":false}},"required":["id","kind","createdAt","creatorServiceId","serial","pairedArtifactId"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["artifacts","limit","offset"],"additionalProperties":false},{"type":"null"}]},"entitlements":{"anyOf":[{"type":"object","properties":{"entitlements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creatorServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"source":{"type":"string","enum":["purchase","subscription","gift","grant","redemption"]},"status":{"type":"string"},"kind":{"type":"string","enum":["access","quota"]},"scope":{"type":"string","enum":["service","service_type","platform"]},"scopeServiceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"remainingUses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"resetPolicy":{"type":"string","enum":["none","monthly"]},"periodKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"grantedAt":{"type":"string"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["access","coupon","free_quota"]},"serviceTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"advisorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"freeCycle":{"anyOf":[{"type":"string","enum":["daily","weekly","monthly","once"]},{"type":"null"}]}},"required":["id","creatorServiceId","productId","source","status","kind","scope","scopeServiceType","totalUses","remainingUses","resetPolicy","periodKey","grantedAt","expiresAt","type"],"additionalProperties":false}}},"required":["entitlements"],"additionalProperties":false},{"type":"null"}]},"following":{"anyOf":[{"type":"object","properties":{"creators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"cardDesc":{"anyOf":[{"type":"string"},{"type":"null"}]},"specialties":{"type":"array","items":{"type":"string"}},"verified":{"type":"boolean"},"followerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followedAt":{"type":"string"}},"required":["id","displayName","slug","bio","avatarUrl","coverUrl","cardTitle","cardDesc","specialties","verified","followerCount","followedAt"],"additionalProperties":false}}},"required":["creators"],"additionalProperties":false},{"type":"null"}]},"saved":{"anyOf":[{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creator":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarV43Url":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarFavProfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified":{"type":"boolean"}},"required":["id","displayName","slug","avatarUrl","verified"],"additionalProperties":false},"type":{"type":"string","enum":["text","image","video"]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"mediaUrls":{"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","paywalled"]},"requiredServiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"video":{"anyOf":[{"type":"object","properties":{"videoUid":{"type":"string"},"hlsUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"iframeUrl":{"type":"string"},"requiresSignedToken":{"type":"boolean"}},"required":["videoUid","requiresSignedToken"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByMe":{"type":"boolean"},"savedByMe":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibleUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","creator","type","body","mediaUrls","visibility","requiredServiceId","video","locked","hashtags","likeCount","commentCount","likedByMe","savedByMe","publishedAt","visibleFrom","visibleUntil","createdAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["posts","limit","offset"],"additionalProperties":false},{"type":"null"}]},"degraded":{"type":"array","items":{"type":"string","enum":["artifacts","entitlements","following","saved"]}}},"required":["me","artifacts","entitlements","following","saved","degraded"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/vows":{"get":{"operationId":"vows.list","tags":["vows"],"summary":"vows.list","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","awaiting_redemption","redeemed","cancelled"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["career","finance","love","health","other","luck","study"]}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"vows.create","tags":["vows"],"summary":"vows.create","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"vow":{"type":"object","properties":{},"additionalProperties":{}}},"required":["vow"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deityName":{"type":"string","minLength":1,"maxLength":200},"placeName":{"type":"string","maxLength":300},"placeAddress":{"type":"string","maxLength":500},"placeLat":{"type":"number","minimum":-90,"maximum":90},"placeLng":{"type":"number","minimum":-180,"maximum":180},"placeType":{"type":"string","enum":["hindu","temple","chinese_shrine","folk_shrine","sacred_nature","church","cathedral","mosque","sikh","other"]},"category":{"type":"string","enum":["career","finance","love","health","other","luck","study"]},"wish":{"type":"string","minLength":1,"maxLength":4000},"offering":{"type":"string","maxLength":2000},"targetDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"photoUrl":{"type":"string","maxLength":1024,"format":"uri"},"note":{"type":"string","maxLength":2000}},"required":["deityName","category","wish"]}}}},"security":[{"bearerAuth":[]}]}},"/vows/map":{"get":{"operationId":"vows.map","tags":["vows"],"summary":"vows.map","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"pins":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}},"required":["pins"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/vows/photo/upload-url":{"post":{"operationId":"vows.photoUploadUrl","tags":["vows"],"summary":"vows.photoUploadUrl","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"imageId":{"type":"string"}},"required":["uploadUrl","imageId"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/vows/photo":{"post":{"operationId":"vows.photoUpload","tags":["vows"],"summary":"vows.photoUpload","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/vows/{id}":{"get":{"operationId":"vows.get","tags":["vows"],"summary":"vows.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"vow":{"type":"object","properties":{},"additionalProperties":{}}},"required":["vow"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"patch":{"operationId":"vows.update","tags":["vows"],"summary":"vows.update","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"vow":{"type":"object","properties":{},"additionalProperties":{}}},"required":["vow"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deityName":{"type":"string","minLength":1,"maxLength":200},"placeName":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"placeAddress":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"placeLat":{"anyOf":[{"type":"number","minimum":-90,"maximum":90},{"type":"null"}]},"placeLng":{"anyOf":[{"type":"number","minimum":-180,"maximum":180},{"type":"null"}]},"placeType":{"type":"string","enum":["hindu","temple","chinese_shrine","folk_shrine","sacred_nature","church","cathedral","mosque","sikh","other"]},"category":{"type":"string","enum":["career","finance","love","health","other","luck","study"]},"wish":{"type":"string","minLength":1,"maxLength":4000},"offering":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"targetDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"photoUrl":{"anyOf":[{"type":"string","maxLength":1024,"format":"uri"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"vows.delete","tags":["vows"],"summary":"vows.delete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/vows/{id}/grant":{"post":{"operationId":"vows.grant","tags":["vows"],"summary":"vows.grant","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"vow":{"type":"object","properties":{},"additionalProperties":{}}},"required":["vow"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/vows/{id}/redeem":{"post":{"operationId":"vows.redeem","tags":["vows"],"summary":"vows.redeem","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledFor":{"type":"string"},"redeemedAt":{"type":"string"},"note":{"type":"string","maxLength":2000},"photoUrl":{"type":"string","maxLength":1024,"format":"uri"}}}}}},"security":[{"bearerAuth":[]}]}},"/vows/{id}/cancel":{"post":{"operationId":"vows.cancel","tags":["vows"],"summary":"vows.cancel","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"vow":{"type":"object","properties":{},"additionalProperties":{}}},"required":["vow"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/notifications/me":{"get":{"operationId":"notifications.me","tags":["notifications"],"summary":"notifications.me","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["push","line","inapp"]},"type":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"data":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"status":{"type":"string","enum":["pending","sent","failed"]},"readAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","channel","type","title","body","data","status","readAt","createdAt"],"additionalProperties":false}},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","unread"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"unreadOnly","in":"query","required":false,"schema":{"default":"false","type":"string","enum":["true","false"]}}],"security":[{"bearerAuth":[]}]}},"/notifications/read-all":{"post":{"operationId":"notifications.readAll","tags":["notifications"],"summary":"notifications.readAll","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["updated"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/{id}/read":{"post":{"operationId":"notifications.read","tags":["notifications"],"summary":"notifications.read","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"notification":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["push","line","inapp"]},"type":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"data":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"status":{"type":"string","enum":["pending","sent","failed"]},"readAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","channel","type","title","body","data","status","readAt","createdAt"],"additionalProperties":false}},"required":["notification"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/notifications/prefs":{"get":{"operationId":"notifications.getPrefs","tags":["notifications"],"summary":"notifications.getPrefs","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"type":"object","properties":{"push":{"type":"boolean"},"line":{"type":"boolean"},"vow":{"type":"boolean"},"promotions":{"type":"boolean"},"social":{"type":"boolean"}},"required":["push","line","vow","promotions","social"],"additionalProperties":false}},"required":["preferences"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"notifications.updatePrefs","tags":["notifications"],"summary":"notifications.updatePrefs","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"type":"object","properties":{"push":{"type":"boolean"},"line":{"type":"boolean"},"vow":{"type":"boolean"},"promotions":{"type":"boolean"},"social":{"type":"boolean"}},"required":["push","line","vow","promotions","social"],"additionalProperties":false}},"required":["preferences"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"push":{"type":"boolean"},"line":{"type":"boolean"},"vow":{"type":"boolean"},"promotions":{"type":"boolean"},"social":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/reviews/summaries":{"get":{"operationId":"reviews.summaries","tags":["reviews"],"summary":"reviews.summaries","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"reviewCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingAverage":{"anyOf":[{"type":"number","minimum":1,"maximum":5},{"type":"null"}]},"featureKey":{"type":"string"}},"required":["reviewCount","ratingAverage","featureKey"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/reviews":{"get":{"operationId":"reviews.list","tags":["reviews"],"summary":"reviews.list","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string"},"mode":{"type":"string","enum":["per_use","per_feature"]},"open":{"type":"boolean"},"eligibility":{"type":"string","enum":["eligible","closed","no_birth_date","under_age","not_used"]},"summary":{"type":"object","properties":{"reviewCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingAverage":{"anyOf":[{"type":"number","minimum":1,"maximum":5},{"type":"null"}]}},"required":["reviewCount","ratingAverage"],"additionalProperties":false},"mine":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorKey":{"type":"string"},"rating":{"type":"integer","minimum":1,"maximum":5},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"edited":{"type":"boolean"},"rewarded":{"type":"boolean"},"isMine":{"type":"boolean"},"status":{"type":"string","enum":["published","hidden","removed"]},"usage":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["divination_reading","tarot_session","tarot_session_v3","reading_session","birdeye_oracle_draw","rune_draw","monthly_reading","fulfillment_order","user_syamsi","face_couple","numerology_analysis","compatibility","bazi_daily","daily_western","wallpaper","vision_analysis","pimfah_tarot_draw","saengsuk_draw"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["source","id","usedOn"],"additionalProperties":false},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string","enum":["accurate","beautiful","easy_to_read","worth_it","other","inaccurate","slow","hard_to_read","too_long","hard_to_use"]}}},"required":["id","authorName","authorKey","rating","body","date","edited","rewarded","isMine","status","usage","tags"],"additionalProperties":false},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorKey":{"type":"string"},"rating":{"type":"integer","minimum":1,"maximum":5},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"edited":{"type":"boolean"},"rewarded":{"type":"boolean"},"isMine":{"type":"boolean"}},"required":["id","authorName","authorKey","rating","body","date","edited","rewarded","isMine"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"loyalty":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["available","month_full","awarded","deferred","earned","too_short","not_eligible"]},"points":{"type":"integer","minimum":0,"maximum":9007199254740991},"minBodyChars":{"type":"integer","minimum":1,"maximum":9007199254740991},"awardedPoints":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["state","points","minBodyChars","awardedPoints"],"additionalProperties":false},{"type":"null"}]}},"required":["featureKey","mode","open","eligibility","summary","mine","items","limit","offset","hasMore","loyalty"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"featureKey","in":"query","required":true,"schema":{"type":"string","pattern":"^(predict|boost)\\.[a-z0-9-]{1,60}$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"usageSource","in":"query","required":false,"schema":{"type":"string","enum":["divination_reading","tarot_session","tarot_session_v3","reading_session","birdeye_oracle_draw","rune_draw","monthly_reading","fulfillment_order","user_syamsi","face_couple","numerology_analysis","compatibility","bazi_daily","daily_western","wallpaper","vision_analysis","pimfah_tarot_draw","saengsuk_draw"]}},{"name":"usageId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/reviews/mine/by-usage":{"get":{"operationId":"reviews.mineByUsage","tags":["reviews"],"summary":"reviews.mineByUsage","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorKey":{"type":"string"},"rating":{"type":"integer","minimum":1,"maximum":5},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"edited":{"type":"boolean"},"rewarded":{"type":"boolean"},"isMine":{"type":"boolean"},"status":{"type":"string","enum":["published","hidden","removed"]},"usage":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["divination_reading","tarot_session","tarot_session_v3","reading_session","birdeye_oracle_draw","rune_draw","monthly_reading","fulfillment_order","user_syamsi","face_couple","numerology_analysis","compatibility","bazi_daily","daily_western","wallpaper","vision_analysis","pimfah_tarot_draw","saengsuk_draw"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["source","id","usedOn"],"additionalProperties":false},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string","enum":["accurate","beautiful","easy_to_read","worth_it","other","inaccurate","slow","hard_to_read","too_long","hard_to_use"]}},"featureKey":{"type":"string"}},"required":["id","authorName","authorKey","rating","body","date","edited","rewarded","isMine","status","usage","tags","featureKey"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"refs","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/reviews/mine":{"put":{"operationId":"reviews.upsertMine","tags":["reviews"],"summary":"reviews.upsertMine","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"review":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorKey":{"type":"string"},"rating":{"type":"integer","minimum":1,"maximum":5},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"edited":{"type":"boolean"},"rewarded":{"type":"boolean"},"isMine":{"type":"boolean"},"status":{"type":"string","enum":["published","hidden","removed"]},"usage":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["divination_reading","tarot_session","tarot_session_v3","reading_session","birdeye_oracle_draw","rune_draw","monthly_reading","fulfillment_order","user_syamsi","face_couple","numerology_analysis","compatibility","bazi_daily","daily_western","wallpaper","vision_analysis","pimfah_tarot_draw","saengsuk_draw"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["source","id","usedOn"],"additionalProperties":false},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string","enum":["accurate","beautiful","easy_to_read","worth_it","other","inaccurate","slow","hard_to_read","too_long","hard_to_use"]}}},"required":["id","authorName","authorKey","rating","body","date","edited","rewarded","isMine","status","usage","tags"],"additionalProperties":false},"loyalty":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["available","month_full","awarded","deferred","earned","too_short","not_eligible"]},"points":{"type":"integer","minimum":0,"maximum":9007199254740991},"minBodyChars":{"type":"integer","minimum":1,"maximum":9007199254740991},"awardedPoints":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["state","points","minBodyChars","awardedPoints"],"additionalProperties":false},{"type":"null"}]}},"required":["review","loyalty"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string","pattern":"^(predict|boost)\\.[a-z0-9-]{1,60}$"},"rating":{"type":"integer","minimum":1,"maximum":5},"body":{"type":"string","maxLength":1000},"usage":{"type":"object","properties":{"source":{"type":"string","enum":["divination_reading","tarot_session","tarot_session_v3","reading_session","birdeye_oracle_draw","rune_draw","monthly_reading","fulfillment_order","user_syamsi","face_couple","numerology_analysis","compatibility","bazi_daily","daily_western","wallpaper","vision_analysis","pimfah_tarot_draw","saengsuk_draw"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["source","id"]},"tags":{"maxItems":10,"type":"array","items":{"type":"string","enum":["accurate","beautiful","easy_to_read","worth_it","other","inaccurate","slow","hard_to_read","too_long","hard_to_use"]}}},"required":["featureKey","rating"]}}}},"security":[{"bearerAuth":[]}]}},"/reviews/{id}":{"delete":{"operationId":"reviews.deleteMine","tags":["reviews"],"summary":"reviews.deleteMine","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/reviews/readings/mine":{"get":{"operationId":"reviews.readingMine","tags":["reviews"],"summary":"reviews.readingMine","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string"},"ref":{"type":"string"},"vote":{"anyOf":[{"type":"string","enum":["like","dislike"]},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","enum":["off_topic","too_broad","inaccurate","hard_to_read"]}},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"featureReviewed":{"type":"boolean"}},"required":["featureKey","ref","vote","reasons","note","featureReviewed"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"featureKey","in":"query","required":true,"schema":{"type":"string","pattern":"^(predict|boost)\\.[a-z0-9-]{1,60}$"}},{"name":"ref","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9:._-]{0,119}$"}}],"security":[{"bearerAuth":[]}]},"put":{"operationId":"reviews.readingVote","tags":["reviews"],"summary":"reviews.readingVote","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string"},"ref":{"type":"string"},"vote":{"anyOf":[{"type":"string","enum":["like","dislike"]},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","enum":["off_topic","too_broad","inaccurate","hard_to_read"]}},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"featureReviewed":{"type":"boolean"}},"required":["featureKey","ref","vote","reasons","note","featureReviewed"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"featureKey":{"type":"string","pattern":"^(predict|boost)\\.[a-z0-9-]{1,60}$"},"ref":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9:._-]{0,119}$"},"vote":{"anyOf":[{"type":"string","enum":["like","dislike"]},{"type":"null"}]},"reasons":{"maxItems":4,"type":"array","items":{"type":"string","enum":["off_topic","too_broad","inaccurate","hard_to_read"]}},"note":{"type":"string","maxLength":500}},"required":["featureKey","ref","vote"]}}}},"security":[{"bearerAuth":[]}]}},"/reviews/{id}/report":{"post":{"operationId":"reviews.report","tags":["reviews"],"summary":"reviews.report","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reported":{"type":"boolean","const":true}},"required":["reported"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["spam","harassment","hate","sexual","violence","misinformation","other"]},"note":{"type":"string","maxLength":1000}},"required":["reason"]}}}},"security":[{"bearerAuth":[]}]}},"/web-articles":{"get":{"operationId":"webArticles.list","tags":["webArticles"],"summary":"webArticles.list","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"articles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["articles","total"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"tag","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":9007199254740991}}]}},"/web-articles/{slug}":{"get":{"operationId":"webArticles.get","tags":["webArticles"],"summary":"webArticles.get","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"article":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"],"additionalProperties":false}}},"required":["type","cells"],"additionalProperties":false}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"],"additionalProperties":false},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt","metaDescription","imageBanner","imageOg","heroBadgeClass","status","blocks","event","author","updatedAt"],"additionalProperties":false},"related":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt"],"additionalProperties":false}}},"required":["article","related"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":240}},{"name":"preview","in":"query","required":false,"schema":{"type":"string","enum":["0","1"]}}]}},"/web-article-categories":{"get":{"operationId":"webArticles.categories","tags":["webArticles"],"summary":"webArticles.categories","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"label":{"type":"string"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"badgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","label","parentId","badgeClass","description","sortOrder","active"],"additionalProperties":false}}},"required":["categories"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/admin-web-articles":{"get":{"operationId":"webArticles.adminList","tags":["webArticles"],"summary":"webArticles.adminList","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"articles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"],"additionalProperties":false}}},"required":["type","cells"],"additionalProperties":false}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"],"additionalProperties":false},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt","metaDescription","imageBanner","imageOg","heroBadgeClass","status","blocks","event","author","updatedAt","subCategoryId","authorId","sortOrder","contentUpdatedAt","createdAt"],"additionalProperties":false}}},"required":["articles"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","preview","published","archived"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"webArticles.create","tags":["webArticles"],"summary":"webArticles.create","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"article":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"],"additionalProperties":false}}},"required":["type","cells"],"additionalProperties":false}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"],"additionalProperties":false},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt","metaDescription","imageBanner","imageOg","heroBadgeClass","status","blocks","event","author","updatedAt","subCategoryId","authorId","sortOrder","contentUpdatedAt","createdAt"],"additionalProperties":false}},"required":["article"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"slug":{"type":"string","maxLength":240,"pattern":"^[a-z0-9][a-z0-9-]*$"},"excerpt":{"type":"string","maxLength":1000},"metaDescription":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"categoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"blocks":{"maxItems":500,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src"]},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"]},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","rows"]},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src"]}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt"]},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src"]},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"]},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","rows"]},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src"]}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt"]}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"]}}},"required":["type","cells"]}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"]},{"type":"null"}]},"tags":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":120}},"featured":{"type":"boolean"},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-web-articles/{id}":{"get":{"operationId":"webArticles.adminGet","tags":["webArticles"],"summary":"webArticles.adminGet","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"article":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"],"additionalProperties":false}}},"required":["type","cells"],"additionalProperties":false}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"],"additionalProperties":false},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt","metaDescription","imageBanner","imageOg","heroBadgeClass","status","blocks","event","author","updatedAt","subCategoryId","authorId","sortOrder","contentUpdatedAt","createdAt"],"additionalProperties":false}},"required":["article"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"patch":{"operationId":"webArticles.update","tags":["webArticles"],"summary":"webArticles.update","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"article":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"],"additionalProperties":false}}},"required":["type","cells"],"additionalProperties":false}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"],"additionalProperties":false},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt","metaDescription","imageBanner","imageOg","heroBadgeClass","status","blocks","event","author","updatedAt","subCategoryId","authorId","sortOrder","contentUpdatedAt","createdAt"],"additionalProperties":false}},"required":["article"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"slug":{"type":"string","maxLength":240,"pattern":"^[a-z0-9][a-z0-9-]*$"},"excerpt":{"type":"string","maxLength":1000},"metaDescription":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"categoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"blocks":{"maxItems":500,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src"]},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"]},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","rows"]},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src"]}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt"]},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src"]},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"]},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","rows"]},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src"]}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt"]}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"]}}},"required":["type","cells"]}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"]},{"type":"null"}]},"tags":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":120}},"featured":{"type":"boolean"},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"webArticles.delete","tags":["webArticles"],"summary":"webArticles.delete","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-web-articles/{id}/status":{"patch":{"operationId":"webArticles.setStatus","tags":["webArticles"],"summary":"webArticles.setStatus","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"article":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageAlt":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"categorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"categoryBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageBanner":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageOg":{"anyOf":[{"type":"string"},{"type":"null"}]},"heroBadgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","preview","published","archived"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"columns"},"cells":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"heading"},"level":{"default":2,"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"text":{"type":"string","minLength":1,"maxLength":500},"anchorId":{"type":"string","maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","level","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"paragraph"},"text":{"type":"string","maxLength":20000},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"ratio":{"type":"string","enum":["auto","16:10","1:1"]},"caption":{"type":"string","maxLength":500},"width":{"type":"integer","minimum":20,"maximum":99},"align":{"type":"string","enum":["left","center","right"]}},"required":["type","src","alt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"cta"},"text":{"type":"string","maxLength":1000},"href":{"type":"string","minLength":1,"maxLength":1024},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["type","href","label"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"quote"},"text":{"type":"string","minLength":1,"maxLength":2000},"cite":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}},"ordered":{"default":false,"type":"boolean"}},"required":["type","items","ordered"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"callout"},"text":{"type":"string","maxLength":4000},"tone":{"default":"info","type":"string","enum":["info","warn","success","note","danger","purple","pink","yellow"]},"emoji":{"type":"string","maxLength":8}},"required":["type","text","tone"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"code"},"text":{"type":"string","maxLength":20000},"language":{"type":"string","maxLength":40}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"headerRow":{"default":true,"type":"boolean"},"headerColumn":{"type":"boolean"},"columnWidths":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"integer","minimum":40,"maximum":1200},{"type":"null"}]}},"rows":{"minItems":1,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","maxLength":2000}}},"caption":{"type":"string","maxLength":300}},"required":["type","headerRow","rows"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","minLength":1,"maxLength":1024},"caption":{"type":"string","maxLength":500}},"required":["type","url"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"src":{"type":"string","minLength":1,"maxLength":1024},"alt":{"default":"","type":"string","maxLength":500},"caption":{"type":"string","maxLength":500}},"required":["src","alt"],"additionalProperties":false}},"columns":{"default":2,"anyOf":[{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4}]},"caption":{"type":"string","maxLength":500}},"required":["type","images","columns"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timer"},"endsAt":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","maxLength":120},"endedText":{"type":"string","maxLength":120},"color":{"default":"orange","type":"string","enum":["gray","red","orange","yellow","green","blue","purple"]},"variant":{"default":"boxes","type":"string","enum":["boxes","soft","plain"]},"showLabels":{"default":true,"type":"boolean"}},"required":["type","endsAt","color","variant","showLabels"],"additionalProperties":false}]}},"valign":{"type":"string","enum":["top","center","bottom"]}},"required":["blocks"],"additionalProperties":false}}},"required":["type","cells"],"additionalProperties":false}]}},"event":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"startDate":{"type":"string","minLength":1},"endDate":{"type":"string","minLength":1},"locationName":{"type":"string","maxLength":300},"locationAddress":{"type":"string","maxLength":500},"performer":{"type":"string","maxLength":300},"organizer":{"type":"string","maxLength":300},"registerUrl":{"type":"string","maxLength":1024}},"required":["name","startDate","endDate","locationName","locationAddress"],"additionalProperties":false},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"subCategoryId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"authorId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","slug","title","excerpt","imageUrl","imageAlt","categoryId","categorySlug","categoryLabel","categoryBadgeClass","subCategorySlug","subCategoryLabel","authorName","tags","featured","publishedAt","metaDescription","imageBanner","imageOg","heroBadgeClass","status","blocks","event","author","updatedAt","subCategoryId","authorId","sortOrder","contentUpdatedAt","createdAt"],"additionalProperties":false}},"required":["article"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","preview","published","archived"]}},"required":["status"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-web-article-authors":{"get":{"operationId":"webArticles.authorList","tags":["webArticles"],"summary":"webArticles.authorList","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"authors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false}}},"required":["authors"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"webArticles.authorCreate","tags":["webArticles"],"summary":"webArticles.authorCreate","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"author":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false}},"required":["author"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"active":{"type":"boolean"}},"required":["name"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-web-article-authors/{id}":{"patch":{"operationId":"webArticles.authorUpdate","tags":["webArticles"],"summary":"webArticles.authorUpdate","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"author":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","role","avatarUrl","url","bio","active"],"additionalProperties":false}},"required":["author"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"bio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"webArticles.authorDelete","tags":["webArticles"],"summary":"webArticles.authorDelete","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/admin-web-article-categories":{"get":{"operationId":"webArticles.categoryList","tags":["webArticles"],"summary":"webArticles.categoryList","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"label":{"type":"string"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"badgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","label","parentId","badgeClass","description","sortOrder","active"],"additionalProperties":false}}},"required":["categories"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"webArticles.categoryCreate","tags":["webArticles"],"summary":"webArticles.categoryCreate","description":"Auth: requires role admin / super_admin.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"label":{"type":"string"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"badgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","label","parentId","badgeClass","description","sortOrder","active"],"additionalProperties":false}},"required":["category"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"label":{"type":"string","minLength":1,"maxLength":200},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"badgeClass":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}},"required":["slug","label"]}}}},"security":[{"bearerAuth":[]}]}},"/admin-web-article-categories/{id}":{"patch":{"operationId":"webArticles.categoryUpdate","tags":["webArticles"],"summary":"webArticles.categoryUpdate","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"label":{"type":"string"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"badgeClass":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"articleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","slug","label","parentId","badgeClass","description","sortOrder","active"],"additionalProperties":false}},"required":["category"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-z0-9][a-z0-9-]*$"},"label":{"type":"string","minLength":1,"maxLength":200},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"badgeClass":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"webArticles.categoryDelete","tags":["webArticles"],"summary":"webArticles.categoryDelete","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/guest/token":{"get":{"operationId":"auth.guestToken","tags":["auth"],"summary":"auth.guestToken","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"mode":{"type":"string","const":"guest"}},"required":["token","mode"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/partner":{"get":{"operationId":"partner.list","tags":["partner"],"summary":"partner.list","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"feature":{"type":"string"},"eventId":{"type":"string"}},"required":["img","name","feature","eventId"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]}},"/payment":{"post":{"operationId":"payment.create","tags":["payment"],"summary":"payment.create","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"clientSecret":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"expiresAt":{"type":"string"},"qrCodeUrl":{"type":"string"},"qrCodeData":{"type":"string"},"hostedInstructionsUrl":{"type":"string"},"redirectUrl":{"type":"string"},"paymentMethod":{"type":"string"},"accountName":{"type":"string"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["orderNo","clientSecret","status","amount","currency","expiresAt","qrCodeUrl","qrCodeData","hostedInstructionsUrl","accountName","payload"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `payment` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orderNo":{"type":"string"},"paymentChannel":{"type":"string","enum":["promptpay","credit_debit"]},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productType":{"type":"string","enum":["wallpaper","tarot_reading","astrology","prediction","premium","coupon","wallpaper_v4","starmove","lightray","oracle","faceboost","luckynumber","birthchart","signature","tarotwall","siamsiwall","numberwall","numberpick","chong","chong_ritual","worship","luckycolor","soulmate","matching","teamface","numbercheck","phonewall","rune","mutoday","tarot","syamsi","wallpaper_widget","pimfahtarot"]},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"priceContext":{"type":"string","enum":["predict.bank-phone-deep"]}}}}}},"security":[{"bearerAuth":[]}]}},"/payment/orders":{"get":{"operationId":"payment.orders","tags":["payment"],"summary":"payment.orders","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"orderNo":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"paymentMethod":{"type":"string"},"productId":{"type":"string"},"productType":{"type":"string"},"expiresAt":{"type":"string"},"qrCodeUrl":{"type":"string"},"qrCodeData":{"type":"string"},"hostedInstructionsUrl":{"type":"string"},"redirectUrl":{"type":"string"},"completedAt":{"type":"string"},"createdAt":{"type":"string"},"accountName":{"type":"string"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["orderNo","status","amount","currency","paymentMethod","productId","productType","expiresAt","qrCodeUrl","qrCodeData","hostedInstructionsUrl","completedAt","createdAt","accountName","payload"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","completed","restored","cancelled","failed","refunded"]}},{"name":"productType","in":"query","required":false,"schema":{"type":"string","enum":["wallpaper","tarot_reading","astrology","prediction","premium","coupon","wallpaper_v4","starmove","lightray","oracle","faceboost","luckynumber","birthchart","signature","tarotwall","siamsiwall","numberwall","numberpick","chong","chong_ritual","worship","luckycolor","soulmate","matching","teamface","numbercheck","phonewall","rune","mutoday","tarot","syamsi","wallpaper_widget","pimfahtarot"]}},{"name":"eventId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/payment/orders/{orderNo}":{"get":{"operationId":"payment.orderByNo","tags":["payment"],"summary":"payment.orderByNo","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"clientSecret":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"expiresAt":{"type":"string"},"qrCodeUrl":{"type":"string"},"qrCodeData":{"type":"string"},"hostedInstructionsUrl":{"type":"string"},"redirectUrl":{"type":"string"},"paymentMethod":{"type":"string"},"accountName":{"type":"string"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["orderNo","clientSecret","status","amount","currency","expiresAt","qrCodeUrl","qrCodeData","hostedInstructionsUrl","accountName","payload"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/payment/orders/{orderNo}/refresh":{"post":{"operationId":"payment.refresh","tags":["payment"],"summary":"payment.refresh","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"clientSecret":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"expiresAt":{"type":"string"},"qrCodeUrl":{"type":"string"},"qrCodeData":{"type":"string"},"hostedInstructionsUrl":{"type":"string"},"redirectUrl":{"type":"string"},"paymentMethod":{"type":"string"},"accountName":{"type":"string"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["orderNo","clientSecret","status","amount","currency","expiresAt","qrCodeUrl","qrCodeData","hostedInstructionsUrl","accountName","payload"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/payment/cancel/{orderNo}":{"patch":{"operationId":"payment.cancel","tags":["payment"],"summary":"payment.cancel","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"completedAt":{"type":"string"},"fulfillmentStatus":{"type":"string"}},"required":["orderNo","status","amount","currency","completedAt","fulfillmentStatus"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}}}}}},"security":[{"bearerAuth":[]}]}},"/payment/refund/{orderNo}":{"patch":{"operationId":"payment.refund","tags":["payment"],"summary":"payment.refund","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"completedAt":{"type":"string"},"fulfillmentStatus":{"type":"string"}},"required":["orderNo","status","amount","currency","completedAt","fulfillmentStatus"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}}}}}},"security":[{"bearerAuth":[]}]}},"/payment/simulate":{"post":{"operationId":"payment.simulate","tags":["payment"],"summary":"payment.simulate","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"completedAt":{"type":"string"},"fulfillmentStatus":{"type":"string"}},"required":["orderNo","status","amount","currency","completedAt","fulfillmentStatus"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orderNo":{"type":"string","minLength":1}},"required":["orderNo"]}}}},"security":[{"bearerAuth":[]}]}},"/payment/status/{orderNo}":{"get":{"operationId":"payment.status","tags":["payment"],"summary":"payment.status","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"completedAt":{"type":"string"},"fulfillmentStatus":{"type":"string"}},"required":["orderNo","status","amount","currency","completedAt","fulfillmentStatus"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/payment/invoice/{paymentOrderId}":{"post":{"operationId":"payment.createInvoice","tags":["payment"],"summary":"payment.createInvoice","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"invoiceNumber":{"type":"string"},"status":{"type":"string"},"paymentOrderId":{"type":"string"},"orderNo":{"type":"string"},"totalAmount":{"type":"number"},"currency":{"type":"string"},"paymentChannel":{"type":"string"},"note":{"type":"string"},"issuedAt":{"type":"string"},"voidedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","invoiceNumber","status","paymentOrderId","orderNo","totalAmount","currency","paymentChannel","note","issuedAt","voidedAt","createdAt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"paymentOrderId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/payment/invoice/{invoiceId}":{"get":{"operationId":"payment.invoice","tags":["payment"],"summary":"payment.invoice","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"invoiceNumber":{"type":"string"},"status":{"type":"string"},"paymentOrderId":{"type":"string"},"orderNo":{"type":"string"},"totalAmount":{"type":"number"},"currency":{"type":"string"},"paymentChannel":{"type":"string"},"note":{"type":"string"},"issuedAt":{"type":"string"},"voidedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","invoiceNumber","status","paymentOrderId","orderNo","totalAmount","currency","paymentChannel","note","issuedAt","voidedAt","createdAt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/payment/invoice/order/{paymentOrderId}":{"get":{"operationId":"payment.invoiceByOrder","tags":["payment"],"summary":"payment.invoiceByOrder","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"invoiceNumber":{"type":"string"},"status":{"type":"string"},"paymentOrderId":{"type":"string"},"orderNo":{"type":"string"},"totalAmount":{"type":"number"},"currency":{"type":"string"},"paymentChannel":{"type":"string"},"note":{"type":"string"},"issuedAt":{"type":"string"},"voidedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","invoiceNumber","status","paymentOrderId","orderNo","totalAmount","currency","paymentChannel","note","issuedAt","voidedAt","createdAt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"paymentOrderId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/payment/fulfillment/{orderNo}/retry":{"post":{"operationId":"payment.retryFulfillment","tags":["payment"],"summary":"payment.retryFulfillment","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"fulfillmentStatus":{"type":"string"},"fulfillAttempts":{"type":"number"},"fulfilledAt":{"type":"string"},"fulfillmentError":{"type":"string"}},"required":["orderNo","fulfillmentStatus","fulfillAttempts","fulfilledAt","fulfillmentError"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/payment/backoffice/orders/{orderNo}/sync-stripe":{"post":{"operationId":"payment.syncStripe","tags":["payment"],"summary":"payment.syncStripe","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderNo":{"type":"string"},"providerTransactionId":{"type":"string"},"previousStatus":{"type":"string"},"currentStatus":{"type":"string"},"statusChanged":{"type":"boolean"},"completedAt":{"type":"string"},"failureReason":{"type":"string"},"fee":{"type":"number"},"feeDetails":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"stripeStatus":{"type":"string"}},"required":["orderNo","providerTransactionId","previousStatus","currentStatus","statusChanged","stripeStatus"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"orderNo","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"bearerAuth":[]}]}},"/post":{"post":{"operationId":"post.create","tags":["post"],"summary":"post.create","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeImg":{"type":"string"},"typePost":{"type":"string"},"postDetail":{"type":"string"},"countLike":{"type":"string"},"countComment":{"type":"string"},"liked":{"type":"boolean"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"clubId":{"type":"string"},"bgImgId":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"},"active":{"type":"boolean"}},"required":["id","postId","img","thumbnail","active"],"additionalProperties":false}}},"required":["id","userId","typeImg","typePost","postDetail","countLike","countComment","liked","hashTag","interest","lat","lng","address","clubId","bgImgId","images"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["bgImg","image","video"]},"bgImg":{"type":"string"},"message":{"type":"string","maxLength":60000},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"clubId":{"type":"string"},"typePost":{"type":"string","enum":["INDIVIDUAL:POST","SHARED:TAROT"]}}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"post.update","tags":["post"],"summary":"post.update","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeImg":{"type":"string"},"typePost":{"type":"string"},"postDetail":{"type":"string"},"countLike":{"type":"string"},"countComment":{"type":"string"},"liked":{"type":"boolean"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"clubId":{"type":"string"},"bgImgId":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"},"active":{"type":"boolean"}},"required":["id","postId","img","thumbnail","active"],"additionalProperties":false}}},"required":["id","userId","typeImg","typePost","postDetail","countLike","countComment","liked","hashTag","interest","lat","lng","address","clubId","bgImgId","images"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["bgImg","image","video"]},"bgImg":{"type":"string"},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"message":{"type":"string","maxLength":60000},"typePost":{"type":"string","enum":["INDIVIDUAL:POST","SHARED:TAROT"]}},"required":["postId"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"post.delete","tags":["post"],"summary":"post.delete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["postId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/comment":{"post":{"operationId":"post.createComment","tags":["post"],"summary":"post.createComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyId":{"type":"string"},"userId":{"type":"string"},"comment":{"type":"string"},"countLike":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"typeComment":{"type":"string"},"img":{"type":"string"},"createdAt":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"imgProfile":{"type":"string"},"displayName":{"type":"string"}},"required":["id","imgProfile","displayName"],"additionalProperties":false},"liked":{"type":"boolean"},"countReply":{"type":"string"},"isOwner":{"type":"boolean"}},"required":["id","replyId","userId","comment","countLike","hashTag","typeComment","img","createdAt","user","liked","countReply","isOwner"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["comment","reply"]},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"type":"string","maxLength":60000}},"required":["type","postId","message"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"post.updateComment","tags":["post"],"summary":"post.updateComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyId":{"type":"string"},"userId":{"type":"string"},"comment":{"type":"string"},"countLike":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"typeComment":{"type":"string"},"img":{"type":"string"},"createdAt":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"imgProfile":{"type":"string"},"displayName":{"type":"string"}},"required":["id","imgProfile","displayName"],"additionalProperties":false},"liked":{"type":"boolean"},"countReply":{"type":"string"},"isOwner":{"type":"boolean"}},"required":["id","replyId","userId","comment","countLike","hashTag","typeComment","img","createdAt","user","liked","countReply","isOwner"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"commentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"type":"string","minLength":1,"maxLength":60000},"image":{"type":"string"}},"required":["commentId","message"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"post.deleteComment","tags":["post"],"summary":"post.deleteComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["commentId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/like":{"post":{"operationId":"post.like","tags":["post"],"summary":"post.like","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["postId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/unlike":{"delete":{"operationId":"post.unlike","tags":["post"],"summary":"post.unlike","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["postId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/comment-like":{"post":{"operationId":"post.likeComment","tags":["post"],"summary":"post.likeComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["commentId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/comment-unlike":{"delete":{"operationId":"post.unlikeComment","tags":["post"],"summary":"post.unlikeComment","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["commentId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/follow-user":{"post":{"operationId":"post.followUser","tags":["post"],"summary":"post.followUser","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["userId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/unfollow-user":{"delete":{"operationId":"post.unfollowUser","tags":["post"],"summary":"post.unfollowUser","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["userId"]}}}},"security":[{"bearerAuth":[]}]}},"/post/notification-list":{"get":{"operationId":"post.notificationList","tags":["post"],"summary":"post.notificationList","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"timeLineList":{"type":"array","items":{"type":"object","properties":{"timeline":{"type":"string"},"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"senderId":{"type":"string"},"receiverId":{"type":"string"},"message":{"type":"string"},"read":{"type":"boolean"},"type":{"type":"string"},"createdAt":{"type":"string"},"iconType":{"type":"string"},"sender":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},"receiver":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},"postId":{"type":"string"},"refId":{"type":"string"}},"required":["id","senderId","receiverId","message","read","type","createdAt","iconType","sender","receiver","postId","refId"],"additionalProperties":false}}},"required":["timeline","notifications"],"additionalProperties":false}},"meta":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCursor":{"type":"string"},"hasNextPage":{"type":"boolean"}},"required":["limit","nextCursor","hasNextPage"],"additionalProperties":false}},"required":["timeLineList","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/post/feed/{postId}":{"get":{"operationId":"post.feedById","tags":["post"],"summary":"post.feedById","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeImg":{"type":"boolean"},"postDetail":{"type":"string"},"countLike":{"type":"string"},"countComment":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"bgImgId":{"type":"string"},"createdAt":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["id","postId","img","thumbnail"],"additionalProperties":false}},"backgroundImage":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"},"textColor":{"type":"string"}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},"liked":{"type":"boolean"},"followed":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","typeImg","postDetail","countLike","countComment","hashTag","interest","lat","lng","address","bgImgId","createdAt","images","backgroundImage","user","liked","followed","isOwner"],"additionalProperties":false},{"type":"null"}]}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/post/feed/{postId}/comments":{"get":{"operationId":"post.commentsByPost","tags":["post"],"summary":"post.commentsByPost","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyId":{"type":"string"},"userId":{"type":"string"},"comment":{"type":"string"},"countLike":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"typeComment":{"type":"string"},"img":{"type":"string"},"createdAt":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"imgProfile":{"type":"string"},"displayName":{"type":"string"}},"required":["id","imgProfile","displayName"],"additionalProperties":false},"liked":{"type":"boolean"},"countReply":{"type":"string"},"isOwner":{"type":"boolean"}},"required":["id","replyId","userId","comment","countLike","hashTag","typeComment","img","createdAt","user","liked","countReply","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCursor":{"type":"string"},"hasNextPage":{"type":"boolean"},"totalCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","nextCursor","hasNextPage","totalCount"],"additionalProperties":false}},"required":["comments","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/post/comments/replies":{"get":{"operationId":"post.replies","tags":["post"],"summary":"post.replies","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyId":{"type":"string"},"userId":{"type":"string"},"comment":{"type":"string"},"countLike":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"typeComment":{"type":"string"},"img":{"type":"string"},"createdAt":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"imgProfile":{"type":"string"},"displayName":{"type":"string"}},"required":["id","imgProfile","displayName"],"additionalProperties":false},"liked":{"type":"boolean"},"countReply":{"type":"string"},"isOwner":{"type":"boolean"}},"required":["id","replyId","userId","comment","countLike","hashTag","typeComment","img","createdAt","user","liked","countReply","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCursor":{"type":"string"},"hasNextPage":{"type":"boolean"},"totalCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","nextCursor","hasNextPage","totalCount"],"additionalProperties":false}},"required":["comments","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"commentIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]}}],"security":[{"bearerAuth":[]}]}},"/post/feed/user":{"get":{"operationId":"post.feedByUser","tags":["post"],"summary":"post.feedByUser","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeImg":{"type":"boolean"},"postDetail":{"type":"string"},"countLike":{"type":"string"},"countComment":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"bgImgId":{"type":"string"},"createdAt":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["id","postId","img","thumbnail"],"additionalProperties":false}},"backgroundImage":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"},"textColor":{"type":"string"}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},"liked":{"type":"boolean"},"followed":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","typeImg","postDetail","countLike","countComment","hashTag","interest","lat","lng","address","bgImgId","createdAt","images","backgroundImage","user","liked","followed","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"nextCursor":{"type":"string"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","hasNextPage"],"additionalProperties":false}},"required":["posts","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"userId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/post/search":{"get":{"operationId":"post.search","tags":["post"],"summary":"post.search","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"search":{"anyOf":[{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postDetail":{"type":"string"},"createdAt":{"type":"string"},"bgImgId":{"type":"string"},"typeImg":{"type":"boolean"},"countLike":{"type":"string"},"countComment":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"lat":{"type":"string"},"lng":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","postId","img","thumbnail"],"additionalProperties":false}},"backgroundImage":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}]},"textColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false},{"type":"object","properties":{"textColor":{"type":"string","const":""},"img":{"type":"string","const":""}},"required":["textColor","img"],"additionalProperties":false}]},"user":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},{"type":"null"}]},"followed":{"type":"boolean"},"liked":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","postDetail","createdAt","bgImgId","typeImg","countLike","countComment","hashTag","interest","address","lat","lng","images","backgroundImage","user","followed","liked","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"nextCursor":{"type":"string"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"}},"required":["nextCursor","limit","hasNextPage"],"additionalProperties":false}},"required":["posts","meta"],"additionalProperties":false},{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"username":{"type":"string"},"displayName":{"type":"string"},"followed":{"type":"boolean"},"displayImg":{"type":"string"}},"required":["id","followed"],"additionalProperties":false}},"meta":{"type":"object","properties":{"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"}},"required":["currentPage","pageSize","hasNextPage"],"additionalProperties":false}},"required":["users","meta"],"additionalProperties":false}]}},"required":["search"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"default":"post","type":"string","enum":["post","user"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"clubId","in":"query","required":false,"schema":{"type":"string"}},{"name":"interest","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/post/background-image":{"get":{"operationId":"post.backgroundImages","tags":["post"],"summary":"post.backgroundImages","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"},"textColor":{"type":"string"}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/post/public/feed":{"get":{"operationId":"post.publicFeed","tags":["post"],"summary":"post.publicFeed","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeImg":{"type":"boolean"},"postDetail":{"type":"string"},"countLike":{"type":"string"},"countComment":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"bgImgId":{"type":"string"},"createdAt":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["id","postId","img","thumbnail"],"additionalProperties":false}},"backgroundImage":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"},"textColor":{"type":"string"}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},"liked":{"type":"boolean"},"followed":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","typeImg","postDetail","countLike","countComment","hashTag","interest","lat","lng","address","bgImgId","createdAt","images","backgroundImage","user","liked","followed","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"nextCursor":{"type":"string"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","hasNextPage"],"additionalProperties":false}},"required":["posts","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/post/public/feed/{postId}":{"get":{"operationId":"post.publicFeedById","tags":["post"],"summary":"post.publicFeedById","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeImg":{"type":"boolean"},"postDetail":{"type":"string"},"countLike":{"type":"string"},"countComment":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"lat":{"type":"string"},"lng":{"type":"string"},"address":{"type":"string"},"bgImgId":{"type":"string"},"createdAt":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["id","postId","img","thumbnail"],"additionalProperties":false}},"backgroundImage":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"},"textColor":{"type":"string"}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},"liked":{"type":"boolean"},"followed":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","typeImg","postDetail","countLike","countComment","hashTag","interest","lat","lng","address","bgImgId","createdAt","images","backgroundImage","user","liked","followed","isOwner"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/post/public/feed/{postId}/comments":{"get":{"operationId":"post.publicCommentsByPost","tags":["post"],"summary":"post.publicCommentsByPost","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"comment":{"type":"string"},"replyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"countLike":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"typeComment":{"type":"string","const":"comment"},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"user":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},{"type":"null"}]},"liked":{"type":"boolean"},"countReply":{"type":"string"},"isOwner":{"type":"boolean"}},"required":["id","userId","comment","replyId","countLike","hashTag","typeComment","img","createdAt","user","liked","countReply","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCursor":{"type":"string"},"hasNextPage":{"type":"boolean"},"totalCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","nextCursor","hasNextPage","totalCount"],"additionalProperties":false}},"required":["comments","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/post/public/comments/replies":{"get":{"operationId":"post.publicReplies","tags":["post"],"summary":"post.publicReplies","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"comment":{"type":"string"},"replyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"countLike":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"typeComment":{"type":"string","const":"reply"},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"user":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},{"type":"null"}]},"liked":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","comment","replyId","countLike","hashTag","typeComment","img","createdAt","user","liked","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCursor":{"type":"string"},"hasNextPage":{"type":"boolean"},"totalCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","nextCursor","hasNextPage","totalCount"],"additionalProperties":false}},"required":["comments","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"commentIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]}}],"security":[{"bearerAuth":[]}]}},"/post/public/search":{"get":{"operationId":"post.publicSearch","tags":["post"],"summary":"post.publicSearch","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"anyOf":[{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postDetail":{"type":"string"},"createdAt":{"type":"string"},"bgImgId":{"type":"string"},"typeImg":{"type":"boolean"},"countLike":{"type":"string"},"countComment":{"type":"string"},"hashTag":{"type":"array","items":{"type":"string"}},"interest":{"type":"array","items":{"type":"string"}},"address":{"type":"string"},"lat":{"type":"string"},"lng":{"type":"string"},"images":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","postId","img","thumbnail"],"additionalProperties":false}},"backgroundImage":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}]},"textColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","img","thumbnail","textColor"],"additionalProperties":false},{"type":"object","properties":{"textColor":{"type":"string","const":""},"img":{"type":"string","const":""}},"required":["textColor","img"],"additionalProperties":false}]},"user":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"imgProfile":{"type":"string"}},"required":["id","displayName","imgProfile"],"additionalProperties":false},{"type":"null"}]},"followed":{"type":"boolean"},"liked":{"type":"boolean"},"isOwner":{"type":"boolean"}},"required":["id","userId","postDetail","createdAt","bgImgId","typeImg","countLike","countComment","hashTag","interest","address","lat","lng","images","backgroundImage","user","followed","liked","isOwner"],"additionalProperties":false}},"meta":{"type":"object","properties":{"nextCursor":{"type":"string"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"}},"required":["nextCursor","limit","hasNextPage"],"additionalProperties":false}},"required":["posts","meta"],"additionalProperties":false},{"type":"object","properties":{"search":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"username":{"type":"string"},"displayName":{"type":"string"},"followed":{"type":"boolean"},"displayImg":{"type":"string"}},"required":["id","followed"],"additionalProperties":false}},"meta":{"type":"object","properties":{"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"}},"required":["currentPage","pageSize","hasNextPage"],"additionalProperties":false}},"required":["users","meta"],"additionalProperties":false}},"required":["search"],"additionalProperties":false}]}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"default":"post","type":"string","enum":["post","user"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"clubId","in":"query","required":false,"schema":{"type":"string"}},{"name":"interest","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/user/badge":{"get":{"operationId":"user.badge","tags":["user"],"summary":"user.badge","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"topic":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"select":{"type":"boolean"},"title":{"type":"string"},"subTitle":{"type":"string"}},"required":["id","topic","name","img","select","title","subTitle"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"userId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":""}]}}],"security":[{"bearerAuth":[]}]}},"/user/edit-badge":{"patch":{"operationId":"user.editBadge","tags":["user"],"summary":"user.editBadge","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"showBadge":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"name":{"type":"string"},"select":{"type":"boolean"}},"required":["topic","name","select"],"additionalProperties":false}}},"required":["userId","showBadge"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"showBadge":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"name":{"type":"string"},"select":{"type":"boolean"}},"required":["topic","name","select"]}}}}}}},"security":[{"bearerAuth":[]}]}},"/user/follower-list":{"get":{"operationId":"user.followerList","tags":["user"],"summary":"user.followerList","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"followers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"userName":{"type":"string"},"displayImg":{"type":"string"},"followed":{"type":"boolean"}},"required":["userId","displayName","userName","displayImg","followed"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"number","const":0},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"},"hasPreviousPage":{"type":"boolean"},"nextPage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"previousPage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["totalPages","currentPage","pageSize","hasNextPage","hasPreviousPage","nextPage","previousPage"],"additionalProperties":false}},"required":["followers","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"userId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":""}]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"searching","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearerAuth":[]}]}},"/user/following-list":{"get":{"operationId":"user.followingList","tags":["user"],"summary":"user.followingList","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"following":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"userName":{"type":"string"},"displayImg":{"type":"string"},"followed":{"type":"boolean"}},"required":["userId","displayName","userName","displayImg","followed"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"number","const":0},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasNextPage":{"type":"boolean"},"hasPreviousPage":{"type":"boolean"},"nextPage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"previousPage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["totalPages","currentPage","pageSize","hasNextPage","hasPreviousPage","nextPage","previousPage"],"additionalProperties":false}},"required":["following","meta"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"userId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":""}]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"searching","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearerAuth":[]}]}},"/user/profile-header":{"get":{"operationId":"user.profileHeader","tags":["user"],"summary":"user.profileHeader","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"displayName":{"type":"string"},"userName":{"type":"string"},"imgProfile":{"type":"string"},"note":{"type":"string"},"followersCount":{"type":"string"},"followingCount":{"type":"string"},"postCount":{"type":"string"},"badge":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"topic":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"select":{"type":"boolean"},"title":{"type":"string"},"subTitle":{"type":"string"}},"required":["id","topic","name","img","select","title","subTitle"],"additionalProperties":false}},"flagWritter":{"type":"boolean"},"isFollowed":{"type":"boolean"}},"required":["displayName","userName","imgProfile","note","followersCount","followingCount","postCount","badge","flagWritter"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"userId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":""}]}}],"security":[{},{"bearerAuth":[]}]}},"/user/profile-image-list":{"get":{"operationId":"user.profileImageList","tags":["user"],"summary":"user.profileImageList","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"}},"required":["id","img"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/user/validate-username":{"post":{"operationId":"user.validateUsername","tags":["user"],"summary":"user.validateUsername","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"isAvailable":{"type":"boolean"}},"required":["isAvailable"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userName":{"type":"string"}},"required":["userName"]}}}},"security":[{},{"bearerAuth":[]}]}},"/user/analyze-content":{"post":{"operationId":"user.analyzeContent","tags":["user"],"summary":"user.analyzeContent","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string","const":""}},"required":["status","success","message"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string"},"userName":{"type":"string"}}}}}},"security":[{},{"bearerAuth":[]}]}},"/user/detail":{"post":{"operationId":"user.detail","tags":["user"],"summary":"user.detail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"topic":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"}},"required":["topic","img","detail"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["zodiac","ascendantZodiac","element","chineseZodiac","monk","god","dailyPredict","ascendantWestern"]}},"required":["type"]}}}},"security":[{"bearerAuth":[]}]}},"/user/verify-social-login":{"post":{"operationId":"user.verifySocialLogin","tags":["user"],"summary":"user.verifySocialLogin","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"email":{"type":"string"},"lineProvider":{"type":"string"},"googleProvider":{"type":"string"},"appleProvider":{"type":"string"},"isLineConnected":{"type":"boolean"},"isGoogleConnected":{"type":"boolean"},"isAppleConnected":{"type":"boolean"}},"required":["email","lineProvider","googleProvider","appleProvider","isLineConnected","isGoogleConnected","isAppleConnected"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"social":{"type":"string"},"provider":{"type":"string"},"idToken":{"type":"string"},"accessToken":{"type":"string"},"nonce":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorizationCode":{"type":"string"},"fullName":{"type":"string"}},"required":["social"]}}}}}},"/user/register":{"post":{"operationId":"user.register","tags":["user"],"summary":"user.register","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"refreshToken":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"zodiac":{"anyOf":[{"type":"string"},{"type":"null"}]},"ascendant":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"birthDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"birthDateText":{"type":"string"},"birthDateFullText":{"type":"string"},"isAppleConnected":{"type":"boolean"},"isGoogleConnected":{"type":"boolean"},"isLineConnected":{"type":"boolean"},"flagWritter":{"type":"boolean"},"interest":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"select":{"type":"boolean"},"img":{"type":"string"}},"required":["id","name","select","img"],"additionalProperties":false}}},"required":["id","name","list"],"additionalProperties":false}}},"required":["birthDateText","birthDateFullText","isAppleConnected","isGoogleConnected","isLineConnected","flagWritter","interest"],"additionalProperties":{}}},"required":["token","refreshToken","user"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `auth` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"social":{"type":"string"},"provider":{"type":"string"},"idToken":{"type":"string"},"accessToken":{"type":"string"},"nonce":{"type":"string"},"email":{"type":"string"},"nickname":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string"},"province":{"type":"string"},"termId":{"type":"string"},"pdpaId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"blood":{"type":"string"},"sex":{"type":"string"},"interests":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}]},"displayName":{"type":"string"},"userName":{"type":"string"},"note":{"type":"string"}},"required":["social","birthDate","displayName"]}}}}}},"/user/editProfile":{"patch":{"operationId":"user.editProfile","tags":["user"],"summary":"user.editProfile","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"active":{"type":"boolean"},"nickname":{"type":"string"},"email":{"type":"string"},"userName":{"type":"string"},"note":{"type":"string"},"birthDate":{"type":"string"},"birthPlace":{"type":"string"},"birthPlaceFullText":{"type":"string"},"birthTime":{"type":"string"},"birthDateText":{"type":"string"},"birthDateFullText":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"chineseZodiac":{"type":"string"},"displayName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"sex":{"type":"string"},"blood":{"type":"string"},"isAppleConnected":{"type":"boolean"},"isGoogleConnected":{"type":"boolean"},"isLineConnected":{"type":"boolean"},"imgProfile":{"type":"string"},"flagNotBirthPlace":{"type":"boolean"},"flagNotBirthTime":{"type":"boolean"},"flagWritter":{"type":"boolean"},"interest":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"select":{"type":"boolean"},"img":{"type":"string"}},"required":["id","name","select","img"],"additionalProperties":false}}},"required":["id","name","list"],"additionalProperties":false}},"pdpa":{"type":"boolean"},"term":{"type":"boolean"},"canChangeUsername":{"type":"boolean"},"canChangeDisplayName":{"type":"boolean"},"nextUserName":{"type":"string"},"nextDisplayName":{"type":"string"},"isNeedUpdateConsent":{"type":"boolean"},"contentWarnings":{"type":"array","items":{"type":"string","enum":["displayName","note","userName"]}}},"required":["id","createdAt","updatedAt","active","nickname","email","userName","note","birthDate","birthPlace","birthPlaceFullText","birthTime","birthDateText","birthDateFullText","zodiac","ascendant","chineseZodiac","displayName","firstName","lastName","sex","blood","isAppleConnected","isGoogleConnected","isLineConnected","imgProfile","flagNotBirthPlace","flagNotBirthTime","flagWritter","interest","pdpa","term","canChangeUsername","canChangeDisplayName","nextUserName","nextDisplayName","isNeedUpdateConsent","contentWarnings"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `upload` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string"},"lastName":{"type":"string"},"nickname":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string"},"province":{"type":"string"},"sex":{"type":"string"},"blood":{"type":"string"},"termId":{"type":"string"},"pdpaId":{"type":"string"},"interest":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}]},"displayName":{"type":"string"},"userName":{"type":"string"},"note":{"type":"string"},"profileImgType":{"type":"string","enum":["upload","preset","none"]},"profileImgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"security":[{"bearerAuth":[]}]}},"/user/delete-account":{"delete":{"operationId":"user.deleteAccount","tags":["user"],"summary":"user.deleteAccount","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/interest":{"get":{"operationId":"interest.list","tags":["interest"],"summary":"interest.list","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false}}},"required":["id","name","list"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]}},"/interest/interest-topic-search":{"get":{"operationId":"interest.topicSearch","tags":["interest"],"summary":"interest.topicSearch","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearerAuth":[]}]}},"/report":{"get":{"operationId":"report.reasons","tags":["report"],"summary":"report.reasons","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]},"post":{"operationId":"report.submit","tags":["report"],"summary":"report.submit","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"refId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"event":{"type":"string","enum":["post","profile","reply","comment"]}},"required":["reportId","refId","event"]}}}},"security":[{"bearerAuth":[]}]}},"/event-banner/all-astrology-events":{"get":{"operationId":"astroEvents.list","tags":["astroEvents"],"summary":"astroEvents.list","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"topicEn":{"type":"string"},"topicTh":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"name":{"type":"string"}},"required":["id","img","name"],"additionalProperties":false}}},"required":["topicEn","topicTh","events"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/lucky-color/weekly":{"get":{"operationId":"luckyColor.weekly","tags":["luckyColor"],"summary":"luckyColor.weekly","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"name":{"type":"string"}},"required":["hex","name"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","title","colorList"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]}},"/lucky-color/public/weekly":{"get":{"operationId":"luckyColor.publicWeekly","tags":["luckyColor"],"summary":"luckyColor.publicWeekly","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"name":{"type":"string"}},"required":["hex","name"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","title","colorList"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/lucky-color/daily":{"post":{"operationId":"luckyColor.daily","tags":["luckyColor"],"summary":"luckyColor.daily","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"name":{"type":"string"}},"required":["hex","name"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","colorList"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["date"]}}}}}},"/widget":{"get":{"operationId":"widget.get","tags":["widget"],"summary":"widget.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colors":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"name":{"type":"string"}},"required":["hex","name"],"additionalProperties":false}}},"required":["topic","colors"],"additionalProperties":false}}},"required":["date","title","colorList"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","enum":["SMALL","MEDIUM","LARGE"]}}],"security":[{"bearerAuth":[]}]}},"/term-and-pdpa":{"get":{"operationId":"termAndPdpa.latest","tags":["termAndPdpa"],"summary":"termAndPdpa.latest","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"termAndCondition":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"detail":{"type":"string"}},"required":["id","detail"],"additionalProperties":false},"pdpa":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"detail":{"type":"string"}},"required":["id","detail"],"additionalProperties":false}},"required":["termAndCondition","pdpa"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]},"post":{"operationId":"termAndPdpa.accept","tags":["termAndPdpa"],"summary":"termAndPdpa.accept","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"success":{"type":"boolean","const":true}},"required":["success"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"acceptList":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["term&con","pdpa","marketing"]},"title":{"type":"string"},"actionTitle":{"type":"string"},"required":{"type":"boolean"}},"required":["id","type","title","actionTitle","required"]}}},"required":["acceptList"]}}}},"security":[{"bearerAuth":[]}]}},"/term-and-pdpa/user-activity":{"get":{"operationId":"termAndPdpa.userActivity","tags":["termAndPdpa"],"summary":"termAndPdpa.userActivity","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"type":{"type":"string","enum":["term&con","pdpa","marketing"]},"actionTitle":{"type":"string"},"required":{"type":"boolean"}},"required":["id","title","type","actionTitle","required"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]}},"/term-and-pdpa/consent":{"get":{"operationId":"termAndPdpa.consent","tags":["termAndPdpa"],"summary":"termAndPdpa.consent","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string"},"description":{"type":"string"}},"required":["id","topic","description"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{},{"bearerAuth":[]}]}},"/calendar":{"post":{"operationId":"calendarV3.month","tags":["calendarV3"],"summary":"calendarV3.month","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"bgColor":{"type":"string"},"energyBand":{"type":"integer","minimum":1,"maximum":5},"faceImg":{"type":"string"},"specialDays":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"},"isCanWrap":{"type":"boolean"},"order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periodIdx":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["img","name","detail","position","icon","isCanWrap","order"],"additionalProperties":false}},"reukPeriods":{"type":"array","items":{"type":"object","properties":{"rerk":{"type":"integer","minimum":1,"maximum":27},"rerkName":{"type":"string"},"family":{"type":"integer","minimum":1,"maximum":9},"familyName":{"type":"string"},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]},"clipped":{"type":"string","enum":["personal","day","both"]}},"required":["rerk","rerkName","family","familyName","from","to"],"additionalProperties":false}}},"required":["date","bgColor","specialDays"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","minimum":1957,"maximum":2052},"month":{"type":"integer","minimum":1,"maximum":12},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["year","month"]}}}},"security":[{},{"bearerAuth":[]}]}},"/calendar/public":{"get":{"operationId":"calendarV3.public","tags":["calendarV3"],"summary":"calendarV3.public","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"bgColor":{"type":"string"},"energyBand":{"type":"integer","minimum":1,"maximum":5},"faceImg":{"type":"string"},"specialDays":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"},"isCanWrap":{"type":"boolean"},"order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periodIdx":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["img","name","detail","position","icon","isCanWrap","order"],"additionalProperties":false}},"reukPeriods":{"type":"array","items":{"type":"object","properties":{"rerk":{"type":"integer","minimum":1,"maximum":27},"rerkName":{"type":"string"},"family":{"type":"integer","minimum":1,"maximum":9},"familyName":{"type":"string"},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]},"clipped":{"type":"string","enum":["personal","day","both"]}},"required":["rerk","rerkName","family","familyName","from","to"],"additionalProperties":false}}},"required":["date","bgColor","specialDays"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":1957,"maximum":2052}},{"name":"month","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":12}}],"security":[{"bearerAuth":[]}]}},"/calendar/topics":{"get":{"operationId":"calendarV3.topics","tags":["calendarV3"],"summary":"calendarV3.topics","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/lucky-number":{"get":{"operationId":"luckyNumberV3.get","tags":["luckyNumberV3"],"summary":"luckyNumberV3.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"luckyNumber":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"meaning":{"type":"string"}},"required":["number","meaning"],"additionalProperties":false}}},"required":["luckyNumber","details"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/lucky-number/public/random":{"get":{"operationId":"luckyNumberV3.publicRandom","tags":["luckyNumberV3"],"summary":"luckyNumberV3.publicRandom","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"luckyNumber":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"meaning":{"type":"string"}},"required":["number","meaning"],"additionalProperties":false}}},"required":["luckyNumber","details"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/astrology/mu-question":{"post":{"operationId":"muQuestionV3.ask","tags":["muQuestionV3"],"summary":"muQuestionV3.ask","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":1000},"sourceRefType":{"type":"string","enum":["tarot_draw","matching","dream"]},"sourceRefId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"image":{"type":"object","properties":{"mimeType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"data":{"type":"string","minLength":1,"maxLength":5592408,"pattern":"^[A-Za-z0-9+/]+={0,2}$"}},"required":["mimeType","data"]}},"required":["question"]}}}},"security":[{"bearerAuth":[]}]}},"/star-movement/public/header":{"get":{"operationId":"starMovementV3.publicHeader","tags":["starMovementV3"],"summary":"starMovementV3.publicHeader","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"latestStarMovement":{"type":"object","properties":{"img":{"type":"string"},"bgImg":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"}},"required":["img","name"],"additionalProperties":false}}},"required":["img","bgImg","topic","period","detail","ability"],"additionalProperties":false},"selectionTab":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"bgImg":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"}},"required":["img","name"],"additionalProperties":false}}},"required":["img","bgImg","topic","period","detail","ability"],"additionalProperties":false}}},"required":["latestStarMovement","selectionTab"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/star-movement/header":{"get":{"operationId":"starMovementV3.header","tags":["starMovementV3"],"summary":"starMovementV3.header","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"latestStarMovement":{"type":"object","properties":{"img":{"type":"string"},"bgImg":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"}},"required":["img","name"],"additionalProperties":false}}},"required":["img","bgImg","topic","period","detail","ability"],"additionalProperties":false},"selectionTab":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"bgImg":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"}},"required":["img","name"],"additionalProperties":false}}},"required":["img","bgImg","topic","period","detail","ability"],"additionalProperties":false}}},"required":["latestStarMovement","selectionTab"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"tab","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["latest","all"]}}],"security":[{"bearerAuth":[]}]}},"/star-movement/detail":{"get":{"operationId":"starMovementV3.detail","tags":["starMovementV3"],"summary":"starMovementV3.detail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"eventId":{"type":"string"},"bgImg":{"type":"string"},"img":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"ability":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"}},"required":["img","name"],"additionalProperties":false}},"detail":{"type":"string"},"prompt":{"type":"string"}},"required":["eventId","bgImg","img","topic","period","ability","detail","prompt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/star-movement/detail-test":{"post":{"operationId":"starMovementV3.detailTest","tags":["starMovementV3"],"summary":"starMovementV3.detailTest","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"prompt":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"response":{"type":"string"}},"required":["prompt","response"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string"},"province":{"type":"string"},"currentDate":{"type":"string"},"currentTime":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/tarot/topics":{"get":{"operationId":"tarot.topics","tags":["tarot"],"summary":"tarot.topics","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"string"}},"quota":{"type":"boolean"}},"required":["topics","quota"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/tarot/public/get-detail":{"get":{"operationId":"tarot.publicCardDetail","tags":["tarot"],"summary":"tarot.publicCardDetail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"name":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"webDetail":{"type":"string"}},"required":["id","img","name","number","webDetail"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"cardNumber","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}}],"security":[{"bearerAuth":[]}]}},"/tarot/get-predictions":{"post":{"operationId":"tarot.getPredictions","tags":["tarot"],"summary":"tarot.getPredictions","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["img","name","number"],"additionalProperties":false}},"topic":{"type":"string"},"prediction":{"type":"string"},"logo":{"type":"string"},"qrcode":{"type":"string"}},"required":["cards","topic","prediction","logo","qrcode"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"topic":{"type":"string"},"eventId":{"type":"string"}},"required":["cards","topic"]}}}},"security":[{"bearerAuth":[]}]}},"/tarot/history":{"get":{"operationId":"tarot.drawHistory","tags":["tarot"],"summary":"tarot.drawHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"drawnDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unrated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"streak":{"type":"number"},"averageScore":{"type":"number"},"scores":{"type":"array","items":{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["score","count"],"additionalProperties":false}},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"cardList":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"card":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prediction":{"type":"string"},"comment":{"type":"string"}},"required":["id","number","name","img","detail","score","prediction","comment"],"additionalProperties":false}},"required":["date","card"],"additionalProperties":false}}},"required":["date","cardList"],"additionalProperties":false}}},"required":["drawnDays","totalDays","unrated","streak","averageScore","scores","data"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"eventId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"month","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":12}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":2000,"maximum":2100}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/landing-page":{"get":{"operationId":"tarot.sessionLandingPage","tags":["tarot"],"summary":"tarot.sessionLandingPage","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"eventId":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"componentView":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"activeSessions":{"type":"array","items":{"type":"object","properties":{"sessionId":{"type":"string"},"source":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionQuota":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"status":{"type":"string"}},"required":["sessionId","source","cardCount","questionQuota","createdAt","status"],"additionalProperties":false}},"packages":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"coupon":{"type":"object","properties":{"balance":{"type":"number"},"needPurchase":{"type":"boolean"},"product":{"type":"object","properties":{"productId":{"type":"string"},"price":{"type":"number"},"couponAmount":{"type":"number"}},"required":["productId","price","couponAmount"],"additionalProperties":false}},"required":["balance","needPurchase","product"],"additionalProperties":false}},"required":["packageId","cardCount","questionCount","coupon"],"additionalProperties":false}},"showFreeCouponModal":{"type":"boolean"},"couponPackages":{"type":"object","properties":{"free":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balance":{"type":"number"},"claimable":{"type":"boolean"}},"required":["packageId","cardCount","questionCount","balance","claimable"],"additionalProperties":false}},"paid":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string"},"price":{"type":"number"}},"required":["packageId","cardCount","questionCount","productId","price"],"additionalProperties":false}}},"required":["free","paid"],"additionalProperties":false}},"required":["eventId","name","detail","componentView","activeSessions","packages"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/free-coupons":{"get":{"operationId":"tarot.freeCoupons","tags":["tarot"],"summary":"tarot.freeCoupons","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"coupons":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"freeCycle":{"type":"string"},"claimable":{"type":"boolean"},"balance":{"type":"number"}},"required":["packageId","cardCount","questionCount","amount","freeCycle","claimable","balance"],"additionalProperties":false}}},"required":["coupons"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/free-coupons/claim":{"post":{"operationId":"tarot.claimFreeCoupons","tags":["tarot"],"summary":"tarot.claimFreeCoupons","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"claimed":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"amount":{"type":"number"}},"required":["packageId","amount"],"additionalProperties":false}}},"required":["claimed"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["eventId"]}}}},"security":[{"bearerAuth":[]}]}},"/tarot/sessions":{"post":{"operationId":"tarot.createSession","tags":["tarot"],"summary":"tarot.createSession","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"sessionId":{"type":"string"},"alreadyClaimed":{"type":"boolean"},"source":{"type":"string"},"status":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionQuota":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"situation":{"type":"string"}},"required":["sessionId","alreadyClaimed","source","status","cardCount","questionQuota","situation"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"packageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderNo":{"type":"string","minLength":1}},"required":["packageId"]}}}},"security":[{"bearerAuth":[]}]}},"/tarot/sessions/guide-questions":{"get":{"operationId":"tarot.guideQuestions","tags":["tarot"],"summary":"tarot.guideQuestions","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"icon":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","index"],"additionalProperties":false}},"subTopics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","index"],"additionalProperties":false}}},"required":["id","name","index","questions"],"additionalProperties":false}}},"required":["id","name","index","questions","subTopics"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/history":{"get":{"operationId":"tarot.sessionHistory","tags":["tarot"],"summary":"tarot.sessionHistory","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"sessions":{"type":"array","items":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionQuota":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questions":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"question":{"type":"string"},"questionExpand":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positionLabel":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"reversed":{"type":"boolean"},"gist":{"type":"string"}},"required":["position","positionLabel","number","name","img","reversed","gist"],"additionalProperties":false}}},"required":["seq","question","questionExpand","cards"],"additionalProperties":false}},"completedAt":{"type":"string"}},"required":["sessionId","status","cardCount","questionQuota","questions","completedAt"],"additionalProperties":false}}},"required":["date","sessions"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalItems":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalItems","totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/{sessionId}":{"get":{"operationId":"tarot.sessionDetail","tags":["tarot"],"summary":"tarot.sessionDetail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionQuota":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"situation":{"type":"string"},"completedAt":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"question":{"type":"string"},"questionExpand":{"type":"string"},"questionType":{"type":"string"},"status":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positionLabel":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"reversed":{"type":"boolean"},"gist":{"type":"string"}},"required":["position","positionLabel","number","name","img","reversed","gist"],"additionalProperties":false}},"result":{"type":"object","properties":{"suggestion":{"type":"string"},"answer":{"type":"string"}},"required":["suggestion","answer"],"additionalProperties":false}},"required":["seq","question","questionExpand","questionType","status","cards","result"],"additionalProperties":false}}},"required":["sessionId","status","cardCount","questionQuota","situation","completedAt","questions"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"tarot.deleteSession","tags":["tarot"],"summary":"tarot.deleteSession","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"sessionId":{"type":"string"},"deleted":{"type":"boolean"}},"required":["sessionId","deleted"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/{sessionId}/events":{"get":{"operationId":"tarot.sessionEvents","tags":["tarot"],"summary":"tarot.sessionEvents","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string"},"completedAt":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"}},"required":["seq","status"],"additionalProperties":false}}},"required":["sessionId","status","completedAt","questions"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/tarot/sessions/{sessionId}/questions":{"post":{"operationId":"tarot.submitSessionQuestions","tags":["tarot"],"summary":"tarot.submitSessionQuestions","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string"},"cardCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questionQuota":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"situation":{"type":"string"},"completedAt":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"question":{"type":"string"},"questionExpand":{"type":"string"},"questionType":{"type":"string"},"status":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positionLabel":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"img":{"type":"string"},"reversed":{"type":"boolean"},"gist":{"type":"string"}},"required":["position","positionLabel","number","name","img","reversed","gist"],"additionalProperties":false}},"result":{"type":"object","properties":{"suggestion":{"type":"string"},"answer":{"type":"string"}},"required":["suggestion","answer"],"additionalProperties":false}},"required":["seq","question","questionExpand","questionType","status","cards","result"],"additionalProperties":false}},"result":{"type":"string","enum":["NEED_MORE","SELECT_REQUIRED","PROCESSING","COMPLETED"]},"validCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"candidates":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"understood":{"type":"string"},"isLove":{"type":"boolean"},"alternativeOptions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["question","understood","isLove","alternativeOptions"],"additionalProperties":false}}},"required":["sessionId","status","cardCount","questionQuota","situation","completedAt","questions","result","validCount","missing","candidates"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"situation":{"type":"string","minLength":1,"maxLength":1500},"questions":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"questionExpand":{"type":"string","maxLength":500},"questionType":{"type":"string","enum":["normal","ab"]}},"required":["question"]}},"skipValidation":{"type":"boolean"}},"required":["situation","questions"]}}}},"security":[{"bearerAuth":[]}]}},"/syamsi/landing-page":{"get":{"operationId":"syamsi.landingPage","tags":["syamsi"],"summary":"syamsi.landingPage","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"eventId":{"type":"string"},"muImg":{"type":"string"},"title":{"type":"string"},"name":{"type":"string"},"quota":{"type":"boolean"},"burnStatus":{"type":"boolean"},"restore":{"type":"boolean"},"coupon":{"type":"object","properties":{"balance":{"type":"number"},"needPurchase":{"type":"boolean"},"product":{"type":"object","properties":{"productId":{"type":"string"},"price":{"type":"number"},"couponAmount":{"type":"number"}},"required":["productId","price","couponAmount"],"additionalProperties":false}},"required":["balance","needPurchase","product"],"additionalProperties":false},"longImgObj":{"type":"array","items":{}},"loadingObj":{"type":"array","items":{}},"webLongImg":{"type":"array","items":{}}},"required":["eventId","muImg","title","name","quota","burnStatus","restore","coupon","longImgObj","loadingObj","webLongImg"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{},{"bearerAuth":[]}]}},"/syamsi/topic":{"get":{"operationId":"syamsi.topics","tags":["syamsi"],"summary":"syamsi.topics","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"icon":{"type":"string"},"detail":{"type":"string"}},"required":["id","name","icon","detail"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{},{"bearerAuth":[]}]}},"/syamsi/event":{"get":{"operationId":"syamsi.events","tags":["syamsi"],"summary":"syamsi.events","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"img":{"type":"string"},"webImg":{"type":"string"},"index":{"type":"number"}},"required":["id","name","img","webImg","index"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{},{"bearerAuth":[]}]}},"/syamsi/history":{"get":{"operationId":"syamsi.history","tags":["syamsi"],"summary":"syamsi.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"syamsiList":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"number"},"detail":{"type":"string"},"isGood":{"type":"boolean"},"topic":{"type":"string"},"img":{"type":"string"},"bgImg":{"type":"string"},"name":{"type":"string"},"quote":{"type":"string"},"loadingImg":{"type":"string"},"burnStatus":{"type":"boolean"},"accepted":{"type":"boolean"},"predictedAt":{"type":"string"}},"required":["id","number","detail","isGood","topic","img","bgImg","name","quote","loadingImg","burnStatus","accepted","predictedAt"],"additionalProperties":false}}},"required":["date","syamsiList"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/syamsi/random":{"post":{"operationId":"syamsi.random","tags":["syamsi"],"summary":"syamsi.random","description":"Auth: optional (richer response when authenticated).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"quota":{"type":"boolean"},"restore":{"type":"boolean"},"burnStatus":{"type":"boolean"},"coupon":{"type":"object","properties":{"balance":{"type":"number"},"needPurchase":{"type":"boolean"},"product":{"type":"object","properties":{"productId":{"type":"string"},"price":{"type":"number"},"couponAmount":{"type":"number"}},"required":["productId","price","couponAmount"],"additionalProperties":false}},"required":["balance","needPurchase","product"],"additionalProperties":false},"syamsi":{"type":"object","properties":{"topicId":{"type":"string"},"number":{"type":"number"},"detail":{"type":"string"},"isGood":{"type":"boolean"},"topic":{"type":"string"},"syamsiFrameImg":{"type":"string"},"qrImg":{"type":"string"},"logo":{"type":"string"},"detailTopic":{"type":"string"},"img":{"type":"string"},"bgImg":{"type":"string"},"name":{"type":"string"},"quote":{"type":"string"},"loadingImg":{"type":"string"}},"required":["topicId","number","detail","isGood","topic","syamsiFrameImg","qrImg","logo","detailTopic","img","bgImg","name","quote","loadingImg"],"additionalProperties":false},"userSyamsi":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"accept":{"type":"boolean"},"eventId":{"type":"string"},"submittedAt":{"type":"string"}},"required":["id","accept","eventId","submittedAt"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["quota","restore","burnStatus","coupon","syamsi","userSyamsi"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topicId":{"type":"string"},"eventId":{"type":"string"}}}}}},"security":[{},{"bearerAuth":[]}]}},"/syamsi/accept":{"post":{"operationId":"syamsi.accept","tags":["syamsi"],"summary":"syamsi.accept","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"quota":{"type":"boolean"},"restore":{"type":"boolean"},"burnStatus":{"type":"boolean"},"coupon":{"type":"object","properties":{"balance":{"type":"number"},"needPurchase":{"type":"boolean"},"product":{"type":"object","properties":{"productId":{"type":"string"},"price":{"type":"number"},"couponAmount":{"type":"number"}},"required":["productId","price","couponAmount"],"additionalProperties":false}},"required":["balance","needPurchase","product"],"additionalProperties":false},"syamsi":{"type":"object","properties":{"topicId":{"type":"string"},"number":{"type":"number"},"detail":{"type":"string"},"isGood":{"type":"boolean"},"topic":{"type":"string"},"syamsiFrameImg":{"type":"string"},"qrImg":{"type":"string"},"logo":{"type":"string"},"detailTopic":{"type":"string"},"img":{"type":"string"},"bgImg":{"type":"string"},"name":{"type":"string"},"quote":{"type":"string"},"loadingImg":{"type":"string"}},"required":["topicId","number","detail","isGood","topic","syamsiFrameImg","qrImg","logo","detailTopic","img","bgImg","name","quote","loadingImg"],"additionalProperties":false},"userSyamsi":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"accept":{"type":"boolean"},"eventId":{"type":"string"},"submittedAt":{"type":"string"}},"required":["id","accept","eventId","submittedAt"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["quota","restore","burnStatus","coupon","syamsi","userSyamsi"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"accept":{"type":"boolean"}},"required":["id","accept"]}}}},"security":[{"bearerAuth":[]}]}},"/syamsi/public/random":{"get":{"operationId":"syamsi.publicRandom","tags":["syamsi"],"summary":"syamsi.publicRandom","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"number":{"type":"number"},"detail":{"type":"string"},"isGood":{"type":"boolean"}},"required":["number","detail","isGood"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/syamsi/burn":{"post":{"operationId":"syamsi.burn","tags":["syamsi"],"summary":"syamsi.burn","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"number"}},"required":["topicId","number"]}}}},"security":[{"bearerAuth":[]}]}},"/astrology/mu-question-suggestion":{"get":{"operationId":"astrology.muQuestionSuggestions","tags":["astrology"],"summary":"astrology.muQuestionSuggestions","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"suggestions":{"type":"array","items":{"type":"string"}}},"required":["suggestions"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/astrology/origin":{"get":{"operationId":"astrology.origin","tags":["astrology"],"summary":"astrology.origin","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"userDetail":{"type":"object","properties":{"name":{"type":"string"},"birthDay":{"type":"string"},"birthTime":{"type":"string"},"birthPlace":{"type":"string"},"province":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"ascendantImg":{"type":"string"}},"required":["name","birthDay","birthTime","birthPlace","province","zodiac","ascendant","ascendantImg"],"additionalProperties":false},"detail":{"type":"string"},"graph":{"type":"object","properties":{"innerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"nestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"subNestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"outerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalOuterCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}}},"required":["innerCircle","nestedInnerCircle","subNestedInnerCircle","finalInnerCircle","outerCircle","finalOuterCircle"],"additionalProperties":false},"startMove":{"type":"string"},"startMoveTime":{"type":"string"},"prompt":{"type":"string"},"copyObj":{"type":"string"}},"required":["userDetail","detail","graph","startMove","startMoveTime","prompt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/astrology/current":{"get":{"operationId":"astrology.current","tags":["astrology"],"summary":"astrology.current","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"userDetail":{"type":"object","properties":{"name":{"type":"string"},"birthDay":{"type":"string"},"birthTime":{"type":"string"},"birthPlace":{"type":"string"},"province":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"ascendantImg":{"type":"string"}},"required":["name","birthDay","birthTime","birthPlace","province","zodiac","ascendant","ascendantImg"],"additionalProperties":false},"detail":{"type":"string"},"graph":{"type":"object","properties":{"innerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"nestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"subNestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"outerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalOuterCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}}},"required":["innerCircle","nestedInnerCircle","subNestedInnerCircle","finalInnerCircle","outerCircle","finalOuterCircle"],"additionalProperties":false},"startMove":{"type":"string"},"startMoveTime":{"type":"string"},"prompt":{"type":"string"},"copyObj":{"type":"string"}},"required":["userDetail","detail","graph","startMove","startMoveTime","prompt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/astrology/origin-predict":{"get":{"operationId":"astrology.originPredict","tags":["astrology"],"summary":"astrology.originPredict","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"detail":{"type":"string"}},"required":["detail"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/astrology/current-predict":{"get":{"operationId":"astrology.currentPredict","tags":["astrology"],"summary":"astrology.currentPredict","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"detail":{"type":"string"}},"required":["detail"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/astrology/public/origin":{"get":{"operationId":"astrology.publicOrigin","tags":["astrology"],"summary":"astrology.publicOrigin","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"userDetail":{"type":"object","properties":{"name":{"type":"string"},"birthDay":{"type":"string"},"birthTime":{"type":"string"},"birthPlace":{"type":"string"},"province":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"ascendantImg":{"type":"string"}},"required":["name","birthDay","birthTime","birthPlace","province","zodiac","ascendant","ascendantImg"],"additionalProperties":false},"detail":{"type":"string"},"graph":{"type":"object","properties":{"innerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"nestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"subNestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"outerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalOuterCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}}},"required":["innerCircle","nestedInnerCircle","subNestedInnerCircle","finalInnerCircle","outerCircle","finalOuterCircle"],"additionalProperties":false},"startMove":{"type":"string"},"startMoveTime":{"type":"string"},"prompt":{"type":"string"},"copyObj":{"type":"string"}},"required":["userDetail","detail","graph","startMove","startMoveTime","prompt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"birthDay","in":"query","required":false,"schema":{"type":"string"}},{"name":"birthTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"birthPlace","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/astrology/public/current":{"get":{"operationId":"astrology.publicCurrent","tags":["astrology"],"summary":"astrology.publicCurrent","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"userDetail":{"type":"object","properties":{"name":{"type":"string"},"birthDay":{"type":"string"},"birthTime":{"type":"string"},"birthPlace":{"type":"string"},"province":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"ascendantImg":{"type":"string"}},"required":["name","birthDay","birthTime","birthPlace","province","zodiac","ascendant","ascendantImg"],"additionalProperties":false},"detail":{"type":"string"},"graph":{"type":"object","properties":{"innerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"nestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"subNestedInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalInnerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"outerCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}},"finalOuterCircle":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"house":{"type":"string"},"houseDescription":{"type":"string"},"ascendant":{"type":"string"},"astrology":{"type":"array","items":{"type":"string"}}},"required":["index","house","houseDescription","ascendant","astrology"],"additionalProperties":false}}},"required":["innerCircle","nestedInnerCircle","subNestedInnerCircle","finalInnerCircle","outerCircle","finalOuterCircle"],"additionalProperties":false},"startMove":{"type":"string"},"startMoveTime":{"type":"string"},"prompt":{"type":"string"},"copyObj":{"type":"string"}},"required":["userDetail","detail","graph","startMove","startMoveTime","prompt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"birthDay","in":"query","required":false,"schema":{"type":"string"}},{"name":"birthTime","in":"query","required":false,"schema":{"type":"string"}},{"name":"birthPlace","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/matching-partner":{"post":{"operationId":"matchingPartner.draft","tags":["matchingPartner"],"summary":"matchingPartner.draft","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"fullname":{"type":"string"},"userInfo":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"birthPlace":{"type":"string"},"birthTimeString":{"type":"string"},"birthDateIso":{"type":"string"},"birthPlaceCode":{"type":"string"}},"required":["name","zodiac","ascendant","birthPlace","birthTimeString","birthDateIso","birthPlaceCode"],"additionalProperties":false},"partnerInfo":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"birthPlace":{"type":"string"},"birthTimeString":{"type":"string"},"birthDateIso":{"type":"string"},"birthPlaceCode":{"type":"string"}},"required":["name","zodiac","ascendant","birthPlace","birthTimeString","birthDateIso","birthPlaceCode"],"additionalProperties":false},"result":{"type":"object","properties":{"userProvince":{"anyOf":[{"type":"string"},{"type":"null"}]},"partnerProvince":{"anyOf":[{"type":"string"},{"type":"null"}]},"userBirthDateTimeIso":{"type":"string"},"partnerBirthDateTimeIso":{"type":"string"},"userWeekday":{"type":"object","properties":{"key":{"type":"string"},"labelTh":{"type":"string"},"value":{"type":"string"}},"required":["key","labelTh","value"],"additionalProperties":false},"partnerWeekday":{"type":"object","properties":{"key":{"type":"string"},"labelTh":{"type":"string"},"value":{"type":"string"}},"required":["key","labelTh","value"],"additionalProperties":false},"userLife":{"type":"number"},"partnerLife":{"type":"number"},"pairLifeLegacy":{"type":"number"},"userZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userElement":{"type":"object","properties":{"value":{"type":"string"},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"partnerElement":{"type":"object","properties":{"value":{"type":"string"},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"houseUserToPartner":{"type":"number"},"housePartnerToUser":{"type":"number"},"scoreWeekday":{"type":"number"},"scoreElement":{"type":"number"},"scoreLife":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"meaning":{"type":"string"},"houseScore":{"type":"number"},"weekdayScore":{"type":"number"},"elementScore":{"type":"number"},"lifeScore":{"type":"number"},"bonusHouse59":{"type":"number"},"bonusElementStrong":{"type":"number"},"bonusConfidence":{"type":"number"},"yearScore":{"type":"number"},"dayScore":{"type":"number"},"monthScore":{"type":"number"},"rawScore":{"type":"number"},"finalScore":{"type":"number"},"percentRaw":{"type":"number"},"percentRawInt":{"type":"number"},"percent":{"type":"number"},"percentInt":{"type":"number"}},"required":["type","title","subtitle","meaning","houseScore","weekdayScore","elementScore","lifeScore","bonusHouse59","bonusElementStrong","bonusConfidence","yearScore","dayScore","monthScore","rawScore","finalScore","percentRaw","percentRawInt","percent","percentInt"],"additionalProperties":false}},"overallPercent":{"type":"number"},"summary":{"type":"string"},"userStar":{"type":"object","properties":{"number":{"type":"number"},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"partnerStar":{"type":"object","properties":{"number":{"type":"number"},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"userNaksatr":{"type":"object","properties":{"index":{"type":"number"},"nameTh":{"type":"string"},"element":{"type":"string"},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"partnerNaksatr":{"type":"object","properties":{"index":{"type":"number"},"nameTh":{"type":"string"},"element":{"type":"string"},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"userLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"number"},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"partnerLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"number"},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"axes":{"type":"array","items":{"type":"object","properties":{"axis":{"type":"string"},"titleTh":{"type":"string"},"relation":{"type":"string"},"relationLabelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string"},"excludedReason":{"type":"string"},"houses":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},"noteTh":{"type":"string"}},"required":["axis","titleTh","relationLabelTh","userValueTh","partnerValueTh","score"],"additionalProperties":false}},"sompong":{"type":"object","properties":{"raw":{"type":"number"},"band":{"type":"string"},"bandLabelTh":{"type":"string"},"supportCount":{"type":"number"},"neutralCount":{"type":"number"},"conflictCount":{"type":"number"},"counted":{"type":"number"},"excludedCount":{"type":"number"}},"required":["raw","band","bandLabelTh","supportCount","neutralCount","conflictCount","counted","excludedCount"],"additionalProperties":false},"scoreYear":{"type":"number"},"scoreDay":{"type":"number"},"scoreMonth":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["userProvince","partnerProvince","userBirthDateTimeIso","partnerBirthDateTimeIso","userWeekday","partnerWeekday","userLife","partnerLife","pairLifeLegacy","userZodiac","partnerZodiac","userAscendant","partnerAscendant","userElement","partnerElement","houseUserToPartner","housePartnerToUser","scoreWeekday","scoreElement","scoreLife","results","overallPercent","summary"],"additionalProperties":false}},"required":["id","img","fullname","userInfo","partnerInfo","result"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"birthTime":{"type":"string"},"birthDate":{"type":"string"},"localBirthPlace":{"type":"string"}},"required":["name","birthTime","birthDate","localBirthPlace"]}}}},"security":[{"bearerAuth":[]}]},"get":{"operationId":"matchingPartner.get","tags":["matchingPartner"],"summary":"matchingPartner.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fullname":{"type":"string"},"birthDate":{"type":"string"},"birthTime":{"type":"string"},"birthPlace":{"type":"string"},"img":{"type":"string"},"mainPercent":{"type":"number"},"detail":{"type":"string"},"attitudePercent":{"type":"number"},"attitudeDetail":{"type":"string"},"attitudeIcon":{"type":"string"},"lovePercent":{"type":"number"},"loveDetail":{"type":"string"},"loveIcon":{"type":"string"},"workPercent":{"type":"number"},"workDetail":{"type":"string"},"workIcon":{"type":"string"},"masterPercent":{"type":"number"},"masterDetail":{"type":"string"},"masterIcon":{"type":"string"},"challengesPercent":{"type":"number"},"challengesDetail":{"type":"string"},"challengesIcon":{"type":"string"}},"required":["id","fullname","birthDate","birthTime","birthPlace","img","mainPercent","detail","attitudePercent","attitudeDetail","attitudeIcon","lovePercent","loveDetail","loveIcon","workPercent","workDetail","workIcon","masterPercent","masterDetail","masterIcon","challengesPercent","challengesDetail","challengesIcon"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"matchId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]},"delete":{"operationId":"matchingPartner.delete","tags":["matchingPartner"],"summary":"matchingPartner.delete","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"boolean"}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"matchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["matchId"]}}}},"security":[{"bearerAuth":[]}]}},"/matching-partner/public":{"post":{"operationId":"matchingPartner.public","tags":["matchingPartner"],"summary":"matchingPartner.public","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"fullname":{"type":"string"},"userInfo":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"birthPlace":{"type":"string"},"birthTimeString":{"type":"string"},"birthDateIso":{"type":"string"},"birthPlaceCode":{"type":"string"}},"required":["name","zodiac","ascendant","birthPlace","birthTimeString","birthDateIso","birthPlaceCode"],"additionalProperties":false},"partnerInfo":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"birthPlace":{"type":"string"},"birthTimeString":{"type":"string"},"birthDateIso":{"type":"string"},"birthPlaceCode":{"type":"string"}},"required":["name","zodiac","ascendant","birthPlace","birthTimeString","birthDateIso","birthPlaceCode"],"additionalProperties":false},"result":{"type":"object","properties":{"userProvince":{"anyOf":[{"type":"string"},{"type":"null"}]},"partnerProvince":{"anyOf":[{"type":"string"},{"type":"null"}]},"userBirthDateTimeIso":{"type":"string"},"partnerBirthDateTimeIso":{"type":"string"},"userWeekday":{"type":"object","properties":{"key":{"type":"string"},"labelTh":{"type":"string"},"value":{"type":"string"}},"required":["key","labelTh","value"],"additionalProperties":false},"partnerWeekday":{"type":"object","properties":{"key":{"type":"string"},"labelTh":{"type":"string"},"value":{"type":"string"}},"required":["key","labelTh","value"],"additionalProperties":false},"userLife":{"type":"number"},"partnerLife":{"type":"number"},"pairLifeLegacy":{"type":"number"},"userZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerZodiac":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"partnerAscendant":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"th":{"type":"string"},"en":{"type":"string"}},"required":["index","th","en"],"additionalProperties":false},"userElement":{"type":"object","properties":{"value":{"type":"string"},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"partnerElement":{"type":"object","properties":{"value":{"type":"string"},"labelTh":{"type":"string"}},"required":["value","labelTh"],"additionalProperties":false},"houseUserToPartner":{"type":"number"},"housePartnerToUser":{"type":"number"},"scoreWeekday":{"type":"number"},"scoreElement":{"type":"number"},"scoreLife":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"meaning":{"type":"string"},"houseScore":{"type":"number"},"weekdayScore":{"type":"number"},"elementScore":{"type":"number"},"lifeScore":{"type":"number"},"bonusHouse59":{"type":"number"},"bonusElementStrong":{"type":"number"},"bonusConfidence":{"type":"number"},"yearScore":{"type":"number"},"dayScore":{"type":"number"},"monthScore":{"type":"number"},"rawScore":{"type":"number"},"finalScore":{"type":"number"},"percentRaw":{"type":"number"},"percentRawInt":{"type":"number"},"percent":{"type":"number"},"percentInt":{"type":"number"}},"required":["type","title","subtitle","meaning","houseScore","weekdayScore","elementScore","lifeScore","bonusHouse59","bonusElementStrong","bonusConfidence","yearScore","dayScore","monthScore","rawScore","finalScore","percentRaw","percentRawInt","percent","percentInt"],"additionalProperties":false}},"overallPercent":{"type":"number"},"summary":{"type":"string"},"userStar":{"type":"object","properties":{"number":{"type":"number"},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"partnerStar":{"type":"object","properties":{"number":{"type":"number"},"labelTh":{"type":"string"},"elementTh":{"type":"string"}},"required":["number","labelTh","elementTh"],"additionalProperties":false},"userNaksatr":{"type":"object","properties":{"index":{"type":"number"},"nameTh":{"type":"string"},"element":{"type":"string"},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"partnerNaksatr":{"type":"object","properties":{"index":{"type":"number"},"nameTh":{"type":"string"},"element":{"type":"string"},"elementLabelTh":{"type":"string"},"lunarShifted":{"type":"boolean"}},"required":["index","nameTh","element","elementLabelTh"],"additionalProperties":false},"userLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"number"},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"partnerLunarMonth":{"type":"object","properties":{"index":{"anyOf":[{"type":"number"},{"type":"null"}]},"labelTh":{"type":"string"}},"required":["index","labelTh"],"additionalProperties":false},"axes":{"type":"array","items":{"type":"object","properties":{"axis":{"type":"string"},"titleTh":{"type":"string"},"relation":{"type":"string"},"relationLabelTh":{"type":"string"},"userValueTh":{"type":"string"},"partnerValueTh":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string"},"excludedReason":{"type":"string"},"houses":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},"noteTh":{"type":"string"}},"required":["axis","titleTh","relationLabelTh","userValueTh","partnerValueTh","score"],"additionalProperties":false}},"sompong":{"type":"object","properties":{"raw":{"type":"number"},"band":{"type":"string"},"bandLabelTh":{"type":"string"},"supportCount":{"type":"number"},"neutralCount":{"type":"number"},"conflictCount":{"type":"number"},"counted":{"type":"number"},"excludedCount":{"type":"number"}},"required":["raw","band","bandLabelTh","supportCount","neutralCount","conflictCount","counted","excludedCount"],"additionalProperties":false},"scoreYear":{"type":"number"},"scoreDay":{"type":"number"},"scoreMonth":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["userProvince","partnerProvince","userBirthDateTimeIso","partnerBirthDateTimeIso","userWeekday","partnerWeekday","userLife","partnerLife","pairLifeLegacy","userZodiac","partnerZodiac","userAscendant","partnerAscendant","userElement","partnerElement","houseUserToPartner","housePartnerToUser","scoreWeekday","scoreElement","scoreLife","results","overallPercent","summary"],"additionalProperties":false}},"required":["id","img","fullname","userInfo","partnerInfo","result"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"self":{"type":"object","properties":{"name":{"type":"string","minLength":1},"birthTime":{"type":"string","minLength":1},"birthDate":{"type":"string","minLength":1},"localBirthPlace":{"type":"string","minLength":1}},"required":["name","birthTime","birthDate","localBirthPlace"]},"partner":{"type":"object","properties":{"name":{"type":"string","minLength":1},"birthTime":{"type":"string","minLength":1},"birthDate":{"type":"string","minLength":1},"localBirthPlace":{"type":"string","minLength":1}},"required":["name","birthTime","birthDate","localBirthPlace"]}},"required":["self","partner"]}}}},"security":[{"bearerAuth":[]}]}},"/matching-partner/save":{"post":{"operationId":"matchingPartner.save","tags":["matchingPartner"],"summary":"matchingPartner.save","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fullname":{"type":"string"},"birthDate":{"type":"string"},"birthTime":{"type":"string"},"birthPlace":{"type":"string"},"img":{"type":"string"},"mainPercent":{"type":"number"},"detail":{"type":"string"},"attitudePercent":{"type":"number"},"attitudeDetail":{"type":"string"},"attitudeIcon":{"type":"string"},"lovePercent":{"type":"number"},"loveDetail":{"type":"string"},"loveIcon":{"type":"string"},"workPercent":{"type":"number"},"workDetail":{"type":"string"},"workIcon":{"type":"string"},"masterPercent":{"type":"number"},"masterDetail":{"type":"string"},"masterIcon":{"type":"string"},"challengesPercent":{"type":"number"},"challengesDetail":{"type":"string"},"challengesIcon":{"type":"string"}},"required":["id","fullname","birthDate","birthTime","birthPlace","img","mainPercent","detail","attitudePercent","attitudeDetail","attitudeIcon","lovePercent","loveDetail","loveIcon","workPercent","workDetail","workIcon","masterPercent","masterDetail","masterIcon","challengesPercent","challengesDetail","challengesIcon"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fullname":{"type":"string","minLength":1},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"birthPlace":{"type":"string","minLength":1},"mainPercent":{"type":"number","minimum":0,"maximum":100},"detail":{"type":"string","minLength":1},"attitudePercent":{"type":"number","minimum":0,"maximum":100},"attitudeDetail":{"type":"string","minLength":1},"lovePercent":{"type":"number","minimum":0,"maximum":100},"loveDetail":{"type":"string","minLength":1},"workPercent":{"type":"number","minimum":0,"maximum":100},"workDetail":{"type":"string","minLength":1},"masterPercent":{"type":"number","minimum":0,"maximum":100},"masterDetail":{"type":"string","minLength":1},"challengesPercent":{"type":"number","minimum":0,"maximum":100},"challengesDetail":{"type":"string","minLength":1}},"required":["fullname","birthDate","birthTime","birthPlace","mainPercent","detail","attitudePercent","attitudeDetail","lovePercent","loveDetail","workPercent","workDetail","masterPercent","masterDetail","challengesPercent","challengesDetail"]}}}},"security":[{"bearerAuth":[]}]}},"/matching-partner/history":{"get":{"operationId":"matchingPartner.history","tags":["matchingPartner"],"summary":"matchingPartner.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"fullname":{"type":"string"},"userInfo":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"birthPlace":{"type":"string"},"birthTimeString":{"type":"string"},"birthDateIso":{"type":"string"},"birthPlaceCode":{"type":"string"}},"required":["name","zodiac","ascendant","birthPlace","birthTimeString","birthDateIso","birthPlaceCode"],"additionalProperties":false},"partnerInfo":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"ascendant":{"type":"string"},"birthPlace":{"type":"string"},"birthTimeString":{"type":"string"},"birthDateIso":{"type":"string"},"birthPlaceCode":{"type":"string"}},"required":["name","zodiac","ascendant","birthPlace","birthTimeString","birthDateIso","birthPlaceCode"],"additionalProperties":false}},"required":["id","img","fullname","userInfo","partnerInfo"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/home/astro-profile":{"get":{"operationId":"homeV3.astroProfile","tags":["homeV3"],"summary":"homeV3.astroProfile","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"value":{"type":"string"},"img":{"type":"string"}},"required":["type","value","img"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/home/detail":{"get":{"operationId":"homeV3.detail","tags":["homeV3"],"summary":"homeV3.detail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"energyText":{"type":"string"},"energyFontColor":{"type":"string"},"isUserHaveAscendant":{"type":"boolean"},"eventDay":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"}},"required":["img","name","position","icon"],"additionalProperties":false}},"dayStatus":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"dayOfWeek":{"type":"string"},"dayOfInitial":{"type":"string"},"dayNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bgColor":{"type":"string"},"specialDays":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"}},"required":["img","name","position","icon"],"additionalProperties":false}},"backgroundColor":{"type":"string"},"isToday":{"type":"boolean"}},"required":["date","dayOfWeek","dayOfInitial","dayNumber","bgColor","specialDays","backgroundColor","isToday"],"additionalProperties":false}},"dailyColors":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["topic","colorList"],"additionalProperties":false}},"starMove":{"type":"object","properties":{"img":{"type":"string"},"bgImg":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"string"}}},"required":["img","bgImg","topic","period","detail","ability"],"additionalProperties":false},"luckyNumber":{"type":"object","properties":{"number":{"type":"string"},"numberInfo":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"detail":{"type":"string"}},"required":["number","detail"],"additionalProperties":false}}},"required":["number","numberInfo"],"additionalProperties":false},"lifeGraph":{"type":"object","properties":{"graphInfo":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"percent":{"type":"string"},"detail":{"type":"string"},"hexColor":{"type":"string"}},"required":["topic","percent","detail","hexColor"],"additionalProperties":false}}},"required":["graphInfo"],"additionalProperties":false}},"required":["energyText","energyFontColor","isUserHaveAscendant","eventDay","dayStatus","dailyColors","starMove","luckyNumber","lifeGraph"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/home/public/detail":{"get":{"operationId":"homeV3.publicDetail","tags":["homeV3"],"summary":"homeV3.publicDetail","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"energyText":{"type":"string"},"energyFontColor":{"type":"string"},"isUserHaveAscendant":{"type":"boolean"},"eventDay":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"}},"required":["img","name","position","icon"],"additionalProperties":false}},"dayStatus":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"dayOfWeek":{"type":"string"},"dayOfInitial":{"type":"string"},"dayNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bgColor":{"type":"string"},"specialDays":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"name":{"type":"string"},"position":{"type":"string"},"icon":{"type":"string"}},"required":["img","name","position","icon"],"additionalProperties":false}},"backgroundColor":{"type":"string"},"isToday":{"type":"boolean"}},"required":["date","dayOfWeek","dayOfInitial","dayNumber","bgColor","specialDays","backgroundColor","isToday"],"additionalProperties":false}},"dailyColors":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"colorList":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"type":"string"}},"required":["name","hex"],"additionalProperties":false}}},"required":["topic","colorList"],"additionalProperties":false}},"starMove":{"type":"object","properties":{"img":{"type":"string"},"bgImg":{"type":"string"},"topic":{"type":"string"},"period":{"type":"string"},"detail":{"type":"string"},"ability":{"type":"array","items":{"type":"string"}}},"required":["img","bgImg","topic","period","detail","ability"],"additionalProperties":false},"luckyNumber":{"type":"object","properties":{"number":{"type":"string"},"numberInfo":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"detail":{"type":"string"}},"required":["number","detail"],"additionalProperties":false}}},"required":["number","numberInfo"],"additionalProperties":false},"lifeGraph":{"type":"object","properties":{"graphInfo":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"percent":{"type":"string"},"detail":{"type":"string"},"hexColor":{"type":"string"}},"required":["topic","percent","detail","hexColor"],"additionalProperties":false}}},"required":["graphInfo"],"additionalProperties":false}},"required":["energyText","energyFontColor","isUserHaveAscendant","eventDay","dayStatus","dailyColors","starMove","luckyNumber","lifeGraph"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/event-banner":{"get":{"operationId":"eventBanner.list","tags":["eventBanner"],"summary":"eventBanner.list","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"img":{"type":"string"},"link":{"type":"string"},"isPreRegister":{"type":"boolean"}},"required":["id","img","link"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/life-graph":{"get":{"operationId":"lifeGraph.get","tags":["lifeGraph"],"summary":"lifeGraph.get","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"name":{"type":"string"},"zodiac":{"type":"string"},"birthPlace":{"type":"string"},"birthDateIso":{"type":"string"},"birthTimeString":{"type":"string"},"ascendant":{"type":"string"},"lifeGraph":{"type":"object","properties":{"dateIso":{"type":"string"},"info":{"type":"object","properties":{"message":{"type":"string"},"color":{"type":"string"}},"required":["message","color"],"additionalProperties":false},"aspects":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"score":{"type":"number"},"percent":{"type":"number"},"rank":{"type":"string"},"color":{"type":"string"},"message":{"type":"string"}},"required":["topic","score","percent","rank","color","message"],"additionalProperties":false}}},"required":["dateIso","info","aspects"],"additionalProperties":false}},"required":["name","zodiac","birthPlace","birthDateIso","birthTimeString","ascendant","lifeGraph"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/prediction/dream":{"post":{"operationId":"prediction.dream","tags":["prediction"],"summary":"prediction.dream","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"userId":{"type":"string"},"question":{"type":"string"},"answer":{"type":"string"},"number":{"type":"string"}},"required":["userId","question","answer","number"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wording":{"type":"string","minLength":1}},"required":["wording"]}}}},"security":[{"bearerAuth":[]}]}},"/prediction/phone":{"post":{"operationId":"prediction.phone","tags":["prediction"],"summary":"prediction.phone","description":"Auth: public (no token).","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"ranks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"detail":{"type":"string"},"grade":{"type":"string"},"point":{"type":"number"}},"required":["id","number","detail","grade","point"],"additionalProperties":false}},"sumRankPoint":{"type":"number"},"gradePoint":{"type":"number"},"allPoint":{"type":"number"},"fullPoint":{"type":"number"},"resultRank":{"type":"string"}},"required":["ranks","sumRankPoint","gradePoint","allPoint","fullPoint","resultRank"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","minLength":1}},"required":["phone"]}}}}}},"/wallpaper/public/event":{"get":{"operationId":"wallpaper.publicEvent","tags":["wallpaper"],"summary":"wallpaper.publicEvent","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"banner":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"name":{"type":"string"},"isFree":{"type":"boolean"},"rootType":{"type":"number"},"waterMark":{"type":"string"},"titleImg":{"type":"string"},"webBigImg":{"type":"string"},"webSmallImg":{"type":"string"},"detail":{"type":"string"}},"required":["id","img","name","isFree","rootType","waterMark","titleImg","webBigImg","webSmallImg","detail"],"additionalProperties":false}},"stellarHistory":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"topic":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"eventId":{"type":"string"},"img":{"type":"string"}},"required":["id","name","eventId","img"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"background":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"zodiac":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"allStar":{"type":"object","properties":{"starDenId":{"type":"string"},"starDen":{"type":"string"},"starJonId":{"type":"string"},"starJon":{"type":"string"},"rulingStarId":{"type":"string"},"rulingStar":{"type":"string"}},"required":["starDenId","starDen","starJonId","starJon","rulingStarId","rulingStar"],"additionalProperties":false},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["id","topic","background","zodiac","houseOwnerPlanetNumber","pairedPlanetNumber","allStar","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail"],"additionalProperties":false}}},"required":["banner","events","stellarHistory"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/public/web-long-page":{"get":{"operationId":"wallpaper.publicWebLongPage","tags":["wallpaper"],"summary":"wallpaper.publicWebLongPage","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"bgImg":{"type":"string"}},"required":["id","img","bgImg"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/event":{"get":{"operationId":"wallpaper.event","tags":["wallpaper"],"summary":"wallpaper.event","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"banner":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"name":{"type":"string"},"isFree":{"type":"boolean"},"rootType":{"type":"number"},"waterMark":{"type":"string"},"titleImg":{"type":"string"},"webBigImg":{"type":"string"},"webSmallImg":{"type":"string"},"detail":{"type":"string"}},"required":["id","img","name","isFree","rootType","waterMark","titleImg","webBigImg","webSmallImg","detail"],"additionalProperties":false}},"stellarHistory":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"topic":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"eventId":{"type":"string"},"img":{"type":"string"}},"required":["id","name","eventId","img"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"background":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"zodiac":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"allStar":{"type":"object","properties":{"starDenId":{"type":"string"},"starDen":{"type":"string"},"starJonId":{"type":"string"},"starJon":{"type":"string"},"rulingStarId":{"type":"string"},"rulingStar":{"type":"string"}},"required":["starDenId","starDen","starJonId","starJon","rulingStarId","rulingStar"],"additionalProperties":false},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["id","topic","background","zodiac","houseOwnerPlanetNumber","pairedPlanetNumber","allStar","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail"],"additionalProperties":false}}},"required":["banner","events","stellarHistory"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/god":{"get":{"operationId":"wallpaper.god","tags":["wallpaper"],"summary":"wallpaper.god","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"virtues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"}},"required":["id","img"],"additionalProperties":false}}},"required":["id","name","img","virtues"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"virtueId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/topic":{"get":{"operationId":"wallpaper.topic","tags":["wallpaper"],"summary":"wallpaper.topic","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"starMoveDetail":{"anyOf":[{"type":"string"},{"type":"null"}]},"starMoveResult":{"anyOf":[{"type":"string"},{"type":"null"}]},"bgImg":{"anyOf":[{"type":"object","properties":{"topicBgImg":{"type":"string"},"numberBgImg":{"type":"string"}},"additionalProperties":false},{"type":"null"}]}},"required":["id","img","name","detail","starMoveDetail","starMoveResult","bgImg"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/enhance-topic/{eventId}":{"get":{"operationId":"wallpaper.enhanceTopic","tags":["wallpaper"],"summary":"wallpaper.enhanceTopic","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"eventId":{"type":"string"},"name":{"type":"string"},"birthDate":{"type":"string"},"currentDate":{"type":"string"},"zodiacId":{"type":"string"},"tanuLak":{"type":"string"},"starDenID":{"type":"string"},"starJonID":{"type":"string"},"topics":{"type":"object","properties":{"hasAspect":{"type":"array","items":{"type":"object","properties":{"topicId":{"type":"string"},"topic":{"type":"string"},"topicIcon":{"type":"string"},"primaryHouse":{"type":"string"},"houseOwnerPlanet":{"type":"string"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanet":{"type":"string"},"pairedPlanetNumber":{"type":"number"},"pairGroup":{"type":"string"},"aspect":{"type":"string"},"hasAspect":{"type":"boolean"},"expireDate":{"type":"string"},"expireDateDiffDays":{"type":"number"},"detail":{"type":"string"},"starMoveDetail":{"type":"string"},"starMoveResult":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"isAlreadyCreated":{"type":"boolean"}},"required":["topicId","topic","topicIcon","primaryHouse","houseOwnerPlanet","houseOwnerPlanetNumber","pairedPlanet","pairedPlanetNumber","pairGroup","aspect","hasAspect","expireDate","expireDateDiffDays","detail","starMoveDetail","starMoveResult","rulingStarId","backgroundImgId","isAlreadyCreated"],"additionalProperties":false}},"noAspect":{"type":"array","items":{"type":"object","properties":{"topicId":{"type":"string"},"topic":{"type":"string"},"topicIcon":{"type":"string"},"primaryHouse":{"type":"string"},"houseOwnerPlanet":{"type":"string"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanet":{"type":"string"},"pairedPlanetNumber":{"type":"number"},"pairGroup":{"type":"string"},"aspect":{"type":"string"},"hasAspect":{"type":"boolean"},"expireDate":{"type":"string"},"expireDateDiffDays":{"type":"number"},"detail":{"type":"string"},"starMoveDetail":{"type":"string"},"starMoveResult":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"isAlreadyCreated":{"type":"boolean"}},"required":["topicId","topic","topicIcon","primaryHouse","houseOwnerPlanet","houseOwnerPlanetNumber","pairedPlanet","pairedPlanetNumber","pairGroup","aspect","hasAspect","expireDate","expireDateDiffDays","detail","starMoveDetail","starMoveResult","rulingStarId","backgroundImgId","isAlreadyCreated"],"additionalProperties":false}},"alreadyCreatedAspect":{"type":"array","items":{"type":"object","properties":{"topicId":{"type":"string"},"topic":{"type":"string"},"topicIcon":{"type":"string"},"primaryHouse":{"type":"string"},"houseOwnerPlanet":{"type":"string"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanet":{"type":"string"},"pairedPlanetNumber":{"type":"number"},"pairGroup":{"type":"string"},"aspect":{"type":"string"},"hasAspect":{"type":"boolean"},"expireDate":{"type":"string"},"expireDateDiffDays":{"type":"number"},"detail":{"type":"string"},"starMoveDetail":{"type":"string"},"starMoveResult":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"isAlreadyCreated":{"type":"boolean"}},"required":["topicId","topic","topicIcon","primaryHouse","houseOwnerPlanet","houseOwnerPlanetNumber","pairedPlanet","pairedPlanetNumber","pairGroup","aspect","hasAspect","expireDate","expireDateDiffDays","detail","starMoveDetail","starMoveResult","rulingStarId","backgroundImgId","isAlreadyCreated"],"additionalProperties":false}},"hasAspectHeader":{"type":"string"},"hasAspectDetail":{"type":"string"},"topicBgImg":{"type":"string"},"numberBgImg":{"type":"string"}},"required":["hasAspect","noAspect","alreadyCreatedAspect","hasAspectHeader","hasAspectDetail","topicBgImg","numberBgImg"],"additionalProperties":false}},"required":["eventId","name","birthDate","currentDate","zodiacId","tanuLak","starDenID","starJonID","topics"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/collab/{deepLinkCode}":{"get":{"operationId":"wallpaper.collab","tags":["wallpaper"],"summary":"wallpaper.collab","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"quota":{"type":"boolean"},"restored":{"type":"boolean"},"artifact":{"type":"object","properties":{"topic":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"eventId":{"type":"string"},"img":{"type":"string"}},"required":["id","name","eventId","img"],"additionalProperties":false},"event":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"name":{"type":"string"},"isFree":{"type":"boolean"},"rootType":{"type":"number"},"waterMark":{"type":"string"},"titleImg":{"type":"string"},"webBigImg":{"type":"string"},"webSmallImg":{"type":"string"},"detail":{"type":"string"}},"required":["id","img","name","isFree","rootType","waterMark","titleImg","webBigImg","webSmallImg","detail"],"additionalProperties":false},"god":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"img":{"type":"string"}},"required":["id","name","detail","img"],"additionalProperties":false},"background":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"numbers":{"type":"object","properties":{"topLeft":{"type":"string"},"topRight":{"type":"string"},"bottomLeft":{"type":"string"},"bottomRight":{"type":"string"}},"required":["topLeft","topRight","bottomLeft","bottomRight"],"additionalProperties":false},"star":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"name":{"type":"string"},"starColor":{"type":"string"},"numberColor":{"type":"string"},"productId":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"artifactImg":{"type":"string"}},"required":["id","name","artifactImg"],"additionalProperties":false}},"info":{"type":"object","properties":{"collectionName":{"type":"string"},"godName":{"type":"string"},"detail":{"type":"string"}},"required":["collectionName","godName","detail"],"additionalProperties":false},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"zodiac":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"allStar":{"type":"object","properties":{"starDenId":{"type":"string"},"starDen":{"type":"string"},"starJonId":{"type":"string"},"starJon":{"type":"string"},"rulingStarId":{"type":"string"},"rulingStar":{"type":"string"}},"required":["starDenId","starDen","starJonId","starJon","rulingStarId","rulingStar"],"additionalProperties":false},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"string","const":""}]},"product":{"type":"object","properties":{"productId":{"type":"string"},"productType":{"type":"string"},"paymentChannel":{"type":"string"},"productPrice":{"type":"number"}},"required":["productId","productType","paymentChannel","productPrice"],"additionalProperties":false}},"required":["topic","event","god","background","numbers","star","name","starColor","numberColor","productId","items","info","showName","showStar","showVirtue","zodiac","houseOwnerPlanetNumber","pairedPlanetNumber","allStar","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail","product"],"additionalProperties":false},"widget":{"anyOf":[{"type":"object","properties":{"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"img":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["topicId","img"],"additionalProperties":false},{"type":"null"}]}},"required":["quota","restored","artifact"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"deepLinkCode","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/history":{"get":{"operationId":"wallpaper.history","tags":["wallpaper"],"summary":"wallpaper.history","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"createdDate":{"type":"string"},"wallpaperList":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"godCoinImg":{"type":"string"},"godName":{"type":"string"},"topicName":{"type":"string"},"godId":{"type":"string"},"topicId":{"type":"string"},"eventId":{"type":"string"},"collectionName":{"type":"string"},"virtueId":{"type":"string"},"rootType":{"type":"number"},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"items":{"type":"array","items":{"type":"string"}},"zodiacId":{"type":"string"},"houseOwnerPlanetNumber":{"anyOf":[{"type":"number"},{"type":"null"}]},"pairedPlanetNumber":{"anyOf":[{"type":"number"},{"type":"null"}]},"starDenId":{"type":"string"},"starJonId":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["id","godCoinImg","godName","topicName","godId","topicId","eventId","collectionName","virtueId","rootType","showName","showStar","showVirtue","items","zodiacId","houseOwnerPlanetNumber","pairedPlanetNumber","starDenId","starJonId","rulingStarId","backgroundImgId","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail"],"additionalProperties":false}}},"required":["createdDate","wallpaperList"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/event-detail":{"get":{"operationId":"wallpaper.eventDetail","tags":["wallpaper"],"summary":"wallpaper.eventDetail","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"title":{"type":"string"},"titleColor":{"type":"string"},"imgObject":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"index":{"type":"number"}},"required":["img","index"],"additionalProperties":false}},"bgObject":{"anyOf":[{"type":"object","properties":{"bgColor":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"opacity":{"type":"string"},"index":{"type":"number"}},"required":["color","opacity","index"],"additionalProperties":false}},"bgImg":{"type":"string"},"gold":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"opacity":{"type":"string"},"index":{"type":"number"}},"required":["color","opacity","index"],"additionalProperties":false}},"circle":{"type":"string"},"titleImg":{"type":"string"}},"required":["bgColor","bgImg","gold","circle","titleImg"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"detailImg":{"type":"string"},"virtues":{"type":"string"},"history":{"type":"string"},"legend":{"type":"string"},"worship":{"type":"string"},"godId":{"type":"string"},"wallpaperHistory":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"topic":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"eventId":{"type":"string"},"img":{"type":"string"}},"required":["id","name","eventId","img"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"background":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"zodiac":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"allStar":{"type":"object","properties":{"starDenId":{"type":"string"},"starDen":{"type":"string"},"starJonId":{"type":"string"},"starJon":{"type":"string"},"rulingStarId":{"type":"string"},"rulingStar":{"type":"string"}},"required":["starDenId","starDen","starJonId","starJon","rulingStarId","rulingStar"],"additionalProperties":false},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["id","topic","background","zodiac","houseOwnerPlanetNumber","pairedPlanetNumber","allStar","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail"],"additionalProperties":false}}},"required":["title","titleColor","imgObject","bgObject","detailImg","virtues","history","legend","worship","godId","wallpaperHistory"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"godId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/wallpaper-virtues":{"get":{"operationId":"wallpaper.virtues","tags":["wallpaper"],"summary":"wallpaper.virtues","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/wallpaper-god-virtues":{"get":{"operationId":"wallpaper.godVirtues","tags":["wallpaper"],"summary":"wallpaper.godVirtues","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"topic":{"type":"string"},"detail":{"type":"string"}},"required":["id","img","topic","detail"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"godId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/god-select-item":{"get":{"operationId":"wallpaper.godSelectItem","tags":["wallpaper"],"summary":"wallpaper.godSelectItem","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"},"fontColor":{"type":"string"},"bgImg":{"type":"string"}},"required":["id","name","img","detail","fontColor","bgImg"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"godId","in":"query","required":false,"schema":{"type":"string"}},{"name":"eventId","in":"query","required":true,"schema":{"type":"string"}},{"name":"topicId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/birthday-options":{"get":{"operationId":"wallpaper.birthdayOptions","tags":["wallpaper"],"summary":"wallpaper.birthdayOptions","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"eventId":{"type":"string"},"userBirthDay":{"anyOf":[{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},{"type":"null"}]},"days":{"type":"array","items":{"type":"object","properties":{"birthDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},"img":{"type":"string"},"isBirthDay":{"type":"boolean"},"owned":{"type":"boolean"}},"required":["birthDay","img","isBirthDay","owned"],"additionalProperties":false}},"product":{"anyOf":[{"type":"object","properties":{"productId":{"type":"string"},"productType":{"type":"string"},"paymentChannel":{"type":"string"},"productPrice":{"type":"number"}},"required":["productId","productType","paymentChannel","productPrice"],"additionalProperties":false},{"type":"null"}]}},"required":["eventId","userBirthDay","days","product"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/artifact":{"post":{"operationId":"wallpaper.artifact","tags":["wallpaper"],"summary":"wallpaper.artifact","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"quota":{"type":"boolean"},"restored":{"type":"boolean"},"artifact":{"type":"object","properties":{"topic":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"eventId":{"type":"string"},"img":{"type":"string"}},"required":["id","name","eventId","img"],"additionalProperties":false},"event":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"name":{"type":"string"},"isFree":{"type":"boolean"},"rootType":{"type":"number"},"waterMark":{"type":"string"},"titleImg":{"type":"string"},"webBigImg":{"type":"string"},"webSmallImg":{"type":"string"},"detail":{"type":"string"}},"required":["id","img","name","isFree","rootType","waterMark","titleImg","webBigImg","webSmallImg","detail"],"additionalProperties":false},"god":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"img":{"type":"string"}},"required":["id","name","detail","img"],"additionalProperties":false},"background":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"numbers":{"type":"object","properties":{"topLeft":{"type":"string"},"topRight":{"type":"string"},"bottomLeft":{"type":"string"},"bottomRight":{"type":"string"}},"required":["topLeft","topRight","bottomLeft","bottomRight"],"additionalProperties":false},"star":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"name":{"type":"string"},"starColor":{"type":"string"},"numberColor":{"type":"string"},"productId":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"artifactImg":{"type":"string"}},"required":["id","name","artifactImg"],"additionalProperties":false}},"info":{"type":"object","properties":{"collectionName":{"type":"string"},"godName":{"type":"string"},"detail":{"type":"string"}},"required":["collectionName","godName","detail"],"additionalProperties":false},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"zodiac":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"allStar":{"type":"object","properties":{"starDenId":{"type":"string"},"starDen":{"type":"string"},"starJonId":{"type":"string"},"starJon":{"type":"string"},"rulingStarId":{"type":"string"},"rulingStar":{"type":"string"}},"required":["starDenId","starDen","starJonId","starJon","rulingStarId","rulingStar"],"additionalProperties":false},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"string","const":""}]},"product":{"type":"object","properties":{"productId":{"type":"string"},"productType":{"type":"string"},"paymentChannel":{"type":"string"},"productPrice":{"type":"number"}},"required":["productId","productType","paymentChannel","productPrice"],"additionalProperties":false}},"required":["topic","event","god","background","numbers","star","name","starColor","numberColor","productId","items","info","showName","showStar","showVirtue","zodiac","houseOwnerPlanetNumber","pairedPlanetNumber","allStar","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail","product"],"additionalProperties":false},"widget":{"anyOf":[{"type":"object","properties":{"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"img":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["topicId","img"],"additionalProperties":false},{"type":"null"}]}},"required":["quota","restored","artifact"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"godId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string"},"birthDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},"topic":{"type":"string"},"virtueId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":""}]},"itemId":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"displayName":{"type":"string"},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"platform":{"type":"string","enum":["ios","android","web","other"]},"purchaseInfo":{"type":"string"},"zodiacId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"starDenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"starJonId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rulingStarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"backgroundImgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"detail":{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}}}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper":{"post":{"operationId":"wallpaper.save","tags":["wallpaper"],"summary":"wallpaper.save","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"quota":{"type":"boolean"},"restored":{"type":"boolean"},"artifact":{"type":"object","properties":{"topic":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"eventId":{"type":"string"},"img":{"type":"string"}},"required":["id","name","eventId","img"],"additionalProperties":false},"event":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"name":{"type":"string"},"isFree":{"type":"boolean"},"rootType":{"type":"number"},"waterMark":{"type":"string"},"titleImg":{"type":"string"},"webBigImg":{"type":"string"},"webSmallImg":{"type":"string"},"detail":{"type":"string"}},"required":["id","img","name","isFree","rootType","waterMark","titleImg","webBigImg","webSmallImg","detail"],"additionalProperties":false},"god":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"detail":{"type":"string"},"img":{"type":"string"}},"required":["id","name","detail","img"],"additionalProperties":false},"background":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"numbers":{"type":"object","properties":{"topLeft":{"type":"string"},"topRight":{"type":"string"},"bottomLeft":{"type":"string"},"bottomRight":{"type":"string"}},"required":["topLeft","topRight","bottomLeft","bottomRight"],"additionalProperties":false},"star":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","img","colorCode"],"additionalProperties":false},"name":{"type":"string"},"starColor":{"type":"string"},"numberColor":{"type":"string"},"productId":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"artifactImg":{"type":"string"}},"required":["id","name","artifactImg"],"additionalProperties":false}},"info":{"type":"object","properties":{"collectionName":{"type":"string"},"godName":{"type":"string"},"detail":{"type":"string"}},"required":["collectionName","godName","detail"],"additionalProperties":false},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"zodiac":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"}},"required":["id","name","img"],"additionalProperties":false},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"allStar":{"type":"object","properties":{"starDenId":{"type":"string"},"starDen":{"type":"string"},"starJonId":{"type":"string"},"starJon":{"type":"string"},"rulingStarId":{"type":"string"},"rulingStar":{"type":"string"}},"required":["starDenId","starDen","starJonId","starJon","rulingStarId","rulingStar"],"additionalProperties":false},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"energyStatus":{"type":"object","properties":{"percent":{"type":"number"},"wording":{"type":"string"}},"required":["percent","wording"],"additionalProperties":false},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"string","const":""}]},"product":{"type":"object","properties":{"productId":{"type":"string"},"productType":{"type":"string"},"paymentChannel":{"type":"string"},"productPrice":{"type":"number"}},"required":["productId","productType","paymentChannel","productPrice"],"additionalProperties":false}},"required":["topic","event","god","background","numbers","star","name","starColor","numberColor","productId","items","info","showName","showStar","showVirtue","zodiac","houseOwnerPlanetNumber","pairedPlanetNumber","allStar","createdDate","starMoveStartedAt","starMoveEndedAt","energyStatus","detail","product"],"additionalProperties":false},"widget":{"anyOf":[{"type":"object","properties":{"topicId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"img":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["topicId","img"],"additionalProperties":false},{"type":"null"}]}},"required":["quota","restored","artifact"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `payment` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"godId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string"},"birthDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","night-wednesday","thursday","friday","saturday"]},"topic":{"type":"string"},"virtueId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":""}]},"itemId":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"displayName":{"type":"string"},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"},"platform":{"type":"string","enum":["ios","android","web","other"]},"purchaseInfo":{"type":"string"},"zodiacId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanetNumber":{"type":"number"},"starDenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"starJonId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rulingStarId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"backgroundImgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdDate":{"type":"string"},"starMoveStartedAt":{"type":"string"},"starMoveEndedAt":{"type":"string"},"detail":{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}}}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/enhance-topic-test":{"post":{"operationId":"wallpaper.enhanceTopicTest","tags":["wallpaper"],"summary":"wallpaper.enhanceTopicTest","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"eventId":{"type":"string"},"name":{"type":"string"},"birthDate":{"type":"string"},"currentDate":{"type":"string"},"zodiacId":{"type":"string"},"tanuLak":{"type":"string"},"starDenID":{"type":"string"},"starJonID":{"type":"string"},"topics":{"type":"object","properties":{"hasAspect":{"type":"array","items":{"type":"object","properties":{"topicId":{"type":"string"},"topic":{"type":"string"},"topicIcon":{"type":"string"},"primaryHouse":{"type":"string"},"houseOwnerPlanet":{"type":"string"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanet":{"type":"string"},"pairedPlanetNumber":{"type":"number"},"pairGroup":{"type":"string"},"aspect":{"type":"string"},"hasAspect":{"type":"boolean"},"expireDate":{"type":"string"},"expireDateDiffDays":{"type":"number"},"detail":{"type":"string"},"starMoveDetail":{"type":"string"},"starMoveResult":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"isAlreadyCreated":{"type":"boolean"}},"required":["topicId","topic","topicIcon","primaryHouse","houseOwnerPlanet","houseOwnerPlanetNumber","pairedPlanet","pairedPlanetNumber","pairGroup","aspect","hasAspect","expireDate","expireDateDiffDays","detail","starMoveDetail","starMoveResult","rulingStarId","backgroundImgId","isAlreadyCreated"],"additionalProperties":false}},"noAspect":{"type":"array","items":{"type":"object","properties":{"topicId":{"type":"string"},"topic":{"type":"string"},"topicIcon":{"type":"string"},"primaryHouse":{"type":"string"},"houseOwnerPlanet":{"type":"string"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanet":{"type":"string"},"pairedPlanetNumber":{"type":"number"},"pairGroup":{"type":"string"},"aspect":{"type":"string"},"hasAspect":{"type":"boolean"},"expireDate":{"type":"string"},"expireDateDiffDays":{"type":"number"},"detail":{"type":"string"},"starMoveDetail":{"type":"string"},"starMoveResult":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"isAlreadyCreated":{"type":"boolean"}},"required":["topicId","topic","topicIcon","primaryHouse","houseOwnerPlanet","houseOwnerPlanetNumber","pairedPlanet","pairedPlanetNumber","pairGroup","aspect","hasAspect","expireDate","expireDateDiffDays","detail","starMoveDetail","starMoveResult","rulingStarId","backgroundImgId","isAlreadyCreated"],"additionalProperties":false}},"alreadyCreatedAspect":{"type":"array","items":{"type":"object","properties":{"topicId":{"type":"string"},"topic":{"type":"string"},"topicIcon":{"type":"string"},"primaryHouse":{"type":"string"},"houseOwnerPlanet":{"type":"string"},"houseOwnerPlanetNumber":{"type":"number"},"pairedPlanet":{"type":"string"},"pairedPlanetNumber":{"type":"number"},"pairGroup":{"type":"string"},"aspect":{"type":"string"},"hasAspect":{"type":"boolean"},"expireDate":{"type":"string"},"expireDateDiffDays":{"type":"number"},"detail":{"type":"string"},"starMoveDetail":{"type":"string"},"starMoveResult":{"type":"string"},"rulingStarId":{"type":"string"},"backgroundImgId":{"type":"string"},"isAlreadyCreated":{"type":"boolean"}},"required":["topicId","topic","topicIcon","primaryHouse","houseOwnerPlanet","houseOwnerPlanetNumber","pairedPlanet","pairedPlanetNumber","pairGroup","aspect","hasAspect","expireDate","expireDateDiffDays","detail","starMoveDetail","starMoveResult","rulingStarId","backgroundImgId","isAlreadyCreated"],"additionalProperties":false}},"hasAspectHeader":{"type":"string"},"hasAspectDetail":{"type":"string"},"topicBgImg":{"type":"string"},"numberBgImg":{"type":"string"}},"required":["hasAspect","noAspect","alreadyCreatedAspect","hasAspectHeader","hasAspectDetail","topicBgImg","numberBgImg"],"additionalProperties":false}},"required":["eventId","name","birthDate","currentDate","zodiacId","tanuLak","starDenID","starJonID","topics"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","minLength":1},"province":{"type":"string","minLength":1},"eventId":{"type":"string","minLength":1},"currentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"currentTime":{"type":"string","minLength":1},"topicId":{"type":"string"}},"required":["name","birthDate","birthTime","province","eventId","currentDate","currentTime"]}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/enhance-topic-predict-test":{"post":{"operationId":"wallpaper.enhanceTopicPredictTest","tags":["wallpaper"],"summary":"wallpaper.enhanceTopicPredictTest","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"detail":{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},"prompt":{"anyOf":[{"type":"object","properties":{"tanuLak":{"type":"string"},"birthStar":{"type":"string"},"transitStar":{"type":"string"},"topic":{"type":"string"},"ascendant":{"type":"string"}},"required":["tanuLak","birthStar","transitStar","topic","ascendant"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["detail","prompt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"429":{"description":"RATE_LIMITED — too many requests in the `ai` bucket; wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"birthTime":{"type":"string","minLength":1},"province":{"type":"string","minLength":1},"eventId":{"type":"string","minLength":1},"currentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"currentTime":{"type":"string","minLength":1},"topicId":{"type":"string"}},"required":["name","birthDate","birthTime","province","eventId","currentDate","currentTime"]}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/event":{"get":{"operationId":"wallpaper.boEventList","tags":["wallpaper"],"summary":"wallpaper.boEventList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"},"free":{"type":"boolean"},"img":{"type":"string"},"quota":{"type":"number"},"quotaType":{"type":"string"},"fixStarColor":{"type":"string"},"fixNumberColor":{"type":"string"},"index":{"type":"number"},"rootType":{"type":"number"}},"required":["id","name","active","free","img","quota","quotaType","fixStarColor","fixNumberColor","index","rootType"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boEventCreate","tags":["wallpaper"],"summary":"wallpaper.boEventCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"active":{"type":"string","enum":["true","false"]},"free":{"type":"string","enum":["true","false"]},"quota":{"type":"number"},"quotaType":{"type":"string","enum":["daily","monthly","yearly","weekly","once"]},"fixStarColor":{"type":"string"},"fixNumberColor":{"type":"string"},"index":{"type":"number"},"rootType":{"type":"number"},"img":{"type":"string"}},"required":["name"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boEventUpdate","tags":["wallpaper"],"summary":"wallpaper.boEventUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"active":{"type":"string","enum":["true","false"]},"free":{"type":"string","enum":["true","false"]},"quota":{"type":"number"},"quotaType":{"type":"string","enum":["daily","monthly","yearly","weekly","once"]},"fixStarColor":{"type":"string"},"fixNumberColor":{"type":"string"},"index":{"type":"number"},"rootType":{"type":"number"},"img":{"type":"string"},"id":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boEventDelete","tags":["wallpaper"],"summary":"wallpaper.boEventDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/god":{"get":{"operationId":"wallpaper.boGodList","tags":["wallpaper"],"summary":"wallpaper.boGodList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"eventId":{"type":"string"},"thumbnail":{"type":"string"},"active":{"type":"boolean"},"virtues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"topic":{"type":"string"},"detail":{"type":"string"},"virtuesImg":{"type":"string"}},"required":["id","img","topic","detail","virtuesImg"],"additionalProperties":false}}},"required":["id","name","img","eventId","thumbnail","active","virtues"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"eventId","in":"query","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boGodCreate","tags":["wallpaper"],"summary":"wallpaper.boGodCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"active":{"type":"string","enum":["true","false"]},"eventId":{"type":"string"},"virtues":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["name"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boGodUpdate","tags":["wallpaper"],"summary":"wallpaper.boGodUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"active":{"type":"string","enum":["true","false"]},"eventId":{"type":"string"},"virtues":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"},"id":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boGodDelete","tags":["wallpaper"],"summary":"wallpaper.boGodDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/banner":{"get":{"operationId":"wallpaper.boBannerList","tags":["wallpaper"],"summary":"wallpaper.boBannerList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"img":{"type":"string"},"active":{"type":"boolean"}},"required":["id","img","active"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boBannerCreate","tags":["wallpaper"],"summary":"wallpaper.boBannerCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"active":{"type":"string","enum":["true","false"]},"img":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boBannerUpdate","tags":["wallpaper"],"summary":"wallpaper.boBannerUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"img":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boBannerDelete","tags":["wallpaper"],"summary":"wallpaper.boBannerDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/background":{"get":{"operationId":"wallpaper.boBackgroundList","tags":["wallpaper"],"summary":"wallpaper.boBackgroundList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"godId":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","godId","img","thumbnail","colorCode"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"godId","in":"query","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boBackgroundCreate","tags":["wallpaper"],"summary":"wallpaper.boBackgroundCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"godId":{"type":"string"},"colorCode":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["godId"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boBackgroundUpdate","tags":["wallpaper"],"summary":"wallpaper.boBackgroundUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"godId":{"type":"string"},"colorCode":{"type":"string"},"img":{"type":"string"},"thumbnail":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boBackgroundDelete","tags":["wallpaper"],"summary":"wallpaper.boBackgroundDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/item":{"get":{"operationId":"wallpaper.boItemList","tags":["wallpaper"],"summary":"wallpaper.boItemList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"godId":{"type":"string"},"img":{"type":"string"},"detail":{"type":"string"},"fontColor":{"type":"string"},"bgImg":{"type":"string"},"artifactImg":{"type":"string"},"active":{"type":"boolean"}},"required":["id","name","godId","img","detail","fontColor","bgImg","artifactImg","active"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"godId","in":"query","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boItemCreate","tags":["wallpaper"],"summary":"wallpaper.boItemCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"godId":{"type":"string"},"name":{"type":"string","minLength":1},"detail":{"type":"string"},"fontColor":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"img":{"type":"string"},"bgImg":{"type":"string"},"artifactImg":{"type":"string"}},"required":["godId","name"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boItemUpdate","tags":["wallpaper"],"summary":"wallpaper.boItemUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"godId":{"type":"string"},"name":{"type":"string","minLength":1},"detail":{"type":"string"},"fontColor":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"img":{"type":"string"},"bgImg":{"type":"string"},"artifactImg":{"type":"string"},"id":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boItemDelete","tags":["wallpaper"],"summary":"wallpaper.boItemDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/number":{"get":{"operationId":"wallpaper.boNumberList","tags":["wallpaper"],"summary":"wallpaper.boNumberList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"dayOfWeek":{"type":"string"},"topicId":{"type":"string"},"topicName":{"type":"string"},"first":{"type":"number"},"second":{"type":"number"},"third":{"type":"number"},"forth":{"type":"number"}},"required":["id","dayOfWeek","topicId","topicName","first","second","third","forth"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"topicId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boNumberCreate","tags":["wallpaper"],"summary":"wallpaper.boNumberCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dayOfWeek":{"type":"string"},"topicId":{"type":"string"},"topicName":{"type":"string"},"first":{"type":"number"},"second":{"type":"number"},"third":{"type":"number"},"forth":{"type":"number"}}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boNumberUpdate","tags":["wallpaper"],"summary":"wallpaper.boNumberUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dayOfWeek":{"type":"string"},"topicId":{"type":"string"},"topicName":{"type":"string"},"first":{"type":"number"},"second":{"type":"number"},"third":{"type":"number"},"forth":{"type":"number"},"id":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boNumberDelete","tags":["wallpaper"],"summary":"wallpaper.boNumberDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/topic":{"get":{"operationId":"wallpaper.boTopicList","tags":["wallpaper"],"summary":"wallpaper.boTopicList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"eventId":{"type":"string"},"active":{"type":"boolean"},"index":{"type":"number"},"settingColor":{"anyOf":[{"type":"object","properties":{"bgActiveColor":{"type":"string"},"bgInactiveColor":{"type":"string"},"fontActiveColor":{"type":"string"},"iconActiveColor":{"type":"string"},"fontInactiveColor":{"type":"string"},"iconInactiveColor":{"type":"string"}},"required":["bgActiveColor","bgInactiveColor","fontActiveColor","iconActiveColor","fontInactiveColor","iconInactiveColor"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["id","name","img","eventId","active","index","settingColor"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"eventId","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boTopicCreate","tags":["wallpaper"],"summary":"wallpaper.boTopicCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"eventId":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"index":{"type":"number"},"settingColor":{"type":"string"},"img":{"type":"string"}},"required":["name","eventId"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boTopicUpdate","tags":["wallpaper"],"summary":"wallpaper.boTopicUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"index":{"type":"number"},"settingColor":{"type":"string"},"img":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boTopicDelete","tags":["wallpaper"],"summary":"wallpaper.boTopicDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/topic-number":{"get":{"operationId":"wallpaper.boTopicNumberList","tags":["wallpaper"],"summary":"wallpaper.boTopicNumberList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"eventId":{"type":"string"},"active":{"type":"boolean"},"index":{"type":"number"},"settingColor":{"anyOf":[{"type":"object","properties":{"bgActiveColor":{"type":"string"},"bgInactiveColor":{"type":"string"},"fontActiveColor":{"type":"string"},"iconActiveColor":{"type":"string"},"fontInactiveColor":{"type":"string"},"iconInactiveColor":{"type":"string"}},"required":["bgActiveColor","bgInactiveColor","fontActiveColor","iconActiveColor","fontInactiveColor","iconInactiveColor"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"dayOfWeek":{"type":"string"},"topicId":{"type":"string"},"topicName":{"type":"string"},"first":{"type":"number"},"second":{"type":"number"},"third":{"type":"number"},"forth":{"type":"number"}},"required":["id","dayOfWeek","topicId","topicName","first","second","third","forth"],"additionalProperties":false}}},"required":["id","name","img","eventId","active","index","settingColor","numbers"],"additionalProperties":false}}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boTopicNumberCreate","tags":["wallpaper"],"summary":"wallpaper.boTopicNumberCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"eventId":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"index":{"type":"number"},"settingColor":{"type":"string"},"img":{"type":"string"},"numbers":{"type":"string"}},"required":["name","eventId"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boTopicNumberUpdate","tags":["wallpaper"],"summary":"wallpaper.boTopicNumberUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"active":{"type":"string","enum":["true","false"]},"index":{"type":"number"},"settingColor":{"type":"string"},"img":{"type":"string"},"numbers":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boTopicNumberDelete","tags":["wallpaper"],"summary":"wallpaper.boTopicNumberDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/star":{"get":{"operationId":"wallpaper.boStarList","tags":["wallpaper"],"summary":"wallpaper.boStarList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","name","img","colorCode"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"color","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boStarCreate","tags":["wallpaper"],"summary":"wallpaper.boStarCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"colorCode":{"type":"string"}},"required":["name","colorCode"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boStarUpdate","tags":["wallpaper"],"summary":"wallpaper.boStarUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"colorCode":{"type":"string"},"img":{"type":"string"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boStarDelete","tags":["wallpaper"],"summary":"wallpaper.boStarDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/star/names":{"get":{"operationId":"wallpaper.boStarNames","tags":["wallpaper"],"summary":"wallpaper.boStarNames","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"}}},"required":["names"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/star/group":{"get":{"operationId":"wallpaper.boStarGroup","tags":["wallpaper"],"summary":"wallpaper.boStarGroup","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"totalColors":{"type":"number"},"colors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"colorCode":{"type":"string"}},"required":["id","name","img","colorCode"],"additionalProperties":false}}},"required":["name","totalColors","colors"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"color","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/long-page":{"get":{"operationId":"wallpaper.boLongPageList","tags":["wallpaper"],"summary":"wallpaper.boLongPageList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"godId":{"type":"string"},"imgObject":{"type":"array","items":{"type":"object","properties":{"img":{"type":"string"},"index":{"type":"number"}},"required":["img","index"],"additionalProperties":false}},"active":{"type":"boolean"},"title":{"type":"string"},"titleColor":{"type":"string"},"bgObject":{"anyOf":[{"type":"object","properties":{"bgColor":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"opacity":{"type":"string"},"index":{"type":"number"}},"required":["color","opacity","index"],"additionalProperties":false}},"bgImg":{"type":"string"},"gold":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"opacity":{"type":"string"},"index":{"type":"number"}},"required":["color","opacity","index"],"additionalProperties":false}},"circle":{"type":"string"},"detailImg":{"type":"string"}},"required":["bgColor","bgImg","gold","circle","detailImg"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"history":{"type":"string"},"legend":{"type":"string"},"virtues":{"type":"string"},"worship":{"type":"string"}},"required":["id","eventId","godId","imgObject","active","title","titleColor","bgObject","history","legend","virtues","worship"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"godId","in":"query","required":false,"schema":{"type":"string"}},{"name":"eventId","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]},"post":{"operationId":"wallpaper.boLongPageCreate","tags":["wallpaper"],"summary":"wallpaper.boLongPageCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"eventId":{"type":"string"},"godId":{"type":"string"},"bgObject":{"type":"string"},"title":{"type":"string"},"titleColor":{"type":"string"},"history":{"type":"string"},"legend":{"type":"string"},"virtues":{"type":"string"},"worship":{"type":"string"}},"required":["eventId"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boLongPageUpdate","tags":["wallpaper"],"summary":"wallpaper.boLongPageUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"godId":{"type":"string"},"imgObject":{"type":"string"},"bgObject":{"type":"string"},"title":{"type":"string"},"titleColor":{"type":"string"},"history":{"type":"string"},"legend":{"type":"string"},"virtues":{"type":"string"},"worship":{"type":"string"},"active":{"type":"string","enum":["true","false"]}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boLongPageDelete","tags":["wallpaper"],"summary":"wallpaper.boLongPageDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/detail/list":{"get":{"operationId":"wallpaper.boDetailList","tags":["wallpaper"],"summary":"wallpaper.boDetailList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"godId":{"type":"string"},"virtuesId":{"type":"string"},"itemId":{"type":"string"},"detail":{"type":"string"},"active":{"type":"boolean"},"wallpaperTopic":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"index":{"type":"number"}},"required":["id","name","img","index"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]}},"required":["id","godId","virtuesId","itemId","detail","active","wallpaperTopic"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"godId","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/detail/unmatched":{"get":{"operationId":"wallpaper.boDetailUnmatched","tags":["wallpaper"],"summary":"wallpaper.boDetailUnmatched","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"unmatched":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"img":{"type":"string"},"index":{"type":"number"}},"required":["id","name","img","index"],"additionalProperties":false}}},"required":["unmatched"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"godId","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/detail":{"post":{"operationId":"wallpaper.boDetailCreate","tags":["wallpaper"],"summary":"wallpaper.boDetailCreate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"godId":{"type":"string"},"virtuesId":{"type":"string"},"itemId":{"type":"string"},"detail":{"type":"string"}},"required":["godId","virtuesId"]}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"wallpaper.boDetailUpdate","tags":["wallpaper"],"summary":"wallpaper.boDetailUpdate","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"detail":{"type":"string"},"itemId":{"type":"string"},"active":{"type":"boolean"}},"required":["id"]}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"wallpaper.boDetailDelete","tags":["wallpaper"],"summary":"wallpaper.boDetailDelete","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}}}}}},"security":[{"bearerAuth":[]}]}},"/wallpaper/backoffice/history":{"get":{"operationId":"wallpaper.boHistoryList","tags":["wallpaper"],"summary":"wallpaper.boHistoryList","description":"Auth: requires role admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"topic":{"type":"string"},"god":{"type":"string"},"eventId":{"type":"string"},"detail":{"anyOf":[{"type":"object","properties":{"powerName":{"type":"string"},"description":{"type":"string"}},"required":["powerName","description"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"fullname":{"type":"string"},"item":{"type":"array","items":{"type":"string"}},"showName":{"type":"boolean"},"showStar":{"type":"boolean"},"showVirtue":{"type":"boolean"}},"required":["id","userId","topic","god","eventId","detail","fullname","item","showName","showStar","showVirtue"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"eventId","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}]}},"/event/register":{"post":{"operationId":"event.register","tags":["event"],"summary":"event.register","description":"Auth: requires a valid access token.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":201},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"code":{"type":"string"},"codeNumber":{"type":"string"},"orderCode":{"type":"string"},"qrCodeUrl":{"type":"string"}},"required":["code","codeNumber","qrCodeUrl"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"phoneNumber":{"type":"string","pattern":"^0\\d{9}$"}},"required":["eventId","name","phoneNumber"]}}}},"security":[{"bearerAuth":[]}]}},"/event/check-user-event":{"get":{"operationId":"event.checkUserEvent","tags":["event"],"summary":"event.checkUserEvent","description":"Auth: requires a valid access token.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"user":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"nickName":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"gender":{"type":"string"},"birthDate":{"type":"string"}},"required":["firstName","lastName","nickName","email","phoneNumber","gender","birthDate"],"additionalProperties":false},"isRegistered":{"type":"boolean"},"canRegister":{"type":"boolean"},"code":{"type":"string"},"codeNumber":{"type":"string"},"qrCodeUrl":{"type":"string"},"orderCode":{"type":"string"},"registeredName":{"type":"string"},"status":{"anyOf":[{"type":"string","enum":["registered","confirmed","cancelled"]},{"type":"string","const":""}]},"confirmedAt":{"type":"string"},"registeredCount":{"type":"number"},"countLimitRegister":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["user","isRegistered","canRegister","code","codeNumber","qrCodeUrl"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"security":[{"bearerAuth":[]}]}},"/event-banner/backoffice/list-event":{"get":{"operationId":"eventBanner.listPreRegisterEvents","tags":["eventBanner"],"summary":"eventBanner.listPreRegisterEvents","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"detail":{"type":"string"},"skuCode":{"type":"string"},"img":{"type":"string"},"link":{"type":"string"},"active":{"type":"boolean"},"isPreRegister":{"type":"boolean"},"countLimitRegister":{"anyOf":[{"type":"number"},{"type":"null"}]},"countLimitConfirm":{"anyOf":[{"type":"number"},{"type":"null"}]},"registeredCount":{"type":"number"},"confirmedCount":{"type":"number"},"createdAt":{"type":"string"}},"required":["id","detail","skuCode","img","link","active","isPreRegister","countLimitRegister","countLimitConfirm","registeredCount","confirmedCount","createdAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"default":"1","type":"string","pattern":"^\\d+$"}},{"name":"limit","in":"query","required":false,"schema":{"default":"10","type":"string","pattern":"^\\d+$"}}],"security":[{"bearerAuth":[]}]}},"/event-banner/backoffice/pre-register":{"get":{"operationId":"eventBanner.listPreRegisters","tags":["eventBanner"],"summary":"eventBanner.listPreRegisters","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"phoneNumber":{"type":"string"},"orderCode":{"type":"string"},"qrCodeUrl":{"type":"string"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"confirmedAt":{"type":"string"},"createdAt":{"type":"string"},"code":{"type":"string"},"codeNumber":{"type":"string"}},"required":["id","name","phoneNumber","orderCode","qrCodeUrl","status","confirmedAt","createdAt","code","codeNumber"],"additionalProperties":false}},"meta":{"type":"object","properties":{"totalPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalPages","currentPage","pageSize"],"additionalProperties":false}},"required":["status","success","message","data","meta"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"page","in":"query","required":false,"schema":{"default":"1","type":"string","pattern":"^\\d+$"}},{"name":"limit","in":"query","required":false,"schema":{"default":"10","type":"string","pattern":"^\\d+$"}}],"security":[{"bearerAuth":[]}]}},"/event-banner/backoffice/pre-register/detail":{"get":{"operationId":"eventBanner.preRegisterDetail","tags":["eventBanner"],"summary":"eventBanner.preRegisterDetail","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"phoneNumber":{"type":"string"},"orderCode":{"type":"string"},"qrCodeUrl":{"type":"string"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"confirmedAt":{"type":"string"},"createdAt":{"type":"string"},"confirmedBy":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","phoneNumber","orderCode","qrCodeUrl","status","confirmedAt","createdAt","confirmedBy","updatedAt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"parameters":[{"name":"eventId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"orderCode","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9A-Fa-f]{6}$"}}],"security":[{"bearerAuth":[]}]}},"/event-banner/backoffice/pre-register/confirm":{"patch":{"operationId":"eventBanner.confirmPreRegister","tags":["eventBanner"],"summary":"eventBanner.confirmPreRegister","description":"Auth: requires role admin / super_admin.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"number","const":200},"success":{"type":"boolean","const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"orderCode":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["registered","confirmed","cancelled"]},"confirmedAt":{"type":"string"}},"required":["orderCode","name","status","confirmedAt"],"additionalProperties":false}},"required":["status","success","message","data"],"additionalProperties":false}}}},"default":{"description":"Error envelope — `{ error: { code, message, details? } }`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderCode":{"type":"string","pattern":"^[0-9A-Fa-f]{6}$"}},"required":["eventId","orderCode"]}}}},"security":[{"bearerAuth":[]}]}}}}