openapi: 3.1.0
info:
  title: mewe App Open Api
  version: '1.0'
paths:
  /api/dev/signin:
    post:
      tags:
      - Auth
      description: Sends signin request for user
      operationId: postApiDevSignin
      parameters:
      - name: X-Api-Key
        in: header
        required: true
        schema:
          type: string
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppLoginRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppSigninReqResponse'
        '400':
          description: 'Invalid value for: header X-Api-Key, Invalid value for: header
            X-App-Id, Invalid value for: body'
          content:
            text/plain:
              schema:
                type: string
  /api/dev/token:
    get:
      tags:
      - Auth
      description: Gets the token if already accepted, if not, will return pending:true
      operationId: getApiDevToken
      parameters:
      - name: X-Api-Key
        in: header
        required: true
        schema:
          type: string
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: loginRequestToken
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTokenResponse'
        '400':
          description: 'Invalid value for: header X-Api-Key, Invalid value for: header
            X-App-Id, Invalid value for: query parameter loginRequestToken'
          content:
            text/plain:
              schema:
                type: string
  /api/dev/video/post/{postId}/{resolution}/{fileName}:
    get:
      tags:
      - Getting medias
      operationId: getApiDevVideoPostPostidResolutionFilename
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: postId
        in: path
        required: true
        schema:
          type: string
      - name: resolution
        in: path
        required: true
        schema:
          type: string
          enum:
          - auto
          - 1080p
          - 720p
          - 480p
          - original
          - hls2m
          - hires
          - midres
          - lowres
      - name: fileName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HlsParams'
        '303':
          description: ''
          headers:
            Location:
              required: true
              schema:
                type: string
            Set-Cookie:
              required: false
              schema:
                type: array
                items:
                  type: string
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/group/{groupId}/post:
    post:
      tags:
      - 'Group  posting(required permissions: user_groups, post_content)'
      description: Post to the group
      operationId: postApiDevGroupGroupidPost
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: groupId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
        required: true
      responses:
        '204':
          description: ''
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/group/{groupId}:
    get:
      tags:
      - 'Group (required permissions: user_groups)'
      operationId: getApiDevGroupGroupid
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: groupId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupDetailsJson'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/group/{groupId}/postsfeed:
    get:
      tags:
      - 'Group (required permissions: user_groups)'
      description: Gets simple group's feed
      operationId: getApiDevGroupGroupidPostsfeed
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: groupId
        in: path
        required: true
        schema:
          type: string
      - name: nextId
        in: query
        description: 'nextId token is received together with nextPage link. You can
          set it as a single query parameter and it should have the same result as
          using nextPage link directly. All other query params will be ignored in
          that case '
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: maxResults
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: afterId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimplePostsFeedJsonResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/group/{groupId}/scheduled/posts/calendar:
    get:
      tags:
      - 'Group (required permissions: user_groups)'
      description: Scheduled posts feed for calendar
      operationId: getApiDevGroupGroupidScheduledPostsCalendar
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: groupId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledPostsCalendarRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimplePostsFeedJsonResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/groups:
    get:
      tags:
      - 'Groups (required permissions: $Groups)'
      operationId: getApiDevGroups
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: nextId
        in: query
        description: 'nextId token is received together with nextPage link. You can
          set it as a single query parameter and it should have the same result as
          using nextPage link directly. All other query params will be ignored in
          that case '
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: maxResults
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: afterId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupsListResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/photo/upload:
    post:
      tags:
      - Photo uploading - requiers post_content permission
      operationId: postApiDevPhotoUpload
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: string
              format: binary
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhotoUploadResult'
        '400':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/MissingFile'
                - $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/me/post:
    post:
      tags:
      - 'Posting to own profile: (required permissions: user_profile, post_content)'
      description: Posting to own profile
      operationId: postApiDevMePost
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
        required: true
      responses:
        '204':
          description: ''
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/me:
    get:
      tags:
      - 'Profile (required permissions: user_profile)'
      description: Gets current user's profile
      operationId: getApiDevMe
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnProfile'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/me/scheduled/posts/calendar:
    get:
      tags:
      - 'Profile (required permissions: user_profile)'
      description: Scheduled posts for range
      operationId: getApiDevMeScheduledPostsCalendar
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledPostsCalendarRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimplePostsFeedJsonResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/socialgraph/followed:
    get:
      tags:
      - Social Graph (requires permission user_social_graph)
      description: Gets a list of followed users
      operationId: getApiDevSocialgraphFollowed
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: searchStr
        in: query
        required: false
        schema:
          type: string
      - name: nextId
        in: query
        description: 'nextId token is received together with nextPage link. You can
          set it as a single query parameter and it should have the same result as
          using nextPage link directly. All other query params will be ignored in
          that case '
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: maxResults
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: afterId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowedListResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/socialgraph/followers:
    get:
      tags:
      - Social Graph (requires permission user_social_graph)
      description: Gets a list of followers
      operationId: getApiDevSocialgraphFollowers
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: searchStr
        in: query
        required: false
        schema:
          type: string
      - name: nextId
        in: query
        description: 'nextId token is received together with nextPage link. You can
          set it as a single query parameter and it should have the same result as
          using nextPage link directly. All other query params will be ignored in
          that case '
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: maxResults
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: afterId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowersListResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/transactionrequest:
    post:
      tags:
      - TransactionRequests (requires permission transaction_requests)
      description: Create transaction request
      operationId: postApiDevTransactionrequest
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTransactionRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
  /api/dev/transactionrequest/{id}:
    get:
      tags:
      - TransactionRequests (requires permission transaction_requests)
      operationId: getApiDevTransactionrequestId
      parameters:
      - name: X-App-Id
        in: header
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionRequestDetailsResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '420':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhanceYourCalm'
      security:
      - httpAuth: []
