diff --git a/.gitignore b/.gitignore index c04df4c..3e4168f 100644 --- a/.gitignore +++ b/.gitignore @@ -124,3 +124,5 @@ data/* # IDE ############################ .vscode +.worktrees/ +.strapi/ diff --git a/src/api/resource/documentation/1.0.0/resource.json b/src/api/resource/documentation/1.0.0/resource.json index 031e54f..50e748f 100644 --- a/src/api/resource/documentation/1.0.0/resource.json +++ b/src/api/resource/documentation/1.0.0/resource.json @@ -130,17 +130,12 @@ { "name": "fields", "in": "query", - "description": "Fields to return (ex: fields[]=slug&fields[]=campaign)", + "description": "Fields to return (ex: title,author)", "deprecated": false, "required": false, "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": true + "type": "string" + } }, { "name": "populate", diff --git a/src/api/telegram-subscription/controllers/telegram-subscription.ts b/src/api/telegram-subscription/controllers/telegram-subscription.ts index 40db99c..2e4a570 100644 --- a/src/api/telegram-subscription/controllers/telegram-subscription.ts +++ b/src/api/telegram-subscription/controllers/telegram-subscription.ts @@ -4,88 +4,64 @@ import { factories } from '@strapi/strapi' import { errors } from '@strapi/utils' -import { TelegramData } from '../types' const MODULE_ID = 'api::telegram-subscription.telegram-subscription' export default factories.createCoreController(MODULE_ID, ({strapi}) => { return { - async addSubscription(context) { - const {account, data} : { account: string, data: TelegramData } = context.request.body - - const service = strapi.service(MODULE_ID) - - const isAlreadySubscribed = await this.checkSubscription(context) + async getSubscriptions(context) { + const { accounts } = context.query - if (isAlreadySubscribed) { - return true - } + const accountsArray = accounts ? accounts.split(',') : [] - await service.addSubscription(account, data) + if (!accountsArray.length) return [] - return true + return strapi.service(MODULE_ID).getSubscriptions(accountsArray) }, - async removeSubscription(context) { - const {account} : { account: string, data: TelegramData } = context.request.body - - const service = strapi.service(MODULE_ID) - - const isAlreadySubscribed = await this.checkSubscription(context) + async getAccountSubscriptions(context) { + const account = context.params.account - if (!isAlreadySubscribed) { - return true + return strapi.service(MODULE_ID).getAccountSubscriptions(account) + }, + async linkViaBot(context) { + const { account, chatId, firstName, username } = context.request.body as { + account?: string + chatId?: number + firstName?: string + username?: string } - await service.removeSubscriptions(account) - - return true - }, - async checkSubscription(context) { - const {account, data} : { account: string, data: TelegramData } = context.request.body + if (!account || !chatId) { + throw new errors.ValidationError('account and chatId are required') + } const service = strapi.service(MODULE_ID) - const result = await service.verifyTgAuthentication(data) - - /** - * Verify if the Telegram authentication data is valid - * Which proves that the data belongs to the user - */ - if (!result) { - throw new errors.ValidationError('Invalid telegram authentication data') - } + await service.linkSubscriptionViaBot(account, { chatId, firstName, username }) - const existing = await strapi.entityService.findMany(MODULE_ID, { - filters: { - account: { - $eqi: account - }, chatId: data.id - } - }) - - /** - * We will only return true if the subscription belongs to the Telegram owner - * And the account is already subscribed - * So, it's not possible to check another account's subscription without owning Telegram account - */ - return existing.length > 0 + return { success: true } }, - async getSubscriptions(context) { - const { accounts } = context.query + async unlinkViaBot(context) { + const { account } = context.request.body as { account?: string } - const accountsArray = accounts ? accounts.split(',') : [] + if (!account) { + throw new errors.ValidationError('account is required') + } - if (!accountsArray.length) return [] + const service = strapi.service(MODULE_ID) - return strapi.service(MODULE_ID).getSubscriptions(accountsArray) - }, - async getAccountSubscriptions(context) { - const account = context.params.account + await service.unlinkSubscriptionViaBot(account) - return strapi.service(MODULE_ID).getAccountSubscriptions(account) + return { success: true } }, - async sendNotifications(context) { - return strapi.service(MODULE_ID).sendNotifications() + async getAccountsByChatViaBot(context) { + const { chatId } = context.request.body as { chatId?: number } + + if (!chatId) { + throw new errors.ValidationError('chatId is required') + } + + return strapi.service(MODULE_ID).getAccountsByChatId(chatId) } } }); diff --git a/src/api/telegram-subscription/documentation/1.0.0/telegram-subscription.json b/src/api/telegram-subscription/documentation/1.0.0/telegram-subscription.json index c96394a..462099f 100644 --- a/src/api/telegram-subscription/documentation/1.0.0/telegram-subscription.json +++ b/src/api/telegram-subscription/documentation/1.0.0/telegram-subscription.json @@ -504,5 +504,248 @@ ], "operationId": "delete/telegram-subscriptions/{id}" } + }, + "/telegram-subscription/link-via-bot": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Telegram-subscription" + ], + "parameters": [], + "operationId": "post/telegram-subscription/link-via-bot", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionRequest" + } + } + } + } + } + }, + "/telegram-subscription/unlink-via-bot": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Telegram-subscription" + ], + "parameters": [], + "operationId": "post/telegram-subscription/unlink-via-bot", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionRequest" + } + } + } + } + } + }, + "/telegram-subscription/accounts-by-chat-via-bot": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Telegram-subscription" + ], + "parameters": [], + "operationId": "post/telegram-subscription/accounts-by-chat-via-bot", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionRequest" + } + } + } + } + } } } diff --git a/src/api/telegram-subscription/routes/telegram-subscription.ts b/src/api/telegram-subscription/routes/telegram-subscription.ts index 346f001..301cae4 100644 --- a/src/api/telegram-subscription/routes/telegram-subscription.ts +++ b/src/api/telegram-subscription/routes/telegram-subscription.ts @@ -40,8 +40,8 @@ const myExtraRoutes = [ }, { method: 'POST', - path: '/add-tg-subscription', - handler: 'telegram-subscription.addSubscription', + path: '/telegram-subscription/link-via-bot', + handler: 'telegram-subscription.linkViaBot', config: { policies: [], middlewares: [], @@ -49,8 +49,8 @@ const myExtraRoutes = [ }, { method: 'POST', - path: '/remove-tg-subscription', - handler: 'telegram-subscription.removeSubscription', + path: '/telegram-subscription/unlink-via-bot', + handler: 'telegram-subscription.unlinkViaBot', config: { policies: [], middlewares: [], @@ -58,17 +58,8 @@ const myExtraRoutes = [ }, { method: 'POST', - path: '/check-tg-subscription', - handler: 'telegram-subscription.checkSubscription', - config: { - policies: [], - middlewares: [], - }, - }, - { - method: 'GET', - path: '/send-tg-notifications', - handler: 'telegram-subscription.sendNotifications', + path: '/telegram-subscription/accounts-by-chat-via-bot', + handler: 'telegram-subscription.getAccountsByChatViaBot', config: { policies: [], middlewares: [], diff --git a/src/api/telegram-subscription/services/telegram-subscription.ts b/src/api/telegram-subscription/services/telegram-subscription.ts index 835ff9f..89ebace 100644 --- a/src/api/telegram-subscription/services/telegram-subscription.ts +++ b/src/api/telegram-subscription/services/telegram-subscription.ts @@ -3,59 +3,60 @@ */ import { factories } from '@strapi/strapi' -import { env } from '@strapi/utils' -import fetch from 'node-fetch' -import crypto from 'crypto' -import { TelegramData } from '../types' -import { templateNotification } from '../../notification/services/notification' const MODULE_ID = 'api::telegram-subscription.telegram-subscription' -const telegramSecret = env('TELEGRAM_SECRET') as string - -const SEND_MESSAGE_URL = `https://api.telegram.org/bot${telegramSecret}/sendMessage` export default factories.createCoreService(MODULE_ID, ({strapi}) => { return { - async verifyTgAuthentication(data: TelegramData) { - if (!telegramSecret) { - throw new Error('verifyTgAuthentication - telegram secret is not set!') + async removeSubscriptions(account: string) { + const subscriptions = await this.getAccountSubscriptions(account) + + for (const subscription of subscriptions) { + await strapi.entityService.delete(MODULE_ID, subscription.id) } - const dataString = Object.keys(data).reduce((acc, key) => { - if (key === 'hash') return acc + return true + }, + async linkSubscriptionViaBot( + account: string, + telegram: { chatId: number; firstName?: string; username?: string } + ) { + const normalizedAccount = account.toLowerCase() + const existing = await this.getAccountSubscriptions(normalizedAccount) - acc.push(`${key}=${data[key]}`) - return acc - }, []).sort().join('\n') + if (existing.length > 0) { + // Already linked (e.g. user tapped /start twice) — idempotent no-op, + // unless the Telegram identity changed (e.g. re-linked from a different chat) + if (String(existing[0].chatId) !== String(telegram.chatId)) { + return strapi.entityService.update( + MODULE_ID, + existing[0].id, + { + data: { + chatId: telegram.chatId, + firstName: telegram.firstName, + username: telegram.username, + } + }) + } - const secretHash = crypto.createHash('sha256').update(telegramSecret).digest('base64') - const result = crypto.createHmac('sha256', new Buffer(secretHash, 'base64')).update(dataString).digest('hex') + return existing[0] + } - return result === data.hash - }, - async addSubscription(account: string, data: TelegramData) { return strapi.entityService.create( MODULE_ID, { data: { - account: account.toLowerCase(), - authDate: data.auth_date, - firstName: data.first_name, - hash: data.hash, - chatId: data.id, - photoUrl: data.photo_url, - username: data.username, + account: normalizedAccount, + chatId: telegram.chatId, + firstName: telegram.firstName, + username: telegram.username, } }) }, - async removeSubscriptions(account: string) { - const subscriptions = await this.getAccountSubscriptions(account) - - for (const subscription of subscriptions) { - await strapi.entityService.delete(MODULE_ID, subscription.id) - } - - return true + async unlinkSubscriptionViaBot(account: string) { + const normalizedAccount = account.toLowerCase() + return this.removeSubscriptions(normalizedAccount) }, async getSubscriptions(accounts: string[]): Promise<{id: string, account: string, chatId: string}[]> { return strapi.entityService.findMany( @@ -81,32 +82,14 @@ export default factories.createCoreService(MODULE_ID, ({strapi}) => { } ) }, - // TODO: temporary implementation - async sendNotifications(): Promise { - const notifications = await strapi.service('api::notification.notification').getPushNotifications() - - if (notifications.length === 0) return 0 - - const subscriptions = await this.getSubscriptions(notifications.map(n => n.account)) - - const requests = subscriptions.map(subscription => { - return notifications.map(notification => { - return fetch(SEND_MESSAGE_URL, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - chat_id: subscription.chatId, - text: templateNotification(notification.notification_template.description, notification.data) - }) - }) - }) - }).flat() - - await Promise.all(requests) - - return requests.length - } + async getAccountsByChatId(chatId: number): Promise<{id: string, account: string, chatId: string}[]> { + return strapi.entityService.findMany( + MODULE_ID, + { + filters: { chatId }, + fields: ['id', 'account', 'chatId'] + } + ) + }, } }); diff --git a/src/api/telegram-subscription/types.ts b/src/api/telegram-subscription/types.ts deleted file mode 100644 index 5f64a40..0000000 --- a/src/api/telegram-subscription/types.ts +++ /dev/null @@ -1,8 +0,0 @@ -export interface TelegramData { - auth_date: number - first_name: string - hash: string - id: number - photo_url: string - username: string -} diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 8fedb1f..87d38dd 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2026-04-30T10:42:41.824Z" + "x-generation-date": "2026-08-19T11:37:32.042Z" }, "x-strapi-config": { "path": "/documentation", @@ -22365,7 +22365,7 @@ } } }, - "RestrictedTokenListRequest": { + "ResourceRequest": { "type": "object", "required": [ "data" @@ -22373,425 +22373,27 @@ "properties": { "data": { "required": [ - "name", - "tokenListUrl", - "restrictedCountries" + "title", + "description", + "slug", + "campaign", + "publishDateVisible" ], "type": "object", "properties": { - "name": { + "title": { "type": "string" }, - "tokenListUrl": { + "description": { "type": "string" }, - "restrictedCountries": {} - } - } - } - }, - "RestrictedTokenListListResponseDataItem": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "$ref": "#/components/schemas/RestrictedTokenList" - } - } - }, - "RestrictedTokenListListResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RestrictedTokenListListResponseDataItem" - } - }, - "meta": { - "type": "object", - "properties": { - "pagination": { - "type": "object", - "properties": { - "page": { - "type": "integer" - }, - "pageSize": { - "type": "integer", - "minimum": 25 - }, - "pageCount": { - "type": "integer", - "maximum": 1 - }, - "total": { - "type": "integer" - } - } - } - } - } - } - }, - "RestrictedTokenList": { - "type": "object", - "required": [ - "name", - "tokenListUrl", - "restrictedCountries" - ], - "properties": { - "name": { - "type": "string" - }, - "tokenListUrl": { - "type": "string" - }, - "restrictedCountries": {}, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "firstname": { - "type": "string" - }, - "lastname": { - "type": "string" - }, - "username": { - "type": "string" - }, - "email": { - "type": "string", - "format": "email" - }, - "resetPasswordToken": { - "type": "string" - }, - "registrationToken": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "roles": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "users": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "permissions": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "actionParameters": {}, - "subject": { - "type": "string" - }, - "properties": {}, - "conditions": {}, - "role": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "blocked": { - "type": "boolean" - }, - "preferedLanguage": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - }, - "RestrictedTokenListResponseDataObject": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "$ref": "#/components/schemas/RestrictedTokenList" - } - } - }, - "RestrictedTokenListResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/RestrictedTokenListResponseDataObject" - }, - "meta": { - "type": "object" - } - } - }, - "SolverRequest": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "required": [ - "displayName", - "active", - "solverId", - "isServiceFeeEnabled", - "isColocated" - ], - "type": "object", - "properties": { - "displayName": { + "slug": { "type": "string" }, - "active": { - "type": "boolean" + "campaign": { + "type": "string" }, - "image": { + "cover": { "oneOf": [ { "type": "integer" @@ -22802,83 +22404,48 @@ ], "example": "string or id" }, - "organization": { - "type": "string" - }, - "website": { - "type": "string" - }, - "description": { - "type": "string" - }, - "solverId": { - "type": "string" - }, - "solver_networks": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" - } - }, - "solver_bonding_pools": { + "blocks": { "type": "array", "items": { - "oneOf": [ - { - "type": "integer" - }, + "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/SharedRichTextComponent" } - ], - "example": "string or id" + ] } }, - "isServiceFeeEnabled": { - "type": "boolean" + "seo": { + "$ref": "#/components/schemas/SharedSeoComponent" }, - "isColocated": { + "publishDate": { "type": "string", - "enum": [ - "Yes", - "No", - "Partial" - ] + "format": "date-time" }, - "activeNetworks": {}, - "hasActiveNetworks": { + "publishDateVisible": { "type": "boolean" } } } } }, - "SolverListResponseDataItem": { + "ResourceListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/Solver" + "$ref": "#/components/schemas/Resource" } } }, - "SolverListResponse": { + "ResourceListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SolverListResponseDataItem" + "$ref": "#/components/schemas/ResourceListResponseDataItem" } }, "meta": { @@ -22907,23 +22474,29 @@ } } }, - "Solver": { + "Resource": { "type": "object", "required": [ - "displayName", - "active", - "solverId", - "isServiceFeeEnabled", - "isColocated" + "title", + "description", + "slug", + "campaign", + "publishDateVisible" ], "properties": { - "displayName": { + "title": { "type": "string" }, - "active": { - "type": "boolean" + "description": { + "type": "string" }, - "image": { + "slug": { + "type": "string" + }, + "campaign": { + "type": "string" + }, + "cover": { "type": "object", "properties": { "data": { @@ -23545,36 +23118,230 @@ } } }, - "organization": { - "type": "string" - }, - "website": { - "type": "string" + "blocks": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SharedRichTextComponent" + } + ] + } }, - "description": { + "seo": { + "$ref": "#/components/schemas/SharedSeoComponent" + }, + "publishDate": { + "type": "string", + "format": "date-time" + }, + "publishDateVisible": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + }, + "ResourceResponseDataObject": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/Resource" + } + } + }, + "ResourceResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ResourceResponseDataObject" + }, + "meta": { + "type": "object" + } + } + }, + "RestrictedTokenListRequest": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "required": [ + "name", + "tokenListUrl", + "restrictedCountries" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "tokenListUrl": { + "type": "string" + }, + "restrictedCountries": {} + } + } + } + }, + "RestrictedTokenListListResponseDataItem": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/RestrictedTokenList" + } + } + }, + "RestrictedTokenListListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RestrictedTokenListListResponseDataItem" + } + }, + "meta": { + "type": "object", + "properties": { + "pagination": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" + } + } + } + } + } + } + }, + "RestrictedTokenList": { + "type": "object", + "required": [ + "name", + "tokenListUrl", + "restrictedCountries" + ], + "properties": { + "name": { "type": "string" }, - "solverId": { + "tokenListUrl": { "type": "string" }, - "solver_networks": { + "restrictedCountries": {}, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "solver": { - "type": "object", - "properties": { - "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "firstname": { + "type": "string" + }, + "lastname": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "resetPasswordToken": { + "type": "string" + }, + "registrationToken": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "roles": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -23583,164 +23350,16 @@ "attributes": { "type": "object", "properties": { - "displayName": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "image": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "organization": { + "name": { "type": "string" }, - "website": { + "code": { "type": "string" }, "description": { "type": "string" }, - "solverId": { - "type": "string" - }, - "solver_networks": { + "users": { "type": "object", "properties": { "data": { @@ -23760,7 +23379,7 @@ } } }, - "solver_bonding_pools": { + "permissions": { "type": "object", "properties": { "data": { @@ -23774,54 +23393,27 @@ "attributes": { "type": "object", "properties": { - "address": { + "action": { "type": "string" }, - "joinedOn": { - "type": "string", - "format": "date-time" - }, - "name": { + "actionParameters": {}, + "subject": { "type": "string" }, - "solvers": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "isReducedBondingPool": { - "type": "boolean" - }, - "solver_networks": { + "properties": {}, + "conditions": {}, + "role": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } @@ -23876,21 +23468,6 @@ } } }, - "isServiceFeeEnabled": { - "type": "boolean" - }, - "isColocated": { - "type": "string", - "enum": [ - "Yes", - "No", - "Partial" - ] - }, - "activeNetworks": {}, - "hasActiveNetworks": { - "type": "boolean" - }, "createdAt": { "type": "string", "format": "date-time" @@ -23938,229 +23515,51 @@ } } } - }, - "network": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "chainId": { - "type": "integer" - }, - "solver_networks": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "environment": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "isWhiteListed": { - "type": "boolean" - }, - "isVouched": { - "type": "boolean" - }, - "isColocated": { - "type": "boolean" - }, - "vouchedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } + } + }, + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } @@ -24172,66 +23571,6 @@ } } }, - "solver_bonding_pools": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "isServiceFeeEnabled": { - "type": "boolean" - }, - "isColocated": { - "type": "string", - "enum": [ - "Yes", - "No", - "Partial" - ] - }, - "activeNetworks": {}, - "hasActiveNetworks": { - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, "updatedBy": { "type": "object", "properties": { @@ -24251,29 +23590,29 @@ } } }, - "SolverResponseDataObject": { + "RestrictedTokenListResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/Solver" + "$ref": "#/components/schemas/RestrictedTokenList" } } }, - "SolverResponse": { + "RestrictedTokenListResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/SolverResponseDataObject" + "$ref": "#/components/schemas/RestrictedTokenListResponseDataObject" }, "meta": { "type": "object" } } }, - "SolverBondingPoolRequest": { + "SolverRequest": { "type": "object", "required": [ "data" @@ -24281,24 +23620,44 @@ "properties": { "data": { "required": [ - "address", - "joinedOn", - "name", - "isReducedBondingPool" + "displayName", + "active", + "solverId", + "isServiceFeeEnabled", + "isColocated" ], "type": "object", "properties": { - "address": { + "displayName": { "type": "string" }, - "joinedOn": { - "type": "string", - "format": "date-time" + "active": { + "type": "boolean" }, - "name": { + "image": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, + "organization": { "type": "string" }, - "solvers": { + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { "type": "array", "items": { "oneOf": [ @@ -24312,10 +23671,7 @@ "example": "string or id" } }, - "isReducedBondingPool": { - "type": "boolean" - }, - "solver_networks": { + "solver_bonding_pools": { "type": "array", "items": { "oneOf": [ @@ -24328,29 +23684,44 @@ ], "example": "string or id" } + }, + "isServiceFeeEnabled": { + "type": "boolean" + }, + "isColocated": { + "type": "string", + "enum": [ + "Yes", + "No", + "Partial" + ] + }, + "activeNetworks": {}, + "hasActiveNetworks": { + "type": "boolean" } } } } }, - "SolverBondingPoolListResponseDataItem": { + "SolverListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/SolverBondingPool" + "$ref": "#/components/schemas/Solver" } } }, - "SolverBondingPoolListResponse": { + "SolverListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SolverBondingPoolListResponseDataItem" + "$ref": "#/components/schemas/SolverListResponseDataItem" } }, "meta": { @@ -24379,49 +23750,79 @@ } } }, - "SolverBondingPool": { + "Solver": { "type": "object", "required": [ - "address", - "joinedOn", - "name", - "isReducedBondingPool" + "displayName", + "active", + "solverId", + "isServiceFeeEnabled", + "isColocated" ], "properties": { - "address": { + "displayName": { "type": "string" }, - "joinedOn": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" + "active": { + "type": "boolean" }, - "solvers": { + "image": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "displayName": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "image": { - "type": "object", - "properties": { - "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -24429,73 +23830,77 @@ }, "attributes": { "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pathId": { + "type": "integer" + }, + "parent": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "children": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "files": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "number" }, "attributes": { @@ -24504,27 +23909,43 @@ "name": { "type": "string" }, - "pathId": { + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { "type": "integer" }, - "parent": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } + "height": { + "type": "integer" }, - "children": { + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { "type": "object", "properties": { "data": { @@ -24544,111 +23965,74 @@ } } }, - "files": { + "folder": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "firstname": { + "type": "string" + }, + "lastname": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "resetPasswordToken": { + "type": "string" + }, + "registrationToken": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "roles": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -24657,29 +24041,36 @@ "attributes": { "type": "object", "properties": { - "firstname": { - "type": "string" - }, - "lastname": { - "type": "string" - }, - "username": { + "name": { "type": "string" }, - "email": { - "type": "string", - "format": "email" - }, - "resetPasswordToken": { + "code": { "type": "string" }, - "registrationToken": { + "description": { "type": "string" }, - "isActive": { - "type": "boolean" + "users": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } }, - "roles": { + "permissions": { "type": "object", "properties": { "data": { @@ -24693,119 +24084,27 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "code": { + "action": { "type": "string" }, - "description": { + "actionParameters": {}, + "subject": { "type": "string" }, - "users": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "permissions": { + "properties": {}, + "conditions": {}, + "role": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "actionParameters": {}, - "subject": { - "type": "string" - }, - "properties": {}, - "conditions": {}, - "role": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } @@ -24860,12 +24159,6 @@ } } }, - "blocked": { - "type": "boolean" - }, - "preferedLanguage": { - "type": "string" - }, "createdAt": { "type": "string", "format": "date-time" @@ -24913,39 +24206,328 @@ } } } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } + } + }, + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } } - } - } - } - } - } - } - }, - "path": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "path": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "organization": { + "type": "string" + }, + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "solver": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { "type": "string", "format": "date-time" }, @@ -24989,87 +24571,24 @@ } } }, - "folderPath": { + "organization": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "website": { + "type": "string" }, - "updatedAt": { - "type": "string", - "format": "date-time" + "description": { + "type": "string" }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } + "solverId": { + "type": "string" }, - "updatedBy": { + "solver_networks": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "organization": { - "type": "string" - }, - "website": { - "type": "string" - }, - "description": { - "type": "string" - }, - "solverId": { - "type": "string" - }, - "solver_networks": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "solver": { - "type": "object", - "properties": { - "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -25082,11 +24601,14 @@ } } } - }, - "network": { - "type": "object", - "properties": { - "data": { + } + }, + "solver_bonding_pools": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -25095,13 +24617,17 @@ "attributes": { "type": "object", "properties": { - "name": { + "address": { "type": "string" }, - "chainId": { - "type": "integer" + "joinedOn": { + "type": "string", + "format": "date-time" }, - "solver_networks": { + "name": { + "type": "string" + }, + "solvers": { "type": "object", "properties": { "data": { @@ -25121,77 +24647,28 @@ } } }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } + "isReducedBondingPool": { + "type": "boolean" }, - "updatedBy": { + "solver_networks": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } } - } - } - } - } - } - } - }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "environment": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" }, "createdAt": { "type": "string", @@ -25240,158 +24717,95 @@ } } } - }, - "isWhiteListed": { - "type": "boolean" - }, - "isVouched": { - "type": "boolean" - }, - "isColocated": { - "type": "boolean" - }, - "vouchedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "joinedOn": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "solvers": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "isReducedBondingPool": { - "type": "boolean" - }, - "solver_networks": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } + } + }, + "isServiceFeeEnabled": { + "type": "boolean" + }, + "isColocated": { + "type": "string", + "enum": [ + "Yes", + "No", + "Partial" + ] + }, + "activeNetworks": {}, + "hasActiveNetworks": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { + } + } + } + } + } + } + } + }, + "network": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "chainId": { + "type": "integer" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -25405,6 +24819,48 @@ } } } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } } } } @@ -25412,41 +24868,104 @@ } } }, - "solver_bonding_pools": { + "address": { + "type": "string" + }, + "payoutAddress": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "environment": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } } } } } } }, - "isServiceFeeEnabled": { + "isWhiteListed": { "type": "boolean" }, - "isColocated": { - "type": "string", - "enum": [ - "Yes", - "No", - "Partial" - ] + "isVouched": { + "type": "boolean" }, - "activeNetworks": {}, - "hasActiveNetworks": { + "isColocated": { "type": "boolean" }, + "vouchedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -25496,10 +25015,7 @@ } } }, - "isReducedBondingPool": { - "type": "boolean" - }, - "solver_networks": { + "solver_bonding_pools": { "type": "object", "properties": { "data": { @@ -25519,6 +25035,21 @@ } } }, + "isServiceFeeEnabled": { + "type": "boolean" + }, + "isColocated": { + "type": "string", + "enum": [ + "Yes", + "No", + "Partial" + ] + }, + "activeNetworks": {}, + "hasActiveNetworks": { + "type": "boolean" + }, "createdAt": { "type": "string", "format": "date-time" @@ -25563,29 +25094,29 @@ } } }, - "SolverBondingPoolResponseDataObject": { + "SolverResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/SolverBondingPool" + "$ref": "#/components/schemas/Solver" } } }, - "SolverBondingPoolResponse": { + "SolverResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/SolverBondingPoolResponseDataObject" + "$ref": "#/components/schemas/SolverResponseDataObject" }, "meta": { "type": "object" } } }, - "SolverNetworkRequest": { + "SolverBondingPoolRequest": { "type": "object", "required": [ "data" @@ -25593,98 +25124,76 @@ "properties": { "data": { "required": [ - "network", "address", - "active", - "environment", - "isColocated" + "joinedOn", + "name", + "isReducedBondingPool" ], "type": "object", "properties": { - "solver": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" - }, - "network": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" - }, "address": { "type": "string" }, - "payoutAddress": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "environment": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" + "joinedOn": { + "type": "string", + "format": "date-time" }, - "isWhiteListed": { - "type": "boolean" + "name": { + "type": "string" }, - "isVouched": { - "type": "boolean" + "solvers": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + } }, - "isColocated": { + "isReducedBondingPool": { "type": "boolean" }, - "vouchedBy": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" + "solver_networks": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + } } } } } }, - "SolverNetworkListResponseDataItem": { + "SolverBondingPoolListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/SolverNetwork" + "$ref": "#/components/schemas/SolverBondingPool" } } }, - "SolverNetworkListResponse": { + "SolverBondingPoolListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SolverNetworkListResponseDataItem" + "$ref": "#/components/schemas/SolverBondingPoolListResponseDataItem" } }, "meta": { @@ -25713,42 +25222,1376 @@ } } }, - "SolverNetwork": { + "SolverBondingPool": { "type": "object", "required": [ - "network", "address", - "active", - "environment", - "isColocated" + "joinedOn", + "name", + "isReducedBondingPool" ], "properties": { - "solver": { + "address": { + "type": "string" + }, + "joinedOn": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "solvers": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "displayName": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "image": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pathId": { + "type": "integer" + }, + "parent": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "children": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "files": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "firstname": { + "type": "string" + }, + "lastname": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "resetPasswordToken": { + "type": "string" + }, + "registrationToken": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "roles": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "description": { + "type": "string" + }, + "users": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "permissions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "actionParameters": {}, + "subject": { + "type": "string" + }, + "properties": {}, + "conditions": {}, + "role": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "path": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "organization": { + "type": "string" + }, + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "solver": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "network": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "chainId": { + "type": "integer" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "address": { + "type": "string" + }, + "payoutAddress": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "environment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "isWhiteListed": { + "type": "boolean" + }, + "isVouched": { + "type": "boolean" + }, + "isColocated": { + "type": "boolean" + }, + "vouchedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "joinedOn": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "solvers": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "isReducedBondingPool": { + "type": "boolean" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "solver_bonding_pools": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "isServiceFeeEnabled": { + "type": "boolean" + }, + "isColocated": { + "type": "string", + "enum": [ + "Yes", + "No", + "Partial" + ] + }, + "activeNetworks": {}, + "hasActiveNetworks": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "isReducedBondingPool": { + "type": "boolean" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + }, + "SolverBondingPoolResponseDataObject": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/SolverBondingPool" + } + } + }, + "SolverBondingPoolResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/SolverBondingPoolResponseDataObject" + }, + "meta": { + "type": "object" + } + } + }, + "SolverNetworkRequest": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "required": [ + "network", + "address", + "active", + "environment", + "isColocated" + ], + "type": "object", + "properties": { + "solver": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, + "network": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, + "address": { + "type": "string" + }, + "payoutAddress": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "environment": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, + "isWhiteListed": { + "type": "boolean" + }, + "isVouched": { + "type": "boolean" + }, + "isColocated": { + "type": "boolean" + }, + "vouchedBy": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + } + } + } + } + }, + "SolverNetworkListResponseDataItem": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/SolverNetwork" + } + } + }, + "SolverNetworkListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SolverNetworkListResponseDataItem" + } + }, + "meta": { + "type": "object", + "properties": { + "pagination": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" + } + } + } + } + } + } + }, + "SolverNetwork": { + "type": "object", + "required": [ + "network", + "address", + "active", + "environment", + "isColocated" + ], + "properties": { + "solver": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" }, "attributes": { "type": "object", @@ -28700,509 +29543,40 @@ "type": "string", "format": "date-time" }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "featured": { - "type": "boolean" - }, - "publishDate": { - "type": "string", - "format": "date-time" - }, - "publishDateVisible": { - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - }, - "TagResponseDataObject": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "$ref": "#/components/schemas/Tag" - } - } - }, - "TagResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/TagResponseDataObject" - }, - "meta": { - "type": "object" - } - } - }, - "TelegramSubscriptionRequest": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "required": [ - "account" - ], - "type": "object", - "properties": { - "account": { - "type": "string" - }, - "authDate": { - "type": "string", - "pattern": "^\\d*$", - "example": "123456789" - }, - "firstName": { - "type": "string" - }, - "hash": { - "type": "string" - }, - "chatId": { - "type": "string", - "pattern": "^\\d*$", - "example": "123456789" - }, - "photoUrl": { - "type": "string" - }, - "username": { - "type": "string" - } - } - } - } - }, - "TelegramSubscriptionListResponseDataItem": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "$ref": "#/components/schemas/TelegramSubscription" - } - } - }, - "TelegramSubscriptionListResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TelegramSubscriptionListResponseDataItem" - } - }, - "meta": { - "type": "object", - "properties": { - "pagination": { - "type": "object", - "properties": { - "page": { - "type": "integer" - }, - "pageSize": { - "type": "integer", - "minimum": 25 - }, - "pageCount": { - "type": "integer", - "maximum": 1 - }, - "total": { - "type": "integer" - } - } - } - } - } - } - }, - "TelegramSubscription": { - "type": "object", - "required": [ - "account" - ], - "properties": { - "account": { - "type": "string" - }, - "authDate": { - "type": "string", - "pattern": "^\\d*$", - "example": "123456789" - }, - "firstName": { - "type": "string" - }, - "hash": { - "type": "string" - }, - "chatId": { - "type": "string", - "pattern": "^\\d*$", - "example": "123456789" - }, - "photoUrl": { - "type": "string" - }, - "username": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "firstname": { - "type": "string" - }, - "lastname": { - "type": "string" - }, - "username": { - "type": "string" - }, - "email": { - "type": "string", - "format": "email" - }, - "resetPasswordToken": { - "type": "string" - }, - "registrationToken": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "roles": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "users": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "permissions": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "actionParameters": {}, - "subject": { - "type": "string" - }, - "properties": {}, - "conditions": {}, - "role": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } @@ -29213,51 +29587,59 @@ } } } - } - }, - "blocked": { - "type": "boolean" - }, - "preferedLanguage": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "featured": { + "type": "boolean" + }, + "publishDate": { + "type": "string", + "format": "date-time" + }, + "publishDateVisible": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } @@ -29269,6 +29651,31 @@ } } }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, "updatedBy": { "type": "object", "properties": { @@ -29288,271 +29695,87 @@ } } }, - "TelegramSubscriptionResponseDataObject": { + "TagResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/TelegramSubscription" + "$ref": "#/components/schemas/Tag" } } }, - "TelegramSubscriptionResponse": { + "TagResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/TelegramSubscriptionResponseDataObject" + "$ref": "#/components/schemas/TagResponseDataObject" }, "meta": { "type": "object" } } }, - "UploadFile": { - "properties": { - "id": { - "type": "number" - }, - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "number", - "format": "integer" - }, - "height": { - "type": "number", - "format": "integer" - }, - "formats": { - "type": "number" - }, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "double" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": { - "type": "object" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - } - } - }, - "Users-Permissions-Role": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - } - } - }, - "Users-Permissions-User": { - "type": "object", - "properties": { - "id": { - "type": "number", - "example": 1 - }, - "username": { - "type": "string", - "example": "foo.bar" - }, - "email": { - "type": "string", - "example": "foo.bar@strapi.io" - }, - "provider": { - "type": "string", - "example": "local" - }, - "confirmed": { - "type": "boolean", - "example": true - }, - "blocked": { - "type": "boolean", - "example": false - }, - "createdAt": { - "type": "string", - "format": "date-time", - "example": "2022-06-02T08:32:06.258Z" - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "example": "2022-06-02T08:32:06.267Z" - } - } - }, - "Users-Permissions-UserRegistration": { - "type": "object", - "properties": { - "jwt": { - "type": "string", - "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" - }, - "user": { - "$ref": "#/components/schemas/Users-Permissions-User" - } - } - }, - "Users-Permissions-PermissionsTree": { - "type": "object", - "additionalProperties": { - "type": "object", - "description": "every api", - "properties": { - "controllers": { - "description": "every controller of the api", - "type": "object", - "additionalProperties": { - "type": "object", - "additionalProperties": { - "description": "every action of every controller", - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "policy": { - "type": "string" - } - } - } - } - } - } - } - }, - "ResourceRequest": { + "TelegramSubscriptionRequest": { "type": "object", "required": [ "data" ], "properties": { "data": { - "type": "object", "required": [ - "title", - "description", - "slug", - "campaign", - "publishDateVisible" + "account" ], + "type": "object", "properties": { - "title": { + "account": { "type": "string" }, - "description": { + "authDate": { + "type": "string", + "pattern": "^\\d*$", + "example": "123456789" + }, + "firstName": { "type": "string" }, - "slug": { + "hash": { "type": "string" }, - "campaign": { + "chatId": { "type": "string", - "description": "URL segment grouping programmatic content (e.g. tokens, eips)", - "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" - }, - "cover": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" - }, - "blocks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SharedRichTextComponent" - } - }, - "seo": { - "$ref": "#/components/schemas/SharedSeoComponent" + "pattern": "^\\d*$", + "example": "123456789" }, - "publishDate": { - "type": "string", - "format": "date-time" + "photoUrl": { + "type": "string" }, - "publishDateVisible": { - "type": "boolean" + "username": { + "type": "string" } } } } }, - "ResourceListResponseDataItem": { + "TelegramSubscriptionListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/TelegramSubscription" } } }, - "ResourceListResponse": { + "TelegramSubscriptionListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/ResourceListResponseDataItem" + "$ref": "#/components/schemas/TelegramSubscriptionListResponseDataItem" } }, "meta": { @@ -29581,26 +29804,46 @@ } } }, - "Resource": { + "TelegramSubscription": { "type": "object", "required": [ - "title", - "description", - "slug", - "campaign", - "publishDateVisible" + "account" ], "properties": { - "title": { + "account": { "type": "string" }, - "description": { + "authDate": { + "type": "string", + "pattern": "^\\d*$", + "example": "123456789" + }, + "firstName": { "type": "string" }, - "slug": { + "hash": { "type": "string" }, - "cover": { + "chatId": { + "type": "string", + "pattern": "^\\d*$", + "example": "123456789" + }, + "photoUrl": { + "type": "string" + }, + "username": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { "type": "object", "properties": { "data": { @@ -29612,46 +29855,29 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { + "firstname": { "type": "string" }, - "ext": { + "lastname": { "type": "string" }, - "mime": { + "username": { "type": "string" }, - "size": { - "type": "number", - "format": "float" + "email": { + "type": "string", + "format": "email" }, - "url": { + "resetPasswordToken": { "type": "string" }, - "previewUrl": { + "registrationToken": { "type": "string" }, - "provider": { - "type": "string" + "isActive": { + "type": "boolean" }, - "provider_metadata": {}, - "related": { + "roles": { "type": "object", "properties": { "data": { @@ -29664,127 +29890,63 @@ }, "attributes": { "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pathId": { - "type": "integer" - }, - "parent": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { + "properties": { + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "description": { + "type": "string" + }, + "users": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", - "properties": {} - } - } - } - } - }, - "children": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } } - } - }, - "files": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { + }, + "permissions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "actionParameters": {}, + "subject": { + "type": "string" + }, + "properties": {}, + "conditions": {}, + "role": { + "type": "object", + "properties": { + "data": { "type": "object", "properties": { "id": { @@ -29797,317 +29959,45 @@ } } } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "firstname": { - "type": "string" - }, - "lastname": { - "type": "string" - }, - "username": { - "type": "string" - }, - "email": { - "type": "string", - "format": "email" - }, - "resetPasswordToken": { - "type": "string" - }, - "registrationToken": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "roles": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "users": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "permissions": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "actionParameters": {}, - "subject": { - "type": "string" - }, - "properties": {}, - "conditions": {}, - "role": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "blocked": { - "type": "boolean" - }, - "preferedLanguage": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } @@ -30118,48 +30008,45 @@ } } } - } - }, - "path": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } @@ -30171,7 +30058,10 @@ } } }, - "folderPath": { + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { "type": "string" }, "createdAt": { @@ -30222,51 +30112,6 @@ } } }, - "blocks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SharedRichTextComponent" - } - }, - "seo": { - "$ref": "#/components/schemas/SharedSeoComponent" - }, - "publishDate": { - "type": "string", - "format": "date-time" - }, - "publishDateVisible": { - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, "updatedBy": { "type": "object", "properties": { @@ -30283,35 +30128,194 @@ } } } - }, - "campaign": { - "type": "string", - "description": "URL segment grouping programmatic content (e.g. tokens, eips)", - "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" } } }, - "ResourceResponseDataObject": { + "TelegramSubscriptionResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/TelegramSubscription" } } }, - "ResourceResponse": { + "TelegramSubscriptionResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/ResourceResponseDataObject" + "$ref": "#/components/schemas/TelegramSubscriptionResponseDataObject" }, "meta": { "type": "object" } } + }, + "UploadFile": { + "properties": { + "id": { + "type": "number" + }, + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "number", + "format": "integer" + }, + "height": { + "type": "number", + "format": "integer" + }, + "formats": { + "type": "number" + }, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "double" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": { + "type": "object" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "Users-Permissions-Role": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "Users-Permissions-User": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "username": { + "type": "string", + "example": "foo.bar" + }, + "email": { + "type": "string", + "example": "foo.bar@strapi.io" + }, + "provider": { + "type": "string", + "example": "local" + }, + "confirmed": { + "type": "boolean", + "example": true + }, + "blocked": { + "type": "boolean", + "example": false + }, + "createdAt": { + "type": "string", + "format": "date-time", + "example": "2022-06-02T08:32:06.258Z" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "example": "2022-06-02T08:32:06.267Z" + } + } + }, + "Users-Permissions-UserRegistration": { + "type": "object", + "properties": { + "jwt": { + "type": "string", + "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + }, + "user": { + "$ref": "#/components/schemas/Users-Permissions-User" + } + } + }, + "Users-Permissions-PermissionsTree": { + "type": "object", + "additionalProperties": { + "type": "object", + "description": "every api", + "properties": { + "controllers": { + "description": "every controller of the api", + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "description": "every action of every controller", + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "policy": { + "type": "string" + } + } + } + } + } + } + } } }, "requestBodies": { @@ -30597,20 +30601,526 @@ "Affiliate" ], "parameters": [], - "operationId": "post/affiliates", + "operationId": "post/affiliates", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AffiliateRequest" + } + } + } + } + } + }, + "/affiliates/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AffiliateResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Affiliate" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/affiliates/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AffiliateResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Affiliate" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/affiliates/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AffiliateRequest" + } + } + } + } + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Affiliate" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/affiliates/{id}" + } + }, + "/announcements": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnnouncementListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Announcement" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object", + "additionalProperties": true + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/announcements" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnnouncementResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Announcement" + ], + "parameters": [], + "operationId": "post/announcements", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AffiliateRequest" + "$ref": "#/components/schemas/AnnouncementRequest" } } } } } }, - "/affiliates/{id}": { + "/announcements/{id}": { "get": { "responses": { "200": { @@ -30618,7 +31128,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AffiliateResponse" + "$ref": "#/components/schemas/AnnouncementResponse" } } } @@ -30675,7 +31185,7 @@ } }, "tags": [ - "Affiliate" + "Announcement" ], "parameters": [ { @@ -30689,7 +31199,7 @@ } } ], - "operationId": "get/affiliates/{id}" + "operationId": "get/announcements/{id}" }, "put": { "responses": { @@ -30698,7 +31208,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AffiliateResponse" + "$ref": "#/components/schemas/AnnouncementResponse" } } } @@ -30755,7 +31265,7 @@ } }, "tags": [ - "Affiliate" + "Announcement" ], "parameters": [ { @@ -30769,13 +31279,13 @@ } } ], - "operationId": "put/affiliates/{id}", + "operationId": "put/announcements/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AffiliateRequest" + "$ref": "#/components/schemas/AnnouncementRequest" } } } @@ -30846,7 +31356,7 @@ } }, "tags": [ - "Affiliate" + "Announcement" ], "parameters": [ { @@ -30860,10 +31370,10 @@ } } ], - "operationId": "delete/affiliates/{id}" + "operationId": "delete/announcements/{id}" } }, - "/announcements": { + "/articles": { "get": { "responses": { "200": { @@ -30871,7 +31381,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AnnouncementListResponse" + "$ref": "#/components/schemas/ArticleListResponse" } } } @@ -30928,7 +31438,7 @@ } }, "tags": [ - "Announcement" + "Article" ], "parameters": [ { @@ -31034,7 +31544,7 @@ } } ], - "operationId": "get/announcements" + "operationId": "get/articles" }, "post": { "responses": { @@ -31043,7 +31553,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AnnouncementResponse" + "$ref": "#/components/schemas/ArticleResponse" } } } @@ -31100,23 +31610,23 @@ } }, "tags": [ - "Announcement" + "Article" ], "parameters": [], - "operationId": "post/announcements", + "operationId": "post/articles", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AnnouncementRequest" + "$ref": "#/components/schemas/ArticleRequest" } } } } } }, - "/announcements/{id}": { + "/articles/{id}": { "get": { "responses": { "200": { @@ -31124,7 +31634,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AnnouncementResponse" + "$ref": "#/components/schemas/ArticleResponse" } } } @@ -31181,7 +31691,7 @@ } }, "tags": [ - "Announcement" + "Article" ], "parameters": [ { @@ -31195,7 +31705,7 @@ } } ], - "operationId": "get/announcements/{id}" + "operationId": "get/articles/{id}" }, "put": { "responses": { @@ -31204,7 +31714,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AnnouncementResponse" + "$ref": "#/components/schemas/ArticleResponse" } } } @@ -31261,7 +31771,7 @@ } }, "tags": [ - "Announcement" + "Article" ], "parameters": [ { @@ -31275,13 +31785,13 @@ } } ], - "operationId": "put/announcements/{id}", + "operationId": "put/articles/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AnnouncementRequest" + "$ref": "#/components/schemas/ArticleRequest" } } } @@ -31352,7 +31862,7 @@ } }, "tags": [ - "Announcement" + "Article" ], "parameters": [ { @@ -31366,10 +31876,10 @@ } } ], - "operationId": "delete/announcements/{id}" + "operationId": "delete/articles/{id}" } }, - "/articles": { + "/authors": { "get": { "responses": { "200": { @@ -31377,7 +31887,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleListResponse" + "$ref": "#/components/schemas/AuthorListResponse" } } } @@ -31434,7 +31944,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -31540,7 +32050,7 @@ } } ], - "operationId": "get/articles" + "operationId": "get/authors" }, "post": { "responses": { @@ -31549,7 +32059,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -31606,23 +32116,23 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [], - "operationId": "post/articles", + "operationId": "post/authors", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleRequest" + "$ref": "#/components/schemas/AuthorRequest" } } } } } }, - "/articles/{id}": { + "/authors/{id}": { "get": { "responses": { "200": { @@ -31630,7 +32140,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -31687,7 +32197,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -31701,7 +32211,7 @@ } } ], - "operationId": "get/articles/{id}" + "operationId": "get/authors/{id}" }, "put": { "responses": { @@ -31710,7 +32220,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -31767,7 +32277,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -31781,13 +32291,13 @@ } } ], - "operationId": "put/articles/{id}", + "operationId": "put/authors/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleRequest" + "$ref": "#/components/schemas/AuthorRequest" } } } @@ -31858,7 +32368,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -31872,10 +32382,10 @@ } } ], - "operationId": "delete/articles/{id}" + "operationId": "delete/authors/{id}" } }, - "/authors": { + "/bonding-pools": { "get": { "responses": { "200": { @@ -31883,7 +32393,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorListResponse" + "$ref": "#/components/schemas/BondingPoolListResponse" } } } @@ -31940,7 +32450,7 @@ } }, "tags": [ - "Author" + "Bonding-pool" ], "parameters": [ { @@ -32046,7 +32556,7 @@ } } ], - "operationId": "get/authors" + "operationId": "get/bonding-pools" }, "post": { "responses": { @@ -32055,7 +32565,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/BondingPoolResponse" } } } @@ -32112,23 +32622,23 @@ } }, "tags": [ - "Author" + "Bonding-pool" ], "parameters": [], - "operationId": "post/authors", + "operationId": "post/bonding-pools", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorRequest" + "$ref": "#/components/schemas/BondingPoolRequest" } } } } } }, - "/authors/{id}": { + "/bonding-pools/{id}": { "get": { "responses": { "200": { @@ -32136,7 +32646,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/BondingPoolResponse" } } } @@ -32193,7 +32703,7 @@ } }, "tags": [ - "Author" + "Bonding-pool" ], "parameters": [ { @@ -32207,7 +32717,7 @@ } } ], - "operationId": "get/authors/{id}" + "operationId": "get/bonding-pools/{id}" }, "put": { "responses": { @@ -32216,7 +32726,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/BondingPoolResponse" } } } @@ -32273,7 +32783,7 @@ } }, "tags": [ - "Author" + "Bonding-pool" ], "parameters": [ { @@ -32287,13 +32797,13 @@ } } ], - "operationId": "put/authors/{id}", + "operationId": "put/bonding-pools/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorRequest" + "$ref": "#/components/schemas/BondingPoolRequest" } } } @@ -32364,7 +32874,7 @@ } }, "tags": [ - "Author" + "Bonding-pool" ], "parameters": [ { @@ -32378,10 +32888,10 @@ } } ], - "operationId": "delete/authors/{id}" + "operationId": "delete/bonding-pools/{id}" } }, - "/bonding-pools": { + "/categories": { "get": { "responses": { "200": { @@ -32389,7 +32899,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BondingPoolListResponse" + "$ref": "#/components/schemas/CategoryListResponse" } } } @@ -32446,7 +32956,7 @@ } }, "tags": [ - "Bonding-pool" + "Category" ], "parameters": [ { @@ -32552,7 +33062,7 @@ } } ], - "operationId": "get/bonding-pools" + "operationId": "get/categories" }, "post": { "responses": { @@ -32561,7 +33071,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BondingPoolResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -32618,23 +33128,23 @@ } }, "tags": [ - "Bonding-pool" + "Category" ], "parameters": [], - "operationId": "post/bonding-pools", + "operationId": "post/categories", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BondingPoolRequest" + "$ref": "#/components/schemas/CategoryRequest" } } } } } }, - "/bonding-pools/{id}": { + "/categories/{id}": { "get": { "responses": { "200": { @@ -32642,7 +33152,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BondingPoolResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -32699,7 +33209,7 @@ } }, "tags": [ - "Bonding-pool" + "Category" ], "parameters": [ { @@ -32713,7 +33223,7 @@ } } ], - "operationId": "get/bonding-pools/{id}" + "operationId": "get/categories/{id}" }, "put": { "responses": { @@ -32722,7 +33232,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BondingPoolResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -32779,7 +33289,7 @@ } }, "tags": [ - "Bonding-pool" + "Category" ], "parameters": [ { @@ -32793,13 +33303,13 @@ } } ], - "operationId": "put/bonding-pools/{id}", + "operationId": "put/categories/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BondingPoolRequest" + "$ref": "#/components/schemas/CategoryRequest" } } } @@ -32870,7 +33380,7 @@ } }, "tags": [ - "Bonding-pool" + "Category" ], "parameters": [ { @@ -32884,10 +33394,10 @@ } } ], - "operationId": "delete/bonding-pools/{id}" + "operationId": "delete/categories/{id}" } }, - "/categories": { + "/correlated-tokens": { "get": { "responses": { "200": { @@ -32895,7 +33405,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryListResponse" + "$ref": "#/components/schemas/CorrelatedTokenListResponse" } } } @@ -32952,7 +33462,7 @@ } }, "tags": [ - "Category" + "Correlated-token" ], "parameters": [ { @@ -33058,7 +33568,7 @@ } } ], - "operationId": "get/categories" + "operationId": "get/correlated-tokens" }, "post": { "responses": { @@ -33067,7 +33577,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/CorrelatedTokenResponse" } } } @@ -33124,23 +33634,23 @@ } }, "tags": [ - "Category" + "Correlated-token" ], "parameters": [], - "operationId": "post/categories", + "operationId": "post/correlated-tokens", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryRequest" + "$ref": "#/components/schemas/CorrelatedTokenRequest" } } } } } }, - "/categories/{id}": { + "/correlated-tokens/{id}": { "get": { "responses": { "200": { @@ -33148,7 +33658,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/CorrelatedTokenResponse" } } } @@ -33205,7 +33715,7 @@ } }, "tags": [ - "Category" + "Correlated-token" ], "parameters": [ { @@ -33219,7 +33729,7 @@ } } ], - "operationId": "get/categories/{id}" + "operationId": "get/correlated-tokens/{id}" }, "put": { "responses": { @@ -33228,7 +33738,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/CorrelatedTokenResponse" } } } @@ -33285,7 +33795,7 @@ } }, "tags": [ - "Category" + "Correlated-token" ], "parameters": [ { @@ -33299,13 +33809,13 @@ } } ], - "operationId": "put/categories/{id}", + "operationId": "put/correlated-tokens/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryRequest" + "$ref": "#/components/schemas/CorrelatedTokenRequest" } } } @@ -33376,7 +33886,7 @@ } }, "tags": [ - "Category" + "Correlated-token" ], "parameters": [ { @@ -33390,10 +33900,10 @@ } } ], - "operationId": "delete/categories/{id}" + "operationId": "delete/correlated-tokens/{id}" } }, - "/correlated-tokens": { + "/environments": { "get": { "responses": { "200": { @@ -33401,7 +33911,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CorrelatedTokenListResponse" + "$ref": "#/components/schemas/EnvironmentListResponse" } } } @@ -33458,7 +33968,7 @@ } }, "tags": [ - "Correlated-token" + "Environment" ], "parameters": [ { @@ -33564,7 +34074,7 @@ } } ], - "operationId": "get/correlated-tokens" + "operationId": "get/environments" }, "post": { "responses": { @@ -33573,7 +34083,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CorrelatedTokenResponse" + "$ref": "#/components/schemas/EnvironmentResponse" } } } @@ -33630,23 +34140,23 @@ } }, "tags": [ - "Correlated-token" + "Environment" ], "parameters": [], - "operationId": "post/correlated-tokens", + "operationId": "post/environments", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CorrelatedTokenRequest" + "$ref": "#/components/schemas/EnvironmentRequest" } } } } } }, - "/correlated-tokens/{id}": { + "/environments/{id}": { "get": { "responses": { "200": { @@ -33654,7 +34164,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CorrelatedTokenResponse" + "$ref": "#/components/schemas/EnvironmentResponse" } } } @@ -33711,7 +34221,7 @@ } }, "tags": [ - "Correlated-token" + "Environment" ], "parameters": [ { @@ -33725,7 +34235,7 @@ } } ], - "operationId": "get/correlated-tokens/{id}" + "operationId": "get/environments/{id}" }, "put": { "responses": { @@ -33734,7 +34244,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CorrelatedTokenResponse" + "$ref": "#/components/schemas/EnvironmentResponse" } } } @@ -33791,7 +34301,7 @@ } }, "tags": [ - "Correlated-token" + "Environment" ], "parameters": [ { @@ -33805,13 +34315,13 @@ } } ], - "operationId": "put/correlated-tokens/{id}", + "operationId": "put/environments/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CorrelatedTokenRequest" + "$ref": "#/components/schemas/EnvironmentRequest" } } } @@ -33882,7 +34392,7 @@ } }, "tags": [ - "Correlated-token" + "Environment" ], "parameters": [ { @@ -33896,10 +34406,10 @@ } } ], - "operationId": "delete/correlated-tokens/{id}" + "operationId": "delete/environments/{id}" } }, - "/environments": { + "/faq-categories": { "get": { "responses": { "200": { @@ -33907,7 +34417,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnvironmentListResponse" + "$ref": "#/components/schemas/FaqCategoryListResponse" } } } @@ -33964,7 +34474,7 @@ } }, "tags": [ - "Environment" + "Faq-category" ], "parameters": [ { @@ -34070,7 +34580,7 @@ } } ], - "operationId": "get/environments" + "operationId": "get/faq-categories" }, "post": { "responses": { @@ -34079,7 +34589,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnvironmentResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -34136,23 +34646,23 @@ } }, "tags": [ - "Environment" + "Faq-category" ], "parameters": [], - "operationId": "post/environments", + "operationId": "post/faq-categories", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnvironmentRequest" + "$ref": "#/components/schemas/FaqCategoryRequest" } } } } } }, - "/environments/{id}": { + "/faq-categories/{id}": { "get": { "responses": { "200": { @@ -34160,7 +34670,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnvironmentResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -34217,7 +34727,7 @@ } }, "tags": [ - "Environment" + "Faq-category" ], "parameters": [ { @@ -34231,7 +34741,7 @@ } } ], - "operationId": "get/environments/{id}" + "operationId": "get/faq-categories/{id}" }, "put": { "responses": { @@ -34240,7 +34750,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnvironmentResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -34297,7 +34807,7 @@ } }, "tags": [ - "Environment" + "Faq-category" ], "parameters": [ { @@ -34311,13 +34821,13 @@ } } ], - "operationId": "put/environments/{id}", + "operationId": "put/faq-categories/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EnvironmentRequest" + "$ref": "#/components/schemas/FaqCategoryRequest" } } } @@ -34388,7 +34898,7 @@ } }, "tags": [ - "Environment" + "Faq-category" ], "parameters": [ { @@ -34402,10 +34912,10 @@ } } ], - "operationId": "delete/environments/{id}" + "operationId": "delete/faq-categories/{id}" } }, - "/faq-categories": { + "/faq-questions": { "get": { "responses": { "200": { @@ -34413,7 +34923,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryListResponse" + "$ref": "#/components/schemas/FaqQuestionListResponse" } } } @@ -34470,7 +34980,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -34576,7 +35086,7 @@ } } ], - "operationId": "get/faq-categories" + "operationId": "get/faq-questions" }, "post": { "responses": { @@ -34585,7 +35095,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -34642,23 +35152,23 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [], - "operationId": "post/faq-categories", + "operationId": "post/faq-questions", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryRequest" + "$ref": "#/components/schemas/FaqQuestionRequest" } } } } } }, - "/faq-categories/{id}": { + "/faq-questions/{id}": { "get": { "responses": { "200": { @@ -34666,7 +35176,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -34723,7 +35233,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -34737,7 +35247,7 @@ } } ], - "operationId": "get/faq-categories/{id}" + "operationId": "get/faq-questions/{id}" }, "put": { "responses": { @@ -34746,7 +35256,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -34803,7 +35313,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -34817,13 +35327,13 @@ } } ], - "operationId": "put/faq-categories/{id}", + "operationId": "put/faq-questions/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryRequest" + "$ref": "#/components/schemas/FaqQuestionRequest" } } } @@ -34894,7 +35404,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -34908,10 +35418,10 @@ } } ], - "operationId": "delete/faq-categories/{id}" + "operationId": "delete/faq-questions/{id}" } }, - "/faq-questions": { + "/global": { "get": { "responses": { "200": { @@ -34919,7 +35429,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionListResponse" + "$ref": "#/components/schemas/GlobalResponse" } } } @@ -34976,7 +35486,7 @@ } }, "tags": [ - "Faq-question" + "Global" ], "parameters": [ { @@ -35082,16 +35592,16 @@ } } ], - "operationId": "get/faq-questions" + "operationId": "get/global" }, - "post": { + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "$ref": "#/components/schemas/GlobalResponse" } } } @@ -35148,31 +35658,30 @@ } }, "tags": [ - "Faq-question" + "Global" ], "parameters": [], - "operationId": "post/faq-questions", + "operationId": "put/global", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionRequest" + "$ref": "#/components/schemas/GlobalRequest" } } } } - } - }, - "/faq-questions/{id}": { - "get": { + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "type": "integer", + "format": "int64" } } } @@ -35229,30 +35738,21 @@ } }, "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Global" ], - "operationId": "get/faq-questions/{id}" - }, - "put": { + "parameters": [], + "operationId": "delete/global" + } + }, + "/global/localizations": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "$ref": "#/components/schemas/GlobalLocalizationResponse" } } } @@ -35309,115 +35809,23 @@ } }, "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Global" ], - "operationId": "put/faq-questions/{id}", + "parameters": [], + "operationId": "post/global/localizations", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionRequest" + "$ref": "#/components/schemas/GlobalLocalizationRequest" } } } } - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "integer", - "format": "int64" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/faq-questions/{id}" } }, - "/global": { + "/lead-form-submissions": { "get": { "responses": { "200": { @@ -35425,7 +35833,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalResponse" + "$ref": "#/components/schemas/LeadFormSubmissionListResponse" } } } @@ -35482,7 +35890,7 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], "parameters": [ { @@ -35588,16 +35996,16 @@ } } ], - "operationId": "get/global" + "operationId": "get/lead-form-submissions" }, - "put": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalResponse" + "$ref": "#/components/schemas/LeadFormSubmissionResponse" } } } @@ -35654,30 +36062,111 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], "parameters": [], - "operationId": "put/global", + "operationId": "post/lead-form-submissions", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalRequest" + "$ref": "#/components/schemas/LeadFormSubmissionRequest" } } } } + } + }, + "/lead-form-submissions/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeadFormSubmissionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Lead-form-submission" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/lead-form-submissions/{id}" }, - "delete": { + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/LeadFormSubmissionResponse" } } } @@ -35734,21 +36223,41 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], - "parameters": [], - "operationId": "delete/global" - } - }, - "/global/localizations": { - "post": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/lead-form-submissions/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeadFormSubmissionRequest" + } + } + } + } + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalLocalizationResponse" + "type": "integer", + "format": "int64" } } } @@ -35805,23 +36314,24 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], - "parameters": [], - "operationId": "post/global/localizations", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GlobalLocalizationRequest" - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" } } - } + ], + "operationId": "delete/lead-form-submissions/{id}" } }, - "/lead-form-submissions": { + "/networks": { "get": { "responses": { "200": { @@ -35829,7 +36339,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionListResponse" + "$ref": "#/components/schemas/NetworkListResponse" } } } @@ -35886,7 +36396,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -35992,7 +36502,7 @@ } } ], - "operationId": "get/lead-form-submissions" + "operationId": "get/networks" }, "post": { "responses": { @@ -36001,7 +36511,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NetworkResponse" } } } @@ -36058,23 +36568,23 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [], - "operationId": "post/lead-form-submissions", + "operationId": "post/networks", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionRequest" + "$ref": "#/components/schemas/NetworkRequest" } } } } } }, - "/lead-form-submissions/{id}": { + "/networks/{id}": { "get": { "responses": { "200": { @@ -36082,7 +36592,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NetworkResponse" } } } @@ -36139,7 +36649,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -36153,7 +36663,7 @@ } } ], - "operationId": "get/lead-form-submissions/{id}" + "operationId": "get/networks/{id}" }, "put": { "responses": { @@ -36162,7 +36672,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NetworkResponse" } } } @@ -36219,7 +36729,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -36233,13 +36743,13 @@ } } ], - "operationId": "put/lead-form-submissions/{id}", + "operationId": "put/networks/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionRequest" + "$ref": "#/components/schemas/NetworkRequest" } } } @@ -36310,7 +36820,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -36324,10 +36834,10 @@ } } ], - "operationId": "delete/lead-form-submissions/{id}" + "operationId": "delete/networks/{id}" } }, - "/networks": { + "/notifications": { "get": { "responses": { "200": { @@ -36335,7 +36845,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkListResponse" + "$ref": "#/components/schemas/NotificationListResponse" } } } @@ -36392,7 +36902,7 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { @@ -36498,7 +37008,7 @@ } } ], - "operationId": "get/networks" + "operationId": "get/notifications" }, "post": { "responses": { @@ -36507,7 +37017,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -36564,23 +37074,23 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [], - "operationId": "post/networks", + "operationId": "post/notifications", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkRequest" + "$ref": "#/components/schemas/NotificationRequest" } } } } } }, - "/networks/{id}": { + "/notifications/{id}": { "get": { "responses": { "200": { @@ -36588,7 +37098,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -36645,7 +37155,7 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { @@ -36659,7 +37169,7 @@ } } ], - "operationId": "get/networks/{id}" + "operationId": "get/notifications/{id}" }, "put": { "responses": { @@ -36668,7 +37178,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -36725,7 +37235,7 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { @@ -36739,13 +37249,13 @@ } } ], - "operationId": "put/networks/{id}", + "operationId": "put/notifications/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkRequest" + "$ref": "#/components/schemas/NotificationRequest" } } } @@ -36816,7 +37326,7 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { @@ -36830,10 +37340,10 @@ } } ], - "operationId": "delete/networks/{id}" + "operationId": "delete/notifications/{id}" } }, - "/notifications": { + "/notification-list/{account}": { "get": { "responses": { "200": { @@ -36841,7 +37351,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationListResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -36902,111 +37412,103 @@ ], "parameters": [ { - "name": "sort", - "in": "query", - "description": "Sort by attributes ascending (asc) or descending (desc)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pagination[withCount]", - "in": "query", - "description": "Return page/pageSize (default: true)", + "name": "account", + "in": "path", + "description": "", "deprecated": false, - "required": false, + "required": true, "schema": { - "type": "boolean" + "type": "number" } - }, - { - "name": "pagination[page]", - "in": "query", - "description": "Page number (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" + } + ], + "operationId": "get/notification-list/{account}" + } + }, + "/accounts/{account}/notifications": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationResponse" + } + } } }, - { - "name": "pagination[pageSize]", - "in": "query", - "description": "Page size (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } }, - { - "name": "pagination[start]", - "in": "query", - "description": "Offset value (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } }, - { - "name": "pagination[limit]", - "in": "query", - "description": "Number of entities to return (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } }, - { - "name": "fields", - "in": "query", - "description": "Fields to return (ex: title,author)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } }, - { - "name": "populate", - "in": "query", - "description": "Relations to return", - "deprecated": false, - "required": false, - "schema": { - "type": "string" + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } - }, - { - "name": "filters", - "in": "query", - "description": "Filters to apply", - "deprecated": false, - "required": false, - "schema": { - "type": "object", - "additionalProperties": true - }, - "style": "deepObject" - }, + } + }, + "tags": [ + "Notification" + ], + "parameters": [ { - "name": "locale", - "in": "query", - "description": "Locale to apply", + "name": "account", + "in": "path", + "description": "", "deprecated": false, - "required": false, + "required": true, "schema": { - "type": "string" + "type": "number" } } ], - "operationId": "get/notifications" - }, - "post": { + "operationId": "get/accounts/{account}/notifications" + } + }, + "/push-notifications": { + "get": { "responses": { "200": { "description": "OK", @@ -37073,20 +37575,10 @@ "Notification" ], "parameters": [], - "operationId": "post/notifications", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationRequest" - } - } - } - } + "operationId": "get/push-notifications" } }, - "/notifications/{id}": { + "/notification-templates": { "get": { "responses": { "200": { @@ -37094,7 +37586,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "$ref": "#/components/schemas/NotificationTemplateListResponse" } } } @@ -37151,30 +37643,122 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "id", - "in": "path", - "description": "", + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", "deprecated": false, - "required": true, + "required": false, "schema": { - "type": "number" + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object", + "additionalProperties": true + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" } } ], - "operationId": "get/notifications/{id}" + "operationId": "get/notification-templates" }, - "put": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -37231,41 +37815,31 @@ } }, "tags": [ - "Notification" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Notification-template" ], - "operationId": "put/notifications/{id}", + "parameters": [], + "operationId": "post/notification-templates", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationRequest" + "$ref": "#/components/schemas/NotificationTemplateRequest" } } } } - }, - "delete": { + } + }, + "/notification-templates/{id}": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -37322,7 +37896,7 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { @@ -37336,18 +37910,16 @@ } } ], - "operationId": "delete/notifications/{id}" - } - }, - "/notification-list/{account}": { - "get": { + "operationId": "get/notification-templates/{id}" + }, + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -37404,11 +37976,11 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "account", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -37418,18 +37990,27 @@ } } ], - "operationId": "get/notification-list/{account}" - } - }, - "/accounts/{account}/notifications": { - "get": { + "operationId": "put/notification-templates/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplateRequest" + } + } + } + } + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "type": "integer", + "format": "int64" } } } @@ -37486,11 +38067,11 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "account", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -37500,81 +38081,10 @@ } } ], - "operationId": "get/accounts/{account}/notifications" - } - }, - "/push-notifications": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Notification" - ], - "parameters": [], - "operationId": "get/push-notifications" + "operationId": "delete/notification-templates/{id}" } }, - "/notification-templates": { + "/notifications-consumer": { "get": { "responses": { "200": { @@ -37582,7 +38092,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateListResponse" + "$ref": "#/components/schemas/NotificationsConsumerResponse" } } } @@ -37639,7 +38149,7 @@ } }, "tags": [ - "Notification-template" + "Notifications-consumer" ], "parameters": [ { @@ -37745,16 +38255,16 @@ } } ], - "operationId": "get/notification-templates" + "operationId": "get/notifications-consumer" }, - "post": { + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "$ref": "#/components/schemas/NotificationsConsumerResponse" } } } @@ -37811,31 +38321,30 @@ } }, "tags": [ - "Notification-template" + "Notifications-consumer" ], "parameters": [], - "operationId": "post/notification-templates", + "operationId": "put/notifications-consumer", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateRequest" + "$ref": "#/components/schemas/NotificationsConsumerRequest" } } } } - } - }, - "/notification-templates/{id}": { - "get": { + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "type": "integer", + "format": "int64" } } } @@ -37892,30 +38401,21 @@ } }, "tags": [ - "Notification-template" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Notifications-consumer" ], - "operationId": "get/notification-templates/{id}" - }, - "put": { + "parameters": [], + "operationId": "delete/notifications-consumer" + } + }, + "/pages": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "$ref": "#/components/schemas/PageListResponse" } } } @@ -37972,41 +38472,122 @@ } }, "tags": [ - "Notification-template" + "Page" ], "parameters": [ { - "name": "id", - "in": "path", - "description": "", + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", "deprecated": false, - "required": true, + "required": false, "schema": { - "type": "number" + "type": "string" } - } - ], - "operationId": "put/notification-templates/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationTemplateRequest" - } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object", + "additionalProperties": true + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" } } - } + ], + "operationId": "get/pages" }, - "delete": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/PageResponse" } } } @@ -38063,24 +38644,23 @@ } }, "tags": [ - "Notification-template" + "Page" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" + "parameters": [], + "operationId": "post/pages", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageRequest" + } } } - ], - "operationId": "delete/notification-templates/{id}" + } } }, - "/notifications-consumer": { + "/pages/{id}": { "get": { "responses": { "200": { @@ -38088,7 +38668,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationsConsumerResponse" + "$ref": "#/components/schemas/PageResponse" } } } @@ -38145,113 +38725,21 @@ } }, "tags": [ - "Notifications-consumer" + "Page" ], "parameters": [ { - "name": "sort", - "in": "query", - "description": "Sort by attributes ascending (asc) or descending (desc)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pagination[withCount]", - "in": "query", - "description": "Return page/pageSize (default: true)", - "deprecated": false, - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "pagination[page]", - "in": "query", - "description": "Page number (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[pageSize]", - "in": "query", - "description": "Page size (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[start]", - "in": "query", - "description": "Offset value (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[limit]", - "in": "query", - "description": "Number of entities to return (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "fields", - "in": "query", - "description": "Fields to return (ex: title,author)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "populate", - "in": "query", - "description": "Relations to return", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filters", - "in": "query", - "description": "Filters to apply", - "deprecated": false, - "required": false, - "schema": { - "type": "object", - "additionalProperties": true - }, - "style": "deepObject" - }, - { - "name": "locale", - "in": "query", - "description": "Locale to apply", + "name": "id", + "in": "path", + "description": "", "deprecated": false, - "required": false, + "required": true, "schema": { - "type": "string" + "type": "number" } } ], - "operationId": "get/notifications-consumer" + "operationId": "get/pages/{id}" }, "put": { "responses": { @@ -38260,7 +38748,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationsConsumerResponse" + "$ref": "#/components/schemas/PageResponse" } } } @@ -38317,16 +38805,27 @@ } }, "tags": [ - "Notifications-consumer" + "Page" ], - "parameters": [], - "operationId": "put/notifications-consumer", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/pages/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationsConsumerRequest" + "$ref": "#/components/schemas/PageRequest" } } } @@ -38397,21 +38896,32 @@ } }, "tags": [ - "Notifications-consumer" + "Page" ], - "parameters": [], - "operationId": "delete/notifications-consumer" + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/pages/{id}" } }, - "/pages": { - "get": { + "/pages/{id}/localizations": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageListResponse" + "$ref": "#/components/schemas/PageLocalizationResponse" } } } @@ -38470,6 +38980,98 @@ "tags": [ "Page" ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "post/pages/{id}/localizations", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageLocalizationRequest" + } + } + } + } + } + }, + "/product-features": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductFeatureListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Product-feature" + ], "parameters": [ { "name": "sort", @@ -38574,7 +39176,7 @@ } } ], - "operationId": "get/pages" + "operationId": "get/product-features" }, "post": { "responses": { @@ -38583,7 +39185,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageResponse" + "$ref": "#/components/schemas/ProductFeatureResponse" } } } @@ -38640,23 +39242,23 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [], - "operationId": "post/pages", + "operationId": "post/product-features", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageRequest" + "$ref": "#/components/schemas/ProductFeatureRequest" } } } } } }, - "/pages/{id}": { + "/product-features/{id}": { "get": { "responses": { "200": { @@ -38664,7 +39266,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageResponse" + "$ref": "#/components/schemas/ProductFeatureResponse" } } } @@ -38721,7 +39323,7 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -38735,7 +39337,7 @@ } } ], - "operationId": "get/pages/{id}" + "operationId": "get/product-features/{id}" }, "put": { "responses": { @@ -38744,7 +39346,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageResponse" + "$ref": "#/components/schemas/ProductFeatureResponse" } } } @@ -38801,7 +39403,7 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -38815,13 +39417,13 @@ } } ], - "operationId": "put/pages/{id}", + "operationId": "put/product-features/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageRequest" + "$ref": "#/components/schemas/ProductFeatureRequest" } } } @@ -38892,89 +39494,7 @@ } }, "tags": [ - "Page" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/pages/{id}" - } - }, - "/pages/{id}/localizations": { - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PageLocalizationResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -38988,20 +39508,10 @@ } } ], - "operationId": "post/pages/{id}/localizations", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PageLocalizationRequest" - } - } - } - } + "operationId": "delete/product-features/{id}" } }, - "/product-features": { + "/resources": { "get": { "responses": { "200": { @@ -39009,7 +39519,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureListResponse" + "$ref": "#/components/schemas/ResourceListResponse" } } } @@ -39066,7 +39576,7 @@ } }, "tags": [ - "Product-feature" + "Resource" ], "parameters": [ { @@ -39172,7 +39682,7 @@ } } ], - "operationId": "get/product-features" + "operationId": "get/resources" }, "post": { "responses": { @@ -39181,7 +39691,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureResponse" + "$ref": "#/components/schemas/ResourceResponse" } } } @@ -39238,23 +39748,23 @@ } }, "tags": [ - "Product-feature" + "Resource" ], "parameters": [], - "operationId": "post/product-features", + "operationId": "post/resources", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureRequest" + "$ref": "#/components/schemas/ResourceRequest" } } } } } }, - "/product-features/{id}": { + "/resources/{id}": { "get": { "responses": { "200": { @@ -39262,7 +39772,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureResponse" + "$ref": "#/components/schemas/ResourceResponse" } } } @@ -39319,7 +39829,7 @@ } }, "tags": [ - "Product-feature" + "Resource" ], "parameters": [ { @@ -39333,7 +39843,7 @@ } } ], - "operationId": "get/product-features/{id}" + "operationId": "get/resources/{id}" }, "put": { "responses": { @@ -39342,7 +39852,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureResponse" + "$ref": "#/components/schemas/ResourceResponse" } } } @@ -39399,7 +39909,7 @@ } }, "tags": [ - "Product-feature" + "Resource" ], "parameters": [ { @@ -39413,13 +39923,13 @@ } } ], - "operationId": "put/product-features/{id}", + "operationId": "put/resources/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureRequest" + "$ref": "#/components/schemas/ResourceRequest" } } } @@ -39490,7 +40000,7 @@ } }, "tags": [ - "Product-feature" + "Resource" ], "parameters": [ { @@ -39504,7 +40014,7 @@ } } ], - "operationId": "delete/product-features/{id}" + "operationId": "delete/resources/{id}" } }, "/restricted-token-lists": { @@ -42543,6 +43053,249 @@ "operationId": "delete/telegram-subscriptions/{id}" } }, + "/telegram-subscription/link-via-bot": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Telegram-subscription" + ], + "parameters": [], + "operationId": "post/telegram-subscription/link-via-bot", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionRequest" + } + } + } + } + } + }, + "/telegram-subscription/unlink-via-bot": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Telegram-subscription" + ], + "parameters": [], + "operationId": "post/telegram-subscription/unlink-via-bot", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionRequest" + } + } + } + } + } + }, + "/telegram-subscription/accounts-by-chat-via-bot": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Telegram-subscription" + ], + "parameters": [], + "operationId": "post/telegram-subscription/accounts-by-chat-via-bot", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TelegramSubscriptionRequest" + } + } + } + } + } + }, "/upload": { "post": { "description": "Upload files", @@ -43945,517 +44698,6 @@ } } } - }, - "/resources": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceListResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Resource" - ], - "parameters": [ - { - "name": "sort", - "in": "query", - "description": "Sort by attributes ascending (asc) or descending (desc)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pagination[withCount]", - "in": "query", - "description": "Return page/pageSize (default: true)", - "deprecated": false, - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "pagination[page]", - "in": "query", - "description": "Page number (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[pageSize]", - "in": "query", - "description": "Page size (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[start]", - "in": "query", - "description": "Offset value (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[limit]", - "in": "query", - "description": "Number of entities to return (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "fields", - "in": "query", - "description": "Fields to return (ex: fields[]=slug&fields[]=campaign)", - "deprecated": false, - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": true - }, - { - "name": "populate", - "in": "query", - "description": "Relations to return", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filters", - "in": "query", - "description": "Filters to apply", - "deprecated": false, - "required": false, - "schema": { - "type": "object", - "additionalProperties": true - }, - "style": "deepObject" - }, - { - "name": "locale", - "in": "query", - "description": "Locale to apply", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - } - ], - "operationId": "get/resources" - }, - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Resource" - ], - "parameters": [], - "operationId": "post/resources", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceRequest" - } - } - } - } - } - }, - "/resources/{id}": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Resource" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "get/resources/{id}" - }, - "put": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Resource" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "put/resources/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ResourceRequest" - } - } - } - } - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "integer", - "format": "int64" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Resource" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/resources/{id}" - } } }, "tags": [