{"openapi":"3.0.0","paths":{"/":{"get":{"operationId":"AppController_greeting","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}}}},"tags":["App"]}},"/healthcheck":{"get":{"operationId":"HealthController_check","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}}}},"tags":["Health"]}},"/auth/identify":{"post":{"operationId":"AuthController_identify","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifyExternalUser"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"tags":["auth"]}},"/auth/login":{"post":{"operationId":"AuthController_login","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigninDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"tags":["auth"]}},"/auth/change_password":{"post":{"operationId":"AuthController_changePassword","parameters":[{"name":"authorization","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"security":[{"refreshToken":[]},{"refreshToken":[]}],"tags":["auth"]}},"/auth/reset_password":{"post":{"operationId":"AuthController_resetPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordDto"}}}},"responses":{"204":{"description":""}},"tags":["auth"]}},"/auth/reset_password/set_new":{"post":{"operationId":"AuthController_resetPasswordSetNew","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordSetNewDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"tags":["auth"]}},"/auth/reset_password/verify_token":{"post":{"operationId":"AuthController_resetPasswordVerifyToken","parameters":[],"responses":{"204":{"description":""}},"tags":["auth"]}},"/auth/confirm_invite":{"post":{"operationId":"AuthController_confirmInvite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmInviteDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"tags":["auth"]}},"/auth/verify_email":{"post":{"operationId":"AuthController_verifyEmail","parameters":[],"responses":{"200":{"description":""}},"tags":["auth"]}},"/auth/signup":{"post":{"operationId":"AuthController_signup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"tags":["auth"]}},"/auth/resend_email_verification":{"post":{"operationId":"AuthController_resendEmailVerification","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendEmailVerificationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"tags":["auth"]}},"/auth/refresh":{"post":{"operationId":"AuthController_refresh","parameters":[{"name":"authorization","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"security":[{"refreshToken":[]},{"refreshToken":[]}],"tags":["auth"]}},"/auth/logout":{"post":{"operationId":"AuthController_logout","parameters":[],"responses":{"204":{"description":""}},"security":[{"refreshToken":[]},{"refreshToken":[]}],"tags":["auth"]}},"/auth/validate_email":{"post":{"operationId":"AuthController_validateEmail","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateEmailDto"}}}},"responses":{"204":{"description":""},"400":{"description":""},"409":{"description":""}},"tags":["auth"]}},"/auth/sign_tos":{"post":{"operationId":"AuthController_signTos","parameters":[],"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]}},"/auth/payout_email":{"patch":{"operationId":"AuthController_updatePayoutEmail","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePayoutEmailDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePayoutEmailEntity"}}}}},"security":[{"access-token":[]}],"tags":["auth"]}},"/auth/payout_email_verification":{"post":{"operationId":"AuthController_payoutEmailVerification","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutEmailVerificationDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]}},"/auth/microsoft_rewards":{"post":{"operationId":"AuthController_microsoftRewards","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrosoftRewardsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsEntity"}}}}},"security":[{"access-token":[]}],"tags":["auth"]}},"/admin/auth/invite":{"post":{"operationId":"AdminController_invite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteUserDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]}},"/admin/auth/users":{"get":{"operationId":"AdminController_list","parameters":[{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersEntity"}}}}},"security":[{"access-token":[]}],"tags":["auth"]}},"/admin/auth/users/{userId}/set_creator":{"post":{"operationId":"AdminController_setCreator","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetCreatorDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]}},"/admin/auth/users/{userId}":{"patch":{"operationId":"AdminController_updateUser","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]}},"/superadmin/auth/role/{userId}":{"post":{"operationId":"SuperAdminController_addRole","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRoleDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]},"delete":{"operationId":"SuperAdminController_deleteRole","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRoleDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["auth"]}},"/privacy-policy/{language}":{"get":{"operationId":"LegalController_privacy","parameters":[{"name":"language","required":true,"in":"path","schema":{}}],"responses":{"200":{"description":""}},"tags":["Legal"]}},"/rules/{language}":{"get":{"operationId":"LegalController_rules","parameters":[{"name":"language","required":true,"in":"path","schema":{}}],"responses":{"200":{"description":""}},"tags":["Legal"]}},"/tos/{language}":{"get":{"operationId":"LegalController_tos","parameters":[{"name":"language","required":true,"in":"path","schema":{}}],"responses":{"200":{"description":""}},"tags":["Legal"]}},"/promotional-rules/{language}":{"get":{"operationId":"LegalController_promotional","parameters":[{"name":"language","required":true,"in":"path","schema":{}}],"responses":{"200":{"description":""}},"tags":["Legal"]}},"/business-service-terms/{language}":{"get":{"operationId":"LegalController_businessServiceTerms","parameters":[{"name":"language","required":true,"in":"path","schema":{}}],"responses":{"200":{"description":""}},"tags":["Legal"]}},"/auth/apple":{"get":{"operationId":"socialControllerAuthapple","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/apple/callback":{"get":{"operationId":"socialControllerAuthCallbackGetapple","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]},"post":{"operationId":"socialControllerAuthCallbackPostapple","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/facebook":{"get":{"operationId":"socialControllerAuthfacebook","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/facebook/callback":{"get":{"operationId":"socialControllerAuthCallbackGetfacebook","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]},"post":{"operationId":"socialControllerAuthCallbackPostfacebook","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/google":{"get":{"operationId":"socialControllerAuthgoogle","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/google/callback":{"get":{"operationId":"socialControllerAuthCallbackGetgoogle","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]},"post":{"operationId":"socialControllerAuthCallbackPostgoogle","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/microsoft":{"get":{"operationId":"socialControllerAuthmicrosoft","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/auth/microsoft/callback":{"get":{"operationId":"socialControllerAuthCallbackGetmicrosoft","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]},"post":{"operationId":"socialControllerAuthCallbackPostmicrosoft","parameters":[],"responses":{"200":{"description":""}},"summary":"","tags":["auth"]}},"/internal/user/info":{"get":{"operationId":"InternalController_userInfo","parameters":[{"name":"token","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInfo"}}}}},"security":[{"x-api-key":[]}],"tags":["internal"]}},"/internal/users/find":{"post":{"operationId":"InternalController_FindUsers","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindUserslDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Profile"}}}}}},"security":[{"x-api-key":[]}],"tags":["internal"]}},"/autogame/upload":{"post":{"operationId":"AutogameController_createUpload","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/polly/voice":{"post":{"operationId":"PollyController_voice","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SynthesizeSpeechDto"}}}},"responses":{"200":{"description":"","content":{"audio/mp3":{"schema":{"type":"string","format":"binary"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/polly/voice-asset":{"post":{"operationId":"PollyController_voiceAsset","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePollyAssetDto"}}}},"responses":{"200":{"description":""}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/polly/speech_marks":{"post":{"operationId":"PollyController_speechMarks","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SynthesizeSpeechDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSpeechMark"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/polly":{"get":{"operationId":"PollyController_describeVoices","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVoices"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/google_search":{"get":{"operationId":"GoogleSearchController_search","parameters":[{"name":"c2coff","required":false,"in":"query","description":"Enables or disables [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch). The default value for this parameter is 0 (zero), meaning that the feature is enabled. Supported values are: * `1`: Disabled * `0`: Enabled (default)","schema":{"type":"string"}},{"name":"cr","required":false,"in":"query","description":"Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#booleanOperators) in the cr parameter's value. Google Search determines the country of a document by analyzing: * the top-level domain (TLD) of the document's URL * the geographic location of the Web server's IP address See the [Country Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) page for a list of valid values for this parameter.","schema":{"type":"string"}},{"name":"cx","required":false,"in":"query","description":"The Programmable Search Engine ID to use for this request.","schema":{"type":"string"}},{"name":"dateRestrict","required":false,"in":"query","description":"Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years.","schema":{"type":"string"}},{"name":"exactTerms","required":false,"in":"query","description":"Identifies a phrase that all documents in the search results must contain.","schema":{"type":"string"}},{"name":"excludeTerms","required":false,"in":"query","description":"Identifies a word or phrase that should not appear in any documents in the search results.","schema":{"type":"string"}},{"name":"fileType","required":false,"in":"query","description":"Restricts results to files of a specified extension. A list of file types indexable by Google can be found in Search Console [Help Center](https://support.google.com/webmasters/answer/35287).","schema":{"type":"string"}},{"name":"filter","required":false,"in":"query","description":"Controls turning on or off the duplicate content filter. * See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Note that host crowding filtering applies only to multi-site searches. * By default, Google applies filtering to all search results to improve the quality of those results. Acceptable values are: * `0`: Turns off duplicate content filter. * `1`: Turns on duplicate content filter.","schema":{"type":"string"}},{"name":"gl","required":false,"in":"query","description":"Geolocation of end user. * The `gl` parameter value is a two-letter country code. The `gl` parameter boosts search results whose country of origin matches the parameter value. See the [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) page for a list of valid values. * Specifying a `gl` parameter value should lead to more relevant results. This is particularly true for international customers and, even more specifically, for customers in English- speaking countries other than the United States.","schema":{"type":"string"}},{"name":"googlehost","required":false,"in":"query","description":"**Deprecated**. Use the `gl` parameter for a similar effect. The local Google domain (for example, google.com, google.de, or google.fr) to use to perform the search.","schema":{"type":"string"}},{"name":"highRange","required":false,"in":"query","description":"Specifies the ending value for a search range. * Use `lowRange` and `highRange` to append an inclusive search range of `lowRange...highRange` to the query.","schema":{"type":"string"}},{"name":"hl","required":false,"in":"query","description":"Sets the user interface language. * Explicitly setting this parameter improves the performance and the quality of your search results. * See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages.","schema":{"type":"string"}},{"name":"hq","required":false,"in":"query","description":"Appends the specified query terms to the query, as if they were combined with a logical AND operator.","schema":{"type":"string"}},{"name":"imgColorType","required":false,"in":"query","description":"Returns black and white, grayscale, transparent, or color images. Acceptable values are: * `\"color\"` * `\"gray\"` * `\"mono\"`: black and white * `\"trans\"`: transparent background","schema":{"type":"string"}},{"name":"imgDominantColor","required":false,"in":"query","description":"Returns images of a specific dominant color. Acceptable values are: * `\"black\"` * `\"blue\"` * `\"brown\"` * `\"gray\"` * `\"green\"` * `\"orange\"` * `\"pink\"` * `\"purple\"` * `\"red\"` * `\"teal\"` * `\"white\"` * `\"yellow\"`","schema":{"type":"string"}},{"name":"imgSize","required":false,"in":"query","description":"Returns images of a specified size. Acceptable values are: * `\"huge\"` * `\"icon\"` * `\"large\"` * `\"medium\"` * `\"small\"` * `\"xlarge\"` * `\"xxlarge\"`","schema":{"type":"string"}},{"name":"imgType","required":false,"in":"query","description":"Returns images of a type. Acceptable values are: * `\"clipart\"` * `\"face\"` * `\"lineart\"` * `\"stock\"` * `\"photo\"` * `\"animated\"`","schema":{"type":"string"}},{"name":"linkSite","required":false,"in":"query","description":"Specifies that all search results should contain a link to a particular URL.","schema":{"type":"string"}},{"name":"lowRange","required":false,"in":"query","description":"Specifies the starting value for a search range. Use `lowRange` and `highRange` to append an inclusive search range of `lowRange...highRange` to the query.","schema":{"type":"string"}},{"name":"lr","required":false,"in":"query","description":"Restricts the search to documents written in a particular language (e.g., `lr=lang_ja`). Acceptable values are: * `\"lang_ar\"`: Arabic * `\"lang_bg\"`: Bulgarian * `\"lang_ca\"`: Catalan * `\"lang_cs\"`: Czech * `\"lang_da\"`: Danish * `\"lang_de\"`: German * `\"lang_el\"`: Greek * `\"lang_en\"`: English * `\"lang_es\"`: Spanish * `\"lang_et\"`: Estonian * `\"lang_fi\"`: Finnish * `\"lang_fr\"`: French * `\"lang_hr\"`: Croatian * `\"lang_hu\"`: Hungarian * `\"lang_id\"`: Indonesian * `\"lang_is\"`: Icelandic * `\"lang_it\"`: Italian * `\"lang_iw\"`: Hebrew * `\"lang_ja\"`: Japanese * `\"lang_ko\"`: Korean * `\"lang_lt\"`: Lithuanian * `\"lang_lv\"`: Latvian * `\"lang_nl\"`: Dutch * `\"lang_no\"`: Norwegian * `\"lang_pl\"`: Polish * `\"lang_pt\"`: Portuguese * `\"lang_ro\"`: Romanian * `\"lang_ru\"`: Russian * `\"lang_sk\"`: Slovak * `\"lang_sl\"`: Slovenian * `\"lang_sr\"`: Serbian * `\"lang_sv\"`: Swedish * `\"lang_tr\"`: Turkish * `\"lang_zh-CN\"`: Chinese (Simplified) * `\"lang_zh-TW\"`: Chinese (Traditional)","schema":{"type":"string"}},{"name":"num","required":false,"in":"query","description":"Number of search results to return. * Valid values are integers between 1 and 10, inclusive.","schema":{"type":"number"}},{"name":"orTerms","required":false,"in":"query","description":"Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms.","schema":{"type":"string"}},{"name":"q","required":true,"in":"query","description":"Query","schema":{"type":"string"}},{"name":"relatedSite","required":false,"in":"query","description":"Specifies that all search results should be pages that are related to the specified URL.","schema":{"type":"string"}},{"name":"rights","required":false,"in":"query","description":"Filters based on licensing. Supported values include: `cc_publicdomain`, `cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and combinations of these. See [typical combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).","schema":{"type":"string"}},{"name":"safe","required":false,"in":"query","description":"Search safety level. Acceptable values are: * `\"active\"`: Enables SafeSearch filtering. * `\"off\"`: Disables SafeSearch filtering. (default)","schema":{"type":"string"}},{"name":"searchType","required":false,"in":"query","description":"Specifies the search type: `image`. If unspecified, results are limited to webpages. Acceptable values are: * `\"image\"`: custom image search.","schema":{"type":"string"}},{"name":"siteSearch","required":false,"in":"query","description":"Specifies a given site which should always be included or excluded from results (see `siteSearchFilter` parameter, below).","schema":{"type":"string"}},{"name":"siteSearchFilter","required":false,"in":"query","description":"Controls whether to include or exclude results from the site named in the `siteSearch` parameter. Acceptable values are: * `\"e\"`: exclude * `\"i\"`: include","schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).","schema":{"type":"string"}},{"name":"start","required":false,"in":"query","description":"The index of the first result to return. The default number of results per page is 10, so `&start=11` would start at the top of the second page of results. **Note**: The JSON API will never return more than 100 results, even if more than 100 documents match the query, so setting the sum of `start + num` to a number greater than 100 will produce an error. Also note that the maximum value for `num` is 10.","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSearch"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]},"post":{"operationId":"GoogleSearchController_insert","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertRawSearchDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSearch"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/google_search/{id}":{"get":{"operationId":"GoogleSearchController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSearch"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/openai/chat_completions":{"post":{"operationId":"OpenAIController_chatCompletionCreate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/scraper":{"get":{"operationId":"ScraperController_scrape","parameters":[{"name":"url","required":true,"in":"query","schema":{"format":"uri","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParsedDocument"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/proxy":{"get":{"operationId":"ProxyController_proxy","parameters":[{"name":"url","required":true,"in":"query","schema":{"format":"uri","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/remotion/render":{"post":{"operationId":"RemotionController_render","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/chat-history":{"post":{"operationId":"ChatHistoryController_createChatHistory","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChatHistoryDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatHistory"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]},"get":{"operationId":"ChatHistoryController_listChatHistories","parameters":[{"name":"creatorId","required":true,"in":"query","schema":{"type":"string"}},{"name":"gameCreated","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatHistoryList"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/chat-history/{id}":{"get":{"operationId":"ChatHistoryController_GetChatHistoryById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatHistory"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]},"patch":{"operationId":"ChatHistoryController_updateChatHistory","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateChatHistoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatHistory"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article":{"post":{"operationId":"ArticleController_createArticle","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts/{id}/game_index/{gameIndex}":{"get":{"operationId":"ArticleController_draftById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"gameIndex","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameDraft"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts":{"get":{"operationId":"ArticleController_listGameDrafts","parameters":[{"name":"state","required":true,"in":"query","schema":{"$ref":"#/components/schemas/GameDraftState"}},{"name":"gameType","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameType"}},{"name":"id","required":false,"in":"query","schema":{"type":"string"}},{"name":"text","required":false,"in":"query","schema":{"type":"string"}},{"name":"gameIndex","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"systemMessageNames","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"lock","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"articleId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGameDraft"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts/versions":{"get":{"operationId":"ArticleController_listGameDraftVersions","parameters":[{"name":"id","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGameDraftVersion"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts/{id}":{"post":{"operationId":"ArticleController_createDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameDraft"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts/{id}/game_index/{gameIndex}/set_state":{"post":{"operationId":"ArticleController_setState","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"gameIndex","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetStateDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts/{id}/game_index/{gameIndex}/version":{"post":{"operationId":"ArticleController_newVersion","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"gameIndex","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewVersionDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/{id}":{"get":{"operationId":"ArticleController_articleById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/article/drafts/{id}/game_index/{gameIndex}/game":{"post":{"operationId":"ArticleController_createGame","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"gameIndex","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameDto"}}}},"responses":{"201":{"description":"Creates a new game","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameEntity"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/game":{"post":{"operationId":"AutogameGameController_createGame","parameters":[{"name":"creatorId","required":true,"in":"query","schema":{"type":"string"}},{"name":"idempotencyKey","required":true,"in":"query","schema":{"type":"string"}},{"name":"skipRelevanceCheck","required":false,"in":"query","schema":{"type":"boolean"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/elevenlabs/voice":{"post":{"operationId":"ElevenLabsController_voice","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceGenerationDto"}}}},"responses":{"200":{"description":"","content":{"audio/mp3":{"schema":{"type":"string","format":"binary"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/elevenlabs/voice-asset":{"post":{"operationId":"ElevenLabsController_voiceAsset","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVoiceAssetDto"}}}},"responses":{"200":{"description":""}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/elevenlabs/speech_marks":{"post":{"operationId":"ElevenLabsController_speechMarks","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceGenerationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioResponse"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/autogame/elevenlabs":{"get":{"operationId":"ElevenLabsController_describeVoices","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElevenLabsVoiceList"}}}}},"security":[{"access-token":[]}],"tags":["autogame"]}},"/v2/autogame/article":{"post":{"operationId":"ArticleControllerV2_createArticle_v2","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleDtoV2"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]},"get":{"operationId":"ArticleControllerV2_findArticles_v2","parameters":[{"name":"url","required":false,"in":"query","schema":{"type":"string"}},{"name":"hostName","required":false,"in":"query","schema":{"type":"string"}},{"name":"partnerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"take","required":false,"in":"query","schema":{"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Article"}}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/drafts/{id}":{"get":{"operationId":"ArticleControllerV2_drafyById_v2","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameDraftEntity"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/partners/{partnerId}/domains":{"get":{"operationId":"ArticleControllerV2_getDomains_v2","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"includeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"excludeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomainResponse"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/partners/{partnerId}/domains/{domainId}/articles":{"get":{"operationId":"ArticleControllerV2_getDomainArticles_v2","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"domainId","required":true,"in":"path","schema":{"type":"string"}},{"name":"includeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"excludeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostArticleResponse"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/partners/{partnerId}/articles/{articleId}/drafts":{"get":{"operationId":"ArticleControllerV2_getArticlesDraft_v2","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"articleId","required":true,"in":"path","schema":{"type":"string"}},{"name":"includeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"excludeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftEntity"}}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/drafts/{articleId}":{"post":{"operationId":"ArticleControllerV2_createDraft_v2","parameters":[{"name":"articleId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraftDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameDraft"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/drafts/{id}/set_state":{"post":{"operationId":"ArticleControllerV2_setState_v2","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetStateDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/drafts/{id}/version":{"post":{"operationId":"ArticleControllerV2_newVersion_v2","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewVersionDto"}}}},"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/drafts":{"get":{"operationId":"ArticleControllerV2_listGameDrafts_v2","parameters":[{"name":"includeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"excludeState","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftState"}}},{"name":"gameType","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameType"}},{"name":"id","required":false,"in":"query","schema":{"type":"string"}},{"name":"articleId","required":false,"in":"query","schema":{"type":"string"}},{"name":"text","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"systemMessageNames","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"lock","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"partnerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"url","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"skip","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGameDraftV2"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v2/autogame/article/drafts/{draftId}/game":{"post":{"operationId":"ArticleControllerV2_createGame_v2","parameters":[{"name":"draftId","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameDto"}}}},"responses":{"201":{"description":"Creates a new game","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameEntity"}}}}},"security":[{"access-token":[]}],"tags":["autogame/article/v2"]}},"/v1/creator/games":{"post":{"operationId":"GamesCreatorController_createGame","parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameDto"}}}},"responses":{"200":{"description":"Creates a new game","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameEntity"}}}}},"security":[{"access-token":[]}],"tags":["games"]},"get":{"operationId":"GamesCreatorController_findAll","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindGamesDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindGamesDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Games","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGame"}}}}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/creator/games/{gameId}":{"get":{"operationId":"GamesCreatorController_byId","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}},{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameExpand"}}}],"responses":{"200":{"description":"Get Game By Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameEntity"}}}}},"security":[{"access-token":[]}],"tags":["games"]},"delete":{"operationId":"GamesCreatorController_cancelGame","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"204":{"description":"Cancels a game"}},"security":[{"access-token":[]}],"tags":["games"]},"patch":{"operationId":"GamesCreatorController_updateGame","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGameDto"}}}},"responses":{"200":{"description":"Update game visibility attributes"}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/creator/games/{gameId}/declare":{"post":{"operationId":"GamesCreatorController_declareGame","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclareGameDto"}}}},"responses":{"204":{"description":"Successful game declaration"}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games":{"get":{"operationId":"GamesAdminController_list","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindGamesDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindGamesDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List Games","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGame"}}}}},"security":[{"access-token":[]}],"tags":["games"]},"post":{"operationId":"GamesAdminController_createGame","parameters":[{"name":"creatorId","required":true,"in":"query","schema":{"type":"string"}},{"name":"idempotencyKey","required":true,"in":"query","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameDto"}}}},"responses":{"200":{"description":"Creates a new game","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameEntity"}}}}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games/details":{"get":{"operationId":"GamesAdminController_findDetails","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindGamesDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindGamesDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Games","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGameDetails"}}}}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games/search":{"get":{"operationId":"GamesAdminController_search","parameters":[{"name":"creatorId","required":false,"in":"query","schema":{"type":"string"}},{"name":"text","required":true,"in":"query","schema":{"type":"string"}},{"name":"onlyCategoryIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"onlyCreatorIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"excludeCreatorIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"distance","required":false,"in":"query","schema":{"type":"number"}},{"name":"articleUrl","required":false,"in":"query","schema":{"type":"string"}},{"name":"size","required":false,"in":"query","schema":{"minimum":0,"maximum":30,"type":"number"}}],"responses":{"200":{"description":"List of Games","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchGame"}}}}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games/{gameId}":{"get":{"operationId":"GamesAdminController_byId","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}},{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/GameExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/GameExpand"}}}],"responses":{"200":{"description":"Get Game By Id - Game Stats","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameEntity"}}}}},"security":[{"access-token":[]}],"tags":["games"]},"patch":{"operationId":"GamesAdminController_updateGame","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGameDto"}}}},"responses":{"200":{"description":"Update game attributes"}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games/{gameId}/declare":{"post":{"operationId":"GamesAdminController_declare","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclareGameDto"}}}},"responses":{"204":{"description":"Successful game declaration"}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games/{gameId}/cancel":{"patch":{"operationId":"GamesAdminController_cancel","parameters":[{"name":"gameId","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"204":{"description":"Cancels a game"}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/admin/games/recommend":{"get":{"operationId":"GamesAdminController_recommend","parameters":[{"name":"userProperties","required":false,"in":"query","schema":{"$ref":"#/components/schemas/UserProperties"}},{"name":"userId","required":true,"in":"query","schema":{"type":"string"}},{"name":"gameId","required":false,"in":"query","schema":{"type":"string"}},{"name":"numResults","required":false,"in":"query","schema":{"type":"number"}},{"name":"promotionPercent","required":false,"in":"query","schema":{"minimum":0,"maximum":100,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendedGameResponse"}}}}},"security":[{"access-token":[]}],"tags":["games"]}},"/v1/games/{id}/stats":{"get":{"operationId":"GamesUserController_getStats","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameStatsEntity"}}}}},"tags":["games"]}},"/v1/games/{id}/complaint":{"post":{"operationId":"GamesUserController_gameComplaint","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameComplaintDto"}}}},"responses":{"204":{"description":"Creates a complaint on a game"},"400":{"description":""},"404":{"description":""}},"tags":["games"]}},"/v1/payments/payout/business":{"post":{"operationId":"PaymentsController_makeBusinessPayout","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessPayoutV2Dto"}}}},"responses":{"201":{"description":"Confirmation of Business Payout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Business"}}}}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/payments/payout/gcow":{"post":{"operationId":"PaymentsController_gcowPayout","parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcowPayoutDto"}}}},"responses":{"200":{"description":"Gcow payout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcowPayout"}}}}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/payments/payout/gcow/{id}":{"get":{"operationId":"PaymentsController_gcowPayoutById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Gcow payout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcowPayout"}}}}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/payments/callback/gcow":{"post":{"operationId":"PaymentsController_gcowCallback","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackDto"}}}},"responses":{"200":{"description":"Gcow callback"}},"tags":["payments"]}},"/v1/payments/stripe/create":{"post":{"operationId":"PaymentsController_create","parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStripePaymentDto"}}}},"responses":{"201":{"description":"Stripe ClientSecret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeEntity"}}}}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/payments/stripe/{id}":{"get":{"operationId":"PaymentsController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeEntity"}}}}},"tags":["payments"]}},"/v1/payments/callback/stripe":{"post":{"operationId":"PaymentsController_stripeCallback","parameters":[{"name":"stripe-signature","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"Stripe callback"}},"tags":["payments"]}},"/v1/payments/buy-ticket-bundle-coin":{"post":{"operationId":"PaymentsController_buyTicketsWithCoin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyTicketsDto"}}}},"responses":{"204":{"description":"Purchase tickets with coins"}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/admin/payout/business":{"get":{"operationId":"BusinessAdminController_listBusiness","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/BusinessExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindBusinessDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindBusinessDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Business Payouts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListExpandedBusinessEntity"}}}}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/admin/payout/business/{id}":{"get":{"operationId":"BusinessAdminController_businessById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Business","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Business"}}}}},"security":[{"access-token":[]}],"tags":["payments"]}},"/v1/admin/creators/{creatorId}":{"patch":{"operationId":"CreatorsAdminController_update","parameters":[{"name":"creatorId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCreatorDto"}}}},"responses":{"204":{"description":"Updated Creator"}},"security":[{"access-token":[]}],"tags":["creators"]},"get":{"operationId":"CreatorsAdminController_byId","parameters":[{"name":"creatorId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Creator","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creator"}}}}},"security":[{"access-token":[]}],"tags":["creators"]}},"/v1/admin/creators":{"get":{"operationId":"CreatorsAdminController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindCreatorDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindCreatorDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Creator","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCreator"}}}}},"security":[{"access-token":[]}],"tags":["creators"]}},"/v1/creators/creators":{"patch":{"operationId":"CreatorsCreatorsController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCreatorDto"}}}},"responses":{"204":{"description":"Updated Creator"}},"security":[{"access-token":[]}],"tags":["creators"]},"get":{"operationId":"CreatorsCreatorsController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindCreatorDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindCreatorDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Creator","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCreator"}}}}},"security":[{"access-token":[]}],"tags":["creators"]}},"/v1/gameplays":{"get":{"operationId":"GameplaysController_list","parameters":[{"name":"state","required":false,"in":"query","schema":{"$ref":"#/components/schemas/ListGameplayStates"}},{"name":"gameId","required":false,"in":"query","schema":{"type":"string"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List Game Plays Filtered By Status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGameplays"}}}}},"security":[{"access-token":[]}],"tags":["gameplays"]},"post":{"operationId":"GameplaysController_create","parameters":[{"name":"x-idempotency-key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameplayDto"}}}},"responses":{"201":{"description":"Creates a Game Play","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gameplay"}}}}},"security":[{"access-token":[]}],"tags":["gameplays"]}},"/v1/gameplays/{id}/claim_reward":{"post":{"operationId":"GameplaysController_claimReward","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-idempotency-key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"Claims a Game Play reward"}},"security":[{"access-token":[]}],"tags":["gameplays"]}},"/v1/gameplays/{id}":{"get":{"operationId":"GameplaysController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Gets a Game Play by ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gameplay"}}}}},"security":[{"access-token":[]}],"tags":["gameplays"]},"delete":{"operationId":"GameplaysController_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-idempotency-key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"Cancels a Game Play"}},"security":[{"access-token":[]}],"tags":["gameplays"]}},"/v1/widgets/{widgetId}":{"get":{"operationId":"WidgetsController_getWidgetById","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-app-referrer","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"Widget By Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}}}},"security":[{"access-token":[]}],"tags":["widgets"]}},"/v2/widgets/{widgetId}":{"get":{"operationId":"WidgetsControllerV2_getWidgetByIdV2","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-app-referrer","required":true,"in":"header","schema":{"type":"string"}},{"name":"text","required":false,"in":"query","description":"game text to search","schema":{"type":"string"}},{"name":"categoryIds","required":false,"in":"query","description":"categoryIds the game should belong to","schema":{"type":"array","items":{"type":"string"}}},{"name":"preferCategoryIds","required":false,"in":"query","description":"categoryIds the game should preferably belong to","schema":{"type":"array","items":{"type":"string"}}},{"name":"excludeCategoryIds","required":false,"in":"query","description":"categoryIds the game should not belong to","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Widget By Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}}}},"security":[{"access-token":[]}],"tags":["widgets"]},"post":{"operationId":"WidgetsControllerV2_getWidgetByIdContextV2","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindWidgetTextDtoV2"}}}},"responses":{"200":{"description":"Widget By Id with context","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}}}},"security":[{"access-token":[]}],"tags":["widgets"]}},"/v2/widgets/tvt/{widgetId}":{"post":{"description":"Get a Widget By Id with the desired categoryIds. Only games that belong to the specified categoryIds for the partner associated with the widget will be returned.","operationId":"WidgetsControllerV2_getWidgetByIdForTVT","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindWidgetForTVTDto"}}}},"responses":{"200":{"description":"A response object containing a Widget for This-vs-That and a cursor for pagination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWidgetTVTResponseDto"}}}}},"security":[{"access-token":[]}],"summary":"Get a Widget for This-vs-That","tags":["widgets"]}},"/v1/creator/widgets":{"post":{"operationId":"WidgetsCreatorController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWidgetDto"}}}},"responses":{"201":{"description":"New Widget","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}}}},"security":[{"access-token":[]}],"tags":["widgets"]},"get":{"operationId":"WidgetsCreatorController_list","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetExpand"}}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchWidgetDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortWidgetDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"articleUrl","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of Widgets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWidgets"}}}}},"security":[{"access-token":[]}],"tags":["widgets"]}},"/v1/creator/widgets/{widgetId}":{"patch":{"operationId":"WidgetsCreatorController_update","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWidgetDto"}}}},"responses":{"204":{"description":"Updated Widget"}},"security":[{"access-token":[]}],"tags":["widgets"]},"delete":{"operationId":"WidgetsCreatorController_delete","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted Widget"}},"security":[{"access-token":[]}],"tags":["widgets"]},"get":{"operationId":"WidgetsCreatorController_getWidget","parameters":[{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}},{"name":"_expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetExpand"}}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetExpand"}}},{"name":"articleUrl","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}}}},"security":[{"access-token":[]}],"tags":["widgets"]}},"/v1/categories":{"get":{"operationId":"CategoriesController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindCategoryDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindCategoryDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Categories","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCategory"}}}}},"tags":["categories"]}},"/v1/admin/categories":{"post":{"operationId":"CategoriesAdminController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryDto"}}}},"responses":{"201":{"description":"New Category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}}},"security":[{"access-token":[]}],"tags":["categories"]},"get":{"operationId":"CategoriesAdminController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindCategoryDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindCategoryDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Categories","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCategory"}}}}},"security":[{"access-token":[]}],"tags":["categories"]}},"/v1/admin/categories/{categoryId}":{"patch":{"operationId":"CategoriesAdminController_update","parameters":[{"name":"categoryId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCategoryDto"}}}},"responses":{"204":{"description":"Updated Category"}},"security":[{"access-token":[]}],"tags":["categories"]},"get":{"operationId":"CategoriesAdminController_byId","parameters":[{"name":"categoryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}}},"security":[{"access-token":[]}],"tags":["categories"]},"delete":{"operationId":"CategoriesAdminController_delete","parameters":[{"name":"categoryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete Category"}},"security":[{"access-token":[]}],"tags":["categories"]}},"/v1/ledger":{"get":{"operationId":"LedgerController_list","parameters":[{"name":"_","required":false,"in":"query","schema":{"$ref":"#/components/schemas/FundsUpdatedReasons"}},{"name":"reasons","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FundsUpdatedReasons"}}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List user's transactions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LedgerListEntity"}}}}},"security":[{"access-token":[]}],"tags":["ledger"]}},"/v1/admin/ledger":{"get":{"operationId":"LedgerAdminController_list","parameters":[{"name":"_","required":false,"in":"query","schema":{"$ref":"#/components/schemas/FundsUpdatedReasons"}},{"name":"reasons","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/FundsUpdatedReasons"}}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"userId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List user's transactions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LedgerListEntity"}}}}},"security":[{"access-token":[]}],"tags":["ledger"]}},"/v1/notifications/count":{"get":{"operationId":"NotificationsController_count","parameters":[],"responses":{"200":{"description":"Count of unread notifications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationCount"}}}}},"security":[{"access-token":[]}],"tags":["notifications"]}},"/v1/notifications":{"get":{"operationId":"NotificationsController_list","parameters":[{"name":"_","required":false,"in":"query","schema":{"$ref":"#/components/schemas/NotificationTypes"}},{"name":"types","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationTypes"}}},{"name":"resetCount","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Read or Unread Notifications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsListEntity"}}}}},"security":[{"access-token":[]}],"tags":["notifications"]}},"/v1/admin/cuts":{"get":{"operationId":"CutsAdminController_getGlobalCuts","parameters":[],"responses":{"200":{"description":"Global cuts configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalCutsEntity"}}}}},"security":[{"access-token":[]}],"tags":["cuts"]},"patch":{"operationId":"CutsAdminController_updateGlobalCuts","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGlobalCutsDto"}}}},"responses":{"200":{"description":"Updated global cuts configuration"}},"security":[{"access-token":[]}],"tags":["cuts"]}},"/v1/admin/cuts/history":{"get":{"operationId":"CutsAdminController_getGlobalCutsHistory","parameters":[],"responses":{"200":{"description":"Global cuts history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalCutsHistoryListEntity"}}}}},"security":[{"access-token":[]}],"tags":["cuts"]}},"/v1/admin/cuts/{userId}":{"get":{"operationId":"CutsAdminController_getUserCuts","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get cuts configuration for a user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCutsEntity"}}}}},"security":[{"access-token":[]},{"access-token":[]}],"tags":["cuts"]},"patch":{"operationId":"CutsAdminController_updateUserCuts","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserCutsDto"}}}},"responses":{"200":{"description":"Updated cuts configuration for a user"}},"security":[{"access-token":[]},{"access-token":[]}],"tags":["cuts"]}},"/v1/admin/cuts/{userId}/distributor":{"patch":{"operationId":"CutsAdminController_updateUserDistributionCuts","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserDistributionCutsDto"}}}},"responses":{"200":{"description":"Updated distribution cuts configuration for a user"}},"security":[{"access-token":[]},{"access-token":[]}],"tags":["cuts"]}},"/v1/admin/cuts/{userId}/history":{"get":{"operationId":"CutsAdminController_getUserCutsHistory","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"User cuts history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCutsHistoryListEntity"}}}}},"security":[{"access-token":[]}],"tags":["cuts"]}},"/v1/playlists":{"get":{"operationId":"PlaylistsController_list","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/PlaylistExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/PlaylistExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindPlaylistDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindPlaylistDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"autofill","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"List of Playlists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPlaylist"}}}}},"tags":["playlists"]}},"/v1/creator/playlists":{"post":{"operationId":"PlaylistsCreatorController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlaylistDto"}}}},"responses":{"201":{"description":"New Playlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Playlist"}}}}},"security":[{"access-token":[]}],"tags":["playlists"]},"get":{"operationId":"PlaylistsCreatorController_list","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/PlaylistExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/PlaylistExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindPlaylistDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindPlaylistDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"autofill","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"List of Playlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPlaylist"}}}}},"security":[{"access-token":[]}],"tags":["playlists"]}},"/v1/creator/playlists/{playlistId}":{"patch":{"operationId":"PlaylistsCreatorController_update","parameters":[{"name":"playlistId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlaylistDto"}}}},"responses":{"204":{"description":"Updated Playlist"}},"security":[{"access-token":[]}],"tags":["playlists"]},"get":{"operationId":"PlaylistsCreatorController_byId","parameters":[{"name":"playlistId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Playlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Playlist"}}}}},"security":[{"access-token":[]}],"tags":["playlists"]}},"/v1/creator/playlists/{id}/refresh":{"post":{"operationId":"PlaylistsCreatorController_refreshAutofill","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Refresh a playlist Autofill games by Id"}},"security":[{"access-token":[]}],"tags":["playlists"]}},"/v1/custom-urls/{url}":{"get":{"operationId":"CustomUrlController_findByUrl","parameters":[{"name":"url","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Gets an customurl entry by url","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomUrl"}}}}},"tags":["custom-urls"]}},"/v1/admin/custom-urls/{customUrlId}":{"patch":{"operationId":"CustomUrlAdminController_update","parameters":[{"name":"customUrlId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomUrlDto"}}}},"responses":{"204":{"description":"Updated CustomUrl"}},"security":[{"access-token":[]}],"tags":["custom-urls"]},"get":{"operationId":"CustomUrlAdminController_byId","parameters":[{"name":"customUrlId","required":true,"in":"path","schema":{"type":"string"}},{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/CustomUrlExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomUrlExpand"}}}],"responses":{"200":{"description":"Get CustomUrl","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomUrl"}}}}},"security":[{"access-token":[]}],"tags":["custom-urls"]}},"/v1/admin/custom-urls":{"get":{"operationId":"CustomUrlAdminController_list","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/CustomUrlExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomUrlExpand"}}},{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/CustomUrlSearchFindAllDto2"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/CustomUrlSortFindAllDto2"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Custom Urls","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomUrl"}}}}},"security":[{"access-token":[]}],"tags":["custom-urls"]}},"/v1/creator/custom-urls":{"post":{"operationId":"CustomUrlCreatorController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomUrlDto"}}}},"responses":{"201":{"description":"New CustomUrl","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomUrl"}}}}},"security":[{"access-token":[]}],"tags":["custom-urls"]},"patch":{"operationId":"CustomUrlCreatorController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomUrlDto"}}}},"responses":{"204":{"description":"Updated CustomUrl"}},"security":[{"access-token":[]}],"tags":["custom-urls"]},"get":{"operationId":"CustomUrlCreatorController_get","parameters":[{"name":"_expand","required":false,"in":"query","schema":{"$ref":"#/components/schemas/CustomUrlExpand"}},{"name":"expand","required":false,"in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomUrlExpand"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomUrl"}}}}},"security":[{"access-token":[]}],"tags":["custom-urls"]}},"/v1/creator/custom-urls/{Id}":{"delete":{"operationId":"CustomUrlCreatorController_delete","parameters":[],"responses":{"204":{"description":"Delete Custom-Url"}},"security":[{"access-token":[]}],"tags":["custom-urls"]}},"/v1/products":{"get":{"operationId":"ProductsController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindProductDto2"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindProductDto2"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProduct"}}}}},"tags":["products"]}},"/v1/admin/products":{"post":{"operationId":"ProductsAdminController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductDto"}}}},"responses":{"201":{"description":"New Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEntity"}}}}},"security":[{"access-token":[]}],"tags":["products"]},"get":{"operationId":"ProductsAdminController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindProductDto2"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindProductDto2"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProduct"}}}}},"security":[{"access-token":[]}],"tags":["products"]}},"/v1/admin/products/{productId}":{"patch":{"operationId":"ProductsAdminController_update","parameters":[{"name":"productId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductDto"}}}},"responses":{"204":{"description":"Updated Product"}},"security":[{"access-token":[]}],"tags":["products"]},"get":{"operationId":"ProductsAdminController_byId","parameters":[{"name":"productId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEntity"}}}}},"security":[{"access-token":[]}],"tags":["products"]}},"/v1/admin/assets":{"get":{"operationId":"AssetAdminController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/AssetSearchFindAllDto2"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of assets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAsset"}}}}},"security":[{"access-token":[]}],"tags":["assets"]}},"/v1/admin/assets/{assetId}":{"get":{"operationId":"AssetAdminController_byId","parameters":[{"name":"assetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}},"security":[{"access-token":[]}],"tags":["assets"]}},"/v1/assets":{"post":{"operationId":"AssetsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAssetDto"}}}},"responses":{"201":{"description":"New Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}},"security":[{"access-token":[]}],"tags":["assets"]}},"/v1/assets/{assetId}":{"get":{"operationId":"AssetsController_get","parameters":[{"name":"assetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}},"security":[{"access-token":[]}],"tags":["assets"]},"delete":{"operationId":"AssetsController_delete","parameters":[{"name":"assetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete Asset"}},"security":[{"access-token":[]}],"tags":["assets"]}},"/v1/personal-information":{"get":{"operationId":"PersonalController_byId","parameters":[],"responses":{"200":{"description":"Users personal-information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalInformation"}}}}},"security":[{"access-token":[]}],"tags":["personal-information"]},"patch":{"operationId":"PersonalController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePersonalInformationDto"}}}},"responses":{"204":{"description":"Update Personal-Information"}},"security":[{"access-token":[]}],"tags":["personal-information"]}},"/v1/profiles":{"get":{"operationId":"ProfilesController_me","parameters":[],"responses":{"200":{"description":"Users profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}},"security":[{"access-token":[]}],"tags":["profiles"]},"patch":{"operationId":"ProfilesController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"204":{"description":"Update Profile"}},"security":[{"access-token":[]}],"tags":["profiles"]}},"/v1/profiles/{id}":{"get":{"operationId":"ProfilesController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Users profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}},"security":[{"access-token":[]}],"tags":["profiles"]}},"/v1/profiles/username_available":{"post":{"operationId":"ProfilesController_usernameAvailable","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidUsernameDto"}}}},"responses":{"204":{"description":"Verifies if a username is available or not"}},"tags":["profiles"]}},"/v1/admin/profiles/{id}":{"patch":{"operationId":"ProfileAdminController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"204":{"description":"Updated Profile"}},"security":[{"access-token":[]}],"tags":["profiles"]},"get":{"operationId":"ProfileAdminController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}},"security":[{"access-token":[]}],"tags":["profiles"]}},"/v1/admin/profiles":{"get":{"operationId":"ProfileAdminController_list","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchFindProfileEmailDto"}},{"name":"sort","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortFindProfileDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"List of Expanded Profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListExpandedProfile"}}}}},"security":[{"access-token":[]}],"tags":["profiles"]}},"/v1/wallets/account-balance":{"get":{"operationId":"WalletsController_getAccountBalance","parameters":[],"responses":{"200":{"description":"The account balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletResponse"}}}}},"security":[{"access-token":[]}],"tags":["wallets"]}},"/v1/wallets/claim-daily-gift":{"post":{"operationId":"WalletsController_claimDailyGift","parameters":[],"responses":{"200":{"description":"Claim Daily Gift Tickets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimDailyGiftResponse"}}}}},"security":[{"access-token":[]}],"tags":["wallets"]}},"/v1/admin/wallets/{userId}":{"put":{"operationId":"AdminController_updateUserWallet","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateFundsDto"}}}},"responses":{"204":{"description":"Updated User Wallet via Admin Controls","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWalletResponse"}}}}},"security":[{"access-token":[]}],"tags":["wallets"]}},"/v1/admin/wallets/{userId}/demote":{"put":{"operationId":"AdminController_demoteUserWallet","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoteUserDto"}}}},"responses":{"200":{"description":"Demotes User Wallet via Admin Controls","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletResponse"}}}}},"security":[{"access-token":[]}],"tags":["wallets"]}},"/v1/admin/wallets/{userId}/promote":{"put":{"operationId":"AdminController_promoteUserWallet","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteUserDto"}}}},"responses":{"200":{"description":"Promotes User Wallet via Admin Controls","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletResponse"}}}}},"security":[{"access-token":[]}],"tags":["wallets"]}},"/v1/admin/leaderboards":{"post":{"operationId":"LeaderboardsAdminController_create","parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeaderboardDto"}}}},"responses":{"201":{"description":"New Leader Board","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardAdmin"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]},"get":{"operationId":"LeaderboardsAdminController_list","parameters":[{"name":"startDateComparison","required":false,"in":"query","schema":{"$ref":"#/components/schemas/startDateComparison"}},{"name":"endDateComparison","required":false,"in":"query","schema":{"$ref":"#/components/schemas/endDateComparison"}},{"name":"prizeDrawingDateComparison","required":false,"in":"query","schema":{"$ref":"#/components/schemas/prizeDrawingDateComparison"}},{"name":"league","required":false,"in":"query","schema":{"$ref":"#/components/schemas/league"}},{"name":"state","required":false,"in":"query","schema":{"$ref":"#/components/schemas/state"}},{"name":"gameplaysThresholdIsMet","required":false,"in":"query","description":"If true, only leaderboards with gameplays at or higher than the threshold are returned. If false, only leaderboards with gameplays below the threshold are returned. If undefined, all leaderboards are returned.","schema":{"type":"boolean"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"prizeDrawingDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"distributorId","required":false,"in":"query","schema":{"type":"string"}},{"name":"isVerified","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"List of Leaderboard, filtered by query params","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboards"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}":{"patch":{"operationId":"LeaderboardsAdminController_update","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLeaderboardDto"}}}},"responses":{"200":{"description":"Updated Leaderboard","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardAdmin"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]},"delete":{"operationId":"LeaderboardsAdminController_delete","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Delete Leaderboard"}},"security":[{"access-token":[]}],"tags":["leaderboards"]},"get":{"operationId":"LeaderboardsAdminController_byId","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Leaderboard","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardAdmin"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/award-prizes":{"post":{"operationId":"LeaderboardsAdminController_awardPrizes","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwardLeaderboardDto"}}}},"responses":{"200":{"description":"Allow an Admin to manually trigger a Leaderboard Prize Award","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardAdmin"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/archive":{"post":{"operationId":"LeaderboardsAdminController_archive","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwardLeaderboardDto"}}}},"responses":{"200":{"description":"Allow an Admin to manually trigger a Leaderboard to be archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardAdmin"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/points":{"get":{"operationId":"LeaderboardsAdminController_leaderboardPointsList","parameters":[{"name":"pointsComparison","required":false,"in":"query","schema":{"$ref":"#/components/schemas/pointsComparison"}},{"name":"leaderboardId","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"points","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Get List of Leaderboard Points","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboardPoints"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/points/{userId}":{"get":{"operationId":"LeaderboardsAdminController_pointsByUserId","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get User Points in Leaderboard","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardPoints"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/points/{userId}/top/{topN}":{"get":{"operationId":"LeaderboardsAdminController_statisticsByUserId","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string"}},{"name":"topN","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"Get Leaderboard User Ranking, Returns Admin Values like UserId","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardStatisticsEntity"}}}},"400":{"description":""},"404":{"description":""}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/top/{topN}":{"get":{"operationId":"LeaderboardsAdminController_topThree","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}},{"name":"topN","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"Get Leaderboard Top :N Number, Returns Admin Values like UserId","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardStatisticsEntity"}}}},"400":{"description":""},"404":{"description":""}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/eligible-players-list":{"get":{"operationId":"LeaderboardsAdminController_eligiblePlayersList","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DEPRECATED: Please use players-list instead","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboardEligibleUsers"}}}},"400":{"description":""},"404":{"description":""}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/{leaderboardId}/players-list":{"get":{"operationId":"LeaderboardsAdminController_playersList","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}},{"name":"pickCount","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Get all Registered players for a given Leaderboard, sorted by points.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboardPlayers"}}}},"400":{"description":""},"404":{"description":""}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/admin/leaderboards/ledger/{userId}":{"get":{"operationId":"LeaderboardsAdminController_ledgerByUserId","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}},{"name":"leaderboardId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Leaderboard Ledger in Leaderboard","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboardPointsLedger"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/leaderboards/activeLeaderboards":{"get":{"operationId":"LeaderboardsController_activeLeaderboards","parameters":[{"name":"distributorId","required":true,"in":"query","schema":{"type":"string"}},{"name":"at","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List Active Leaderboards ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboards"}}}}},"tags":["leaderboards"]}},"/v1/leaderboards/previousLeaderboards":{"get":{"operationId":"LeaderboardsController_previousLeaderboards","parameters":[{"name":"distributorId","required":true,"in":"query","schema":{"type":"string"}},{"name":"start","required":true,"in":"query","schema":{"type":"string"}},{"name":"end","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List Previous Leaderboards ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLeaderboards"}}}}},"tags":["leaderboards"]}},"/v1/leaderboards/points":{"get":{"operationId":"LeaderboardsController_leaderboardPointsList","parameters":[{"name":"pointsComparison","required":false,"in":"query","schema":{"$ref":"#/components/schemas/pointsComparison"}},{"name":"leaderboardId","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"asc","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"start","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"points","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Get List of Leaderboard Points","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardPoints"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/leaderboards/{leaderboardId}":{"get":{"operationId":"LeaderboardsController_byId","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Get Leaderboard","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leaderboard"}}}}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/leaderboards/{leaderboardId}/top/{topN}":{"get":{"operationId":"LeaderboardsController_getLeaderboardTopN","parameters":[{"name":"leaderboardId","required":true,"in":"path","schema":{"type":"string"}},{"name":"topN","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"Get Leaderboard Top N Positions, Returns User Data if Logged In","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaderboardStatisticsEntity"}}}},"404":{"description":""}},"security":[{"access-token":[]}],"tags":["leaderboards"]}},"/v1/partner-domain":{"post":{"operationId":"PartnerDomainController_create","parameters":[{"name":"x-user-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePartnerDomainDto"}}}},"responses":{"201":{"description":"Creates a new partner Domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomains"}}}}},"security":[{"access-token":[]}],"tags":["partner-domain"]},"get":{"operationId":"PartnerDomainController_query","parameters":[{"name":"search","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SearchDto"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPartnerDomains"}}}}},"security":[{"access-token":[]},{"access-token":[]}],"tags":["partner-domain"]}},"/v1/partner-domain/{id}":{"put":{"operationId":"PartnerDomainController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerDomainDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomains"}}}}},"security":[{"access-token":[]}],"tags":["partner-domain"]},"delete":{"operationId":"PartnerDomainController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["partner-domain"]}},"/v1/partner-domain/{domain}":{"get":{"operationId":"PartnerDomainController_byDomain","parameters":[{"name":"domain","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"Gets a partner Domain by domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDomains"}}}}},"security":[{"access-token":[]},{"access-token":[]}],"tags":["partner-domain"]}},"/v1/achievements":{"get":{"operationId":"AchievementsController_list","parameters":[],"responses":{"200":{"description":"List Game Plays Filtered By Status","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GamePlayAchievementEntity"}}}}}},"tags":["achievements"]}},"/admin/gamesets":{"post":{"operationId":"GameSetsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGameSetDto"}}}},"responses":{"201":{"description":"Creates a new game set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSet"}}}}},"security":[{"access-token":[]}],"tags":["gamesets"]},"get":{"operationId":"GameSetsController_query","parameters":[{"name":"sortStartTime","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortMode"}},{"name":"sortEndTime","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SortMode"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}},{"name":"partnerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"startTime","required":false,"in":"query","schema":{"type":"string"}},{"name":"endTime","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListGameSet"}}}}},"security":[{"access-token":[]}],"tags":["gamesets"]}},"/admin/gamesets/{id}":{"get":{"operationId":"GameSetsController_byId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"gets a game set by id ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSet"}}}}},"security":[{"access-token":[]}],"tags":["gamesets"]},"put":{"operationId":"GameSetsController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGameSetDto"}}}},"responses":{"200":{"description":"updates a game set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSet"}}}}},"security":[{"access-token":[]}],"tags":["gamesets"]},"delete":{"operationId":"GameSetsController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"security":[{"access-token":[]}],"tags":["gamesets"]}},"/admin/gamesets/partners/{partnerId}":{"get":{"operationId":"GameSetsController_getSet","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"forDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"gets a current game set by partner ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSet"}}}}},"security":[{"access-token":[]}],"tags":["gamesets"]}},"/v1/buddy-list/invitations":{"post":{"operationId":"BuddyListController_createBuddyListInvitation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBuddyListInvitationRequestDTO"}}}},"responses":{"201":{"description":"The created buddy list invitation context object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuddyListInvitationEntity"}}}},"400":{"description":"The request body is invalid"}},"summary":"Create a new buddy list invitation","tags":["buddy-list"]}},"/v1/buddy-list/invitations/{shareCode}":{"get":{"operationId":"BuddyListController_getBuddyListInvitationByShareCode","parameters":[{"name":"shareCode","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The found buddy list invitation context object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuddyListInvitationEntity"}}}},"404":{"description":"No invitation found for the given share code"}},"summary":"Get a buddy list invitation context object by share code","tags":["buddy-list"]}},"/v1/buddy-list/invitations/{shareCode}/redirect":{"get":{"operationId":"BuddyListController_getBuddyListInvitationRedirectByShareCode","parameters":[{"name":"shareCode","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"302":{"description":"Redirects to the media partner article with the deep link params associated with the given shareCode","headers":{"Location":{"description":"The deep link URL","schema":{"type":"string","example":"https://example.com"}}}},"404":{"description":"No invitation found for the given share code"}},"summary":"Redirects to a buddy list invitation deep link URL for the given share code","tags":["buddy-list"]}},"/v1/buddy-list/referrals":{"post":{"description":"Triggered when a new player registers after following a buddy list invitation link.","operationId":"BuddyListController_createBuddyListReferral","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"summary":"Record a new buddy list referral on successful registration.","tags":["buddy-list"]}},"/invite/{code}":{"get":{"operationId":"InviteController_link","parameters":[{"name":"code","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Invite"]}},"/v1/keyframes":{"post":{"operationId":"KeyFrameController_create_v1","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateKeyFrameDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyFrameResponse"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyFrameResponse"}}}}},"security":[{"access-token":[]}],"tags":["keyframes"]}},"/v1/keyframes/batch":{"post":{"operationId":"KeyFrameController_createBatch_v1","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateKeyFrameResponse"}}}}}},"security":[{"access-token":[]}],"tags":["keyframes"]}},"/v1/keyframes/search":{"post":{"operationId":"KeyFrameController_imageSearch_v1","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SearchKeyFramesDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchKeyFrameResponse"}}}}},"tags":["keyframes"]}},"/v1/meter-ads/active":{"get":{"description":"Returns an array of active meter ads for a given partner ID. If no partner ID is provided, the default partner ID is used. Active means that the status is \"published\", the start date is in the past, and the end date is in the future.","operationId":"MeterAdsController_listActive_v1","parameters":[{"name":"partnerId","required":false,"in":"query","description":"Partner ID to filter active meter ads. Falls back to \"default\" if not provided","schema":{"type":"string"}},{"name":"url","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"An array of MeterAd entities","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeterAd"}}}}}},"summary":"List active meter ads by partner ID","tags":["meter-ads"]}},"/v1/admin/meter-ads":{"post":{"operationId":"MeterAdsAdminController_create_v1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeterAdDto"}}}},"responses":{"201":{"description":"A MeterAd entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterAd"}}}}},"security":[{"access-token":[]}],"summary":"Create a new MeterAd","tags":["meter-ads"]},"get":{"operationId":"MeterAdsAdminController_list_v1","parameters":[{"name":"partnerId","required":false,"in":"query","description":"Partner ID to filter by","schema":{"type":"string"}},{"name":"questionText","required":false,"in":"query","description":"Will do a partial case-insensitive match on question text","schema":{"type":"string"}},{"name":"marketingText","required":false,"in":"query","description":"Will do a partial case-insensitive match on marketing text","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["DRAFT","PUBLISHED","CANCELLED"],"type":"string"}},{"name":"startTime","required":false,"in":"query","description":"Provide a value and comparison operator to filter by start time Unix timestamp in milliseconds","schema":{"$ref":"#/components/schemas/TimeComparison"}},{"name":"endTime","required":false,"in":"query","description":"Provide a value and comparison operator to filter by end time Unix timestamp in milliseconds","schema":{"$ref":"#/components/schemas/TimeComparison"}},{"name":"sort","required":false,"in":"query","description":"Dictionary of property names to sort direction (ASC or DESC)","schema":{"$ref":"#/components/schemas/SortOptionsDto"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based); the default is 1","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"Number of items per page; the default is 20","schema":{"minimum":1,"default":20,"type":"number"}}],"responses":{"200":{"description":"A paginated list of MeterAd entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedMeterAdsDto"}}}}},"security":[{"access-token":[]}],"summary":"List meter ads, filtered by search terms and sort options.","tags":["meter-ads"]}},"/v1/admin/meter-ads/{id}":{"get":{"operationId":"MeterAdsAdminController_byId_v1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"A meter ad entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterAd"}}}}},"security":[{"access-token":[]}],"summary":"Get a meter ad by ID","tags":["meter-ads"]},"patch":{"operationId":"MeterAdsAdminController_update_v1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeterAdDto"}}}},"responses":{"200":{"description":"The updated meter ad entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterAd"}}}}},"security":[{"access-token":[]}],"summary":"Update a meter ad","tags":["meter-ads"]},"delete":{"operationId":"MeterAdsAdminController_delete_v1","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"The meter ad has been successfully deleted"}},"security":[{"access-token":[]}],"summary":"Delete a meter ad","tags":["meter-ads"]}},"/gameset/plays/gamesets/current-daily-id":{"get":{"description":"Returns the ID of the current daily game set from the DB. If this is the first request of the day, a new game set will be created.","operationId":"GameSetPlaysController_getCurrentDailyGameSetId","parameters":[{"name":"partnerId","required":false,"in":"query","schema":{"default":"VERSUS","type":"string"}},{"name":"gameStyle","required":false,"in":"query","description":"Either TVT (This That) or MG (Mini Games)","schema":{"default":"TVT","type":"string"}}],"responses":{"200":{"description":"The current daily game set ID for the given partner and game type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDailyGameSetIdResponse"}}}}},"summary":"Get the current daily game set ID","tags":["gameset-plays"]}},"/gameset/plays/gamesets/{gameSetId}/leader":{"get":{"description":"The GameSetPlay with the most games played for that GameSet.","operationId":"GameSetPlaysController_forGameSetLeader","parameters":[{"name":"gameSetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The GameSetPlay entity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSetPlayResponse"}}}}},"summary":"Get the leader of a game set","tags":["gameset-plays"]}},"/gameset/plays/attempts":{"get":{"operationId":"GameSetPlaysController_getAttempts","parameters":[{"name":"userId","required":true,"in":"query","schema":{"type":"string"}},{"name":"gameSetId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GameSetPlayResponse"}}}}}},"summary":"Get all GameSetPlay attempts for a given Player and GameSet","tags":["gameset-plays"]}},"/gameset/plays/attempts/best":{"get":{"description":"The best attempt has the most games played for the given GameSet.","operationId":"GameSetPlaysController_getBestAttempt","parameters":[{"name":"userId","required":true,"in":"query","schema":{"type":"string"}},{"name":"gameSetId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSetPlayResponse"}}}}},"summary":"Get the best GameSetPlay attempt for a given Player and GameSet","tags":["gameset-plays"]}},"/gameset/plays/attempts/last":{"get":{"description":"The last attempt is the most recent attempt for the given GameSet, but not necessarily the best attempt. The attemptWasCompleted property is true if the last attempt has been marked as completed.","operationId":"GameSetPlaysController_getLastAttempt","parameters":[{"name":"userId","required":true,"in":"query","schema":{"type":"string"}},{"name":"gameSetId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameSetLastAttemptResponse"}}}}},"summary":"Get the last GameSetPlay attempt for a given Player and GameSet","tags":["gameset-plays"]}},"/gameset/plays/attempts/completed":{"post":{"description":"This route is used when the player's attempt is completed because the timer has expired and there was no gameplay submitted.","operationId":"GameSetPlaysController_recordGameSetCompleted","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordGameSetAttemptCompletedRequest"}}}},"responses":{"204":{"description":"The request was successful. Not content returned."},"400":{"description":"The request body is invalid"}},"summary":"Record the completion of a GameSet attempt","tags":["gameset-plays"]}},"/gameset/plays/gamesets/{gameSetId}/top-players":{"get":{"description":"Ranked by the most games played for that GameSet.","operationId":"GameSetPlaysController_topPlayersForGameSet","parameters":[{"name":"gameSetId","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"The approximate number of top players to return. The returned item count may include more to accommodate pagination with filters. Results may also be less if there are fewer than this many players.","schema":{"default":20,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"The cursor to use for pagination.","schema":{"type":"string"}},{"name":"withExternalId","required":false,"in":"query","description":"Whether to include the externalId in the response","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Ranked list of top players with usernames","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopPlayersForGameSetResponseEntity"}}}}},"summary":"List the top players of a game set (leaderboard)","tags":["gameset-plays"]}},"/gameset/plays/gamesets/{gameSetId}/top-players-with-emails":{"get":{"description":"Ranked by the most games played for that GameSet. `Only returns users with emails`. Requires ADMIN role, to protect PII.","operationId":"GameSetPlaysController_topPlayersForGameSetWithEmails","parameters":[{"name":"gameSetId","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"The approximate number of top players to return. The returned item count may include more to accommodate pagination with filters. Results may also be less if there are fewer than this many players.","schema":{"default":20,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"The cursor to use for pagination.","schema":{"type":"string"}},{"name":"withExternalId","required":false,"in":"query","description":"Whether to include the externalId in the response","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"List of top players with metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopPlayersForGameSetWithEmailResponseEntity"}}}}},"security":[{"access-token":[]}],"summary":"List the top players for a game set; with their emails","tags":["gameset-plays"]}}},"info":{"title":"Versusgame API","description":"APIs for Versusgame Application","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"access-token":{"scheme":"bearer","bearerFormat":"JWT","description":"Enter the bearer token below (do not include 'Bearer')","type":"http"},"x-api-key":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key For External calls"}},"schemas":{"Language":{"type":"string","enum":["en-us","es-mx"]},"IdentifyExternalUser":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"externalId":{"type":"string"},"sourceDomain":{"type":"string"},"distributorId":{"type":"string"},"returnUrl":{"type":"string"},"username":{"type":"string"}},"required":["externalId","sourceDomain","distributorId","returnUrl"]},"Role":{"type":"string","enum":["anonymous","ADMIN","CREATOR","USER","SUPER_ADMIN","AUTOGAME","DISTRIBUTION_MANAGER","MICROSOFT_REWARDS_USER"]},"CredentialsEntity":{"type":"object","properties":{"roles":{"type":"array","items":{"$ref":"#/components/schemas/Role"}},"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"accessToken":{"type":"string"},"accessTokenExpiresIn":{"type":"number"},"refreshToken":{"type":"string"},"lastTosSigned":{"type":"boolean"},"tosSignedAt":{"format":"date-time","type":"string"},"isExemptFromSigningTos":{"type":"boolean"},"userId":{"type":"string"},"email":{"type":"string"},"payoutEmail":{"type":"string"}},"required":["roles","accessToken","accessTokenExpiresIn","refreshToken","lastTosSigned","tosSignedAt","isExemptFromSigningTos","userId"]},"SigninDto":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"]},"ChangePasswordDto":{"type":"object","properties":{"oldPassword":{"type":"string"},"newPassword":{"type":"string"}},"required":["oldPassword","newPassword"]},"ResetPasswordDto":{"type":"object","properties":{"email":{"type":"string","format":"email"},"returnUrl":{"type":"string"}},"required":["email","returnUrl"]},"ResetPasswordSetNewDto":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"]},"ConfirmInviteDto":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"]},"SignupDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"email":{"type":"string","format":"email"},"password":{"type":"string"},"returnUrl":{"type":"string"},"tosSigned":{"type":"boolean"},"birthday":{"format":"date-time","type":"string"},"username":{"type":"string"},"profileColor":{"type":"string"},"points":{"type":"number","minimum":0},"sourceDomain":{"type":"string"},"distributorId":{"type":"string"},"referrerId":{"type":"string"},"referralCode":{"type":"string"},"amplitudeExperimentVariant":{"type":"string"},"externalId":{"type":"string"},"userId":{"type":"string"}},"required":["email","returnUrl","tosSigned","sourceDomain","distributorId"]},"ResendEmailVerificationDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"userId":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["language","userId","email"]},"ValidateEmailDto":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]},"UpdatePayoutEmailDto":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]},"UpdatePayoutEmailEntity":{"type":"object","properties":{"verified":{"type":"boolean"}},"required":["verified"]},"PayoutEmailVerificationDto":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]},"MicrosoftRewardsDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"returnUrl":{"type":"string"},"sourceDomain":{"type":"string"}},"required":["returnUrl","sourceDomain"]},"AdminInviteUserDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"email":{"type":"string","format":"email"},"isExemptFromSigningTos":{"type":"boolean"}},"required":["email"]},"UserEntity":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"object","default":false},"payoutEmail":{"type":"string"},"payoutEmailVerified":{"type":"object","default":false},"payoutEmailCode":{"type":"string"},"password":{"type":"string"},"resetPasswordSecret":{"type":"string"},"createdAt":{"type":"object"},"updatedAt":{"type":"object"},"signupIp":{"type":"string"},"lastTosSigned":{"type":"number"},"tosSignedAt":{"type":"number"},"isExemptFromSigningTos":{"type":"object","default":false},"blocked":{"type":"boolean"},"blockedReason":{"type":"string"},"deletedAt":{"type":"number"},"roles":{"type":"object"},"language":{"type":"string","enum":["en-us","es-mx"]},"externalId":{"type":"object"}},"required":["id","emailVerified","payoutEmail","payoutEmailVerified","payoutEmailCode","createdAt","updatedAt","signupIp","lastTosSigned","tosSignedAt","isExemptFromSigningTos","roles","externalId"]},"ListUsersEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/UserEntity"}}},"required":["items"]},"SetCreatorDto":{"type":"object","properties":{"avatarAssetId":{"type":"string"},"partnerName":{"type":"string"},"profileColor":{"type":"string"},"userName":{"type":"string"}},"required":["avatarAssetId","partnerName","profileColor","userName"]},"UpdateUserDto":{"type":"object","properties":{"isExemptFromSigningTos":{"type":"boolean"}},"required":["isExemptFromSigningTos"]},"SetRoleDto":{"type":"object","properties":{"role":{"allOf":[{"$ref":"#/components/schemas/Role"}]}},"required":["role"]},"Profile":{"type":"object","properties":{"avatar":{"type":"string"},"id":{"type":"string"},"username":{"type":"string"},"avatarAssetId":{"type":"string"},"profileColor":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["avatar","id","username","profileColor","createdAt","updatedAt"]},"UserInfo":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"roles":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"blocked":{"type":"boolean"},"deletedAt":{"type":"number"},"language":{"type":"string"},"profile":{"$ref":"#/components/schemas/Profile"}},"required":["id","emailVerified","roles","createdAt","updatedAt"]},"FindUserslDto":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"]},"CreateUploadDto":{"type":"object","properties":{"extension":{"type":"string"}},"required":["extension"]},"Upload":{"type":"object","properties":{"uploadUrl":{"type":"string"},"resourceUrl":{"type":"string"}},"required":["uploadUrl","resourceUrl"]},"SynthesizeSpeechDto":{"type":"object","properties":{"engine":{"type":"string"},"text":{"type":"string"},"languageCode":{"type":"string"},"voiceId":{"type":"string"}},"required":["engine","text","languageCode","voiceId"]},"CreatePollyAssetDto":{"type":"object","properties":{"syntesizedSpeech":{"$ref":"#/components/schemas/SynthesizeSpeechDto"},"name":{"type":"string"},"userId":{"type":"string"}},"required":["syntesizedSpeech","name","userId"]},"SpeechMark":{"type":"object","properties":{"time":{"type":"number"},"type":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"},"value":{"type":"string"}},"required":["time","type","start","end","value"]},"ListSpeechMark":{"type":"object","properties":{"speechMarks":{"type":"array","items":{"$ref":"#/components/schemas/SpeechMark"}}},"required":["speechMarks"]},"Voice":{"type":"object","properties":{"gender":{"type":"string"},"id":{"type":"string"},"languageCode":{"type":"string"},"languageName":{"type":"string"},"name":{"type":"string"},"additionalLanguageCodes":{"type":"array","items":{"type":"string"}},"supportedEngines":{"type":"array","items":{"type":"string"}}},"required":["gender","id","languageCode","languageName","name","additionalLanguageCodes","supportedEngines"]},"ListVoices":{"type":"object","properties":{"total":{"type":"number"},"voices":{"type":"array","items":{"$ref":"#/components/schemas/Voice"}}},"required":["total","voices"]},"SearchInformation":{"type":"object","properties":{"totalResults":{"type":"string"}}},"Image":{"type":"object","properties":{"byteSize":{"type":"number"},"contextLink":{"type":"string"},"height":{"type":"number"},"thumbnailHeight":{"type":"number"},"thumbnailLink":{"type":"string"},"thumbnailWidth":{"type":"number"},"width":{"type":"number"}}},"Items":{"type":"object","properties":{"link":{"type":"string"},"fileFormat":{"type":"string"},"title":{"type":"string"},"htmlTitle":{"type":"string"},"displayLink":{"type":"string"},"mime":{"type":"string"},"image":{"$ref":"#/components/schemas/Image"}}},"GoogleSearchResult":{"type":"object","properties":{"searchInformation":{"$ref":"#/components/schemas/SearchInformation"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}}},"required":["items"]},"GoogleSearch":{"type":"object","properties":{"id":{"type":"string"},"result":{"$ref":"#/components/schemas/GoogleSearchResult"}},"required":["id","result"]},"InsertRawSearchDto":{"type":"object","properties":{"searchInformation":{"$ref":"#/components/schemas/SearchInformation"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Items"}}},"required":["items"]},"MessageDto":{"type":"object","properties":{"role":{"type":"object"},"content":{"type":"string"},"tool_calls":{"type":"object"},"tool_call_id":{"type":"string"},"name":{"type":"string"}},"required":["role","content"]},"ChatCompletionsDto":{"type":"object","properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageDto"}},"frequency_penalty":{"type":"number"},"function_call":{"type":"object"},"logit_bias":{"type":"object"},"max_tokens":{"type":"number"},"n":{"type":"number"},"presence_penalty":{"type":"number"},"response_format":{"type":"object"},"seed":{"type":"number"},"stop":{"type":"object"},"temperature":{"type":"number","minimum":0,"maximum":2},"tool_choice":{"type":"object"},"tools":{"type":"object"},"top_p":{"type":"number"},"user":{"type":"string"}},"required":["model","messages"]},"ParsedDocument":{"type":"object","properties":{"title":{"type":"string","description":"article title"},"content":{"type":"string","description":"HTML string of processed article content"},"textContent":{"type":"string","description":"text content of the article, with all the HTML tags removed"},"length":{"type":"number","description":"length of an article, in characters"},"excerpt":{"type":"string","description":"article description, or short excerpt from the content"},"byline":{"type":"string","description":"author metadata"},"dir":{"type":"string","description":"content direction"},"siteName":{"type":"string","description":"name of the site"},"lang":{"type":"string","description":"content language"},"linkData":{"description":"linkData from content","type":"array","items":{"type":"object"}},"publishedDate":{"format":"date-time","type":"string"},"isArticle":{"type":"boolean"},"recent":{"type":"boolean"}},"required":["title","content","textContent","length","excerpt","byline","dir","siteName","lang"]},"RenderDto":{"type":"object","properties":{"compositionId":{"type":"string"},"inputProps":{"type":"object"},"fps":{"type":"number","minimum":30,"maximum":60},"durationInFrames":{"type":"number","minimum":1},"width":{"type":"number","minimum":1},"height":{"type":"number","minimum":1},"bundleBuildId":{"type":"string"}},"required":["compositionId","inputProps","fps","durationInFrames","width","height","bundleBuildId"]},"JobStatus":{"type":"string","enum":["created","processing","complete","error"]},"VideoUrls":{"type":"object","properties":{"hls":{"type":"string"},"mp4360":{"type":"string"},"mp4540":{"type":"string"},"mp4720":{"type":"string"},"poster":{"type":"string"}},"required":["hls","mp4360","mp4540","mp4720","poster"]},"Asset":{"type":"object","properties":{"jobStatus":{"allOf":[{"$ref":"#/components/schemas/JobStatus"}]},"isVideo":{"type":"boolean"},"isAudio":{"type":"boolean"},"isImage":{"type":"boolean"},"videoUrl":{"$ref":"#/components/schemas/VideoUrls"},"imageUrl":{"type":"string"},"audioUrl":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"errorCode":{"type":"string"},"userId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"},"uploadSignedUrl":{"type":"string"}},"required":["jobStatus","isVideo","isAudio","isImage","videoUrl","imageUrl","audioUrl","id","name","mimeType","size","width","height","errorCode","userId","createdAt","updatedAt","deletedAt"]},"CreateChatHistoryDto":{"type":"object","properties":{"name":{"type":"string"},"history":{"type":"object"},"gameId":{"type":"string"},"messageVersion":{"type":"number"}},"required":["name","history","messageVersion"]},"ChatHistory":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"name":{"type":"string"},"history":{"type":"object"},"gameId":{"type":"string"},"messageVersion":{"type":"number"},"version":{"type":"number"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","creatorId","name","history","gameId","messageVersion","version","createdAt","updatedAt"]},"ChatHistoryList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChatHistory"}},"total":{"type":"number"}},"required":["items","total"]},"UpdateChatHistoryDto":{"type":"object","properties":{"history":{"type":"object"},"name":{"type":"string"},"gameId":{"type":"string"},"messageVersion":{"type":"number"},"version":{"type":"number"}},"required":["version"]},"CreateArticleDto":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]},"Article":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"rawOpenAiChat":{"type":"array","items":{"type":"object"}},"hostName":{"type":"string"},"partnerId":{"type":"string"},"sourceType":{"enum":["widget","manual","blob"],"type":"string"}},"required":["id","url","createdAt","updatedAt","rawOpenAiChat","hostName","partnerId"]},"GameType":{"type":"string","enum":["POLL","PREDICTION","INSTANT_POLL","TRIVIA","SURVEY","THIS_THAT"]},"GameDraftState":{"type":"string","enum":["sqa-to-review","video-to-review","video-ready","approved","rejected","published"]},"Side":{"type":"string","enum":["A","B"]},"ImageSearch":{"type":"object","properties":{"searchId":{"type":"string"},"selected":{"type":"number"}},"required":["searchId","selected"]},"Synopsis":{"type":"object","properties":{"text":{"type":"string"},"images_query":{"type":"string"},"image_type":{"type":"string"},"image_search":{"$ref":"#/components/schemas/ImageSearch"}},"required":["text","images_query","image_type","image_search"]},"Overlay":{"type":"object","properties":{"start_chunk":{"type":"number"},"end_chunk":{"type":"number"},"images_query":{"type":"string"},"image_type":{"type":"string"},"image_search":{"$ref":"#/components/schemas/ImageSearch"}},"required":["start_chunk","end_chunk","images_query","image_type","image_search"]},"Question":{"type":"object","properties":{"text":{"type":"string"},"images_query":{"type":"string"},"image_type":{"type":"string"},"image_search":{"$ref":"#/components/schemas/ImageSearch"}},"required":["text","images_query","image_type","image_search"]},"Answers":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"GameDetail":{"type":"object","properties":{"correctAnswer":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"synopsis":{"type":"array","items":{"$ref":"#/components/schemas/Synopsis"}},"overlays":{"type":"array","items":{"$ref":"#/components/schemas/Overlay"}},"question":{"type":"array","items":{"$ref":"#/components/schemas/Question"}},"answers":{"type":"array","items":{"$ref":"#/components/schemas/Answers"}}},"required":["synopsis","overlays","question","answers"]},"GameDraft":{"type":"object","properties":{"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/GameDraftState"}]},"id":{"type":"string"},"gameIndex":{"type":"string"},"lock":{"type":"number"},"userId":{"type":"string"},"gameDetail":{"$ref":"#/components/schemas/GameDetail"},"manualOverrides":{"type":"object"},"version":{"type":"number"},"gameIds":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"systemMessage":{"type":"string"},"systemMessageName":{"type":"string"},"url":{"type":"string"}},"required":["gameType","state","id","gameIndex","lock","gameDetail","manualOverrides","version","gameIds","createdAt","updatedAt","systemMessage","systemMessageName","url"]},"ListGameDraft":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GameDraft"}},"next":{"type":"string"}},"required":["items","next"]},"GameDraftVersion":{"type":"object","properties":{"id":{"type":"string"},"gameIndex":{"type":"string"},"userId":{"type":"string"},"gameDetail":{"$ref":"#/components/schemas/GameDetail"},"manualOverrides":{"type":"object"},"version":{"type":"number"},"createdAt":{"type":"string"}},"required":["id","gameIndex","gameDetail","manualOverrides","version","createdAt"]},"ListGameDraftVersion":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftVersion"}},"next":{"type":"string"}},"required":["items","next"]},"CreateDraftDto":{"type":"object","properties":{"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"gameDetail":{"$ref":"#/components/schemas/GameDetail"},"systemMessage":{"type":"string"},"systemMessageName":{"type":"string"},"url":{"type":"string"}},"required":["gameType","gameDetail","systemMessage","systemMessageName","url"]},"SetStateDto":{"type":"object","properties":{"state":{"allOf":[{"$ref":"#/components/schemas/GameDraftState"}]},"version":{"type":"number"},"gameIds":{"type":"array","items":{"type":"string"}},"lock":{"type":"number","minimum":0}},"required":["version"]},"NewVersionDto":{"type":"object","properties":{"version":{"type":"number"},"gameDetail":{"$ref":"#/components/schemas/GameDetail"},"manualOverrides":{"type":"object"}},"required":["version","gameDetail","manualOverrides"]},"Orientation":{"type":"string","enum":["landscape","portrait"]},"CreateGameDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"orientation":{"allOf":[{"$ref":"#/components/schemas/Orientation"}]},"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"correctAnswer":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"startTime":{"format":"date-time","type":"string"},"lastJoinTime":{"format":"date-time","type":"string"},"endTime":{"format":"date-time","type":"string"},"gameTitle":{"type":"string"},"sourceUrl":{"type":"string"},"categoryId":{"type":"string"},"sideA":{"type":"string"},"sideB":{"type":"string"},"videoAssetId":{"type":"string"},"text":{"type":"string"},"isAd":{"type":"boolean"},"isPrivate":{"type":"boolean"},"bingSearch":{"type":"string"},"bingSearchClaim":{"type":"string"},"metadata":{"type":"object"},"urls":{"type":"array","items":{"type":"string"}},"questionVideoAssetId":{"type":"string"},"landscapeVideoAssetId":{"type":"string"},"audioAssetId":{"type":"string"}},"required":["language","gameType","startTime","lastJoinTime","endTime","gameTitle","sourceUrl","categoryId","sideA","sideB","text","isAd"]},"GameStates":{"type":"string","enum":["new","active","waiting_for_declaration","declaring_winner","winner_declared","changing_game_result","processing_payouts","ended","canceled","refunded","quarantined"]},"SideStatsByTicketTypeEntity":{"type":"object","properties":{"gameplays":{"type":"number"},"tickets":{"type":"number"},"matched":{"type":"number"}},"required":["gameplays","tickets","matched"]},"SideStatsEntity":{"type":"object","properties":{"whiteTickets":{"$ref":"#/components/schemas/SideStatsByTicketTypeEntity"},"blackTickets":{"$ref":"#/components/schemas/SideStatsByTicketTypeEntity"},"freeTickets":{"$ref":"#/components/schemas/SideStatsByTicketTypeEntity"}},"required":["whiteTickets","blackTickets","freeTickets"]},"StatsEntity":{"type":"object","properties":{"sideA":{"$ref":"#/components/schemas/SideStatsEntity"},"sideB":{"$ref":"#/components/schemas/SideStatsEntity"}},"required":["sideA","sideB"]},"SlushingEntity":{"type":"object","properties":{"whiteTickets":{"type":"number"},"blackTickets":{"type":"number"},"blackTicketsGameplays":{"type":"number"}},"required":["whiteTickets","blackTickets","blackTicketsGameplays"]},"GameEntity":{"type":"object","properties":{"state":{"allOf":[{"$ref":"#/components/schemas/GameStates"}]},"winningSide":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"stats":{"$ref":"#/components/schemas/StatsEntity"},"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"orientation":{"allOf":[{"$ref":"#/components/schemas/Orientation"}]},"correctAnswer":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"id":{"type":"string"},"creatorId":{"type":"string"},"creator":{"$ref":"#/components/schemas/Creator"},"version":{"type":"number"},"startTime":{"type":"string"},"lastJoinTime":{"type":"string"},"endTime":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"slushing":{"$ref":"#/components/schemas/SlushingEntity"},"resultChanged":{"type":"boolean"},"hostEarnings":{"type":"number"},"isPendingResult":{"type":"boolean"},"isFinalResult":{"type":"boolean"},"votePercentageSideA":{"type":"number"},"votePercentageSideB":{"type":"number"},"gameTitle":{"type":"string"},"isAd":{"type":"boolean"},"isPrivate":{"type":"boolean"},"bingSearch":{"type":"string"},"bingSearchClaim":{"type":"string"},"metadata":{"type":"object"},"questionVideoUrls":{"$ref":"#/components/schemas/VideoUrls"},"landscapeVideoUrls":{"$ref":"#/components/schemas/VideoUrls"},"sideA":{"type":"string"},"sideB":{"type":"string"},"sourceUrl":{"type":"string"},"text":{"type":"string"},"videoUrls":{"$ref":"#/components/schemas/VideoUrls"},"resultUrls":{"$ref":"#/components/schemas/VideoUrls"},"categoryId":{"type":"string"},"category":{"$ref":"#/components/schemas/Category"},"urls":{"type":"array","items":{"type":"string"}},"audioAssetId":{"type":"string"}},"required":["state","gameType","language","id","creatorId","creator","version","startTime","lastJoinTime","endTime","createdAt","updatedAt","hostEarnings","isPendingResult","isFinalResult","votePercentageSideA","votePercentageSideB","gameTitle","isAd","isPrivate","bingSearch","sideA","sideB","sourceUrl","text","categoryId","category"]},"VoiceGenerationDto":{"type":"object","properties":{"text":{"type":"string"},"languageCode":{"type":"string","default":"en"},"voiceId":{"type":"string","default":"Brian"},"stability":{"type":"number","default":0.5},"similarityBoost":{"type":"number","default":0.75}},"required":["text","languageCode","voiceId","stability","similarityBoost"]},"CreateVoiceAssetDto":{"type":"object","properties":{"syntesizedSpeech":{"$ref":"#/components/schemas/VoiceGenerationDto"},"name":{"type":"string"},"userId":{"type":"string"}},"required":["syntesizedSpeech","name","userId"]},"AudioResponse":{"type":"object","properties":{"audio_base64":{"type":"string"},"alignment":{"type":"object","properties":{"characters":{"type":"array","items":{"type":"string"}},"character_start_times_seconds":{"type":"array","items":{"type":"number"}},"character_end_times_seconds":{"type":"array","items":{"type":"number"}}},"required":["characters","character_start_times_seconds","character_end_times_seconds"]},"normalized_alignment":{"type":"object","properties":{"characters":{"type":"array","items":{"type":"string"}},"character_start_times_seconds":{"type":"array","items":{"type":"number"}},"character_end_times_seconds":{"type":"array","items":{"type":"number"}}},"required":["characters","character_start_times_seconds","character_end_times_seconds"]}},"required":["audio_base64","alignment","normalized_alignment"]},"ElevenLabsVoice":{"type":"object","properties":{"voice_id":{"type":"string"},"name":{"type":"string"},"samples":{"type":"array","items":{"type":"object"}},"category":{"type":"string"},"fine_tuning":{"type":"object"},"labels":{"type":"object"},"description":{"type":"string"},"preview_url":{"type":"string"},"available_for_tiers":{"type":"array","items":{"type":"string"}},"settings":{"type":"object"},"sharing":{"type":"object"},"high_quality_base_model_ids":{"type":"array","items":{"type":"string"}},"safety_control":{"type":"object"},"voice_verification":{"type":"object"},"owner_id":{"type":"string"},"permission_on_resource":{"type":"string"},"is_legacy":{"type":"boolean"}},"required":["voice_id"]},"ElevenLabsVoiceList":{"type":"object","properties":{"total":{"type":"number"},"voices":{"type":"array","items":{"$ref":"#/components/schemas/ElevenLabsVoice"}}},"required":["total","voices"]},"sourceType":{"type":"string","enum":["widget","manual","blob"]},"CreateArticleDtoV2":{"type":"object","properties":{"url":{"type":"string"},"partnerId":{"type":"string"},"sourceType":{"allOf":[{"$ref":"#/components/schemas/sourceType"}]},"text":{"type":"string"}},"required":["url","partnerId","sourceType","text"]},"ArticleSourceType":{"type":"string","enum":["widget","manual","blob"]},"GameDraftEntity":{"type":"object","properties":{"articleId":{"type":"string"},"url":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"state":{"allOf":[{"$ref":"#/components/schemas/GameDraftState"}]},"lock":{"type":"number"},"userId":{"type":"string"},"manualOverrides":{"type":"object"},"version":{"type":"number"},"gameIds":{"type":"array","items":{"type":"string"}},"systemMessage":{"type":"string"},"systemMessageName":{"type":"string"},"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"article":{"$ref":"#/components/schemas/ArticleEntity"},"id":{"type":"string"},"gameDetail":{"$ref":"#/components/schemas/GameDetail"},"text":{"type":"string"}},"required":["articleId","url","createdAt","updatedAt","state","lock","version","gameIds","article","id","gameDetail","text"]},"ArticleEntity":{"type":"object","properties":{"sourceType":{"allOf":[{"$ref":"#/components/schemas/ArticleSourceType"}]},"id":{"type":"string"},"articleKey":{"type":"string"},"partnerId":{"type":"string"},"url":{"type":"string"},"hostName":{"type":"string"},"rawOpenAiChat":{"type":"array","items":{"type":"object"}},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"drafts":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftEntity"}}},"required":["sourceType","id","articleKey","partnerId","url","hostName","createdAt","updatedAt","drafts"]},"PartnerDomain":{"type":"object","properties":{"hostName":{"type":"string"},"id":{"type":"string"},"draftsCount":{"type":"number"}},"required":["hostName","id","draftsCount"]},"PartnerDomainResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PartnerDomain"}}},"required":["items"]},"HostArticle":{"type":"object","properties":{"url":{"type":"string"},"id":{"type":"string"},"draftsCount":{"type":"number"},"sourceType":{"type":"string"},"createDay":{"format":"date-time","type":"string"}},"required":["url","id","draftsCount","sourceType","createDay"]},"HostArticleResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/HostArticle"}}},"required":["items"]},"ListGameDraftV2":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GameDraftEntity"}}},"required":["items"]},"Creator":{"type":"object","properties":{"avatar":{"type":"string"},"id":{"type":"string"},"partnerName":{"type":"string"},"avatarAssetId":{"type":"string"},"profileColor":{"type":"string"},"userName":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["avatar","id","partnerName","avatarAssetId","profileColor","userName","createdAt","updatedAt"]},"Category":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"id":{"type":"string"},"categoryName":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"type":"string"},"sticker":{"type":"string"},"icon":{"type":"string"}},"required":["language","id","categoryName","createdAt","updatedAt","deletedAt"]},"GameExpand":{"type":"string","enum":["creators","categories"]},"SearchFindGamesDto":{"type":"object","properties":{"states":{"type":"array","items":{"$ref":"#/components/schemas/GameStates"}},"includeGameTypes":{"type":"array","items":{"$ref":"#/components/schemas/GameType"}},"excludeGameTypes":{"type":"array","items":{"$ref":"#/components/schemas/GameType"}},"gameText":{"type":"string"},"creatorId":{"type":"string"},"ids":{"type":"array","items":{"type":"string"}},"categoryId":{"type":"string"},"categoryName":{"type":"string"},"startAfter":{"format":"date-time","type":"string"},"startBefore":{"format":"date-time","type":"string"},"endAfter":{"format":"date-time","type":"string"}}},"SortMode":{"type":"string","enum":["asc","desc"]},"SortFindGamesDto":{"type":"object","properties":{"createdAt":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"startTime":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"endTime":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"lastJoinTime":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"Game":{"type":"object","properties":{"audioUrl":{"type":"string"},"videoUrls":{"$ref":"#/components/schemas/VideoUrls"},"questionVideoUrls":{"$ref":"#/components/schemas/VideoUrls"},"landscapeVideoUrls":{"$ref":"#/components/schemas/VideoUrls"},"resultUrls":{"$ref":"#/components/schemas/VideoUrls"},"state":{"allOf":[{"$ref":"#/components/schemas/GameStates"}]},"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"orientation":{"allOf":[{"$ref":"#/components/schemas/Orientation"}]},"correctAnswer":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"id":{"type":"string"},"creatorId":{"type":"string"},"creator":{"$ref":"#/components/schemas/Creator"},"startTime":{"format":"date-time","type":"string"},"endTime":{"format":"date-time","type":"string"},"lastJoinTime":{"format":"date-time","type":"string"},"gameTitle":{"type":"string"},"sourceUrl":{"type":"string"},"sideA":{"type":"string"},"sideB":{"type":"string"},"videoAssetId":{"type":"string"},"questionVideoAssetId":{"type":"string"},"landscapeVideoAssetId":{"type":"string"},"audioAssetId":{"type":"string"},"resultAssetId":{"type":"string"},"text":{"type":"string"},"categoryId":{"type":"string"},"category":{"$ref":"#/components/schemas/Category"},"isAd":{"type":"boolean"},"isPrivate":{"type":"boolean"},"bingSearch":{"type":"string"},"bingSearchClaim":{"type":"string"},"metadata":{"type":"object"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"version":{"type":"number"},"urls":{"type":"array","items":{"type":"string"}}},"required":["audioUrl","videoUrls","questionVideoUrls","landscapeVideoUrls","resultUrls","state","language","gameType","id","creatorId","creator","startTime","endTime","lastJoinTime","gameTitle","sourceUrl","sideA","sideB","text","categoryId","category","isAd","createdAt","updatedAt","version"]},"ListGame":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Game"}},"total":{"type":"number"}},"required":["items","total"]},"DeclareGameDto":{"type":"object","properties":{"side":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"resultAssetId":{"type":"string"},"version":{"type":"number"}},"required":["side","resultAssetId","version"]},"UpdateGameDto":{"type":"object","properties":{"isPrivate":{"type":"boolean"},"bingSearch":{"type":"string"},"bingSearchClaim":{"type":"string"},"metadata":{"type":"object"},"version":{"type":"number"}},"required":["version"]},"ListGameDetails":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GameEntity"}},"total":{"type":"number"}},"required":["items","total"]},"SearchGame":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Game"}},"scores":{"type":"array","items":{"type":"number"}},"total":{"type":"number"}},"required":["items","scores","total"]},"UserPropertiesDto":{"type":"object","properties":{"language":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"},"platform":{"type":"string"}}},"UserProperties":{"type":"object","properties":{"userProperties":{"$ref":"#/components/schemas/UserPropertiesDto"}}},"RecommendedGameResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Game"}},"recommendId":{"type":"string"}},"required":["items","recommendId"]},"GameStatsEntity":{"type":"object","properties":{"sideAPercent":{"type":"number"}},"required":["sideAPercent"]},"CreateGameComplaintDto":{"type":"object","properties":{"sessionId":{"type":"string"},"reason":{"type":"string"}},"required":["sessionId","reason"]},"BusinessPayoutV2Dto":{"type":"object","properties":{"coins":{"type":"number","minimum":100,"maximum":5000000}},"required":["coins"]},"Business":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"coins":{"type":"number"},"paymentPeriod":{"type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","userId","coins","paymentPeriod","createdAt"]},"RewardLinkTypes":{"type":"string","enum":["gift_card"]},"GcowPayoutDto":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/RewardLinkTypes"}]},"coins":{"type":"number","minimum":100,"maximum":5000}},"required":["type","coins"]},"GcowPayout":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"coins":{"type":"number"},"createdAt":{"format":"date-time","type":"string"},"idempotencyKey":{"type":"string"},"authorizationId":{"type":"string"},"errored":{"type":"boolean"},"successful":{"type":"boolean"}},"required":["id","userId","coins","createdAt","idempotencyKey","authorizationId","errored","successful"]},"CallbackDto":{"type":"object","properties":{"app_id":{"type":"string"},"customer_email":{"type":"string"},"created_at":{"type":"number","minimum":0},"amount":{"type":"string"},"currency_code":{"type":"string"},"url":{"type":"string"},"idempotency_key":{"type":"string"},"sign":{"type":"string"}},"required":["app_id","customer_email","created_at","amount","currency_code","url","idempotency_key","sign"]},"CreateStripePaymentDto":{"type":"object","properties":{"productId":{"type":"string"}},"required":["productId"]},"PaymentStatus":{"type":"string","enum":["pending","success","failed"]},"ProductEntity":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"id":{"type":"string"},"productName":{"type":"string"},"productDescription":{"type":"string"},"whiteTickets":{"type":"number"},"blackTickets":{"type":"number"},"amount":{"type":"number"},"mostPopular":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"}},"required":["language","id","productName","productDescription","whiteTickets","blackTickets","amount","mostPopular","createdAt","deletedAt"]},"StripeEntity":{"type":"object","properties":{"paymentStatus":{"allOf":[{"$ref":"#/components/schemas/PaymentStatus"}]},"id":{"type":"string"},"userId":{"type":"string"},"productId":{"type":"string"},"product":{"$ref":"#/components/schemas/ProductEntity"},"idempotencyKey":{"type":"string"},"clientSecret":{"type":"string"},"ip":{"type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["paymentStatus","id","userId","productId","product","idempotencyKey","clientSecret","ip","createdAt"]},"BuyTicketsDto":{"type":"object","properties":{"product_id":{"type":"string","example":"1"}},"required":["product_id"]},"BusinessExpand":{"type":"string","enum":["user"]},"SearchFindBusinessDto":{"type":"object","properties":{"paymentPeriod":{"type":"string"},"userId":{"type":"string"}}},"SortFindBusinessDto":{"type":"object","properties":{"userId":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"createdAt":{"type":"string","enum":["asc","desc"]}}},"WalletLeague":{"type":"object","properties":{"name":{"type":"string"},"leaderboardId":{"type":"string"}},"required":["name","leaderboardId"]},"DailySetCount":{"type":"object","properties":{"totalCompleted":{"type":"number","default":0},"totalWins":{"type":"number","default":0},"totalLosses":{"type":"number","default":0},"totalTies":{"type":"number","default":0}},"required":["totalCompleted","totalWins","totalLosses","totalTies"]},"WalletResponse":{"type":"object","properties":{"id":{"type":"string"},"coins":{"type":"number"},"pendingCoins":{"type":"number"},"whiteTickets":{"type":"number"},"blackTickets":{"type":"number"},"grayTickets":{"type":"number"},"points":{"type":"number"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"version":{"type":"number"},"canCollectFreeGift":{"type":"boolean"},"gamesDeclared":{"type":"number"},"gamesCorrectAnswers":{"type":"number"},"achievements":{"type":"array","items":{"type":"string"}},"currentLeague":{"enum":["level1","level2","level3","level4"],"type":"string"},"gamePlaysSinceDemotion":{"type":"number"},"lifetimeGamesPlayed":{"type":"number"},"emailVerified":{"type":"boolean"},"leagues":{"type":"array","items":{"$ref":"#/components/schemas/WalletLeague"}},"referralCount":{"type":"number"},"dailySetCounts":{"$ref":"#/components/schemas/DailySetCount"}},"required":["id","coins","pendingCoins","whiteTickets","blackTickets","grayTickets","points","createdAt","updatedAt","version","canCollectFreeGift","gamesDeclared","gamesCorrectAnswers","achievements","currentLeague","gamePlaysSinceDemotion","lifetimeGamesPlayed","emailVerified","referralCount","dailySetCounts"]},"ExpandedBusiness":{"type":"object","properties":{"profile":{"$ref":"#/components/schemas/Creator"},"balance":{"$ref":"#/components/schemas/WalletResponse"},"id":{"type":"string"},"userId":{"type":"string"},"coins":{"type":"number"},"paymentPeriod":{"type":"string"},"createdAt":{"type":"string"}},"required":["profile","balance","id","userId","coins","paymentPeriod","createdAt"]},"ListExpandedBusinessEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedBusiness"}},"total":{"type":"number"}},"required":["items","total"]},"UpdateCreatorDto":{"type":"object","properties":{"partnerName":{"type":"string"},"avatarAssetId":{"type":"string"},"profileColor":{"type":"string"},"userName":{"type":"string"}}},"SearchFindCreatorDto":{"type":"object","properties":{"creatorIds":{"type":"array","items":{"type":"string"}},"partnerName":{"type":"string"},"userName":{"type":"string"}}},"SortFindCreatorDto":{"type":"object","properties":{"partnerName":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"userName":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"ListCreator":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Creator"}},"total":{"type":"number"}},"required":["items","total"]},"ListGameplayStates":{"type":"string","enum":["all","active","pending","finished"]},"GameplayStates":{"type":"string","enum":["waiting_for_match","matched","declared_winner","declared_loser","won","lost","canceled"]},"TicketType":{"type":"string","enum":["white","black","free"]},"RewardType":{"type":"string","enum":["microsoft"]},"AchievementEntity":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"expireAt":{"format":"date-time","type":"string"},"achievementId":{"type":"string"}},"required":["id","userId","createdAt","expireAt","achievementId"]},"Gameplay":{"type":"object","properties":{"gameType":{"allOf":[{"$ref":"#/components/schemas/GameType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/GameplayStates"}]},"side":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"ticketType":{"allOf":[{"$ref":"#/components/schemas/TicketType"}]},"rewardType":{"allOf":[{"$ref":"#/components/schemas/RewardType"}]},"achievements":{"type":"array","items":{"$ref":"#/components/schemas/AchievementEntity"}},"game":{"$ref":"#/components/schemas/Game"},"id":{"type":"string"},"userId":{"type":"string"},"gameId":{"type":"string"},"quantity":{"type":"number"},"matched":{"type":"number"},"rewardClaimed":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"opponents":{"type":"object"},"returnUrl":{"type":"string"},"sideAPercent":{"type":"number"},"majorityBonusWon":{"type":"boolean"},"newLeague":{"enum":["level1","level2","level3","level4"],"type":"string"}},"required":["gameType","state","side","ticketType","game","id","userId","gameId","quantity","matched","createdAt","opponents","returnUrl"]},"ListGameplays":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Gameplay"}},"next":{"type":"string"}},"required":["items","next"]},"CreateGameplayDto":{"type":"object","properties":{"ticketType":{"allOf":[{"$ref":"#/components/schemas/TicketType"}]},"rewardType":{"allOf":[{"$ref":"#/components/schemas/RewardType"}]},"side":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"gameSetAttempt":{"type":"number","default":1,"minimum":1,"description":"Required for multiple attempts with This_That game sets"},"gameSetIsComplete":{"type":"boolean","default":false,"description":"No longer used for This_That game sets, but still needed for mini-games gameSets."},"correctAnswerStreakDidEnd":{"type":"boolean","default":false,"description":"No longer used for This_That game sets, but still needed for mini-games gameSets."},"gameId":{"type":"string"},"quantity":{"type":"number","minimum":1,"maximum":100},"widgetId":{"type":"string"},"returnUrl":{"type":"string"},"points":{"type":"number","minimum":0},"distributorId":{"type":"string"},"gameSetId":{"type":"string"},"shareCode":{"type":"string"}},"required":["ticketType","side","gameId","quantity","widgetId","returnUrl","distributorId"]},"WidgetTypes":{"type":"string","enum":["inline","expanding","mobile-expanding","docked","carousel","sidebar","playlist"]},"GameSet":{"type":"object","properties":{"id":{"type":"string"},"partnerId":{"type":"string"},"partner":{"$ref":"#/components/schemas/Creator"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"startTime":{"format":"date-time","type":"string"},"endTime":{"format":"date-time","type":"string"},"deletedAt":{"format":"date-time","type":"string"},"games":{"type":"array","items":{"$ref":"#/components/schemas/Game"}}},"required":["id","partner","createdAt","updatedAt","startTime","endTime","deletedAt","games"]},"Widget":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/WidgetTypes"}]},"id":{"type":"string"},"name":{"type":"string"},"creatorId":{"type":"string"},"creator":{"$ref":"#/components/schemas/Creator"},"playlistId":{"type":"string"},"playlist":{"$ref":"#/components/schemas/Playlist"},"deletedAt":{"format":"date-time","type":"string"}},"required":["type","id","name","creatorId","creator","playlistId","playlist","deletedAt"]},"Playlist":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"gameSet":{"$ref":"#/components/schemas/GameSet"},"id":{"type":"string"},"totalGames":{"type":"number"},"creatorId":{"type":"string"},"creator":{"$ref":"#/components/schemas/Creator"},"widgets":{"type":"array","items":{"$ref":"#/components/schemas/Widget"}},"gamesOrder":{"type":"array","items":{"type":"string"}},"games":{"type":"array","items":{"$ref":"#/components/schemas/Game"}},"autofilledGames":{"type":"array","items":{"$ref":"#/components/schemas/Game"}},"autofillCategories":{"type":"array","items":{"$ref":"#/components/schemas/Category"}},"autofillCreators":{"type":"array","items":{"$ref":"#/components/schemas/Creator"}},"autofillExcludedCreators":{"type":"array","items":{"$ref":"#/components/schemas/Creator"}},"autofill":{"type":"boolean"}},"required":["language","id","totalGames","creatorId","creator","widgets","games","autofilledGames","autofill"]},"FindWidgetForTVTDto":{"type":"object","properties":{"categoryIds":{"type":"array","items":{"type":"string"},"description":"List of category IDs to use for game selection"},"requestedGameCount":{"type":"number","default":20,"minimum":0,"maximum":100,"description":"Number of games to return"},"cursor":{"type":"string","description":"Cursor for pagination"}},"required":["categoryIds"]},"GetWidgetTVTResponseDto":{"type":"object","properties":{"widget":{"$ref":"#/components/schemas/Widget"},"cursor":{"type":"string","description":"Cursor for pagination will be returned if there are more results"}},"required":["widget"]},"FindWidgetTextDtoV2":{"type":"object","properties":{"distance":{"type":"number"},"text":{"type":"string"},"categoryIds":{"type":"array","items":{"type":"string"}},"preferCategoryIds":{"type":"array","items":{"type":"string"}},"excludeCategoryIds":{"type":"array","items":{"type":"string"}},"context":{"type":"object"},"size":{"type":"number","minimum":0,"maximum":500}},"required":["context"]},"CreateWidgetDto":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/WidgetTypes"}]},"playlistId":{"type":"string"},"name":{"type":"string"}},"required":["type","playlistId","name"]},"UpdateWidgetDto":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/WidgetTypes"}]},"name":{"type":"string"}}},"WidgetExpand":{"type":"string","enum":["creator","playlist"]},"SearchWidgetDto":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/WidgetTypes"}]},"creatorId":{"type":"string"},"name":{"type":"string"},"PlaylistId":{"type":"string"}}},"SortWidgetDto":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"name":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"ListWidgets":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Widget"}},"total":{"type":"number"}},"required":["items","total"]},"SearchFindCategoryDto":{"type":"object","properties":{"categoryName":{"type":"string"}}},"SortFindCategoryDto":{"type":"object","properties":{"categoryName":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"createdAt":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"updatedAt":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"ListCategory":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Category"}},"total":{"type":"number"}},"required":["items","total"]},"CreateCategoryDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"categoryName":{"type":"string"},"sticker":{"type":"string"},"icon":{"type":"string"}},"required":["language","categoryName"]},"UpdateCategoryDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"categoryName":{"type":"string"},"sticker":{"type":"string"},"icon":{"type":"string"}}},"FundsUpdatedReasons":{"type":"string","enum":["free_gift","host_cut","referrer_cut","parent_cut","transaction_voided","game_played","game_outcome","pending_outcome","purchase","redeem","refund","payout","admin_update","distributor_cut","achievement"]},"FundType":{"type":"string","enum":["free","white","black","gray","coin","pending_coin","point"]},"Fund":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/FundType"}]},"amount":{"type":"number"}},"required":["type","amount"]},"LedgersEntity":{"type":"object","properties":{"reason":{"allOf":[{"$ref":"#/components/schemas/FundsUpdatedReasons"}]},"id":{"type":"string"},"userId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"funds":{"type":"array","items":{"$ref":"#/components/schemas/Fund"}}},"required":["reason","id","userId","createdAt","funds"]},"LedgerListEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LedgersEntity"}},"next":{"type":"string"}},"required":["items"]},"NotificationCount":{"type":"object","properties":{"count":{"type":"number"},"rewardsToClaim":{"type":"number"}},"required":["count","rewardsToClaim"]},"NotificationTypes":{"type":"string","enum":["cuts","game_outcome","game_played","leaderboard_points","user_demotion","user_promotion","user_achievement"]},"NotificationTypesDto":{"type":"string","enum":["cuts","game_outcome","game_played","leaderboard_points","user_demotion","user_promotion","user_achievement"]},"NotificationDto":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/NotificationTypesDto"}]},"notification":{"oneOf":[{"$ref":"#/components/schemas/CutsNotification"},{"$ref":"#/components/schemas/GameOutcomeNotification"},{"$ref":"#/components/schemas/GamePlayedNotification"},{"$ref":"#/components/schemas/LeaderboardPointsNotification"},{"$ref":"#/components/schemas/UserDemotionNotification"},{"$ref":"#/components/schemas/UserPromotionNotification"},{"$ref":"#/components/schemas/UserAchievementNotification"}]},"id":{"type":"string"},"userId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["type","notification","id","userId","createdAt"]},"NotificationsListEntity":{"type":"object","properties":{"next":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDto"}},"gameEntities":{"type":"array","items":{"$ref":"#/components/schemas/Game"}},"userEntities":{"type":"array","items":{"$ref":"#/components/schemas/Profile"}},"users":{"type":"array","items":{"type":"string"}},"games":{"type":"array","items":{"type":"string"}}},"required":["items","gameEntities","userEntities","users","games"]},"GlobalCutsEntity":{"type":"object","properties":{"version":{"type":"number"},"transactionFeePercentage":{"type":"number"},"rakePercentage":{"type":"number"},"defaultDistributorCutPercentage":{"type":"number"},"defaultCreatorCutPercentage":{"type":"number"},"updatedAt":{"type":"string"}},"required":["transactionFeePercentage","rakePercentage","defaultDistributorCutPercentage","defaultCreatorCutPercentage","updatedAt"]},"GlobalCutsHistoryEntity":{"type":"object","properties":{"updatedBy":{"type":"string"},"after":{"$ref":"#/components/schemas/GlobalCutsEntity"}},"required":["updatedBy","after"]},"GlobalCutsHistoryListEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GlobalCutsHistoryEntity"}},"next":{"type":"string"}},"required":["items","next"]},"UpdateGlobalCutsDto":{"type":"object","properties":{"transactionFeePercentage":{"type":"number","minimum":0,"maximum":100},"rakePercentage":{"type":"number","minimum":0,"maximum":100},"defaultDistributorCutPercentage":{"type":"number","minimum":0,"maximum":100},"defaultCreatorCutPercentage":{"type":"number","minimum":0,"maximum":100},"version":{"type":"number","minimum":0}},"required":["transactionFeePercentage","rakePercentage","defaultDistributorCutPercentage","defaultCreatorCutPercentage","version"]},"ParentCut":{"type":"object","properties":{"userId":{"type":"string"},"cutPercentage":{"type":"number"},"userName":{"type":"string"},"type":{"type":"string","enum":["general"]},"description":{"type":"string"}},"required":["userId","cutPercentage","userName","type","description"]},"UserCutsEntity":{"type":"object","properties":{"version":{"type":"number"},"userId":{"type":"string"},"distributorCutPercentage":{"type":"number"},"creatorCutPercentage":{"type":"number"},"parents":{"type":"array","items":{"$ref":"#/components/schemas/ParentCut"}}},"required":["version","userId","distributorCutPercentage","creatorCutPercentage","parents"]},"ValidParentCut":{"type":"object","properties":{"userId":{"type":"string"},"cutPercentage":{"type":"number"},"type":{"type":"string","enum":["general"]},"description":{"type":"string"}},"required":["userId","cutPercentage","type","description"]},"UpdateUserCutsDto":{"type":"object","properties":{"userId":{"type":"string"},"creatorCutPercentage":{"type":"number","minimum":0,"maximum":50},"parents":{"type":"array","items":{"$ref":"#/components/schemas/ValidParentCut"}},"version":{"type":"number","minimum":0}},"required":["userId","creatorCutPercentage","parents","version"]},"UpdateUserDistributionCutsDto":{"type":"object","properties":{"userId":{"type":"string"},"distributorCutPercentage":{"type":"number","minimum":0,"maximum":100},"version":{"type":"number","minimum":0}},"required":["userId","distributorCutPercentage","version"]},"UserCutsHistoryEntity":{"type":"object","properties":{"userId":{"type":"string"},"updatedBy":{"type":"string"},"after":{"$ref":"#/components/schemas/UserCutsEntity"},"createdAt":{"type":"number"}},"required":["userId","updatedBy","after","createdAt"]},"UserCutsHistoryListEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/UserCutsHistoryEntity"}},"next":{"type":"string"}},"required":["items","next"]},"PlaylistExpand":{"type":"string","enum":["games","creator","widgets"]},"SearchFindPlaylistDto":{"type":"object","properties":{"creatorIds":{"type":"array","items":{"type":"string"}},"ids":{"type":"array","items":{"type":"string"}},"autofill":{"type":"boolean"}}},"SortFindPlaylistDto":{"type":"object","properties":{"id":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"ListPlaylist":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Playlist"}},"total":{"type":"number"}},"required":["items","total"]},"CreatePlaylistDto":{"type":"object","properties":{"language":{"allOf":[{"$ref":"#/components/schemas/Language"}]},"gameIds":{"type":"array","items":{"type":"string"}},"autofill":{"type":"boolean"},"totalGames":{"type":"number"},"autofillCategories":{"type":"array","items":{"type":"string"}},"autofillCreators":{"type":"array","items":{"type":"string"}},"autofillExcludedCreators":{"type":"array","items":{"type":"string"}}},"required":["language","autofill","totalGames"]},"UpdatePlaylistDto":{"type":"object","properties":{"gameIds":{"type":"array","items":{"type":"string"}},"autofill":{"type":"boolean"},"totalGames":{"type":"number"},"autofillCategories":{"type":"array","items":{"type":"string"}},"autofillCreators":{"type":"array","items":{"type":"string"}},"autofillExcludedCreators":{"type":"array","items":{"type":"string"}}}},"CustomUrl":{"type":"object","properties":{"creatorId":{"type":"string"},"creator":{"$ref":"#/components/schemas/Creator"},"widgetId":{"type":"string"},"widget":{"$ref":"#/components/schemas/Widget"},"url":{"type":"string"},"websiteTitle":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["creatorId","creator","widgetId","widget","url","websiteTitle","backgroundColor","textColor","createdAt","updatedAt"]},"UpdateCustomUrlDto":{"type":"object","properties":{"widgetId":{"type":"string"},"url":{"type":"string"},"websiteTitle":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"}}},"CustomUrlExpand":{"type":"string","enum":["creator","widget"]},"CustomUrlSearchFindAllDto":{"type":"object","properties":{"creatorIds":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"websiteTitle":{"type":"string"}}},"CustomUrlSearchFindAllDto2":{"type":"object","properties":{"search":{"$ref":"#/components/schemas/CustomUrlSearchFindAllDto"}}},"CustomUrlSortFindAllDto":{"type":"object","properties":{"url":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"websiteTitle":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"CustomUrlSortFindAllDto2":{"type":"object","properties":{"sort":{"$ref":"#/components/schemas/CustomUrlSortFindAllDto"}}},"ListCustomUrl":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CustomUrl"}},"total":{"type":"number"}},"required":["items","total"]},"CreateCustomUrlDto":{"type":"object","properties":{"widgetId":{"type":"string"},"url":{"type":"string"},"websiteTitle":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"}},"required":["widgetId","url","websiteTitle","backgroundColor","textColor"]},"SearchFindProductDto":{"type":"object","properties":{"productName":{"type":"string"}}},"SearchFindProductDto2":{"type":"object","properties":{"search":{"$ref":"#/components/schemas/SearchFindProductDto"}}},"SortFindProductDto":{"type":"object","properties":{"amount":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"productName":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"SortFindProductDto2":{"type":"object","properties":{"sort":{"$ref":"#/components/schemas/SortFindProductDto"}}},"ListProduct":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProductEntity"}},"total":{"type":"number"}},"required":["items","total"]},"CreateProductDto":{"type":"object","properties":{"productName":{"type":"string"},"productDescription":{"type":"string"},"whiteTickets":{"type":"number"},"blackTickets":{"type":"number"},"amount":{"type":"number"},"mostPopular":{"type":"boolean"},"language":{"type":"string","enum":["en-us","es-mx"]}},"required":["productName","productDescription","whiteTickets","blackTickets","amount","mostPopular","language"]},"UpdateProductDto":{"type":"object","properties":{"productName":{"type":"string"},"productDescription":{"type":"string"},"whiteTickets":{"type":"number"},"whiteTicketImage":{"type":"string"},"blackTickets":{"type":"number"},"blackTicketImage":{"type":"string"},"amount":{"type":"number"},"mostPopular":{"type":"boolean"},"language":{"type":"string","enum":["en-us","es-mx"]}}},"AssetSearchFindAllDto":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}},"ids":{"type":"array","items":{"type":"string"}}}},"AssetSearchFindAllDto2":{"type":"object","properties":{"search":{"$ref":"#/components/schemas/AssetSearchFindAllDto"}}},"ListAsset":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"total":{"type":"number"}},"required":["items","total"]},"CreateAssetDto":{"type":"object","properties":{"name":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"number","minimum":1},"width":{"type":"number"},"height":{"type":"number"}},"required":["name","mimeType","size","width","height"]},"PersonalInformation":{"type":"object","properties":{"id":{"type":"string"},"birthday":{"format":"date-time","type":"string"}},"required":["id"]},"UpdatePersonalInformationDto":{"type":"object","properties":{"birthday":{"format":"date-time","type":"string"}}},"UpdateProfileDto":{"type":"object","properties":{"username":{"type":"string"},"profileColor":{"type":"string"},"avatarAssetId":{"type":"string","nullable":true}}},"ValidUsernameDto":{"type":"object","properties":{"username":{"type":"string"}},"required":["username"]},"SearchFindProfileEmailDto":{"type":"object","properties":{"userEmail":{"type":"string"},"username":{"type":"string"},"usernameLike":{"type":"string"},"ids":{"type":"array","items":{"type":"string"}}}},"SortFindProfileDto":{"type":"object","properties":{"username":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]},"createdAt":{"allOf":[{"$ref":"#/components/schemas/SortMode"}]}}},"ExpandedProfile":{"type":"object","properties":{"avatar":{"type":"string"},"roles":{"type":"array","items":{"$ref":"#/components/schemas/Role"}},"balance":{"$ref":"#/components/schemas/WalletResponse"},"id":{"type":"string"},"username":{"type":"string"},"avatarAssetId":{"type":"string"},"profileColor":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["avatar","roles","balance","id","username","profileColor","createdAt","updatedAt"]},"ListExpandedProfile":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedProfile"}},"total":{"type":"number"}},"required":["items","total"]},"ClaimDailyGiftResponse":{"type":"object","properties":{"amount":{"type":"number"}},"required":["amount"]},"ValidUpdateFunds":{"type":"string","enum":["black","white","coin","point"]},"ValidUpdateFund":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/ValidUpdateFunds"}]},"amount":{"type":"number"}},"required":["type","amount"]},"AdminUpdateFundsDto":{"type":"object","properties":{"reason":{"allOf":[{"$ref":"#/components/schemas/FundsUpdatedReasons"}]},"walletVersion":{"type":"number"},"funds":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/ValidUpdateFund"}},"adminDescription":{"type":"string"},"distributorId":{"type":"string"},"gameCorrectAnswer":{"type":"boolean"},"gameDeclared":{"type":"boolean"}},"required":["reason","funds"]},"UpdateWalletResponse":{"type":"object","properties":{"version":{"type":"number"},"updatedAt":{"format":"date-time","type":"string"}},"required":["updatedAt"]},"DemoteUserDto":{"type":"object","properties":{"distributorId":{"type":"string"}},"required":["distributorId"]},"PromoteUserDto":{"type":"object","properties":{"leaderboardLeague":{"type":"string","enum":["level1","level2","level3","level4"]},"distributorId":{"type":"string"}},"required":["leaderboardLeague","distributorId"]},"LeaderboardState":{"type":"string","enum":["OPEN","FULL","AWARDING","ARCHIVED"]},"LeaderboardLeague":{"type":"string","enum":["level1","level2","level3","level4"]},"CreateLeaderboardDto":{"type":"object","properties":{"state":{"allOf":[{"$ref":"#/components/schemas/LeaderboardState"}]},"league":{"allOf":[{"$ref":"#/components/schemas/LeaderboardLeague"}]},"imageAssetId":{"type":"string"},"distributorId":{"type":"string"},"prizeName":{"type":"string"},"prizeType":{"type":"string"},"prizeValue":{"type":"number"},"startDate":{"type":"string"},"endDate":{"type":"string"},"prizeDrawingDate":{"type":"string"},"pointThreshold":{"type":"number","minimum":1,"maximum":5000},"numberOfPrizes":{"type":"number","minimum":1},"isVerified":{"type":"boolean"},"prizeNameShort":{"type":"string"},"imageSmallAssetId":{"type":"string"},"imageIconAssetId":{"type":"string"},"prizeTitle":{"type":"string"},"prizeShortTitle":{"type":"string"},"maxUsersThreshold":{"type":"number"},"gameplaysThreshold":{"type":"number"},"revenueThreshold":{"type":"number"}},"required":["league","imageAssetId","distributorId","prizeName","prizeType","prizeValue","startDate","endDate","prizeDrawingDate","pointThreshold","numberOfPrizes","prizeTitle","prizeShortTitle","maxUsersThreshold","gameplaysThreshold"]},"LeaderboardAdmin":{"type":"object","properties":{"state":{"allOf":[{"$ref":"#/components/schemas/LeaderboardState"}]},"league":{"allOf":[{"$ref":"#/components/schemas/LeaderboardLeague"}]},"id":{"type":"string"},"prizeName":{"type":"string"},"prizeType":{"type":"string"},"prizeValue":{"type":"number"},"imageAssetId":{"type":"string"},"imageAssetUrl":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"prizeDrawingDate":{"type":"string"},"pointThreshold":{"type":"number"},"numberOfPrizes":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"distributorId":{"type":"string"},"version":{"type":"number"},"isVerified":{"type":"boolean"},"prizeNameShort":{"type":"string"},"imageSmallAssetId":{"type":"string"},"imageSmallAssetUrl":{"type":"string"},"imageIconAssetId":{"type":"string"},"imageIconAssetUrl":{"type":"string"},"prizeTitle":{"type":"string"},"prizeShortTitle":{"type":"string"},"maxUsersThreshold":{"type":"number"},"playerCount":{"type":"number"},"gameplays":{"type":"number"},"gameplaysThreshold":{"type":"number"},"revenueThreshold":{"type":"number"}},"required":["state","league","id","prizeName","prizeType","prizeValue","imageAssetId","startDate","endDate","prizeDrawingDate","pointThreshold","numberOfPrizes","createdAt","updatedAt","distributorId","version","prizeTitle","prizeShortTitle","maxUsersThreshold","playerCount","gameplays","revenueThreshold"]},"UpdateLeaderboardDto":{"type":"object","properties":{"state":{"allOf":[{"$ref":"#/components/schemas/LeaderboardState"}]},"league":{"allOf":[{"$ref":"#/components/schemas/LeaderboardLeague"}]},"imageAssetId":{"type":"string"},"distributorId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"prizeDrawingDate":{"type":"string"},"pointThreshold":{"type":"number","minimum":1,"maximum":5000},"numberOfPrizes":{"type":"number","minimum":1},"prizeValue":{"type":"number"},"version":{"type":"number"},"isVerified":{"type":"boolean"},"prizeNameShort":{"type":"string"},"imageSmallAssetId":{"type":"string"},"imageIconAssetId":{"type":"string"},"prizeTitle":{"type":"string"},"prizeShortTitle":{"type":"string"},"maxUsersThreshold":{"type":"number"},"gameplaysThreshold":{"type":"number"},"revenueThreshold":{"type":"number"},"override":{"type":"boolean"}},"required":["version"]},"AwardLeaderboardDto":{"type":"object","properties":{"version":{"type":"number"}},"required":["version"]},"pointsComparison":{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},"LeaderboardPoints":{"type":"object","properties":{"reason":{"allOf":[{"$ref":"#/components/schemas/FundsUpdatedReasons"}]},"points":{"type":"number"},"leaderboardId":{"type":"string"},"userId":{"type":"string"},"updatedAt":{"type":"string"},"distributorId":{"type":"string"},"version":{"type":"number"},"gamesDeclared":{"type":"number"},"gamesCorrectAnswers":{"type":"number"}},"required":["reason","points","leaderboardId","userId","updatedAt","distributorId","version","gamesDeclared","gamesCorrectAnswers"]},"ListLeaderboardPoints":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardPoints"}},"total":{"type":"number"}},"required":["items","total"]},"RankedUsernamesEntity":{"type":"object","properties":{"userId":{"type":"string"},"points":{"type":"number"},"rank":{"type":"number"},"username":{"type":"string"},"profileColor":{"type":"string"},"avatar":{"type":"string"}},"required":["userId","points","rank"]},"LeaderboardStatisticsEntity":{"type":"object","properties":{"leaderboardId":{"type":"string"},"points":{"type":"number"},"userId":{"type":"string"},"username":{"type":"string"},"rank":{"type":"number"},"profileColor":{"type":"string"},"avatar":{"type":"string"},"topN":{"type":"array","items":{"$ref":"#/components/schemas/RankedUsernamesEntity"}},"neighbors":{"type":"array","items":{"$ref":"#/components/schemas/RankedUsernamesEntity"}}},"required":["leaderboardId","userId","username"]},"LeaderboardEligibleUsers":{"type":"object","properties":{"userId":{"type":"string"},"points":{"type":"number"},"email":{"type":"string"},"username":{"type":"string"},"emailVerified":{"type":"boolean"}},"required":["userId","points","email","username","emailVerified"]},"ListLeaderboardEligibleUsers":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardEligibleUsers"}},"next":{"type":"string"}},"required":["items","next"]},"LeaderboardPlayer":{"type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string"},"username":{"type":"string"},"emailVerified":{"type":"boolean"},"leaderboardId":{"type":"string"},"points":{"type":"number"},"gamesDeclared":{"type":"number"},"gamesCorrectAnswers":{"type":"number"}},"required":["userId","email","username","emailVerified","leaderboardId","points","gamesDeclared","gamesCorrectAnswers"]},"ListLeaderboardPlayers":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardPlayer"}},"total":{"type":"number"},"next":{"type":"string"}},"required":["items","total"]},"LeaderboardPointsLedger":{"type":"object","properties":{"reason":{"allOf":[{"$ref":"#/components/schemas/FundsUpdatedReasons"}]},"userId":{"type":"string"},"leaderboardId":{"type":"string"},"points":{"type":"number"}},"required":["reason","userId","leaderboardId","points"]},"ListLeaderboardPointsLedger":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardPointsLedger"}},"total":{"type":"number"}},"required":["items","total"]},"startDateComparison":{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},"endDateComparison":{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},"prizeDrawingDateComparison":{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},"league":{"type":"string","enum":["level1","level2","level3","level4"]},"state":{"type":"string","enum":["OPEN","FULL","AWARDING","ARCHIVED"]},"ListLeaderboards":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardAdmin"}},"next":{"type":"string"}},"required":["items","next"]},"Leaderboard":{"type":"object","properties":{"state":{"allOf":[{"$ref":"#/components/schemas/LeaderboardState"}]},"league":{"allOf":[{"$ref":"#/components/schemas/LeaderboardLeague"}]},"id":{"type":"string"},"prizeName":{"type":"string"},"prizeType":{"type":"string"},"prizeValue":{"type":"number"},"imageAssetId":{"type":"string"},"imageAssetUrl":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"prizeDrawingDate":{"type":"string"},"pointThreshold":{"type":"number"},"numberOfPrizes":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"distributorId":{"type":"string"},"version":{"type":"number"},"isVerified":{"type":"boolean"},"prizeNameShort":{"type":"string"},"imageSmallAssetId":{"type":"string"},"imageSmallAssetUrl":{"type":"string"},"imageIconAssetId":{"type":"string"},"imageIconAssetUrl":{"type":"string"},"prizeTitle":{"type":"string"},"prizeShortTitle":{"type":"string"},"gameplays":{"type":"number"},"gameplaysThreshold":{"type":"number"}},"required":["state","league","id","prizeName","prizeType","prizeValue","imageAssetId","startDate","endDate","prizeDrawingDate","pointThreshold","numberOfPrizes","createdAt","updatedAt","distributorId","version","prizeTitle","prizeShortTitle","gameplays"]},"CreatePartnerDomainDto":{"type":"object","properties":{"domain":{"type":"string"},"articleUrlRules":{"type":"array","items":{"type":"string","pattern":"/a-z|N|\\*|\\//"}},"indexPagesRules":{"type":"array","items":{"type":"string","pattern":"/a-z|N|\\*|\\//"}},"enableAutogame":{"type":"boolean"}},"required":["domain","articleUrlRules","indexPagesRules","enableAutogame"]},"PartnerDomains":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"creatorId":{"type":"string"},"creator":{"$ref":"#/components/schemas/Creator"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"articleUrlRules":{"type":"array","items":{"type":"string"}},"indexPagesRules":{"type":"array","items":{"type":"string"}},"enableAutogame":{"type":"boolean"}},"required":["id","domain","creatorId","creator","createdAt","updatedAt","articleUrlRules","indexPagesRules","enableAutogame"]},"UpdatePartnerDomainDto":{"type":"object","properties":{"articleUrlRules":{"type":"array","items":{"type":"string","pattern":"/a-z|N|\\*|\\//"}},"indexPagesRules":{"type":"array","items":{"type":"string","pattern":"/a-z|N|\\*|\\//"}},"enableAutogame":{"type":"boolean"}},"required":["articleUrlRules","indexPagesRules","enableAutogame"]},"SearchDto":{"type":"object","properties":{"creatorId":{"type":"string"},"domain":{"type":"string"}}},"ListPartnerDomains":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PartnerDomains"}},"total":{"type":"number"}},"required":["items","total"]},"type":{"type":"string","enum":["gameplay","gameplay-count-by-game-type","email-verified","one-friend-invited","five-friends-invited","ten-friends-invited","friends-invited","gameset-completed","gameset-challenge-won"]},"level":{"type":"string","enum":["level1","level2","level3","level4"]},"GamePlayAchievementEntity":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"allOf":[{"$ref":"#/components/schemas/type"}]},"level":{"allOf":[{"$ref":"#/components/schemas/level"}]},"awardPoints":{"type":"number"},"gamePlays":{"type":"number"}},"required":["id","name","type","level","awardPoints","gamePlays"]},"CreateGameSetDto":{"type":"object","properties":{"partnerId":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":"string"},"games":{"type":"array","items":{"type":"string"}}},"required":["partnerId","startTime","endTime","games"]},"UpdateGameSetDto":{"type":"object","properties":{"startTime":{"type":"string"},"endTime":{"type":"string"},"games":{"type":"array","items":{"type":"string"}}}},"ListGameSet":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GameSet"}},"total":{"type":"number"}},"required":["items","total"]},"GameSetResult":{"type":"object","properties":{"gameId":{"type":"string"},"correctAnswer":{"type":"boolean"}},"required":["gameId"]},"CreateBuddyListInvitationRequestDTO":{"type":"object","properties":{"gameSetAttempt":{"type":"number","default":1,"description":"Required for multiple attempts with This_That game sets"},"invitingPlayerGameResults":{"type":"array","items":{"$ref":"#/components/schemas/GameSetResult"}},"invitingPlayerId":{"type":"string"},"invitingPlayerUsername":{"type":"string"},"invitingPlayerAnalyticsId":{"type":"string"},"distributorId":{"type":"string"},"deepLinkUrl":{"type":"string"},"gameSetId":{"type":"string"}},"required":["invitingPlayerGameResults","invitingPlayerAnalyticsId","distributorId","deepLinkUrl","gameSetId"]},"BuddyListInvitationEntity":{"type":"object","properties":{"invitingPlayerIsRegistered":{"type":"string","enum":["true","false"]},"invitingPlayerGameResults":{"type":"array","items":{"$ref":"#/components/schemas/GameSetResult"}},"entityType":{"type":"object","default":"BuddyListInvitation"},"invitingPlayerId":{"type":"string"},"invitingPlayerUsername":{"type":"string"},"invitingPlayerAnalyticsId":{"type":"string"},"shareCode":{"type":"string"},"distributorId":{"type":"string"},"deepLinkUrl":{"type":"string"},"gameSetId":{"type":"string"},"gameSetAttempt":{"type":"number","default":1},"invitationDate":{"type":"number"},"buddyListId":{"type":"string"}},"required":["invitingPlayerIsRegistered","invitingPlayerGameResults","entityType","invitingPlayerId","invitingPlayerUsername","invitingPlayerAnalyticsId","shareCode","distributorId","deepLinkUrl","gameSetId","invitationDate","buddyListId"]},"File":{"type":"object","properties":{}},"CreateKeyFrameDto":{"type":"object","properties":{"mediaId":{"type":"string"},"description":{"type":"string"},"keyFrameIndex":{"type":"number"},"timestamp":{"type":"number"},"embedding":{"type":"array","items":{"type":"number"}},"image":{"format":"Binary","allOf":[{"$ref":"#/components/schemas/File"}]}},"required":["mediaId","keyFrameIndex","timestamp"]},"CreateKeyFrameResponse":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"SearchKeyFramesDto":{"type":"object","properties":{"mediaId":{"type":"string"},"description":{"type":"string"},"embedding":{"type":"array","items":{"type":"number"}},"image":{"format":"Binary","allOf":[{"$ref":"#/components/schemas/File"}]}}},"KeyFrameEntity":{"type":"object","properties":{"id":{"type":"string"},"mediaId":{"type":"string"},"createdAt":{"type":"number"},"timestamp":{"type":"number"},"description":{"type":"string"},"keyFrameIndex":{"type":"number"},"embedding":{"type":"array","items":{"type":"number"}}},"required":["id","mediaId","timestamp","description","keyFrameIndex","embedding"]},"SearchKeyFrameResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/KeyFrameEntity"}},"scores":{"type":"array","items":{"type":"number"}},"total":{"type":"number"}},"required":["items","scores","total"]},"MeterAd":{"type":"object","properties":{"id":{"type":"string"},"partnerId":{"type":"string"},"startTime":{"type":"number","description":"Unix timestamp in milliseconds"},"endTime":{"type":"number","description":"Unix timestamp in milliseconds"},"questionText":{"type":"string"},"marketingText":{"type":"string"},"sideA":{"type":"object","properties":{"label":{"type":"string","description":"Label for side A"},"percentage":{"type":"number","description":"Percentage allocated to side A (0-100)"},"assetUrl":{"type":"string","description":"URL to the asset for side A"}},"required":["label","percentage","assetUrl"]},"sideB":{"type":"object","properties":{"label":{"type":"string","description":"Label for side B"},"percentage":{"type":"number","description":"Percentage allocated to side B (0-100)"},"assetUrl":{"type":"string","description":"URL to the asset for side B"}},"required":["label","percentage","assetUrl"]},"status":{"enum":["DRAFT","PUBLISHED","CANCELLED"],"type":"string"},"createdAt":{"format":"date-time","type":"string","description":"Unix Timestamp in milliseconds of when the record was created"},"updatedAt":{"format":"date-time","type":"string","description":"Unix Timestamp in milliseconds of when the record was last updated"},"url":{"type":"string"}},"required":["id","partnerId","startTime","endTime","questionText","status","createdAt","updatedAt","url"]},"AdSideDto":{"type":"object","properties":{"label":{"type":"string"},"percentage":{"type":"number","minimum":0},"assetUrl":{"type":"string","format":"uri"}},"required":["label","percentage","assetUrl"]},"CreateMeterAdDto":{"type":"object","properties":{"partnerId":{"type":"string"},"startTime":{"type":"number","minimum":1,"description":"Unix timestamp in milliseconds"},"endTime":{"type":"number","description":"Unix timestamp in milliseconds"},"questionText":{"type":"string"},"marketingText":{"type":"string","description":"Frontend will supply a default if not provided"},"sideA":{"$ref":"#/components/schemas/AdSideDto"},"sideB":{"$ref":"#/components/schemas/AdSideDto"},"status":{"enum":["DRAFT","PUBLISHED","CANCELLED"],"type":"string"},"url":{"type":"string"}},"required":["partnerId","startTime","endTime","questionText","sideA","sideB","status"]},"UpdateAdSideDto":{"type":"object","properties":{"label":{"type":"string"},"percentage":{"type":"number"},"assetUrl":{"type":"string"}}},"UpdateMeterAdDto":{"type":"object","properties":{"partnerId":{"type":"string"},"startTime":{"type":"number"},"endTime":{"type":"number"},"questionText":{"type":"string"},"marketingText":{"type":"string"},"sideA":{"$ref":"#/components/schemas/UpdateAdSideDto"},"sideB":{"$ref":"#/components/schemas/UpdateAdSideDto"},"status":{"enum":["DRAFT","PUBLISHED","CANCELLED"],"type":"string"},"url":{"type":"string"}}},"TimeComparison":{"type":"object","properties":{"value":{"type":"number","minimum":0,"description":"Unix timestamp in milliseconds","example":1643673600000},"operator":{"enum":["eq","gt","gte","lt","lte","neq"],"type":"string","description":"Comparison operator to apply","example":"gte"}},"required":["value","operator"]},"SortOptionsDto":{"type":"object","properties":{"status":{"enum":["ASC","DESC"],"type":"string","description":"Sort direction for status"},"partnerId":{"enum":["ASC","DESC"],"type":"string","description":"Sort direction for partnerId"},"startTime":{"enum":["ASC","DESC"],"type":"string","description":"Sort direction for startTime"},"endTime":{"enum":["ASC","DESC"],"type":"string","description":"Sort direction for endTime"},"questionText":{"enum":["ASC","DESC"],"type":"string","description":"Sort direction for questionText"},"marketingText":{"enum":["ASC","DESC"],"type":"string","description":"Sort direction for marketingText"}}},"PaginatedMeterAdsDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MeterAd"}},"total":{"type":"number"},"page":{"type":"number"},"pageSize":{"type":"number"},"pageCount":{"type":"number"}},"required":["items","total","page","pageSize","pageCount"]},"GetDailyGameSetIdResponse":{"type":"object","properties":{"gameSetId":{"type":"string"}},"required":["gameSetId"]},"GameSetPlayResponse":{"type":"object","properties":{"userId":{"type":"string"},"gameSetId":{"type":"string"},"gameSetAttempt":{"type":"number"},"updatedAt":{"format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"results":{"type":"object"},"gamesPlayedCount":{"type":"number"},"correctAnswerCount":{"type":"number"}},"required":["userId","gameSetId","gameSetAttempt","updatedAt","createdAt","results","gamesPlayedCount","correctAnswerCount"]},"GameSetLastAttemptResponse":{"type":"object","properties":{"userId":{"type":"string"},"gameSetId":{"type":"string"},"gameSetAttempt":{"type":"number"},"updatedAt":{"format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"results":{"type":"object"},"gamesPlayedCount":{"type":"number"},"correctAnswerCount":{"type":"number"},"attemptWasCompleted":{"type":"boolean"}},"required":["userId","gameSetId","gameSetAttempt","updatedAt","createdAt","results","gamesPlayedCount","correctAnswerCount","attemptWasCompleted"]},"RecordGameSetAttemptCompletedRequest":{"type":"object","properties":{"userId":{"type":"string"},"gameSetId":{"type":"string"},"gameSetAttempt":{"type":"number"},"distributorId":{"type":"string"},"shareCode":{"type":"string"}},"required":["userId","gameSetId","gameSetAttempt","distributorId"]},"RankedPlayerStandings":{"type":"object","properties":{"userId":{"type":"string","description":"Usually a UUID, but older users may have a numberic id","example":"0197381e-d0ef-700d-a3fc-f98501417877"},"externalId":{"type":"string","description":"The player's externalId","example":"reddit-0197381e-d0ef-700d-a3fc-f98501417877"},"username":{"type":"string","description":"The player's username","example":"bucking_bronco"},"avatarUrl":{"type":"string","example":"https://example.com/avatar.jpg","description":"The player's avatar URL"},"gamesPlayedCount":{"type":"number","example":47,"description":"Total games played in that GameSet attempt"},"correctAnswerCount":{"type":"number","example":42,"description":"Total correct answers in that GameSet attempt"}},"required":["userId","username","avatarUrl","gamesPlayedCount","correctAnswerCount"]},"TopPlayersForGameSetResponseEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RankedPlayerStandings"}},"cursor":{"type":"string"}},"required":["items"]},"RankedPlayerStandingsWithEmail":{"type":"object","properties":{"userId":{"type":"string","description":"Usually a UUID, but older users may have a numberic id","example":"0197381e-d0ef-700d-a3fc-f98501417877"},"externalId":{"type":"string","description":"The player's externalId","example":"reddit-0197381e-d0ef-700d-a3fc-f98501417877"},"username":{"type":"string","description":"The player's username","example":"bucking_bronco"},"avatarUrl":{"type":"string","example":"https://example.com/avatar.jpg","description":"The player's avatar URL"},"gamesPlayedCount":{"type":"number","example":47,"description":"Total games played in that GameSet attempt"},"correctAnswerCount":{"type":"number","example":42,"description":"Total correct answers in that GameSet attempt"},"email":{"type":"string","example":"sarah@example.com"},"emailVerified":{"type":"boolean","example":true}},"required":["userId","username","avatarUrl","gamesPlayedCount","correctAnswerCount","email","emailVerified"]},"TopPlayersForGameSetWithEmailResponseEntity":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RankedPlayerStandingsWithEmail"}},"cursor":{"type":"string"}},"required":["items"]},"CutsNotification":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/FundsUpdatedReasons"}]},"gameId":{"type":"string"},"blackTickets":{"type":"number"},"whiteTickets":{"type":"number"},"isFinalResult":{"type":"boolean"},"isCanceled":{"type":"boolean"},"funds":{"type":"array","items":{"$ref":"#/components/schemas/Fund"}},"creatorId":{"type":"string"}},"required":["type","gameId","blackTickets","whiteTickets","isFinalResult","isCanceled","funds","creatorId"]},"GameOutcomeNotification":{"type":"object","properties":{"side":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"ticketType":{"allOf":[{"$ref":"#/components/schemas/TicketType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/GameplayStates"}]},"id":{"type":"string"},"gameId":{"type":"string"},"quantity":{"type":"number"},"matched":{"type":"number"},"outcomeChanged":{"type":"boolean"},"funds":{"type":"array","items":{"$ref":"#/components/schemas/Fund"}}},"required":["side","ticketType","state","id","gameId","quantity","matched","outcomeChanged","funds"]},"GamePlayedNotification":{"type":"object","properties":{"side":{"allOf":[{"$ref":"#/components/schemas/Side"}]},"ticketType":{"allOf":[{"$ref":"#/components/schemas/TicketType"}]},"id":{"type":"string"},"gameId":{"type":"string"},"quantity":{"type":"number"}},"required":["side","ticketType","id","gameId","quantity"]},"LeaderboardPointsNotification":{"type":"object","properties":{"id":{"type":"string"},"leaderboardId":{"type":"string"},"userId":{"type":"string"},"points":{"type":"number"}},"required":["id","leaderboardId","userId","points"]},"UserDemotionNotification":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"UserPromotionNotification":{"type":"object","properties":{"userId":{"type":"string"},"fromLeague":{"type":"string","enum":["level1","level2","level3","level4"]},"toLeague":{"type":"string","enum":["level1","level2","level3","level4"]}},"required":["userId","fromLeague","toLeague"]},"UserAchievementNotification":{"type":"object","properties":{"userId":{"type":"string"},"achievementId":{"type":"string"}},"required":["userId","achievementId"]}}}}