components:
  schemas:
    AppLoginRequest:
      title: AppLoginRequest
      type: object
      required:
      - username
      properties:
        username:
          type: string
    AppSigninReqResponse:
      title: AppSigninReqResponse
      type: object
      required:
      - loginRequestToken
      properties:
        loginRequestToken:
          type: string
    BadRequest:
      title: BadRequest
      type: object
      required:
      - id
      - message
      properties:
        id:
          type: integer
          format: int32
        message:
          type: string
    CreateTransactionRequest:
      title: CreateTransactionRequest
      type: object
      required:
      - vendorWalletAddress
      - amount
      properties:
        vendorWalletAddress:
          type: string
        amount:
          type: integer
        editable:
          type: boolean
        title:
          type: string
    EnhanceYourCalm:
      title: EnhanceYourCalm
      type: object
      required:
      - id
      - message
      properties:
        id:
          type: integer
          format: int32
        message:
          type: string
    FollowedJson:
      title: FollowedJson
      type: object
      required:
      - user
      - favorite
      - follower
      properties:
        user:
          $ref: '#/components/schemas/UserJson'
        favorite:
          type: boolean
        follower:
          type: boolean
    FollowedListResponse:
      title: FollowedListResponse
      type: object
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/FollowedJson'
        nextPage:
          type: string
    FollowerJson:
      title: FollowerJson
      type: object
      required:
      - user
      - following
      properties:
        user:
          $ref: '#/components/schemas/UserJson'
        following:
          type: boolean
    FollowersListResponse:
      title: FollowersListResponse
      type: object
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/FollowerJson'
        nextPage:
          type: string
    Forbidden:
      title: Forbidden
      type: object
      required:
      - id
      - message
      properties:
        id:
          type: integer
          format: int32
        message:
          type: string
        requiredPermissions:
          type: array
          items:
            type: string
            enum:
            - user_profile
            - user_social_graph
            - localization
            - user_groups
            - post_content
            - user_chats
            - transaction_requests
    GetTokenResponse:
      title: GetTokenResponse
      type: object
      properties:
        pending:
          type: boolean
        expiresAt:
          type: string
          format: date-time
        apiToken:
          type: string
    GroupDetailsJson:
      title: GroupDetailsJson
      type: object
      required:
      - groupId
      - createdAt
      - name
      - membersCount
      properties:
        groupId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        createdAt:
          description: Number of milliseconds from the epoch of 1970-01-01T00:00:00Z.
          examples:
          - 1337119200000
          type: integer
        name:
          type: string
        description:
          type: string
        coverPhoto:
          $ref: '#/components/schemas/PhotoJson'
        membersCount:
          type: integer
          format: int64
        membership:
          $ref: '#/components/schemas/GroupMembershipJson'
    GroupMembershipJson:
      title: GroupMembershipJson
      type: object
      required:
      - roleName
      properties:
        roleName:
          type: string
        permissions:
          type: array
          items:
            type: string
    GroupsListResponse:
      title: GroupsListResponse
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: '#/components/schemas/SimpleGroupJson'
        nextPage:
          type: string
    HlsParams:
      title: HlsParams
      type: object
      required:
      - playlistUrl
      - params
      properties:
        playlistUrl:
          type: string
        params:
          type: string
    Map_Long:
      title: Map_Long
      type: object
      additionalProperties:
        type: integer
        format: int64
    MediaAttachmentJson:
      title: MediaAttachmentJson
      type: object
      required:
      - postId
      properties:
        postId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        video:
          $ref: '#/components/schemas/VideoJson'
        photo:
          $ref: '#/components/schemas/PhotoJson'
    MissingFile:
      title: MissingFile
      type: object
      required:
      - id
      - message
      properties:
        id:
          type: integer
          format: int32
        message:
          type: string
    NotFound:
      title: NotFound
      type: object
      required:
      - id
      - message
      properties:
        id:
          type: integer
          format: int32
        message:
          type: string
    OwnProfile:
      title: OwnProfile
      type: object
      required:
      - userId
      - name
      - firstName
      - lastName
      - profilePhoto
      - handle
      - timezone
      - locale
      properties:
        userId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        name:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        public:
          type: boolean
        profilePhoto:
          $ref: '#/components/schemas/PhotoJson'
        handle:
          type: string
        timezone:
          type: string
        locale:
          type: string
    PhotoJson:
      title: PhotoJson
      type: object
      required:
      - href
      - small
      properties:
        href:
          type: string
        small:
          type: string
    PhotoUploadResult:
      title: PhotoUploadResult
      type: object
      required:
      - id
      - name
      - type
      - size
      properties:
        id:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        name:
          type: string
        type:
          type: string
        size:
          type: integer
          format: int64
    PostJson:
      title: PostJson
      type: object
      required:
      - postId
      - user
      - commentsCount
      - text
      - createdAt
      properties:
        postId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        user:
          $ref: '#/components/schemas/UserJson'
        refPost:
          $ref: '#/components/schemas/PostJson'
        commentsCount:
          type: integer
          format: int64
        emojiCounts:
          $ref: '#/components/schemas/Map_Long'
        totalSharesCount:
          type: integer
          format: int64
        mediaAttachments:
          type: array
          items:
            $ref: '#/components/schemas/MediaAttachmentJson'
        mediasCount:
          type: integer
          format: int32
        text:
          type: string
        createdAt:
          type: integer
          format: int64
        scheduled:
          type: integer
          format: int64
    PostRequest:
      title: PostRequest
      type: object
      required:
      - text
      properties:
        text:
          type: string
        uploadedPhotoIds:
          description: List of hexadecimal unique ObjectId's
          examples:
          - 58358a6596ee3576d7d947d0,58358a6596ee3576d7d94732,58358a6596ee3576de3147d0
          type: string
          format: objectId1,objectId2,objectId3
        schedule:
          description: Number of milliseconds from the epoch of 1970-01-01T00:00:00Z.
          examples:
          - 1337119200000
          type: integer
    ScheduledPostsCalendarRequest:
      title: ScheduledPostsCalendarRequest
      type: object
      required:
      - since
      - until
      properties:
        since:
          type: string
          format: date-time
        until:
          type: string
          format: date-time
        limit:
          type: integer
          format: int32
    SimpleGroupJson:
      title: SimpleGroupJson
      type: object
      required:
      - groupId
      - name
      - ownerId
      properties:
        groupId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        name:
          type: string
        ownerId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        coverPhoto:
          $ref: '#/components/schemas/PhotoJson'
        description:
          type: string
    SimplePostsFeedJsonResponse:
      title: SimplePostsFeedJsonResponse
      type: object
      properties:
        posts:
          type: array
          items:
            $ref: '#/components/schemas/PostJson'
        nextPage:
          type: string
    TransactionRequestDetailsResponse:
      title: TransactionRequestDetailsResponse
      type: object
      required:
      - id
      - vendorWalletAddress
      - amount
      - editable
      - status
      - createdAt
      - expiresAt
      properties:
        id:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        vendorWalletAddress:
          type: string
        amount:
          type: integer
        editable:
          type: boolean
        title:
          type: string
        status:
          type: string
        transactionHash:
          type: string
        createdAt:
          description: Number of milliseconds from the epoch of 1970-01-01T00:00:00Z.
          examples:
          - 1337119200000
          type: integer
        expiresAt:
          description: Number of milliseconds from the epoch of 1970-01-01T00:00:00Z.
          examples:
          - 1337119200000
          type: integer
    TransactionResponse:
      title: TransactionResponse
      type: object
      required:
      - transactionRequestId
      properties:
        transactionRequestId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
    Unauthorized:
      title: Unauthorized
      type: object
      required:
      - id
      - message
      properties:
        id:
          type: integer
          format: int32
        message:
          type: string
    UserJson:
      title: UserJson
      type: object
      required:
      - userId
      - name
      - profilePhoto
      - handle
      properties:
        userId:
          description: Hexadecimal unique ObjectId
          examples:
          - 58358a6596ee3576d7d947d0
          type: string
          format: objectId
        name:
          type: string
        profilePhoto:
          $ref: '#/components/schemas/PhotoJson'
        handle:
          type: string
    VideoJson:
      title: VideoJson
      type: object
      required:
      - video
      properties:
        thumbnailHref:
          type: string
        video:
          type: string
  securitySchemes:
    httpAuth:
      type: http
      scheme: bearer
