2.0info:   2.2.2   datalake  description: ERP Datalake  x-senior-domain: erp  x-senior-domain-path: erp  x-senior-service-path: datalake  contact:    name: Senior X Platform    url: https://dev.senior.com.br    email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/erpsecurityDefinitions:   APIKeyHeader:     type: apiKey     in: header     name: Authorizationsecurity:  – APIKeyHeader: []  – application/json  – application/jsonpaths:  /datalake/queries/healthcheck:    post:      description: Query para o SRE verificar a disponibilidade do serviço      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object      responses:        200:          description: Ok          schema:            type: object            required:              – status              – checks            properties:              status:                type: string                allOf:                –  #/definitions/upDown                description: Status geral do serviço              checks:                type: array                items:                  type: object                  allOf:                   –  #/definitions/checkData                  minimum: 1                description: Verificações para assegurar o status        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Query para o SRE verificar a disponibilidade do serviço      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:      responses:        200:          description: Ok          schema:            type: object            required:              – status              – checks            properties:              status:                type: string                allOf:                –  #/definitions/upDown                description: Status geral do serviço              checks:                type: array                items:                  type: object                  allOf:                   –  #/definitions/checkData                  minimum: 1                description: Verificações para assegurar o status        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/getTenant:    post:      description: Pesquisar um Tenant e o tier atual de cada produto      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            properties:              tenant:                type: string                description: Tenant – Caso não seja um tenant Senior que faça a chamada, será pesquisado o tenant da mensagem.      responses:        200:          description: Ok          schema:            type: object            required:              – products            properties:              products:                type: array                items:                  type: object                  allOf:                   –  #/definitions/recTenantDetail                  minimum: 1                description: Resultado        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Pesquisar um Tenant e o tier atual de cada produto      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: tenant          description: Tenant – Caso não seja um tenant Senior que faça a chamada, será pesquisado o tenant da mensagem.          in: query          type: string      responses:        200:          description: Ok          schema:            type: object            required:              – products            properties:              products:                type: array                items:                  type: object                  allOf:                   –  #/definitions/recTenantDetail                  minimum: 1                description: Resultado        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/getUserProducts:    post:      description: Pesquisa quais produtos o usuário tem acesso      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            properties:              tenant:                type: string                description: Tenant, se preenchido, User se torna obrigatório – Uso exclusivo do tenant Senior              user:                type: string                description: Usuário, se preenchido, Tenant se torna obrigatório – Uso exclusivo do tenant Senior      responses:        200:          description: Ok          schema:            type: object            required:              – products            properties:              products:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumDatalakeProduct                  minimum: 1                description: Produtos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Pesquisa quais produtos o usuário tem acesso      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: tenant          description: Tenant, se preenchido, User se torna obrigatório – Uso exclusivo do tenant Senior          in: query          type: string        – name: user          description: Usuário, se preenchido, Tenant se torna obrigatório – Uso exclusivo do tenant Senior          in: query          type: string      responses:        200:          description: Ok          schema:            type: object            required:              – products            properties:              products:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumDatalakeProduct                  minimum: 1                description: Produtos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/searchTenants:    post:      description: Consultar os tenants e todo seu histórico      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – pagination            properties:              tenants:                type: array                items:                  type: string                description: Tenants              tiers:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumTier                description: Tier              products:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumDatalakeProduct                description: Produto              pagination:                type: object                allOf:                 –  #/definitions/recPagination                description: Paginação      responses:        200:          description: Ok          schema:            type: object            required:              – tenants              – totalRecords            properties:              tenants:                type: array                items:                  type: object                  allOf:                   –  #/definitions/recTenant                  minimum: 1                description: Resposta da Primitiva              totalRecords:                type: integer                format: int64                description: Retorno da Paginação        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/getMetadata:    post:      description: Default getMetadata query. Every service must handle this command and return metadata in the format requested.      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            properties:              metadataFormat:                type: string                description:       responses:        200:          description: Ok          schema:            type: object            required:              – metadata            properties:              metadata:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Default getMetadata query. Every service must handle this command and return metadata in the format requested.      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: metadataFormat          description:           in: query          type: string      responses:        200:          description: Ok          schema:            type: object            required:              – metadata            properties:              metadata:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/exportTenantInfos:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/exportHistory:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/queries/getDependencies:    post:      description: Returns a list with all dependencies from this service, along with their respective versions      tags:        – Queries      x-senior-visibility: PRIVATE      responses:        200:          description: Ok          schema:            type: object            required:              – dependencies            properties:              dependencies:                type: array                items:                  type: object                  allOf:                   –  #/definitions/dependency                  minimum: 1                description: List with this service dependencies        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Returns a list with all dependencies from this service, along with their respective versions      tags:        – Queries      x-senior-visibility: PRIVATE      responses:        200:          description: Ok          schema:            type: object            required:              – dependencies            properties:              dependencies:                type: array                items:                  type: object                  allOf:                   –  #/definitions/dependency                  minimum: 1                description: List with this service dependencies        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError  /datalake/actions/activate:    post:      description: Ativa/Atualiza os Tenants juntamente com os Tiers.      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – tenants            properties:              tenants:                type: array                items:                  type: object                  allOf:                   –  #/definitions/recActivate                  minimum: 1                description: Tenants com as informações      responses:        200:          description: Ok          schema:            type: object        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/createSharedAnalytics:    post:      description: Cria os Analytics Shared dos produtos informados      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – products            properties:              products:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumDatalakeProduct                  minimum: 1                description: Produtos      responses:        200:          description: Ok          schema:            type: object            required:              – success            properties:              success:                type: boolean                description: Sucesso        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/createSchedule:    post:      description: Cria um agendados para ativar a base de relatórios ao criar um novo tenant      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – tenant            properties:              tenant:                type: string                description: Tenant que será agendado      responses:        200:          description: Ok          schema:            type: object        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/createDatasets:    post:      description: Cria o datasets de fábrica      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – datasets            properties:              datasets:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumDatalakeProduct                  minimum: 1                description: Tipos de Dataset que devem ser criados      responses:        200:          description: Ok          schema:            type: object            required:              – sucesso            properties:              sucesso:                type: boolean                description: Sucesso        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/initialConfig:    post:      description: Atribui aos tenants as configurações iniciais necessárias para utilizar o ERP Data Lake      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – tenants            properties:              tenants:                type: array                items:                  type: string                  minimum: 1                description: Tenants      responses:        200:          description: Ok          schema:            type: object            required:              – success            properties:              success:                type: boolean                description: Sucesso        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/retryCreateReports:    post:      description: Recria datasets, analytics e pages para um conjunto de tenants – Uso apenas para tenant Senior      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – tenants              – products            properties:              tenants:                type: array                items:                  type: string                  minimum: 1                description: Tenants que serão recriados              products:                type: array                items:                  type: string                  allOf:                  –  #/definitions/enumDatalakeProduct                  minimum: 1                description: Ofertas que serão recriadas      responses:        200:          description: Ok          schema:            type: object            required:              – sucess            properties:              sucess:                type: boolean                description: Sucesso        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/composeOrUpdateDatabase:    post:      description: Cria ou atualiza a base de relatório para um conjunto de tenants. – Uso apenas para tenant Senior      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – tenants            properties:              tenants:                type: array                items:                  type: string                  minimum: 1                description: Tenants      responses:        200:          description: Ok          schema:            type: object            required:              – success            properties:              success:                type: boolean                description: Sucesso        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/importTenantInfos:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/actions/importHistory:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError  /datalake/events/importTenantInfosEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /datalake/events/exportTenantInfosEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /datalake/events/importHistoryEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /datalake/events/exportHistoryEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError  /datalake/entities/tenantInfos:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/tenantInfos      responses:        200:          description: The created resource          schema:             #/definitions/tenantInfos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/tenantInfos      responses:        200:          description: The created resource          schema:             #/definitions/tenantInfos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/tenantInfos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/entities/tenantInfos/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/tenantInfos      responses:        200:          description: Ok          schema:             #/definitions/tenantInfos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/tenantInfos      responses:        200:          description: Ok          schema:             #/definitions/tenantInfos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/tenantInfos        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/entities/tenantInfos/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/tenantInfos      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/entities/history:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/history      responses:        200:          description: The created resource          schema:             #/definitions/history        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/history      responses:        200:          description: The created resource          schema:             #/definitions/history        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/history        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/entities/history/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/history      responses:        200:          description: Ok          schema:             #/definitions/history        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/history      responses:        200:          description: Ok          schema:             #/definitions/history        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/history        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /datalake/entities/history/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/history      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError  definitions:  enumDatalakeProduct:    description: Enum de Ofertas do Data Lake    type: string    enum:      – SALES_INTELLIGENCE      – AGRO      enumTier:    description: Enum de tier das ofertas do Data Lake    type: string    enum:      – FREE      – PREMIUM      enumSort:    description: Direção da Ordenação    type: string    enum:      – ASC      – DESC      upDown:    description: Up or down    type: string    enum:      – UP      – DOWN      userNotificationKind:    description: User notification kind.    type: string    enum:      – Operational      – Management      – News      userNotificationPriority:    description: User notification priority.    type: string    enum:      – Error      – Alert      – None      eventEmailFormat:    description: Format of the email    type: string    enum:      – HTML      – PLAIN_TEXT      fieldType:    description:     type: string    enum:      – BINARY      – BOOLEAN      – DATE      – DATETIME      – DOUBLE      – ENUM      – INTEGER      – MONEY      – STRING      – TIME      fileFormat:    description:     type: string    enum:      – CSV      – FLAT      – JSON      – XML      hookFunction:    description:     type: string    enum:      – BEFORE_PARSE      – BEFORE_CONVERSION      – ON_ERROR      – VALIDATE      eventType:    description:     type: string    enum:      – CHUNK      – DOWNLOAD      – ERROR      – FINISH      – START      errorStrategy:    description:     type: string    enum:      – CALL_SCRIPT      – IGNORE      – STOP      status:    description:     type: string    enum:      – DONE      – DONE_WITH_ERRORS      – DOWNLOADING      – ERROR      – NOT_STARTED      – RUNNING      errorType:    description:     type: string    enum:      – CONVERT_ERROR      – SERVICE_ERROR    tenantInfos:    description: Informações do tenant a ser criado    type: object    required:      – tenantName    properties:      id:        type: string        format: uuid        description: Identificador único do registro      tenantName:        type: string        description: Nome do tenant      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     history:    description: Histórico do tenant criado    type: object    required:      – tenantInfos      – oferta      – tier    properties:      id:        type: string        format: uuid        description: Identificador Único      tenantInfos:        type: object        allOf:         –  #/definitions/tenantInfos        description: Entidade Pai      oferta:        type: string        allOf:        –  #/definitions/enumDatalakeProduct        description: Tipo de Oferta      tier:        type: string        allOf:        –  #/definitions/enumTier        description: Tier da Oferta      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     recPagination:    description: Dados para paginação de registros    type: object    required:      – page      – pageLimit      – order    properties:      page:        type: integer        format: int64        description: Qual página      pageLimit:        type: integer        format: int64        description: Registros por página      order:        type: object        allOf:         –  #/definitions/recOrder        description: Ordenação    recOrder:    description: Dados para ordenação das pesquisas    type: object    required:      – field      – sort    properties:      field:        type: string        description: Campo      sort:        type: string        allOf:        –  #/definitions/enumSort        description: Direção    recTenant:    description: Record para pesquisa de tenants    type: object    required:      – tenant      – activateDate    properties:      tenant:        type: string        description: Tenant      activateDate:        type: string        format: date        description: Data cadastro      details:        type: array        items:          type: object          allOf:           –  #/definitions/recTenantDetail        description: Informações do Tenant    recTenantDetail:    description: Record para Detalhes do Tenant    type: object    required:      – product      – tier      – activateDate    properties:      product:        type: string        allOf:        –  #/definitions/enumDatalakeProduct        description: Produto      tier:        type: string        allOf:        –  #/definitions/enumTier        description: Tier      activateDate:        type: string        format: date        description: Data de Cadastro    recActivate:    description: Record para o Ativar/Atualizar um tenant    type: object    required:      – tenant      – datalakeProduct    properties:      tenant:        type: string        description: Tenant      datalakeProduct:        type: string        allOf:        –  #/definitions/enumDatalakeProduct        description: Datalake Product      tier:        type: string        allOf:        –  #/definitions/enumTier        description: Tier – Caso não seja informado será considerado Free    checkData:    description: Dados do healthcheck    type: object    required:      – name      – status    properties:      name:        type: string        description: Nome do healthcheck      status:        type: string        allOf:        –  #/definitions/upDown        description: Status do healthcheck    notifyUserEventPayload:    description: Represents a regular user event notification payload    discriminator: _discriminator    type: object    required:      – notificationKind      – notificationPriority      – notificationSubject      – notificationContent      – sourceDomain      – sourceService      – destinationUser      – _discriminator    properties:      notificationClass:        type: string        description: Class of notification      notificationOrigin:        type: string        description: Origin of notification. Free text. Optional.      notificationKind:        type: string        allOf:        –  #/definitions/userNotificationKind        description: Notification kind.      notificationPriority:        type: string        allOf:        –  #/definitions/userNotificationPriority        description: Notification priority.      notificationSubject:        type: string        description: Notification subject.      notificationContent:        type: string        description: Notification content.      sourceDomain:        type: string        description: Domain that generates the notification.      sourceService:        type: string        description: Service that generates the notification.      destinationUser:        type: string        description: Username of the destination user.      link:        type: string        description: Notification link      _discriminator:        type: string        description:     emailNotifyUserEventPayload:    description: Represents an email notification payload    allOf:    –  #/definitions/notifyUserEventPayload    –      type: object      required:        – from      properties:        from:          type: string          description: Email sender address        sendTo:          type: array          items:            type: string          description: Additional recipients to send the email to        format:          type: string          allOf:          –  #/definitions/eventEmailFormat          description: Email format    pushNotifyUserEventPayload:    description: Represents a push notification payload    allOf:    –  #/definitions/notifyUserEventPayload    –      type: object      required:        – applicationId      properties:        applicationId:          type: string          description: Apple/Google application id    blobReference:    description: Default blob reference type. Every service defines its own.    type: object    required:      – targetObjectId    properties:      domainName:        type: string        description: The domain the blob belongs to.      serviceName:        type: string        description: The service the blob belongs to.      targetObjectId:        type: string        description: The basic id of the blob.      targetCopyId:        type: string        description: The id of the blob copy.    basicErrorPayload:    description: Default error payload type. Every service defines its own.    type: object    properties:      message:        type: string        description: The user-facing error message, if any.      errorCode:        type: string        description: The program-accessible (and service-specific) error code.    importError:    description:     type: object    required:      – errorType      – lineNumber      – bean      – message      – exceptionClass    properties:      errorType:        type: string        allOf:        –  #/definitions/errorType        description:       lineNumber:        type: integer        format: int64        description:       bean:        type: string        description:       message:        type: string        description:       exceptionClass:        type: string        description:     fielddto:    description:     type: object    required:      – id      – name      – fieldType    properties:      id:        type: integer        format: int64        description:       name:        type: string        description:       fieldType:        type: string        allOf:        –  #/definitions/fieldType        description:       start:        type: integer        format: int64        description:       size:        type: integer        format: int64        description:       maskPattern:        type: string        description:     hookdto:    description:     type: object    required:      – hookFunction      – script    properties:      hookFunction:        type: string        allOf:        –  #/definitions/hookFunction        description:       script:        type: string        description:     layoutdto:    description:     type: object    required:      – id      – description      – fileFormat      – errorStrategy      – skipLines      – fields    properties:      id:        type: integer        format: int64        description:       description:        type: string        description:       fileFormat:        type: string        allOf:        –  #/definitions/fileFormat        description:       errorStrategy:        type: string        allOf:        –  #/definitions/errorStrategy        description:       delimiter:        type: string        description:       skipLines:        type: integer        format: int64        description:       fields:        type: array        items:          type: object          allOf:           –  #/definitions/fielddto          minimum: 1        description:       hooks:        type: array        items:          type: object          allOf:           –  #/definitions/hookdto        description:     importReport:    description:     type: object    required:      – id      – startTime      – endTime      – uri      – beanClass      – serviceClass      – layout      – sucessCount      – errorsCount      – filteredCount      – skippedCount    properties:      id:        type: string        description:       startTime:        type: string        format: date-time        description:       endTime:        type: string        format: date-time        description:       uri:        type: string        description:       beanClass:        type: string        description:       serviceClass:        type: string        description:       layout:        type: object        allOf:         –  #/definitions/layoutdto        description:       sucessCount:        type: integer        format: int64        description:       errorsCount:        type: integer        format: int64        description:       filteredCount:        type: integer        format: int64        description:       skippedCount:        type: integer        format: int64        description:       importErrors:        type: array        items:          type: object          allOf:           –  #/definitions/importError        description:     exportEventStatus:    description:     type: object    required:      – importerId      – eventType      – recordCount    properties:      importerId:        type: string        description:       eventType:        type: string        allOf:        –  #/definitions/eventType        description:       recordCount:        type: integer        format: int64        description:     importEventStatus:    description:     type: object    required:      – importerId      – eventType      – status      – recordCount    properties:      importerId:        type: string        description:       eventType:        type: string        allOf:        –  #/definitions/eventType        description:       status:        type: string        allOf:        –  #/definitions/status        description:       errorMessage:        type: string        description:       recordCount:        type: integer        format: int64        description:       importReport:        type: object        allOf:         –  #/definitions/importReport        description:     exportConfig:    description:     type: object    required:      – uri      – layout      – async      – errorStrategy    properties:      uri:        type: string        description:       layout:        type: object        allOf:         –  #/definitions/layoutdto        description:       async:        type: boolean        description:       errorStrategy:        type: string        description:     importConfig:    description:     type: object    required:      – uri      – layout      – async      – batchSize      – errorStrategy    properties:      uri:        type: string        description:       layout:        type: object        allOf:         –  #/definitions/layoutdto        description:       async:        type: boolean        description:       batchSize:        type: integer        format: int64        description:       errorStrategy:        type: string        allOf:        –  #/definitions/errorStrategy        description:     dependency:    description: Represents a service dependency    type: object    required:      – domain      – service      – version    properties:      domain:        type: string        description: Domain of the dependency service      service:        type: string        description: Name of the dependency service              type: string        description: Version of the dependency service  genericError:    properties:      message:        type: string        description: Messaging describing the error.      reason:        type: string        description: A symbolic code identifying the category of the reason of the error.        enum:          – BAD_REQUEST          – UNAUTHORIZED          – PAYMENT_REQUIRED          – FORBIDDEN          – OBJECT_NOT_FOUND          – REQUEST_TIMEOUT          – GONE          – UNPROCESSABLE          – INTERNAL_ERROR          – NOT_IMPLEMENTED          – SERVICE_UNAVAILABLE          – INSUFFICIENT_STORAGE