{"openapi":"3.0.0","info":{"title":"1001 API","version":"1.0.0","description":"OAS 3.0 documentation for the 1001 endpoints. All endpoints must contain the headers we already use like \"x-1001-signature\", \"x-request-timestamp\", \"x-accedo-authorization\", etc."},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"InternalServerError":{"description":"Internal server error - an unexpected error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INTERNAL_SERVER_ERROR"}}}}}},"Unauthorized":{"description":"Unauthorized - auth token missing or invalid","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"UNAUTHORIZED"}}}}}},"UserNotFound":{"description":"User not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"USER_NOT_FOUND"}}}}}}}},"paths":{"/svod/users/state":{"post":{"summary":"Check if a user has a password set","description":"Checks whether the user associated with the provided mobile number has a password set.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mobileNumber":{"type":"string","example":"+96444444444","description":"The user's mobile number."}},"required":["mobileNumber"]}}}},"responses":{"200":{"description":"Indicates whether the user has a password set.","content":{"application/json":{"schema":{"type":"object","properties":{"passwordSet":{"type":"boolean","example":true,"description":"true if the password is set, otherwise false."}}}}}},"400":{"description":"Bad request - the mobile number was not provided in the query parameters.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["BAD_REQUEST","INVALID_MOBILE_NUMBER"],"example":"BAD_REQUEST"}}}}}},"422":{"description":"Invalid mobile number.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"VALIDATION_ERROR"},"errorData":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","example":"field"},"value":{"type":"string","example":"+96444444444"},"msg":{"type":"string","enum":["ERR_INVALID_MOBILE_NUMBER","ERR_MOBILE_NUMBER_REQUIRED"]},"path":{"type":"string","example":"mobileNumber"},"location":{"type":"string","example":"body"}}}]}}}}}}},"404":{"$ref":"#/components/responses/UserNotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users":{"get":{"summary":"Get user details","description":"Get user details","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"User details returned successfully","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"the user id","example":"654"},"mobileNumber":{"type":"string","description":"user mobile number","example":"+9644444444444"},"evCustomerId":{"type":"string","nullable":true,"description":"User evergent customer id"},"guid":{"type":"string","description":"a unique identifier for the user","example":"abcd-efdgs-fsadq-fsadsa-dsadas"},"creationDate":{"type":"string","description":"The creation date of the user","example":"2025-03-05 01:57:34.682+00"},"emails":{"type":"array","items":{"type":"string","description":"The emails of the user"},"example":["test@gmail.com"]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/password-regex":{"get":{"summary":"Get active password regex rules","description":"Fetches the currently active password regex rules for validating passwords.","responses":{"200":{"description":"Password regex rules fetched successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Password regex rules fetched successfully"},"data":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The identifier for the regex rule.","example":"PASSWORD_NO_UPPERCASE"},"regex":{"type":"string","description":"The regex pattern used for validation.","example":"^(?=.*[A-Z]).+$"},"flags":{"type":"string","description":"The regex flags (e.g., `i` for case-insensitive).","example":"i"}}}}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/login":{"post":{"summary":"Log in a user","description":"Authenticates a user with their mobile number and password, returning an authentication token pair. Make sure to include the user-agent in the request headers.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mobileNumber":{"type":"string","example":"+96444444444","description":"The user's mobile number."},"password":{"type":"string","example":"Password123","description":"The user's password."}},"required":["mobileNumber","password"]}}}},"responses":{"200":{"description":"Successful login with an authentication token pair.","content":{"application/json":{"schema":{"type":"object","properties":{"authToken":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5...","description":"The user's authentication token."},"refreshToken":{"type":"string","example":"eyJhbGciOiJIUzI1NiJdfR5...","description":"The user's refresh token."}}}}}},"400":{"description":"Bad request - missing required fields, user agent not found, or password not set.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["BAD_REQUEST","PASSWORD_NOT_SET","INVALID_MOBILE_NUMBER"],"example":"BAD_REQUEST"}}}}}},"401":{"description":"Unauthorized - invalid credentials.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INVALID_CREDENTIALS"}}}}}},"404":{"$ref":"#/components/responses/UserNotFound"},"422":{"description":"Invalid mobile number or password.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"VALIDATION_ERROR"},"errorData":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","example":"field"},"value":{"type":"string","example":"+96444444444"},"msg":{"type":"string","enum":["ERR_INVALID_MOBILE_NUMBER","ERR_MOBILE_NUMBER_REQUIRED"]},"path":{"type":"string","example":"mobileNumber"},"location":{"type":"string","example":"body"}}},{"type":"object","properties":{"type":{"type":"string","example":"field"},"msg":{"type":"string","enum":["ERR_PASSWORD_REQUIRED","ERR_PASSWORD_INVALID"]},"path":{"type":"string","example":"password"},"location":{"type":"string","example":"body"}}}]}}}}}}},"423":{"description":"User locked out - the user account is locked due to too many failed login attempts.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"USER_LOCKED_OUT"},"lockoutExpiresAt":{"type":"string","format":"date-time","example":"2025-01-21T12:00:00Z"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/logout":{"post":{"summary":"Log out a user","description":"Logs out the user by invalidating the token associated with the user.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"User successfully logged out.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"User logged out successfully"}}}}}},"401":{"description":"Unauthorized - auth token missing or invalid","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"UNAUTHORIZED"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/refresh":{"post":{"summary":"Refresh authentication tokens","description":"Refreshes the user's authentication tokens by exchanging the refresh token.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","description":"The refresh token issued to the user.","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}},"required":["refreshToken"]}}}},"responses":{"200":{"description":"Successfully refreshed tokens.","content":{"application/json":{"schema":{"type":"object","properties":{"authToken":{"type":"string","description":"The new authentication token.","example":"eyJhbGciOiJIUzI1NiIsInR5..."},"refreshToken":{"type":"string","description":"The new refresh token.","example":"eyJhbGciOiJIUzI1NiJdfR5..."}}}}}},"400":{"description":"Invalid request or refresh token expired/not found. Check under the \"Schema\" tab for the other possible errors.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error type for the request failure.","example":"BAD_REQUEST"},"details":{"type":"string","description":"Additional information about the error.","example":"Missing refresh token."}},"oneOf":[{"example":{"error":"BAD_REQUEST"}},{"example":{"error":"TOKENS_INVALID"}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/email":{"post":{"summary":"Set user email","description":"Sets the email address for a user. The user must be authenticated, and the email should follow a valid format.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"The email address to set for the user.","example":"user@example.com"}},"required":["email"]}}}},"responses":{"200":{"description":"Email set successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Email set successfully"}}}}}},"400":{"description":"Bad request due to validation errors. Check under the \"Schema\" tab for the other possible errors.","content":{"application/json":{"schema":{"oneOf":[{"description":"Email provided in an invalid format.","example":{"error":"INVALID_EMAIL_FORMAT"}},{"description":"Missing or invalid request body.","example":{"error":"BAD_REQUEST"}}],"type":"object","properties":{"error":{"type":"string","description":"Type of error.","enum":["EMAIL_ALREADY_EXISTS","BAD","INVALID_EMAIL_FORMAT","BAD_REQUEST"],"example":"EMAIL_ALREADY_EXISTS"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/UserNotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/password":{"patch":{"summary":"Change user password","description":"Allows a user to change their password. The new password must adhere to the defined password policy.","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"oldPassword":{"type":"string","description":"The user's current password.","example":"OldPassword123!"},"password":{"type":"string","description":"The new password to set.","example":"NewPassword123!"}},"required":["oldPassword","password"]}}}},"responses":{"200":{"description":"Password changed successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Password changed successfully"}}}}}},"400":{"description":"Bad request due to missing required fields, password hasn't been set, or the old password doesn't match. Check under the \"Schema\" tab for the other possible errors.","content":{"application/json":{"schema":{"oneOf":[{"description":"Missing required fields.","example":{"error":"BAD_REQUEST"}},{"description":"Old password doesn't match.","example":{"error":"PASSWORD_MISMATCH"}},{"description":"User's password is not set.","example":{"error":"PASSWORD_NOT_SET"}}]}}}},"422":{"description":"Invalid new password due to policy violations.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INVALID_PASSWORD"},"issues":{"type":"array","items":{"type":"string","description":"List of password policy violations."},"example":["PASSWORD_LENGTH_UNDER_8","PASSWORD_NO_UPPERCASE","PASSWORD_NO_LOWERCASE","PASSWORD_NO_NUMBER","PASSWORD_NO_SPECIAL_CHAR","PASSWORD_NON_ASCII_CHAR","PASSWORD_ABOVE_3_CONSECUTIVE_CHARS","PASSWORD_COMMON_PATTERN"]}}}}}},"404":{"$ref":"#/components/responses/UserNotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]},"post":{"summary":"Set or reset the user's password","description":"Allows a user to set a password for the first time or reset their password if they already have one. A reset token is required if the password is being reset. The reset token is retrieved by the /otp/verify endpoint","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"The new password to set. Must adhere to the password policy.","example":"NewPassword123!"},"resetToken":{"type":"string","description":"The reset token required for resetting a password (optional for first-time password setup).","example":"reset_token_12345"}},"required":["userId","password"]}}}},"responses":{"200":{"description":"Password successfully set or reset.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Password set successfully"}}}}}},"400":{"description":"Bad request due to missing required fields.","content":{"application/json":{"schema":{"oneOf":[{"description":"Missing required fields.","example":{"error":"BAD_REQUEST"}},{"description":"Reset token is missing.","example":{"error":"RESET_TOKEN_REQUIRED"}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Reset token is invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"RESET_TOKEN_INVALID"}}}}}},"422":{"description":"Invalid new password due to policy violations.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INVALID_PASSWORD"},"issues":{"type":"array","items":{"type":"string","description":"List of password policy violations."},"example":["PASSWORD_LENGTH_UNDER_8","PASSWORD_NO_UPPERCASE","PASSWORD_NO_LOWERCASE","PASSWORD_NO_NUMBER","PASSWORD_NO_SPECIAL_CHAR","PASSWORD_NON_ASCII_CHAR","PASSWORD_ABOVE_3_CONSECUTIVE_CHARS","PASSWORD_COMMON_PATTERN"]}}}}}},"404":{"$ref":"#/components/responses/UserNotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/auth/exchange":{"post":{"summary":"Exchange a firebase token for an auth token pair","description":"Make sure to include the user-agent in the request headers. The firebase token is passed in the Authorization header.","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Token exchanged successfully","content":{"application/json":{"schema":{"type":"object","properties":{"authToken":{"type":"string","description":"The authentication token issued upon successful verification.","example":"eyJhbGciOiJIUzI1NiIsInR5..."},"refreshToken":{"type":"string","description":"The refresh token issued upon successful verification.","example":"eyJhbGciOiJIUzI1NiJdfR5..."}}}}}},"400":{"description":"Token does not contain a firebase id","content":{"application/json":{"schema":{"oneOf":[{"description":"Token does not contain a firebase id","example":{"error":"BAD_REQUEST"}}],"type":"object","properties":{"error":{"type":"string","description":"Type of error."}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Users"]}},"/svod/users/devices":{"post":{"summary":"Register users's device","description":"Store information related to user's devices","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","description":"unique identifier for the device","example":"c5d1a8f2-9b7e-4c6a-823d-ef8b6d72c3f1"},"deviceType":{"type":"string","description":"type of device","example":"mobile"},"brand":{"type":"string","description":"the brand name","example":"Samsung"},"manufacturer":{"type":"string","description":"the name of manufacturer","example":"Samsung Electronics"},"model":{"type":"string","description":"the model of the device","example":"Galaxy S22"},"pushNotificationToken":{"type":"string","description":"unique token for push notifications","example":"f8a1e6b7c9d2e3f4g5h6i7j8k9l0m1n2"},"appVersion":{"type":"string","description":"the app version used on the device","example":"0.0.1"}}}}}},"responses":{"200":{"description":"Device added successfully"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"description":"Error validating request body","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"VALIDATION_ERROR"},"errorData":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","example":"field"},"value":{"type":"string","example":"null"},"msg":{"type":"string","example":"VALIDATION_ERROR"},"path":{"type":"string","example":"deviceId"},"location":{"type":"string","example":"body"}}}]}}}}}}}},"tags":["Users"]}},"/ac/sms/otp/verify":{"post":{"summary":"Verify OTP","description":"Verifies a one-time password (OTP) for a given phone number. Optionally generates a reset token if requested. The reset token is required to reset a user's password.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mobileNumber":{"type":"string","description":"The phone number for which the OTP is being verified. Leading zeroes will be removed automatically.","example":"+96444444444"},"code":{"type":"string","description":"The OTP code to verify.","example":"123456"},"generateResetToken":{"type":"boolean","description":"Whether to generate a reset token upon successful verification.","example":true}},"required":["number","code"]}}}},"responses":{"200":{"description":"OTP successfully verified. \"resetToken\" will not be present if \"generateResetToken\" in the request body is false or missing.","content":{"application/json":{"schema":{"type":"object","properties":{"authToken":{"type":"string","description":"The authentication token issued upon successful verification.","example":"eyJhbGciOiJIUzI1NiIsInR5..."},"refreshToken":{"type":"string","description":"The refresh token issued upon successful verification.","example":"eyJhbGciOiJIUzI1NiJdfR5..."},"resetToken":{"type":"string","description":"(Optional) The reset token, if requested.","example":"eyJhbGciOiJIUzI1NiIsInR..."}}}}}},"400":{"description":"Bad request - invalid input or user agent missing.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Request failed with status code 400"}}}}}},"401":{"description":"Unauthorized - incorrect OTP","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Request failed with status code 401"}}}}}},"404":{"description":"Number or OTP not found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Request failed with status code 404"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["OTP"]}},"/ac/sms/send":{"post":{"summary":"Send OTP","description":"Sends an OTP to the specified number","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"number":{"type":"string","description":"The phone number for which the OTP is sent to.","example":"+96444444444"}},"required":["number"]}}}},"responses":{"200":{"description":"OTP sent successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"sid":{"type":"string","example":"f4330819-28d2-4611-ad65-8e48d76ad216"},"to":{"type":"string","description":"The refresh token issued upon successful verification.","example":"+9647899999999"},"channel":{"type":"string","example":"wa"},"status":{"type":"string","example":"pending"},"valid":{"type":"boolean","example":false},"wasid":{"type":"string","example":"SMfd92ca4dc981fdf3d5ec11c09df67c93"},"dateCreated":{"type":"string","example":"2025-01-28T10:40:04.501Z"},"dateUpdated":{"type":"string","example":"2025-01-28T10:40:04.501Z"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["OTP"]}},"/svod/accounts/favorites":{"get":{"summary":"Get all user's favorites","description":"Get favorites saved by the user","security":[{"BearerAuth":[]}],"parameters":[{"name":"locale","in":"query","description":"prefered response language","schema":{"type":"string","enum":["ar","en"]}}],"responses":{"200":{"description":"Favorites returned successfully","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"6367026104112"},"name":{"type":"string","example":"التعويذة 2 - ذا كونجورينغ 2"},"assettypeexternal":{"type":"string","example":"Movie"},"assettypeinternal":{"type":"string","example":"movie"},"imagebanner":{"type":"string","example":"OSNTHECONJURING22016_hero"},"imagelandscape":{"type":"string","example":"OSNTHECONJURING22016_landscape"},"imageportrait":{"type":"string","example":"OSNTHECONJURING22016_portrait"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Favorites"]},"delete":{"summary":"Delete all favorites","description":"Delete all user's saved favorites","security":[{"BearerAuth":[]}],"responses":{"200":{"description":"All favorites are deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Favorites"]}},"/svod/accounts/favorites/{assetId}":{"put":{"summary":"Add item to favorites","description":"Add new Brghtcove asset to favorites","security":[{"BearerAuth":[]}],"parameters":[{"name":"assetId","in":"path","required":true,"description":"ID of Brightcove asset","schema":{"type":"string","example":"6367026104112"}}],"responses":{"200":{"description":"Item added successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"6367026104112"},"favorite":{"type":"boolean","example":true}}}}}},"400":{"description":"Asset already exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"ALREADY_ADDED"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Asset does not exist in Brightcove","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"ASSET DOES NOT EXIST"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Favorites"]},"delete":{"summary":"Delete item from favorites","description":"Delete item from favorites using its ID","security":[{"BearerAuth":[]}],"parameters":[{"name":"assetId","in":"path","required":true,"description":"ID of Brightcove asset","schema":{"type":"string","example":"6367026104112"}}],"responses":{"200":{"description":"Item deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"6367026104112"},"favorite":{"type":"boolean","example":false}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Favorites"]}},"/svod/isp/{isp}":{"get":{"summary":"Retrieve the given ISP's details","description":"Retrieve the given ISP's details","security":[{"BearerAuth":[]}],"parameters":[{"name":"isp","in":"path","required":true,"description":"Name of the ISP","schema":{"type":"string","example":"supercell"}}],"responses":{"200":{"description":"ISP details returned successfully","content":{"application/json":{"schema":{"type":"object","properties":{"redirectionUrl":{"type":"string","example":"example.com"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["ISPs"]}},"/svod/consents/{consentCode}":{"get":{"summary":"Retrieve consent and user consent status","description":"Retrieve consent and user consent status","security":[{"BearerAuth":[]}],"parameters":[{"name":"consentCode","in":"path","required":true,"description":"Consent code","schema":{"type":"string","example":"consentCode"}}],"responses":{"200":{"description":"Consent and user consent status returned successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"consentCode":{"type":"string","example":"IDB_LALEGA_DEAL"},"titleString":{"type":"string","example":"title-accedo-string"},"paragraphs":{"type":"array","items":{"type":"string"},"example":["first-paragraph-accedo-string","second-paragraph-accedo-string"]},"checkboxString":{"type":"string","example":"checkbox-accedo-string"},"acceptButtonString":{"type":"string","example":"accept-button-accedo-string"},"denyButtonString":{"type":"string","example":"deny-button-accedo-string"},"image":{"type":"string","example":"biyv3dl9duygzdecxzef.jpg"},"userConsented":{"type":"boolean","example":true}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Consent does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"CONSENT_NOT_FOUND"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Consents"]},"post":{"summary":"Provide user's consent","description":"Provide user's consent","security":[{"BearerAuth":[]}],"parameters":[{"name":"consentCode","in":"path","required":true,"description":"Consent code","schema":{"type":"string","example":"consentCode"}}],"responses":{"200":{"description":"User's consent provided successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"ok"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Consent does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"CONSENT_NOT_FOUND"}}}}}},"409":{"description":"User has already provided consent","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"USER_ALREADY_CONSENTED"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Consents"]}},"/svod/roya/{channelId}":{"get":{"summary":"get stream url for the channel specified","parameters":[{"name":"channelId","in":"path","required":true,"description":"channelID","schema":{"type":"string","example":1}}],"responses":{"200":{"description":"Strean URL fetched","content":{"application/json":{"schema":{"type":"object","properties":{"streamUrl":{"type":"string","example":"https://ochuergrys.erbvr.com/roya/roya.m3u8?st=AQUk7N3vw0VW9uz0Mq9aJw&e=1746041050"}}}}}},"404":{"description":"Channel with this ID does not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"CHANNEL_NOT_FOUND"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Partners"]}},"/svod/subscription/playstore/purchase-token":{"get":{"summary":"get google play's purchase token","parameters":[{"name":"subscriptionId","in":"query","required":true,"description":"1001 subscription id for which purchase token is requested","schema":{"type":"string","example":1}}],"responses":{"200":{"description":"Purchase token received successfully","content":{"application/json":{"schema":{"type":"object","properties":{"purchaseToken":{"type":"string","example":"fecmoekllg********fogajgp.AO-*****************-aAkUzAid-*****************"}}}}}},"400":{"description":"invalid query parameter or payment method for the subscription is not play_store","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INVALID_PAYMENT_METHOD"}}}}}},"401":{"description":"User is not authorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"UNAUTHORIZED"}}}}}},"404":{"description":"did not find a subscription related to provided subscription id","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["USER_NOT_FOUND","SUBSCRIPTION_NOT_FOUND","ORDER_NOT_FOUND"],"example":"SUBSCRIPTION_NOT_FOUND"}}}}}},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["GooglePlay"]}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/DawoodAlkawaz/1001-auth-middleware/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/NURETTINFAYAD/1001-API/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/NURETTINFAYAD/test-api/1.0.0"}]}