github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/schemas/member.yaml (about)

     1  ---
     2  member:
     3    type: object
     4    title: member
     5    properties:
     6      id:
     7        type: string
     8      email:
     9        type: string
    10      username:
    11        type: string
    12      created_at:
    13        type: string
    14        format: date-time
    15      last_activity_at:
    16        type: string
    17        format: date-time
    18      role:
    19        type: string
    20      projects:
    21        type: array
    22        items:
    23          "$ref": "./project_locales.yaml#/project_locales"
    24      permissions:
    25        type: object
    26      default_locale_codes:
    27        type: array
    28        items:
    29          type: string
    30      teams:
    31        type: array
    32        items:
    33          "$ref": "./team_short.yaml#/team_short"
    34      spaces:
    35        type: array
    36        items:
    37          type: object
    38          properties:
    39            id:
    40              type: string
    41            name:
    42              type: string
    43            created_at:
    44              type: string
    45              format: date-time
    46            updated_at:
    47              type: string
    48              format: date-time
    49            projects_count:
    50              type: integer
    51    example:
    52      id: acbdacbdacbdacbdacbdacbd
    53      email: foo@bar.com
    54      username: myname
    55      created_at: "2020-12-07T12:56:21Z"
    56      last_activity_at: "2020-12-09T12:56:21Z"
    57      role: Manager
    58      projects:
    59      - id: abcd1234cdef1234abcd1234cdef1234
    60        name: My Android Project
    61        main_format: xml
    62        created_at: '2015-01-28T09:52:53Z'
    63        updated_at: '2015-01-28T09:52:53Z'
    64        locales:
    65        - id: abcd1234cdef1234abcd1234cdef1234
    66          name: English
    67          code: en-Gb
    68      permissions:
    69      - create_upload: true
    70        review_translations: true
    71      default_locale_codes:
    72      - en
    73      - fi
    74      teams:
    75      - id: "04d36d845576b9d494d05e0b70fe813c"
    76        name: "Team 1"
    77        created_at: "2020-12-07T12:56:21Z"
    78        updated_at: "2020-12-07T12:56:21Z"
    79      spaces:
    80      - id: "04d36d845576b9d494d05e0b70fe813b"
    81        name: "Space2"
    82        created_at: "2020-12-07T12:56:21Z"
    83        updated_at: "2020-12-07T12:56:21Z"
    84        projects_count: 1